From e5d346c4135942148e5141ab90c3ed31d8586b0a Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Wed, 20 Nov 2024 21:51:18 -0500 Subject: [PATCH 01/19] Model Milestone Init --- .../Modal/ModelMilestoneForm/index.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx new file mode 100644 index 0000000000..c68079be51 --- /dev/null +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { useTranslation } from 'react-i18next'; +import { useParams } from 'react-router-dom'; + +import useMessage from 'hooks/useMessage'; + +const ModelMilestoneForm = ({ closeModal }: { closeModal: () => void }) => { + const { t } = useTranslation('modelToOperationsMisc'); + + const { modelID } = useParams<{ modelID: string }>(); + const { message, showMessage, clearMessage } = useMessage(); + + return
ModelMilestoneForm
; +}; + +export default ModelMilestoneForm; From 2c7b7295ba5e4e341b908b327e8896d55224e74e Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Wed, 20 Nov 2024 22:11:09 -0500 Subject: [PATCH 02/19] CreateMTOMilestoneCustom query --- .../Modal/ModelMilestoneForm/index.tsx | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx index c68079be51..8cb9b83a6e 100644 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx @@ -1,15 +1,52 @@ import React from 'react'; +import { useForm } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; import { useParams } from 'react-router-dom'; +import { useGetMtoCategoriesQuery } from 'gql/generated/graphql'; import useMessage from 'hooks/useMessage'; +import { selectOptions } from '../CategoryForm'; + const ModelMilestoneForm = ({ closeModal }: { closeModal: () => void }) => { const { t } = useTranslation('modelToOperationsMisc'); const { modelID } = useParams<{ modelID: string }>(); const { message, showMessage, clearMessage } = useMessage(); + const { data, loading } = useGetMtoCategoriesQuery({ + variables: { id: modelID } + }); + // Get categories from the data + const categories = data?.modelPlan?.mtoMatrix?.categories || []; + + // Map categories to sort options + const mappedCategories: SelectProps[] = categories.map(category => ({ + value: category.id, + label: category.name + })); + + // Combine sort options and mapped categories + const selectOptionsAndMappedCategories: SelectProps[] = [ + ...selectOptions, + ...mappedCategories + ]; + + // Variables for the form + const methods = useForm({ + defaultValues: { + primaryCategory: 'default', + name: '' + } + }); + + const { + control, + handleSubmit, + reset, + formState: { isValid } + } = methods; + return
ModelMilestoneForm
; }; From 8c5520004c2de1392fa2fa3c740a7cdeec6ba6f5 Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Thu, 21 Nov 2024 14:42:15 -0500 Subject: [PATCH 03/19] Attempting to add MTOMilestoneTranslation --- src/types/translation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/translation.ts b/src/types/translation.ts index beafce6ccc..65cb7094e9 100644 --- a/src/types/translation.ts +++ b/src/types/translation.ts @@ -47,6 +47,7 @@ import { MtoCategoryTranslation, MtoInfoTranslation, MtoMilestoneTranslation, + MtoMilestoneTranslation, MultiSourceDataToCollect, NonClaimsBasedPayType, OperationalNeedKey, From 0668efdf89b0cd983b045c1542b134e78b95d6fb Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Thu, 21 Nov 2024 15:39:25 -0500 Subject: [PATCH 04/19] mtoMilestone to mtoMilestones --- src/types/translation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/translation.ts b/src/types/translation.ts index 65cb7094e9..15532352b8 100644 --- a/src/types/translation.ts +++ b/src/types/translation.ts @@ -1297,7 +1297,7 @@ export type TranslationPlan = { dataExchangeApproach: TranslationDataExchangeApproach; modelToOperations: TranslationMTOInfo; mtoCategory: TranslationMTOCategory; - mtoMilestone: TranslationMTOMilestoneCustom; + mtoMilestones: TranslationMTOMilestoneCustom; }; export type TranslationPlanSection = @@ -1329,5 +1329,5 @@ export enum PlanSection { DATA_EXCHANGE_APPROACH = 'dataExchangeApproach', MTO_INFO = 'modelToOperations', MTO_CATEGORY = 'mtoCategory', - MTO_MILESTONE = 'mtoMilestone' + MTO_MILESTONES = 'mtoMilestones' } From 854ae26da9e81bf609e30271d5b18d2ac98d8f4c Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Thu, 21 Nov 2024 15:49:00 -0500 Subject: [PATCH 05/19] Solution Form init --- .../ModelPlan/ModelToOperations/Home/index.tsx | 11 +++++++++++ .../_components/Modal/SolutionForm/index.tsx | 7 +++++++ .../ModelToOperations/_components/Modal/index.tsx | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx diff --git a/src/features/ModelPlan/ModelToOperations/Home/index.tsx b/src/features/ModelPlan/ModelToOperations/Home/index.tsx index 0ff6e0ff5e..eb26b12765 100644 --- a/src/features/ModelPlan/ModelToOperations/Home/index.tsx +++ b/src/features/ModelPlan/ModelToOperations/Home/index.tsx @@ -200,6 +200,17 @@ const MTOHome = () => { > Add custom milestone + diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx new file mode 100644 index 0000000000..da1eef2c09 --- /dev/null +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx @@ -0,0 +1,7 @@ +import React from 'react'; + +const SolutionForm = ({ closeModal }: { closeModal: () => void }) => { + return
SolutionForm
; +}; + +export default SolutionForm; diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/index.tsx index 757072f2f9..1e18ffee36 100644 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/index.tsx +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/index.tsx @@ -7,6 +7,7 @@ import useMessage from 'hooks/useMessage'; import CategoryForm from './CategoryForm'; import MilestoneForm from './MilestoneForm'; +import SolutionForm from './SolutionForm'; type MTOModalProps = { isOpen: boolean; @@ -59,6 +60,7 @@ const MTOModal = ({ isOpen, closeModal, modalType }: MTOModalProps) => { {/* if type is category, then render CategoryForm */} {modalType === 'category' && } {modalType === 'milestone' && } + {modalType === 'solution' && } ); }; From e19642397e1391cc7bca0f0f4af048679eca044e Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Thu, 21 Nov 2024 16:28:07 -0500 Subject: [PATCH 06/19] basic scaffolding for the solutions modal --- .../_components/Modal/SolutionForm/index.tsx | 233 +++++++++++++++++- src/i18n/en-US/modelPlan/modelToOperations.ts | 14 ++ 2 files changed, 246 insertions(+), 1 deletion(-) diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx index da1eef2c09..144c03f367 100644 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx @@ -1,7 +1,238 @@ import React from 'react'; +import { + Controller, + FormProvider, + SubmitHandler, + useForm +} from 'react-hook-form'; +import { Trans, useTranslation } from 'react-i18next'; +import { useParams } from 'react-router-dom'; +import { + Button, + Fieldset, + Form, + FormGroup, + Label, + Select, + TextInput +} from '@trussworks/react-uswds'; +import { + useCreateMtoMilestoneCustomMutation, + useGetMtoCategoriesQuery +} from 'gql/generated/graphql'; + +import Alert from 'components/Alert'; +import useMessage from 'hooks/useMessage'; +import { convertCamelCaseToKebabCase } from 'utils/modelPlan'; + +// import { selectOptions, SelectProps } from '../CategoryForm'; const SolutionForm = ({ closeModal }: { closeModal: () => void }) => { - return
SolutionForm
; + const { t } = useTranslation('modelToOperationsMisc'); + // const { modelID } = useParams<{ modelID: string }>(); + const { message, showMessage, clearMessage } = useMessage(); + + // Variables for the form + const methods = useForm({ + defaultValues: { + primaryCategory: 'default', + subcategory: 'default', + name: '' + } + }); + + const { + control, + handleSubmit, + reset, + watch, + formState: { isValid } + } = methods; + + const onSubmit: SubmitHandler = formData => { + console.log(formData); + }; + + return ( + + {message} +
+
+ value !== 'default' + }} + render={({ field: { ref, ...field } }) => ( + + + + + + )} + /> + + ( + + + + + + )} + /> + +
+

+ {t('modal.solution.pocHeading')} +

+

+ {t('modal.solution.pocSubheading')} +

+
+ + ( + + + + + + )} + /> + + ( + + + + + + )} + /> +
+ + + // TODO: Add a link to the documentation + }} + /> + + + +
+
+ ); }; export default SolutionForm; diff --git a/src/i18n/en-US/modelPlan/modelToOperations.ts b/src/i18n/en-US/modelPlan/modelToOperations.ts index 87aa84cb57..8f5ce3e255 100644 --- a/src/i18n/en-US/modelPlan/modelToOperations.ts +++ b/src/i18n/en-US/modelPlan/modelToOperations.ts @@ -291,6 +291,20 @@ export const modelToOperationsMisc: Record = { 'There was an error adding your milestone. Please try again. If the error persists, please try again another time.' } }, + solution: { + label: { + solutionType: 'What type of solution is this? *', + solutionTitle: 'Please add a title for your solution *', + pocName: 'Point of contact name *', + pocEmail: 'Point of contact email address *' + }, + pocHeading: 'Solution point of contact information', + pocSubheading: + 'Add the name and contact information for the person or team who is the primary point of contact for this solution.', + alert: { + info: "Please double-check that you aren't creating an operational solution or IT system that already exists in the solution library." + } + }, addButton: 'Add {{type}}', cancel: 'Cancel' }, From fe93dad1b909c1061884951fe58d73476742e95b Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Mon, 25 Nov 2024 14:02:23 -0500 Subject: [PATCH 07/19] fixing some bad rebase conflicts --- .../Modal/MilestoneForm/index.test.tsx | 4 +- .../Modal/ModelMilestoneForm/index.tsx | 53 ------------------- .../_components/Modal/SolutionForm/index.tsx | 33 ++++++++---- src/types/translation.ts | 5 +- 4 files changed, 27 insertions(+), 68 deletions(-) delete mode 100644 src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/MilestoneForm/index.test.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/MilestoneForm/index.test.tsx index 66fb7374a8..f4c7b583a6 100644 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/MilestoneForm/index.test.tsx +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/MilestoneForm/index.test.tsx @@ -7,7 +7,7 @@ import VerboseMockedProvider from 'tests/MockedProvider'; import MessageProvider from 'contexts/MessageContext'; -import ModelMilestoneForm from './index'; +import MilestoneForm from './index'; const mocks = [ { @@ -60,7 +60,7 @@ describe('Custom Milestone form', () => { - {}} /> + {}} /> diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx deleted file mode 100644 index 8cb9b83a6e..0000000000 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/ModelMilestoneForm/index.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import React from 'react'; -import { useForm } from 'react-hook-form'; -import { useTranslation } from 'react-i18next'; -import { useParams } from 'react-router-dom'; -import { useGetMtoCategoriesQuery } from 'gql/generated/graphql'; - -import useMessage from 'hooks/useMessage'; - -import { selectOptions } from '../CategoryForm'; - -const ModelMilestoneForm = ({ closeModal }: { closeModal: () => void }) => { - const { t } = useTranslation('modelToOperationsMisc'); - - const { modelID } = useParams<{ modelID: string }>(); - const { message, showMessage, clearMessage } = useMessage(); - - const { data, loading } = useGetMtoCategoriesQuery({ - variables: { id: modelID } - }); - // Get categories from the data - const categories = data?.modelPlan?.mtoMatrix?.categories || []; - - // Map categories to sort options - const mappedCategories: SelectProps[] = categories.map(category => ({ - value: category.id, - label: category.name - })); - - // Combine sort options and mapped categories - const selectOptionsAndMappedCategories: SelectProps[] = [ - ...selectOptions, - ...mappedCategories - ]; - - // Variables for the form - const methods = useForm({ - defaultValues: { - primaryCategory: 'default', - name: '' - } - }); - - const { - control, - handleSubmit, - reset, - formState: { isValid } - } = methods; - - return
ModelMilestoneForm
; -}; - -export default ModelMilestoneForm; diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx index 144c03f367..90a0b87c66 100644 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx @@ -6,7 +6,7 @@ import { useForm } from 'react-hook-form'; import { Trans, useTranslation } from 'react-i18next'; -import { useParams } from 'react-router-dom'; +// import { useParams } from 'react-router-dom'; import { Button, Fieldset, @@ -16,28 +16,40 @@ import { Select, TextInput } from '@trussworks/react-uswds'; -import { - useCreateMtoMilestoneCustomMutation, - useGetMtoCategoriesQuery -} from 'gql/generated/graphql'; +// import { +// useCreateMtoMilestoneCustomMutation, +// useGetMtoCategoriesQuery +// } from 'gql/generated/graphql'; import Alert from 'components/Alert'; import useMessage from 'hooks/useMessage'; import { convertCamelCaseToKebabCase } from 'utils/modelPlan'; // import { selectOptions, SelectProps } from '../CategoryForm'; +type FormValues = { + solutionType: string; + solutionTitle: string; + pocName: string; + pocEmail: string; +}; + const SolutionForm = ({ closeModal }: { closeModal: () => void }) => { const { t } = useTranslation('modelToOperationsMisc'); // const { modelID } = useParams<{ modelID: string }>(); - const { message, showMessage, clearMessage } = useMessage(); + const { + message, + // showMessage, + clearMessage + } = useMessage(); // Variables for the form const methods = useForm({ defaultValues: { - primaryCategory: 'default', - subcategory: 'default', - name: '' + solutionType: 'default', + solutionTitle: '', + pocName: '', + pocEmail: '' } }); @@ -45,11 +57,12 @@ const SolutionForm = ({ closeModal }: { closeModal: () => void }) => { control, handleSubmit, reset, - watch, + // watch, formState: { isValid } } = methods; const onSubmit: SubmitHandler = formData => { + // eslint-disable-next-line no-console console.log(formData); }; diff --git a/src/types/translation.ts b/src/types/translation.ts index 15532352b8..beafce6ccc 100644 --- a/src/types/translation.ts +++ b/src/types/translation.ts @@ -47,7 +47,6 @@ import { MtoCategoryTranslation, MtoInfoTranslation, MtoMilestoneTranslation, - MtoMilestoneTranslation, MultiSourceDataToCollect, NonClaimsBasedPayType, OperationalNeedKey, @@ -1297,7 +1296,7 @@ export type TranslationPlan = { dataExchangeApproach: TranslationDataExchangeApproach; modelToOperations: TranslationMTOInfo; mtoCategory: TranslationMTOCategory; - mtoMilestones: TranslationMTOMilestoneCustom; + mtoMilestone: TranslationMTOMilestoneCustom; }; export type TranslationPlanSection = @@ -1329,5 +1328,5 @@ export enum PlanSection { DATA_EXCHANGE_APPROACH = 'dataExchangeApproach', MTO_INFO = 'modelToOperations', MTO_CATEGORY = 'mtoCategory', - MTO_MILESTONES = 'mtoMilestones' + MTO_MILESTONE = 'mtoMilestone' } From 18199ea00a8f015f71a1fd31890c2f0ffcb11579 Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Mon, 25 Nov 2024 16:38:41 -0500 Subject: [PATCH 08/19] Add CreateMTOSolutionsCustom --- src/gql/generated/graphql.ts | 82 +++++++++++++++++++ .../CreateMTOSolutionCustom.ts | 54 ++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts diff --git a/src/gql/generated/graphql.ts b/src/gql/generated/graphql.ts index 5ac7ea964c..e88d93821d 100644 --- a/src/gql/generated/graphql.ts +++ b/src/gql/generated/graphql.ts @@ -5386,6 +5386,18 @@ export type CreateMtoMilestoneCustomMutationVariables = Exact<{ export type CreateMtoMilestoneCustomMutation = { __typename: 'Mutation', createMTOMilestoneCustom: { __typename: 'MTOMilestone', id: UUID, name: string } }; +export type NewMtoSolutionMutationVariables = Exact<{ + modelPlanID: Scalars['UUID']['input']; + solutionType: MtoSolutionType; + facilitatedBy: MtoFacilitator; + name: Scalars['String']['input']; + pocName: Scalars['String']['input']; + pocEmail: Scalars['String']['input']; +}>; + + +export type NewMtoSolutionMutation = { __typename: 'Mutation', createMTOSolutionCustom: { __typename: 'MTOSolution', id: UUID, name?: string | null, facilitatedBy?: MtoFacilitator | null, status: MtoSolutionStatus, riskIndicator?: MtoRiskIndicator | null, key?: MtoCommonSolutionKey | null, type?: MtoSolutionType | null, pocName: string, pocEmail: string, createdBy: UUID, createdDts: Time, modifiedBy?: UUID | null, modifiedDts?: Time | null, addedFromSolutionLibrary: boolean, createdByUserAccount: { __typename: 'UserAccount', id: UUID, email: string }, modifiedByUserAccount?: { __typename: 'UserAccount', id: UUID, email: string } | null, commonSolution?: { __typename: 'MTOCommonSolution', name: string } | null } }; + export type GetMtoCategoriesQueryVariables = Exact<{ id: Scalars['UUID']['input']; }>; @@ -11064,6 +11076,75 @@ export function useCreateMtoMilestoneCustomMutation(baseOptions?: Apollo.Mutatio export type CreateMtoMilestoneCustomMutationHookResult = ReturnType; export type CreateMtoMilestoneCustomMutationResult = Apollo.MutationResult; export type CreateMtoMilestoneCustomMutationOptions = Apollo.BaseMutationOptions; +export const NewMtoSolutionDocument = gql` + mutation NewMTOSolution($modelPlanID: UUID!, $solutionType: MTOSolutionType!, $facilitatedBy: MTOFacilitator!, $name: String!, $pocName: String!, $pocEmail: String!) { + createMTOSolutionCustom( + modelPlanID: $modelPlanID + solutionType: $solutionType + facilitatedBy: $facilitatedBy + name: $name + pocName: $pocName + pocEmail: $pocEmail + ) { + id + name + facilitatedBy + status + riskIndicator + key + type + pocName + pocEmail + createdBy + createdByUserAccount { + id + email + } + createdDts + modifiedBy + modifiedByUserAccount { + id + email + } + modifiedDts + addedFromSolutionLibrary + commonSolution { + name + } + } +} + `; +export type NewMtoSolutionMutationFn = Apollo.MutationFunction; + +/** + * __useNewMtoSolutionMutation__ + * + * To run a mutation, you first call `useNewMtoSolutionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useNewMtoSolutionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [newMtoSolutionMutation, { data, loading, error }] = useNewMtoSolutionMutation({ + * variables: { + * modelPlanID: // value for 'modelPlanID' + * solutionType: // value for 'solutionType' + * facilitatedBy: // value for 'facilitatedBy' + * name: // value for 'name' + * pocName: // value for 'pocName' + * pocEmail: // value for 'pocEmail' + * }, + * }); + */ +export function useNewMtoSolutionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(NewMtoSolutionDocument, options); + } +export type NewMtoSolutionMutationHookResult = ReturnType; +export type NewMtoSolutionMutationResult = Apollo.MutationResult; +export type NewMtoSolutionMutationOptions = Apollo.BaseMutationOptions; export const GetMtoCategoriesDocument = gql` query GetMTOCategories($id: UUID!) { modelPlan(id: $id) { @@ -14253,6 +14334,7 @@ export const TypedModelPlanSubscriptionDocument = {"kind":"Document","definition export const TypedUnlockModelPlanSectionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UnlockModelPlanSection"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"section"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"LockableSection"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"unlockLockableSection"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}}},{"kind":"Argument","name":{"kind":"Name","value":"section"},"value":{"kind":"Variable","name":{"kind":"Name","value":"section"}}}]}]}}]} as unknown as DocumentNode; export const TypedCreateMtoCategoryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateMTOCategory"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parentID"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOCategory"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"parentID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"parentID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isUncategorized"}}]}}]}}]} as unknown as DocumentNode; export const TypedCreateMtoMilestoneCustomDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateMTOMilestoneCustom"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"mtoCategoryID"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOMilestoneCustom"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"mtoCategoryID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"mtoCategoryID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const TypedNewMtoSolutionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"NewMTOSolution"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MTOSolutionType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"facilitatedBy"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MTOFacilitator"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOSolutionCustom"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}}},{"kind":"Argument","name":{"kind":"Name","value":"solutionType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}}},{"kind":"Argument","name":{"kind":"Name","value":"facilitatedBy"},"value":{"kind":"Variable","name":{"kind":"Name","value":"facilitatedBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocEmail"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"facilitatedBy"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"riskIndicator"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"pocName"}},{"kind":"Field","name":{"kind":"Name","value":"pocEmail"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdDts"}},{"kind":"Field","name":{"kind":"Name","value":"modifiedBy"}},{"kind":"Field","name":{"kind":"Name","value":"modifiedByUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"kind":"Field","name":{"kind":"Name","value":"modifiedDts"}},{"kind":"Field","name":{"kind":"Name","value":"addedFromSolutionLibrary"}},{"kind":"Field","name":{"kind":"Name","value":"commonSolution"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; export const TypedGetMtoCategoriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMTOCategories"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modelPlan"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mtoMatrix"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"categories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"subCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const TypedGetMtoMilestonesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMTOMilestones"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modelPlan"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"mtoMatrix"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commonMilestones"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"isAdded"}},{"kind":"Field","name":{"kind":"Name","value":"isSuggested"}},{"kind":"Field","name":{"kind":"Name","value":"categoryName"}},{"kind":"Field","name":{"kind":"Name","value":"subCategoryName"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const TypedGetModelToOperationsMatrixDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetModelToOperationsMatrix"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modelPlan"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"mtoMatrix"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"categories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isUncategorized"}},{"kind":"Field","name":{"kind":"Name","value":"subCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isUncategorized"}},{"kind":"Field","name":{"kind":"Name","value":"milestones"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"facilitatedBy"}},{"kind":"Field","name":{"kind":"Name","value":"needBy"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"riskIndicator"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"milestones"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recentEdit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"id"},"name":{"kind":"Name","value":"modifiedBy"}},{"kind":"Field","name":{"kind":"Name","value":"modifiedByUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"commonName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"modifiedDts"}}]}}]}}]}}]}}]} as unknown as DocumentNode; diff --git a/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts b/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts new file mode 100644 index 0000000000..57546fd347 --- /dev/null +++ b/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts @@ -0,0 +1,54 @@ +import { gql } from '@apollo/client'; + +export default gql(/* GraphQL */ ` + mutation NewMTOSolution( + $modelPlanID: UUID! + $solutionType: MTOSolutionType! + $facilitatedBy: MTOFacilitator! + $name: String! + $pocName: String! + $pocEmail: String! + ) { + createMTOSolutionCustom( + modelPlanID: $modelPlanID + solutionType: $solutionType + facilitatedBy: $facilitatedBy + name: $name + pocName: $pocName + pocEmail: $pocEmail + ) { + id + name + facilitatedBy + status + riskIndicator + key + type + pocName + pocEmail + + #Meta Data + createdBy + createdByUserAccount { + id + email + } + createdDts + modifiedBy + modifiedByUserAccount { + id + email + } + modifiedDts + + # Custom Resolvers + #relatedMilestones { + # id + #} + addedFromSolutionLibrary + commonSolution { + name + } + } + } +`); From 5d28c9e0238038185aa02561169cf8cabbe931db Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Mon, 2 Dec 2024 10:35:08 -0500 Subject: [PATCH 09/19] scripts/dev gql --- src/gql/generated/graphql.ts | 29 ++----------------- .../CreateMTOSolutionCustom.ts | 29 ------------------- 2 files changed, 3 insertions(+), 55 deletions(-) diff --git a/src/gql/generated/graphql.ts b/src/gql/generated/graphql.ts index e88d93821d..086178051c 100644 --- a/src/gql/generated/graphql.ts +++ b/src/gql/generated/graphql.ts @@ -5389,14 +5389,13 @@ export type CreateMtoMilestoneCustomMutation = { __typename: 'Mutation', createM export type NewMtoSolutionMutationVariables = Exact<{ modelPlanID: Scalars['UUID']['input']; solutionType: MtoSolutionType; - facilitatedBy: MtoFacilitator; name: Scalars['String']['input']; pocName: Scalars['String']['input']; pocEmail: Scalars['String']['input']; }>; -export type NewMtoSolutionMutation = { __typename: 'Mutation', createMTOSolutionCustom: { __typename: 'MTOSolution', id: UUID, name?: string | null, facilitatedBy?: MtoFacilitator | null, status: MtoSolutionStatus, riskIndicator?: MtoRiskIndicator | null, key?: MtoCommonSolutionKey | null, type?: MtoSolutionType | null, pocName: string, pocEmail: string, createdBy: UUID, createdDts: Time, modifiedBy?: UUID | null, modifiedDts?: Time | null, addedFromSolutionLibrary: boolean, createdByUserAccount: { __typename: 'UserAccount', id: UUID, email: string }, modifiedByUserAccount?: { __typename: 'UserAccount', id: UUID, email: string } | null, commonSolution?: { __typename: 'MTOCommonSolution', name: string } | null } }; +export type NewMtoSolutionMutation = { __typename: 'Mutation', createMTOSolutionCustom: { __typename: 'MTOSolution', id: UUID, name?: string | null, status: MtoSolutionStatus, pocName?: string | null, pocEmail?: string | null } }; export type GetMtoCategoriesQueryVariables = Exact<{ id: Scalars['UUID']['input']; @@ -11077,40 +11076,19 @@ export type CreateMtoMilestoneCustomMutationHookResult = ReturnType; export type CreateMtoMilestoneCustomMutationOptions = Apollo.BaseMutationOptions; export const NewMtoSolutionDocument = gql` - mutation NewMTOSolution($modelPlanID: UUID!, $solutionType: MTOSolutionType!, $facilitatedBy: MTOFacilitator!, $name: String!, $pocName: String!, $pocEmail: String!) { + mutation NewMTOSolution($modelPlanID: UUID!, $solutionType: MTOSolutionType!, $name: String!, $pocName: String!, $pocEmail: String!) { createMTOSolutionCustom( modelPlanID: $modelPlanID solutionType: $solutionType - facilitatedBy: $facilitatedBy name: $name pocName: $pocName pocEmail: $pocEmail ) { id name - facilitatedBy status - riskIndicator - key - type pocName pocEmail - createdBy - createdByUserAccount { - id - email - } - createdDts - modifiedBy - modifiedByUserAccount { - id - email - } - modifiedDts - addedFromSolutionLibrary - commonSolution { - name - } } } `; @@ -11131,7 +11109,6 @@ export type NewMtoSolutionMutationFn = Apollo.MutationFunction; export const TypedCreateMtoCategoryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateMTOCategory"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parentID"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOCategory"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"parentID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"parentID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isUncategorized"}}]}}]}}]} as unknown as DocumentNode; export const TypedCreateMtoMilestoneCustomDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateMTOMilestoneCustom"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"mtoCategoryID"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOMilestoneCustom"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"mtoCategoryID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"mtoCategoryID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; -export const TypedNewMtoSolutionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"NewMTOSolution"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MTOSolutionType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"facilitatedBy"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MTOFacilitator"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOSolutionCustom"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}}},{"kind":"Argument","name":{"kind":"Name","value":"solutionType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}}},{"kind":"Argument","name":{"kind":"Name","value":"facilitatedBy"},"value":{"kind":"Variable","name":{"kind":"Name","value":"facilitatedBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocEmail"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"facilitatedBy"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"riskIndicator"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"pocName"}},{"kind":"Field","name":{"kind":"Name","value":"pocEmail"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"createdByUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdDts"}},{"kind":"Field","name":{"kind":"Name","value":"modifiedBy"}},{"kind":"Field","name":{"kind":"Name","value":"modifiedByUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"kind":"Field","name":{"kind":"Name","value":"modifiedDts"}},{"kind":"Field","name":{"kind":"Name","value":"addedFromSolutionLibrary"}},{"kind":"Field","name":{"kind":"Name","value":"commonSolution"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; +export const TypedNewMtoSolutionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"NewMTOSolution"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MTOSolutionType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOSolutionCustom"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}}},{"kind":"Argument","name":{"kind":"Name","value":"solutionType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocEmail"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"pocName"}},{"kind":"Field","name":{"kind":"Name","value":"pocEmail"}}]}}]}}]} as unknown as DocumentNode; export const TypedGetMtoCategoriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMTOCategories"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modelPlan"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mtoMatrix"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"categories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"subCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const TypedGetMtoMilestonesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMTOMilestones"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modelPlan"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"mtoMatrix"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commonMilestones"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"isAdded"}},{"kind":"Field","name":{"kind":"Name","value":"isSuggested"}},{"kind":"Field","name":{"kind":"Name","value":"categoryName"}},{"kind":"Field","name":{"kind":"Name","value":"subCategoryName"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const TypedGetModelToOperationsMatrixDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetModelToOperationsMatrix"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modelPlan"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"mtoMatrix"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"categories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isUncategorized"}},{"kind":"Field","name":{"kind":"Name","value":"subCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isUncategorized"}},{"kind":"Field","name":{"kind":"Name","value":"milestones"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"facilitatedBy"}},{"kind":"Field","name":{"kind":"Name","value":"needBy"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"riskIndicator"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"milestones"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recentEdit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"id"},"name":{"kind":"Name","value":"modifiedBy"}},{"kind":"Field","name":{"kind":"Name","value":"modifiedByUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"commonName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"modifiedDts"}}]}}]}}]}}]}}]} as unknown as DocumentNode; diff --git a/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts b/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts index 57546fd347..1659b32aa8 100644 --- a/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts +++ b/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts @@ -4,7 +4,6 @@ export default gql(/* GraphQL */ ` mutation NewMTOSolution( $modelPlanID: UUID! $solutionType: MTOSolutionType! - $facilitatedBy: MTOFacilitator! $name: String! $pocName: String! $pocEmail: String! @@ -12,43 +11,15 @@ export default gql(/* GraphQL */ ` createMTOSolutionCustom( modelPlanID: $modelPlanID solutionType: $solutionType - facilitatedBy: $facilitatedBy name: $name pocName: $pocName pocEmail: $pocEmail ) { id name - facilitatedBy status - riskIndicator - key - type pocName pocEmail - - #Meta Data - createdBy - createdByUserAccount { - id - email - } - createdDts - modifiedBy - modifiedByUserAccount { - id - email - } - modifiedDts - - # Custom Resolvers - #relatedMilestones { - # id - #} - addedFromSolutionLibrary - commonSolution { - name - } } } `); From dc3f357f44c40ced903c161d975ead0a346eba59 Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Mon, 2 Dec 2024 10:49:45 -0500 Subject: [PATCH 10/19] add create mutation to the solutino form --- .../_components/Modal/SolutionForm/index.tsx | 19 ++++++++++-- src/gql/generated/graphql.ts | 30 +++++++++---------- .../CreateMTOSolutionCustom.ts | 2 +- 3 files changed, 33 insertions(+), 18 deletions(-) diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx index 90a0b87c66..9a38d700d5 100644 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx @@ -6,7 +6,7 @@ import { useForm } from 'react-hook-form'; import { Trans, useTranslation } from 'react-i18next'; -// import { useParams } from 'react-router-dom'; +import { useParams } from 'react-router-dom'; import { Button, Fieldset, @@ -16,6 +16,10 @@ import { Select, TextInput } from '@trussworks/react-uswds'; +import { + MtoSolutionType, + useCreateMtoSolutionCustomMutation +} from 'gql/generated/graphql'; // import { // useCreateMtoMilestoneCustomMutation, @@ -36,7 +40,7 @@ type FormValues = { const SolutionForm = ({ closeModal }: { closeModal: () => void }) => { const { t } = useTranslation('modelToOperationsMisc'); - // const { modelID } = useParams<{ modelID: string }>(); + const { modelID } = useParams<{ modelID: string }>(); const { message, // showMessage, @@ -61,9 +65,20 @@ const SolutionForm = ({ closeModal }: { closeModal: () => void }) => { formState: { isValid } } = methods; + const [create] = useCreateMtoSolutionCustomMutation(); + const onSubmit: SubmitHandler = formData => { // eslint-disable-next-line no-console console.log(formData); + create({ + variables: { + modelPlanID: modelID, + solutionType: formData.solutionType, + name: formData.solutionTitle, + pocName: formData.pocName, + pocEmail: formData.pocEmail + } + }); }; return ( diff --git a/src/gql/generated/graphql.ts b/src/gql/generated/graphql.ts index 086178051c..0fec323950 100644 --- a/src/gql/generated/graphql.ts +++ b/src/gql/generated/graphql.ts @@ -5386,7 +5386,7 @@ export type CreateMtoMilestoneCustomMutationVariables = Exact<{ export type CreateMtoMilestoneCustomMutation = { __typename: 'Mutation', createMTOMilestoneCustom: { __typename: 'MTOMilestone', id: UUID, name: string } }; -export type NewMtoSolutionMutationVariables = Exact<{ +export type CreateMtoSolutionCustomMutationVariables = Exact<{ modelPlanID: Scalars['UUID']['input']; solutionType: MtoSolutionType; name: Scalars['String']['input']; @@ -5395,7 +5395,7 @@ export type NewMtoSolutionMutationVariables = Exact<{ }>; -export type NewMtoSolutionMutation = { __typename: 'Mutation', createMTOSolutionCustom: { __typename: 'MTOSolution', id: UUID, name?: string | null, status: MtoSolutionStatus, pocName?: string | null, pocEmail?: string | null } }; +export type CreateMtoSolutionCustomMutation = { __typename: 'Mutation', createMTOSolutionCustom: { __typename: 'MTOSolution', id: UUID, name?: string | null, status: MtoSolutionStatus, pocName?: string | null, pocEmail?: string | null } }; export type GetMtoCategoriesQueryVariables = Exact<{ id: Scalars['UUID']['input']; @@ -11075,8 +11075,8 @@ export function useCreateMtoMilestoneCustomMutation(baseOptions?: Apollo.Mutatio export type CreateMtoMilestoneCustomMutationHookResult = ReturnType; export type CreateMtoMilestoneCustomMutationResult = Apollo.MutationResult; export type CreateMtoMilestoneCustomMutationOptions = Apollo.BaseMutationOptions; -export const NewMtoSolutionDocument = gql` - mutation NewMTOSolution($modelPlanID: UUID!, $solutionType: MTOSolutionType!, $name: String!, $pocName: String!, $pocEmail: String!) { +export const CreateMtoSolutionCustomDocument = gql` + mutation CreateMTOSolutionCustom($modelPlanID: UUID!, $solutionType: MTOSolutionType!, $name: String!, $pocName: String!, $pocEmail: String!) { createMTOSolutionCustom( modelPlanID: $modelPlanID solutionType: $solutionType @@ -11092,20 +11092,20 @@ export const NewMtoSolutionDocument = gql` } } `; -export type NewMtoSolutionMutationFn = Apollo.MutationFunction; +export type CreateMtoSolutionCustomMutationFn = Apollo.MutationFunction; /** - * __useNewMtoSolutionMutation__ + * __useCreateMtoSolutionCustomMutation__ * - * To run a mutation, you first call `useNewMtoSolutionMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useNewMtoSolutionMutation` returns a tuple that includes: + * To run a mutation, you first call `useCreateMtoSolutionCustomMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateMtoSolutionCustomMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example - * const [newMtoSolutionMutation, { data, loading, error }] = useNewMtoSolutionMutation({ + * const [createMtoSolutionCustomMutation, { data, loading, error }] = useCreateMtoSolutionCustomMutation({ * variables: { * modelPlanID: // value for 'modelPlanID' * solutionType: // value for 'solutionType' @@ -11115,13 +11115,13 @@ export type NewMtoSolutionMutationFn = Apollo.MutationFunction) { +export function useCreateMtoSolutionCustomMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(NewMtoSolutionDocument, options); + return Apollo.useMutation(CreateMtoSolutionCustomDocument, options); } -export type NewMtoSolutionMutationHookResult = ReturnType; -export type NewMtoSolutionMutationResult = Apollo.MutationResult; -export type NewMtoSolutionMutationOptions = Apollo.BaseMutationOptions; +export type CreateMtoSolutionCustomMutationHookResult = ReturnType; +export type CreateMtoSolutionCustomMutationResult = Apollo.MutationResult; +export type CreateMtoSolutionCustomMutationOptions = Apollo.BaseMutationOptions; export const GetMtoCategoriesDocument = gql` query GetMTOCategories($id: UUID!) { modelPlan(id: $id) { @@ -14311,7 +14311,7 @@ export const TypedModelPlanSubscriptionDocument = {"kind":"Document","definition export const TypedUnlockModelPlanSectionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UnlockModelPlanSection"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"section"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"LockableSection"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"unlockLockableSection"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}}},{"kind":"Argument","name":{"kind":"Name","value":"section"},"value":{"kind":"Variable","name":{"kind":"Name","value":"section"}}}]}]}}]} as unknown as DocumentNode; export const TypedCreateMtoCategoryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateMTOCategory"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parentID"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOCategory"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"parentID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"parentID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isUncategorized"}}]}}]}}]} as unknown as DocumentNode; export const TypedCreateMtoMilestoneCustomDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateMTOMilestoneCustom"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"mtoCategoryID"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOMilestoneCustom"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"mtoCategoryID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"mtoCategoryID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; -export const TypedNewMtoSolutionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"NewMTOSolution"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MTOSolutionType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOSolutionCustom"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}}},{"kind":"Argument","name":{"kind":"Name","value":"solutionType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocEmail"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"pocName"}},{"kind":"Field","name":{"kind":"Name","value":"pocEmail"}}]}}]}}]} as unknown as DocumentNode; +export const TypedCreateMtoSolutionCustomDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateMTOSolutionCustom"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MTOSolutionType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMTOSolutionCustom"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"modelPlanID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"modelPlanID"}}},{"kind":"Argument","name":{"kind":"Name","value":"solutionType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"solutionType"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocName"}}},{"kind":"Argument","name":{"kind":"Name","value":"pocEmail"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pocEmail"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"pocName"}},{"kind":"Field","name":{"kind":"Name","value":"pocEmail"}}]}}]}}]} as unknown as DocumentNode; export const TypedGetMtoCategoriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMTOCategories"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modelPlan"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mtoMatrix"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"categories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"subCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const TypedGetMtoMilestonesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMTOMilestones"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modelPlan"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"mtoMatrix"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commonMilestones"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"isAdded"}},{"kind":"Field","name":{"kind":"Name","value":"isSuggested"}},{"kind":"Field","name":{"kind":"Name","value":"categoryName"}},{"kind":"Field","name":{"kind":"Name","value":"subCategoryName"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const TypedGetModelToOperationsMatrixDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetModelToOperationsMatrix"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modelPlan"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"mtoMatrix"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"categories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isUncategorized"}},{"kind":"Field","name":{"kind":"Name","value":"subCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isUncategorized"}},{"kind":"Field","name":{"kind":"Name","value":"milestones"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"facilitatedBy"}},{"kind":"Field","name":{"kind":"Name","value":"needBy"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"riskIndicator"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"milestones"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recentEdit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"id"},"name":{"kind":"Name","value":"modifiedBy"}},{"kind":"Field","name":{"kind":"Name","value":"modifiedByUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"commonName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"modifiedDts"}}]}}]}}]}}]}}]} as unknown as DocumentNode; diff --git a/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts b/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts index 1659b32aa8..906e185065 100644 --- a/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts +++ b/src/gql/operations/ModelToOperations/CreateMTOSolutionCustom.ts @@ -1,7 +1,7 @@ import { gql } from '@apollo/client'; export default gql(/* GraphQL */ ` - mutation NewMTOSolution( + mutation CreateMTOSolutionCustom( $modelPlanID: UUID! $solutionType: MTOSolutionType! $name: String! From a76d8ef4e9ac2e4c4251379c70ceba3bf0f6355c Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Mon, 2 Dec 2024 10:49:50 -0500 Subject: [PATCH 11/19] add create mutation to the solutino form --- pkg/graph/generated/generated.go | 165073 --------------- pkg/graph/model/models_gen.go | 2638 - .../_components/Modal/SolutionForm/index.tsx | 5 +- 3 files changed, 1 insertion(+), 167715 deletions(-) delete mode 100644 pkg/graph/generated/generated.go delete mode 100644 pkg/graph/model/models_gen.go diff --git a/pkg/graph/generated/generated.go b/pkg/graph/generated/generated.go deleted file mode 100644 index a80166ec03..0000000000 --- a/pkg/graph/generated/generated.go +++ /dev/null @@ -1,165073 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package generated - -import ( - "bytes" - "context" - "errors" - "fmt" - "io" - "strconv" - "sync" - "sync/atomic" - "time" - - "github.com/99designs/gqlgen/graphql" - "github.com/99designs/gqlgen/graphql/introspection" - "github.com/cms-enterprise/mint-app/pkg/authentication" - "github.com/cms-enterprise/mint-app/pkg/graph/model" - "github.com/cms-enterprise/mint-app/pkg/models" - "github.com/google/uuid" - gqlparser "github.com/vektah/gqlparser/v2" - "github.com/vektah/gqlparser/v2/ast" -) - -// region ************************** generated!.gotpl ************************** - -// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. -func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { - return &executableSchema{ - resolvers: cfg.Resolvers, - directives: cfg.Directives, - complexity: cfg.Complexity, - } -} - -type Config struct { - Resolvers ResolverRoot - Directives DirectiveRoot - Complexity ComplexityRoot -} - -type ResolverRoot interface { - Activity() ActivityResolver - AddedAsCollaboratorMeta() AddedAsCollaboratorMetaResolver - AnalyzedModelLeadInfo() AnalyzedModelLeadInfoResolver - AuditChange() AuditChangeResolver - CurrentUser() CurrentUserResolver - DailyDigestCompleteActivityMeta() DailyDigestCompleteActivityMetaResolver - DatesChangedActivityMeta() DatesChangedActivityMetaResolver - DiscussionReply() DiscussionReplyResolver - ExistingModelLink() ExistingModelLinkResolver - ExistingModelLinks() ExistingModelLinksResolver - MTOCategory() MTOCategoryResolver - MTOCommonMilestone() MTOCommonMilestoneResolver - MTOCommonSolution() MTOCommonSolutionResolver - MTOInfo() MTOInfoResolver - MTOMilestone() MTOMilestoneResolver - MTOSolution() MTOSolutionResolver - MTOSubcategory() MTOSubcategoryResolver - ModelPlan() ModelPlanResolver - ModelPlanAndPossibleOperationalSolution() ModelPlanAndPossibleOperationalSolutionResolver - ModelPlanSharedActivityMeta() ModelPlanSharedActivityMetaResolver - ModelsToOperationMatrix() ModelsToOperationMatrixResolver - Mutation() MutationResolver - NewDiscussionRepliedActivityMeta() NewDiscussionRepliedActivityMetaResolver - NewModelPlanActivityMeta() NewModelPlanActivityMetaResolver - OperationalNeed() OperationalNeedResolver - OperationalSolution() OperationalSolutionResolver - PlanBasics() PlanBasicsResolver - PlanBeneficiaries() PlanBeneficiariesResolver - PlanCollaborator() PlanCollaboratorResolver - PlanDataExchangeApproach() PlanDataExchangeApproachResolver - PlanDataExchangeApproachMarkedCompleteActivityMeta() PlanDataExchangeApproachMarkedCompleteActivityMetaResolver - PlanDiscussion() PlanDiscussionResolver - PlanDocument() PlanDocumentResolver - PlanGeneralCharacteristics() PlanGeneralCharacteristicsResolver - PlanOpsEvalAndLearning() PlanOpsEvalAndLearningResolver - PlanParticipantsAndProviders() PlanParticipantsAndProvidersResolver - PlanPayments() PlanPaymentsResolver - PossibleOperationalNeed() PossibleOperationalNeedResolver - PossibleOperationalSolution() PossibleOperationalSolutionResolver - Query() QueryResolver - Subscription() SubscriptionResolver - Tag() TagResolver - TaggedContent() TaggedContentResolver - TaggedInDiscussionReplyActivityMeta() TaggedInDiscussionReplyActivityMetaResolver - TaggedInPlanDiscussionActivityMeta() TaggedInPlanDiscussionActivityMetaResolver - TranslatedAudit() TranslatedAuditResolver - TranslatedAuditField() TranslatedAuditFieldResolver - TranslationFieldWithOptionsAndChildren() TranslationFieldWithOptionsAndChildrenResolver - TranslationFieldWithParentAndChildren() TranslationFieldWithParentAndChildrenResolver - UserNotification() UserNotificationResolver - UserNotificationPreferences() UserNotificationPreferencesResolver - UserViewCustomization() UserViewCustomizationResolver -} - -type DirectiveRoot struct { - HasAnyRole func(ctx context.Context, obj interface{}, next graphql.Resolver, roles []model.Role) (res interface{}, err error) - HasRole func(ctx context.Context, obj interface{}, next graphql.Resolver, role model.Role) (res interface{}, err error) -} - -type ComplexityRoot struct { - Activity struct { - ActivityType func(childComplexity int) int - ActorID func(childComplexity int) int - ActorUserAccount func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - EntityID func(childComplexity int) int - ID func(childComplexity int) int - MetaData func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - } - - AddedAsCollaboratorMeta struct { - Collaborator func(childComplexity int) int - CollaboratorID func(childComplexity int) int - ModelPlan func(childComplexity int) int - ModelPlanID func(childComplexity int) int - Type func(childComplexity int) int - Version func(childComplexity int) int - } - - AnalyzedAudit struct { - Changes func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - Date func(childComplexity int) int - ID func(childComplexity int) int - ModelName func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - } - - AnalyzedAuditChange struct { - CrTdls func(childComplexity int) int - Documents func(childComplexity int) int - ModelLeads func(childComplexity int) int - ModelPlan func(childComplexity int) int - PlanDiscussions func(childComplexity int) int - PlanSections func(childComplexity int) int - } - - AnalyzedCrTdls struct { - Activity func(childComplexity int) int - } - - AnalyzedDocuments struct { - Count func(childComplexity int) int - } - - AnalyzedModelLeadInfo struct { - CommonName func(childComplexity int) int - ID func(childComplexity int) int - UserAccount func(childComplexity int) int - } - - AnalyzedModelLeads struct { - Added func(childComplexity int) int - } - - AnalyzedModelPlan struct { - OldName func(childComplexity int) int - StatusChanges func(childComplexity int) int - } - - AnalyzedPlanDiscussions struct { - Activity func(childComplexity int) int - } - - AnalyzedPlanSections struct { - DataExchangeApproachMarkedComplete func(childComplexity int) int - ReadyForClearance func(childComplexity int) int - ReadyForReview func(childComplexity int) int - Updated func(childComplexity int) int - } - - AuditChange struct { - Action func(childComplexity int) int - Fields func(childComplexity int) int - ForeignKey func(childComplexity int) int - ID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - PrimaryKey func(childComplexity int) int - TableName func(childComplexity int) int - } - - CurrentUser struct { - Account func(childComplexity int) int - LaunchDarkly func(childComplexity int) int - NotificationPreferences func(childComplexity int) int - Notifications func(childComplexity int) int - } - - DailyDigestCompleteActivityMeta struct { - AnalyzedAudits func(childComplexity int) int - Date func(childComplexity int) int - ModelPlanIDs func(childComplexity int) int - Type func(childComplexity int) int - UserID func(childComplexity int) int - Version func(childComplexity int) int - } - - DateChange struct { - Field func(childComplexity int) int - IsChanged func(childComplexity int) int - IsRange func(childComplexity int) int - NewDate func(childComplexity int) int - NewRangeEnd func(childComplexity int) int - NewRangeStart func(childComplexity int) int - OldDate func(childComplexity int) int - OldRangeEnd func(childComplexity int) int - OldRangeStart func(childComplexity int) int - } - - DatesChangedActivityMeta struct { - DateChanges func(childComplexity int) int - ModelPlan func(childComplexity int) int - ModelPlanID func(childComplexity int) int - Type func(childComplexity int) int - Version func(childComplexity int) int - } - - DiscussionReply struct { - Content func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DiscussionID func(childComplexity int) int - ID func(childComplexity int) int - IsAssessment func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - UserRole func(childComplexity int) int - UserRoleDescription func(childComplexity int) int - } - - DiscussionReplyTranslation struct { - Content func(childComplexity int) int - IsAssessment func(childComplexity int) int - UserRole func(childComplexity int) int - UserRoleDescription func(childComplexity int) int - } - - DiscussionRoleSelection struct { - UserRole func(childComplexity int) int - UserRoleDescription func(childComplexity int) int - } - - EChimpCR struct { - AssociatedModelUids func(childComplexity int) int - CrNumber func(childComplexity int) int - CrStatus func(childComplexity int) int - CrSummary func(childComplexity int) int - EmergencyCrFlag func(childComplexity int) int - FirstName func(childComplexity int) int - ImplementationDate func(childComplexity int) int - Initiator func(childComplexity int) int - LastName func(childComplexity int) int - RelatedCrNumbers func(childComplexity int) int - RelatedCrTdlNumbers func(childComplexity int) int - SensitiveFlag func(childComplexity int) int - Title func(childComplexity int) int - VersionNum func(childComplexity int) int - } - - EChimpTDL struct { - AssociatedModelUids func(childComplexity int) int - FirstName func(childComplexity int) int - Initiator func(childComplexity int) int - IssuedDate func(childComplexity int) int - LastName func(childComplexity int) int - Status func(childComplexity int) int - TdlNumber func(childComplexity int) int - Title func(childComplexity int) int - VersionNum func(childComplexity int) int - } - - EnumTranslation struct { - GeneralName func(childComplexity int) int - GroupedName func(childComplexity int) int - } - - ExistingModel struct { - Authority func(childComplexity int) int - Category func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DateBegan func(childComplexity int) int - DateEnded func(childComplexity int) int - Description func(childComplexity int) int - DisplayModelSummary func(childComplexity int) int - ID func(childComplexity int) int - Keywords func(childComplexity int) int - ModelName func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - NumberOfBeneficiariesImpacted func(childComplexity int) int - NumberOfParticipants func(childComplexity int) int - NumberOfPhysiciansImpacted func(childComplexity int) int - Stage func(childComplexity int) int - States func(childComplexity int) int - URL func(childComplexity int) int - } - - ExistingModelLink struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - CurrentModelPlanID func(childComplexity int) int - ExistingModelID func(childComplexity int) int - FieldName func(childComplexity int) int - ID func(childComplexity int) int - Model func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - } - - ExistingModelLinkTranslation struct { - CurrentModelPlanID func(childComplexity int) int - ExistingModelID func(childComplexity int) int - FieldName func(childComplexity int) int - } - - ExistingModelLinks struct { - FieldName func(childComplexity int) int - Links func(childComplexity int) int - ModelPlanID func(childComplexity int) int - Names func(childComplexity int) int - } - - LaunchDarklySettings struct { - SignedHash func(childComplexity int) int - UserKey func(childComplexity int) int - } - - LockableSectionLockStatus struct { - IsAssessment func(childComplexity int) int - LockedByUserAccount func(childComplexity int) int - ModelPlanID func(childComplexity int) int - Section func(childComplexity int) int - } - - LockableSectionLockStatusChanged struct { - ActionType func(childComplexity int) int - ChangeType func(childComplexity int) int - LockStatus func(childComplexity int) int - } - - MTOCategory struct { - ID func(childComplexity int) int - IsUncategorized func(childComplexity int) int - Name func(childComplexity int) int - Position func(childComplexity int) int - SubCategories func(childComplexity int) int - } - - MTOCategoryTranslation struct { - Name func(childComplexity int) int - } - - MTOCommonMilestone struct { - CategoryName func(childComplexity int) int - CommonSolutions func(childComplexity int) int - FacilitatedByRole func(childComplexity int) int - IsAdded func(childComplexity int) int - IsSuggested func(childComplexity int) int - Key func(childComplexity int) int - Name func(childComplexity int) int - Section func(childComplexity int) int - SubCategoryName func(childComplexity int) int - } - - MTOCommonSolution struct { - FilterView func(childComplexity int) int - IsAdded func(childComplexity int) int - Key func(childComplexity int) int - Name func(childComplexity int) int - Subjects func(childComplexity int) int - Type func(childComplexity int) int - } - - MTOInfo struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - ID func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewByUserAccount func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - } - - MTOInfoTranslation struct { - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - } - - MTOMilestone struct { - AddedFromMilestoneLibrary func(childComplexity int) int - Category func(childComplexity int) int - CommonMilestone func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - FacilitatedBy func(childComplexity int) int - ID func(childComplexity int) int - IsDraft func(childComplexity int) int - Key func(childComplexity int) int - MTOCategoryID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Name func(childComplexity int) int - NeedBy func(childComplexity int) int - RiskIndicator func(childComplexity int) int - Solutions func(childComplexity int) int - Status func(childComplexity int) int - SubCategory func(childComplexity int) int - } - - MTOMilestoneTranslation struct { - Name func(childComplexity int) int - } - - MTOSolution struct { - AddedFromSolutionLibrary func(childComplexity int) int - CommonSolution func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - FacilitatedBy func(childComplexity int) int - ID func(childComplexity int) int - Key func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Name func(childComplexity int) int - NeededBy func(childComplexity int) int - PocEmail func(childComplexity int) int - PocName func(childComplexity int) int - RelatedMilestones func(childComplexity int) int - RiskIndicator func(childComplexity int) int - Status func(childComplexity int) int - Type func(childComplexity int) int - } - - MTOSubcategory struct { - ID func(childComplexity int) int - IsUncategorized func(childComplexity int) int - Milestones func(childComplexity int) int - Name func(childComplexity int) int - Position func(childComplexity int) int - } - - ModelPlan struct { - Abbreviation func(childComplexity int) int - Archived func(childComplexity int) int - Basics func(childComplexity int) int - Beneficiaries func(childComplexity int) int - Collaborators func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - Crs func(childComplexity int) int - DataExchangeApproach func(childComplexity int) int - Discussions func(childComplexity int) int - Documents func(childComplexity int) int - EchimpCRsAndTDLs func(childComplexity int) int - GeneralCharacteristics func(childComplexity int) int - ID func(childComplexity int) int - IsCollaborator func(childComplexity int) int - IsFavorite func(childComplexity int) int - ModelBySolutionStatus func(childComplexity int) int - ModelName func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - MtoMatrix func(childComplexity int) int - NameHistory func(childComplexity int, sort models.SortDirection) int - OpSolutionLastModifiedDts func(childComplexity int) int - OperationalNeeds func(childComplexity int) int - OpsEvalAndLearning func(childComplexity int) int - ParticipantsAndProviders func(childComplexity int) int - Payments func(childComplexity int) int - PrepareForClearance func(childComplexity int) int - PreviousSuggestedPhase func(childComplexity int) int - Status func(childComplexity int) int - SuggestedPhase func(childComplexity int) int - TaskListStatus func(childComplexity int) int - Tdls func(childComplexity int) int - } - - ModelPlanAndPossibleOperationalSolution struct { - Key func(childComplexity int) int - ModelPlan func(childComplexity int) int - ModelPlanID func(childComplexity int) int - PossibleOperationalSolution func(childComplexity int) int - PossibleOperationalSolutionID func(childComplexity int) int - } - - ModelPlanSharedActivityMeta struct { - ModelPlan func(childComplexity int) int - ModelPlanID func(childComplexity int) int - OptionalMessage func(childComplexity int) int - Type func(childComplexity int) int - Version func(childComplexity int) int - } - - ModelPlanTranslation struct { - Abbreviation func(childComplexity int) int - Archived func(childComplexity int) int - ModelName func(childComplexity int) int - NameHistory func(childComplexity int) int - PreviousName func(childComplexity int) int - Status func(childComplexity int) int - } - - ModelsToOperationMatrix struct { - Categories func(childComplexity int) int - CommonMilestones func(childComplexity int) int - CommonSolutions func(childComplexity int) int - Info func(childComplexity int) int - Milestones func(childComplexity int) int - RecentEdit func(childComplexity int) int - Solutions func(childComplexity int) int - Status func(childComplexity int) int - } - - Mutation struct { - AddOrUpdateCustomOperationalNeed func(childComplexity int, modelPlanID uuid.UUID, customNeedType string, needed bool) int - AddPlanFavorite func(childComplexity int, modelPlanID uuid.UUID) int - AgreeToNda func(childComplexity int, agree bool) int - CreateDiscussionReply func(childComplexity int, input model.DiscussionReplyCreateInput) int - CreateMTOCategory func(childComplexity int, modelPlanID uuid.UUID, name string, parentID *uuid.UUID) int - CreateMTOMilestoneCommon func(childComplexity int, modelPlanID uuid.UUID, commonMilestoneKey models.MTOCommonMilestoneKey) int - CreateMTOMilestoneCustom func(childComplexity int, modelPlanID uuid.UUID, name string, mtoCategoryID *uuid.UUID) int - CreateMTOSolutionCommon func(childComplexity int, modelPlanID uuid.UUID, key models.MTOCommonSolutionKey) int - CreateMTOSolutionCustom func(childComplexity int, modelPlanID uuid.UUID, solutionType models.MTOSolutionType, name string, pocName string, pocEmail string) int - CreateModelPlan func(childComplexity int, modelName string) int - CreateOperationalSolution func(childComplexity int, operationalNeedID uuid.UUID, solutionType *models.OperationalSolutionKey, changes map[string]interface{}) int - CreateOperationalSolutionSubtasks func(childComplexity int, solutionID uuid.UUID, inputs []*model.CreateOperationalSolutionSubtaskInput) int - CreatePlanCollaborator func(childComplexity int, input model.PlanCollaboratorCreateInput) int - CreatePlanCr func(childComplexity int, input model.PlanCRCreateInput) int - CreatePlanDiscussion func(childComplexity int, input model.PlanDiscussionCreateInput) int - CreatePlanDocumentSolutionLinks func(childComplexity int, solutionID uuid.UUID, documentIDs []uuid.UUID) int - CreatePlanTdl func(childComplexity int, input model.PlanTDLCreateInput) int - DeleteOperationalSolutionSubtask func(childComplexity int, id uuid.UUID) int - DeletePlanCollaborator func(childComplexity int, id uuid.UUID) int - DeletePlanCr func(childComplexity int, id uuid.UUID) int - DeletePlanDocument func(childComplexity int, id uuid.UUID) int - DeletePlanFavorite func(childComplexity int, modelPlanID uuid.UUID) int - DeletePlanTdl func(childComplexity int, id uuid.UUID) int - LinkNewPlanDocument func(childComplexity int, input model.PlanDocumentLinkInput) int - LockLockableSection func(childComplexity int, modelPlanID uuid.UUID, section models.LockableSection) int - MarkAllNotificationsAsRead func(childComplexity int) int - MarkMTOReadyForReview func(childComplexity int, modelPlanID uuid.UUID, readyForReview bool) int - MarkNotificationAsRead func(childComplexity int, notificationID uuid.UUID) int - RemovePlanDocumentSolutionLinks func(childComplexity int, solutionID uuid.UUID, documentIDs []uuid.UUID) int - RenameMTOCategory func(childComplexity int, id uuid.UUID, name string) int - ReorderMTOCategory func(childComplexity int, id uuid.UUID, newOrder *int, parentID *uuid.UUID) int - ReportAProblem func(childComplexity int, input model.ReportAProblemInput) int - SendFeedbackEmail func(childComplexity int, input model.SendFeedbackEmailInput) int - ShareModelPlan func(childComplexity int, modelPlanID uuid.UUID, viewFilter *models.ModelViewFilter, usernames []string, optionalMessage *string) int - UnlockAllLockableSections func(childComplexity int, modelPlanID uuid.UUID) int - UnlockLockableSection func(childComplexity int, modelPlanID uuid.UUID, section models.LockableSection) int - UpdateCustomOperationalNeedByID func(childComplexity int, id uuid.UUID, customNeedType *string, needed bool) int - UpdateExistingModelLinks func(childComplexity int, modelPlanID uuid.UUID, fieldName models.ExisitingModelLinkFieldType, existingModelIDs []int, currentModelPlanIDs []uuid.UUID) int - UpdateMTOMilestone func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdateMTOSolution func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdateModelPlan func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdateOperationalSolution func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdateOperationalSolutionSubtasks func(childComplexity int, inputs []*model.UpdateOperationalSolutionSubtaskInput) int - UpdatePlanBasics func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdatePlanBeneficiaries func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdatePlanCollaborator func(childComplexity int, id uuid.UUID, newRoles []models.TeamRole) int - UpdatePlanCr func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdatePlanDataExchangeApproach func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdatePlanGeneralCharacteristics func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdatePlanOpsEvalAndLearning func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdatePlanParticipantsAndProviders func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdatePlanPayments func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdatePlanTdl func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int - UpdateUserNotificationPreferences func(childComplexity int, changes map[string]interface{}) int - UpdateUserViewCustomization func(childComplexity int, changes map[string]interface{}) int - UploadNewPlanDocument func(childComplexity int, input model.PlanDocumentInput) int - } - - NDAInfo struct { - Agreed func(childComplexity int) int - AgreedDts func(childComplexity int) int - } - - NewDiscussionRepliedActivityMeta struct { - Content func(childComplexity int) int - Discussion func(childComplexity int) int - DiscussionID func(childComplexity int) int - ModelPlan func(childComplexity int) int - ModelPlanID func(childComplexity int) int - Reply func(childComplexity int) int - ReplyID func(childComplexity int) int - Type func(childComplexity int) int - Version func(childComplexity int) int - } - - NewModelPlanActivityMeta struct { - ModelPlan func(childComplexity int) int - ModelPlanID func(childComplexity int) int - Type func(childComplexity int) int - Version func(childComplexity int) int - } - - OperationalNeed struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - ID func(childComplexity int) int - Key func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Name func(childComplexity int) int - NameOther func(childComplexity int) int - Needed func(childComplexity int) int - Section func(childComplexity int) int - Solutions func(childComplexity int, includeNotNeeded bool) int - } - - OperationalNeedTranslation struct { - Key func(childComplexity int) int - Name func(childComplexity int) int - NameOther func(childComplexity int) int - Needed func(childComplexity int) int - Section func(childComplexity int) int - } - - OperationalSolution struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - Documents func(childComplexity int) int - ID func(childComplexity int) int - IsCommonSolution func(childComplexity int) int - IsOther func(childComplexity int) int - Key func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - MustFinishDts func(childComplexity int) int - MustStartDts func(childComplexity int) int - Name func(childComplexity int) int - NameOther func(childComplexity int) int - Needed func(childComplexity int) int - OperationalNeedID func(childComplexity int) int - OperationalSolutionSubtasks func(childComplexity int) int - OtherHeader func(childComplexity int) int - PocEmail func(childComplexity int) int - PocName func(childComplexity int) int - SolutionType func(childComplexity int) int - Status func(childComplexity int) int - } - - OperationalSolutionSubtask struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - ID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Name func(childComplexity int) int - SolutionID func(childComplexity int) int - Status func(childComplexity int) int - } - - OperationalSolutionSubtaskTranslation struct { - Name func(childComplexity int) int - Status func(childComplexity int) int - } - - OperationalSolutionTranslation struct { - IsOther func(childComplexity int) int - Key func(childComplexity int) int - MustFinishDts func(childComplexity int) int - MustStartDts func(childComplexity int) int - Name func(childComplexity int) int - NameOther func(childComplexity int) int - Needed func(childComplexity int) int - OtherHeader func(childComplexity int) int - PocEmail func(childComplexity int) int - PocName func(childComplexity int) int - Status func(childComplexity int) int - } - - PhaseSuggestion struct { - Phase func(childComplexity int) int - SuggestedStatuses func(childComplexity int) int - } - - PlanBasics struct { - AdditionalModelCategories func(childComplexity int) int - AmsModelID func(childComplexity int) int - Announced func(childComplexity int) int - ApplicationsEnd func(childComplexity int) int - ApplicationsStart func(childComplexity int) int - ClearanceEnds func(childComplexity int) int - ClearanceStarts func(childComplexity int) int - CmmiGroups func(childComplexity int) int - CmsCenters func(childComplexity int) int - CompleteICIP func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DemoCode func(childComplexity int) int - Goal func(childComplexity int) int - HighLevelNote func(childComplexity int) int - ID func(childComplexity int) int - ModelCategory func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModelType func(childComplexity int) int - ModelTypeOther func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Note func(childComplexity int) int - PerformancePeriodEnds func(childComplexity int) int - PerformancePeriodStarts func(childComplexity int) int - PhasedIn func(childComplexity int) int - PhasedInNote func(childComplexity int) int - Problem func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceByUserAccount func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewByUserAccount func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - Status func(childComplexity int) int - TestInterventions func(childComplexity int) int - WrapUpEnds func(childComplexity int) int - } - - PlanBasicsTranslation struct { - AdditionalModelCategories func(childComplexity int) int - AmsModelID func(childComplexity int) int - Announced func(childComplexity int) int - ApplicationsEnd func(childComplexity int) int - ApplicationsStart func(childComplexity int) int - ClearanceEnds func(childComplexity int) int - ClearanceStarts func(childComplexity int) int - CmmiGroups func(childComplexity int) int - CmsCenters func(childComplexity int) int - CompleteIcip func(childComplexity int) int - DemoCode func(childComplexity int) int - Goal func(childComplexity int) int - HighLevelNote func(childComplexity int) int - ModelCategory func(childComplexity int) int - ModelType func(childComplexity int) int - ModelTypeOther func(childComplexity int) int - Note func(childComplexity int) int - PerformancePeriodEnds func(childComplexity int) int - PerformancePeriodStarts func(childComplexity int) int - PhasedIn func(childComplexity int) int - PhasedInNote func(childComplexity int) int - Problem func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - Status func(childComplexity int) int - TestInterventions func(childComplexity int) int - WrapUpEnds func(childComplexity int) int - } - - PlanBeneficiaries struct { - Beneficiaries func(childComplexity int) int - BeneficiariesNote func(childComplexity int) int - BeneficiariesOther func(childComplexity int) int - BeneficiaryOverlap func(childComplexity int) int - BeneficiaryOverlapNote func(childComplexity int) int - BeneficiaryRemovalFrequency func(childComplexity int) int - BeneficiaryRemovalFrequencyContinually func(childComplexity int) int - BeneficiaryRemovalFrequencyNote func(childComplexity int) int - BeneficiaryRemovalFrequencyOther func(childComplexity int) int - BeneficiarySelectionFrequency func(childComplexity int) int - BeneficiarySelectionFrequencyContinually func(childComplexity int) int - BeneficiarySelectionFrequencyNote func(childComplexity int) int - BeneficiarySelectionFrequencyOther func(childComplexity int) int - BeneficiarySelectionMethod func(childComplexity int) int - BeneficiarySelectionNote func(childComplexity int) int - BeneficiarySelectionOther func(childComplexity int) int - ConfidenceNote func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DiseaseSpecificGroup func(childComplexity int) int - EstimateConfidence func(childComplexity int) int - ExcludeCertainCharacteristics func(childComplexity int) int - ExcludeCertainCharacteristicsCriteria func(childComplexity int) int - ExcludeCertainCharacteristicsNote func(childComplexity int) int - ID func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - NumberPeopleImpacted func(childComplexity int) int - PrecedenceRules func(childComplexity int) int - PrecedenceRulesNo func(childComplexity int) int - PrecedenceRulesNote func(childComplexity int) int - PrecedenceRulesYes func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceByUserAccount func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewByUserAccount func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - Status func(childComplexity int) int - TreatDualElligibleDifferent func(childComplexity int) int - TreatDualElligibleDifferentHow func(childComplexity int) int - TreatDualElligibleDifferentNote func(childComplexity int) int - } - - PlanBeneficiariesTranslation struct { - Beneficiaries func(childComplexity int) int - BeneficiariesNote func(childComplexity int) int - BeneficiariesOther func(childComplexity int) int - BeneficiaryOverlap func(childComplexity int) int - BeneficiaryOverlapNote func(childComplexity int) int - BeneficiaryRemovalFrequency func(childComplexity int) int - BeneficiaryRemovalFrequencyContinually func(childComplexity int) int - BeneficiaryRemovalFrequencyNote func(childComplexity int) int - BeneficiaryRemovalFrequencyOther func(childComplexity int) int - BeneficiarySelectionFrequency func(childComplexity int) int - BeneficiarySelectionFrequencyContinually func(childComplexity int) int - BeneficiarySelectionFrequencyNote func(childComplexity int) int - BeneficiarySelectionFrequencyOther func(childComplexity int) int - BeneficiarySelectionMethod func(childComplexity int) int - BeneficiarySelectionNote func(childComplexity int) int - BeneficiarySelectionOther func(childComplexity int) int - ConfidenceNote func(childComplexity int) int - DiseaseSpecificGroup func(childComplexity int) int - EstimateConfidence func(childComplexity int) int - ExcludeCertainCharacteristics func(childComplexity int) int - ExcludeCertainCharacteristicsCriteria func(childComplexity int) int - ExcludeCertainCharacteristicsNote func(childComplexity int) int - NumberPeopleImpacted func(childComplexity int) int - PrecedenceRules func(childComplexity int) int - PrecedenceRulesNo func(childComplexity int) int - PrecedenceRulesNote func(childComplexity int) int - PrecedenceRulesYes func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - Status func(childComplexity int) int - TreatDualElligibleDifferent func(childComplexity int) int - TreatDualElligibleDifferentHow func(childComplexity int) int - TreatDualElligibleDifferentNote func(childComplexity int) int - } - - PlanCR struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DateImplemented func(childComplexity int) int - DateInitiated func(childComplexity int) int - ID func(childComplexity int) int - IDNumber func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Note func(childComplexity int) int - Title func(childComplexity int) int - } - - PlanCRTranslation struct { - DateImplemented func(childComplexity int) int - DateInitiated func(childComplexity int) int - IDNumber func(childComplexity int) int - Note func(childComplexity int) int - Title func(childComplexity int) int - } - - PlanCollaborator struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - ID func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - TeamRoles func(childComplexity int) int - UserAccount func(childComplexity int) int - UserID func(childComplexity int) int - } - - PlanCollaboratorTranslation struct { - TeamRoles func(childComplexity int) int - UserID func(childComplexity int) int - Username func(childComplexity int) int - } - - PlanDataExchangeApproach struct { - AdditionalDataExchangeConsiderationsDescription func(childComplexity int) int - AnticipatedMultiPayerDataAvailabilityUseCase func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DataToCollectFromParticipants func(childComplexity int) int - DataToCollectFromParticipantsNote func(childComplexity int) int - DataToCollectFromParticipantsOther func(childComplexity int) int - DataToCollectFromParticipantsReportsDetails func(childComplexity int) int - DataToSendToParticipants func(childComplexity int) int - DataToSendToParticipantsNote func(childComplexity int) int - DataWillNotBeCollectedFromParticipants func(childComplexity int) int - DoesNeedToCollectAndAggregateMultiSourceData func(childComplexity int) int - DoesNeedToCollectAndAggregateMultiSourceDataNote func(childComplexity int) int - DoesNeedToMakeMultiPayerDataAvailable func(childComplexity int) int - DoesNeedToMakeMultiPayerDataAvailableNote func(childComplexity int) int - ID func(childComplexity int) int - IsDataExchangeApproachComplete func(childComplexity int) int - MarkedCompleteBy func(childComplexity int) int - MarkedCompleteByUserAccount func(childComplexity int) int - MarkedCompleteDts func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - MultiSourceDataToCollect func(childComplexity int) int - MultiSourceDataToCollectOther func(childComplexity int) int - NewDataExchangeMethodsDescription func(childComplexity int) int - NewDataExchangeMethodsNote func(childComplexity int) int - Status func(childComplexity int) int - WillImplementNewDataExchangeMethods func(childComplexity int) int - } - - PlanDataExchangeApproachMarkedCompleteActivityMeta struct { - DataExchangeApproach func(childComplexity int) int - DataExchangeApproachID func(childComplexity int) int - MarkedCompleteBy func(childComplexity int) int - MarkedCompleteByUserAccount func(childComplexity int) int - ModelPlan func(childComplexity int) int - Type func(childComplexity int) int - Version func(childComplexity int) int - } - - PlanDataExchangeApproachTranslation struct { - AdditionalDataExchangeConsiderationsDescription func(childComplexity int) int - AnticipatedMultiPayerDataAvailabilityUseCase func(childComplexity int) int - DataToCollectFromParticipants func(childComplexity int) int - DataToCollectFromParticipantsNote func(childComplexity int) int - DataToCollectFromParticipantsOther func(childComplexity int) int - DataToCollectFromParticipantsReportsDetails func(childComplexity int) int - DataToSendToParticipants func(childComplexity int) int - DataToSendToParticipantsNote func(childComplexity int) int - DataWillNotBeCollectedFromParticipants func(childComplexity int) int - DoesNeedToCollectAndAggregateMultiSourceData func(childComplexity int) int - DoesNeedToCollectAndAggregateMultiSourceDataNote func(childComplexity int) int - DoesNeedToMakeMultiPayerDataAvailable func(childComplexity int) int - DoesNeedToMakeMultiPayerDataAvailableNote func(childComplexity int) int - IsDataExchangeApproachComplete func(childComplexity int) int - MarkedCompleteBy func(childComplexity int) int - MarkedCompleteDts func(childComplexity int) int - MultiSourceDataToCollect func(childComplexity int) int - MultiSourceDataToCollectOther func(childComplexity int) int - NewDataExchangeMethodsDescription func(childComplexity int) int - NewDataExchangeMethodsNote func(childComplexity int) int - Status func(childComplexity int) int - WillImplementNewDataExchangeMethods func(childComplexity int) int - } - - PlanDiscussion struct { - Content func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - ID func(childComplexity int) int - IsAssessment func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Replies func(childComplexity int) int - UserRole func(childComplexity int) int - UserRoleDescription func(childComplexity int) int - } - - PlanDiscussionTranslation struct { - Content func(childComplexity int) int - IsAssessment func(childComplexity int) int - UserRole func(childComplexity int) int - UserRoleDescription func(childComplexity int) int - } - - PlanDocument struct { - Bucket func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DeletedAt func(childComplexity int) int - DocumentType func(childComplexity int) int - DownloadURL func(childComplexity int) int - FileKey func(childComplexity int) int - FileName func(childComplexity int) int - FileSize func(childComplexity int) int - FileType func(childComplexity int) int - ID func(childComplexity int) int - IsLink func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - NumLinkedSolutions func(childComplexity int) int - OptionalNotes func(childComplexity int) int - OtherType func(childComplexity int) int - Restricted func(childComplexity int) int - URL func(childComplexity int) int - VirusClean func(childComplexity int) int - VirusScanned func(childComplexity int) int - } - - PlanDocumentSolutionLink struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DocumentID func(childComplexity int) int - ID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - SolutionID func(childComplexity int) int - } - - PlanDocumentSolutionLinkTranslation struct { - DocumentID func(childComplexity int) int - SolutionID func(childComplexity int) int - } - - PlanDocumentTranslation struct { - DocumentType func(childComplexity int) int - FileName func(childComplexity int) int - FileType func(childComplexity int) int - IsLink func(childComplexity int) int - OptionalNotes func(childComplexity int) int - OtherType func(childComplexity int) int - Restricted func(childComplexity int) int - URL func(childComplexity int) int - } - - PlanFavorite struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - ID func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - UserAccount func(childComplexity int) int - UserID func(childComplexity int) int - } - - PlanGeneralCharacteristics struct { - AdditionalServicesInvolved func(childComplexity int) int - AdditionalServicesInvolvedDescription func(childComplexity int) int - AdditionalServicesInvolvedNote func(childComplexity int) int - AgencyOrStateHelp func(childComplexity int) int - AgencyOrStateHelpNote func(childComplexity int) int - AgencyOrStateHelpOther func(childComplexity int) int - AgreementTypes func(childComplexity int) int - AgreementTypesOther func(childComplexity int) int - AlternativePaymentModelNote func(childComplexity int) int - AlternativePaymentModelTypes func(childComplexity int) int - AuthorityAllowances func(childComplexity int) int - AuthorityAllowancesNote func(childComplexity int) int - AuthorityAllowancesOther func(childComplexity int) int - CareCoordinationInvolved func(childComplexity int) int - CareCoordinationInvolvedDescription func(childComplexity int) int - CareCoordinationInvolvedNote func(childComplexity int) int - CollectPlanBids func(childComplexity int) int - CollectPlanBidsNote func(childComplexity int) int - CommunityPartnersInvolved func(childComplexity int) int - CommunityPartnersInvolvedDescription func(childComplexity int) int - CommunityPartnersInvolvedNote func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - CurrentModelPlan func(childComplexity int) int - CurrentModelPlanID func(childComplexity int) int - ExistingModel func(childComplexity int) int - ExistingModelID func(childComplexity int) int - ExistingModelPlan func(childComplexity int) int - GeographiesRegionTypes func(childComplexity int) int - GeographiesStatesAndTerritories func(childComplexity int) int - GeographiesTargeted func(childComplexity int) int - GeographiesTargetedAppliedTo func(childComplexity int) int - GeographiesTargetedAppliedToOther func(childComplexity int) int - GeographiesTargetedNote func(childComplexity int) int - GeographiesTargetedTypes func(childComplexity int) int - GeographiesTargetedTypesOther func(childComplexity int) int - HasComponentsOrTracks func(childComplexity int) int - HasComponentsOrTracksDiffer func(childComplexity int) int - HasComponentsOrTracksNote func(childComplexity int) int - ID func(childComplexity int) int - IsNewModel func(childComplexity int) int - KeyCharacteristics func(childComplexity int) int - KeyCharacteristicsNote func(childComplexity int) int - KeyCharacteristicsOther func(childComplexity int) int - ManagePartCDEnrollment func(childComplexity int) int - ManagePartCDEnrollmentNote func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - MultiplePatricipationAgreementsNeeded func(childComplexity int) int - MultiplePatricipationAgreementsNeededNote func(childComplexity int) int - ParticipationInModelPrecondition func(childComplexity int) int - ParticipationInModelPreconditionNote func(childComplexity int) int - ParticipationInModelPreconditionOtherOption func(childComplexity int) int - ParticipationInModelPreconditionOtherSelected func(childComplexity int) int - ParticipationInModelPreconditionOtherSpecify func(childComplexity int) int - ParticipationInModelPreconditionWhich func(childComplexity int) int - ParticipationInModelPreconditionWhyHow func(childComplexity int) int - ParticipationOptions func(childComplexity int) int - ParticipationOptionsNote func(childComplexity int) int - PlanContractUpdated func(childComplexity int) int - PlanContractUpdatedNote func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceByUserAccount func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewByUserAccount func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - ResemblesExistingModel func(childComplexity int) int - ResemblesExistingModelHow func(childComplexity int) int - ResemblesExistingModelNote func(childComplexity int) int - ResemblesExistingModelOtherOption func(childComplexity int) int - ResemblesExistingModelOtherSelected func(childComplexity int) int - ResemblesExistingModelOtherSpecify func(childComplexity int) int - ResemblesExistingModelWhich func(childComplexity int) int - ResemblesExistingModelWhyHow func(childComplexity int) int - RulemakingRequired func(childComplexity int) int - RulemakingRequiredDescription func(childComplexity int) int - RulemakingRequiredNote func(childComplexity int) int - Status func(childComplexity int) int - WaiversRequired func(childComplexity int) int - WaiversRequiredNote func(childComplexity int) int - WaiversRequiredTypes func(childComplexity int) int - } - - PlanGeneralCharacteristicsTranslation struct { - AdditionalServicesInvolved func(childComplexity int) int - AdditionalServicesInvolvedDescription func(childComplexity int) int - AdditionalServicesInvolvedNote func(childComplexity int) int - AgencyOrStateHelp func(childComplexity int) int - AgencyOrStateHelpNote func(childComplexity int) int - AgencyOrStateHelpOther func(childComplexity int) int - AgreementTypes func(childComplexity int) int - AgreementTypesOther func(childComplexity int) int - AlternativePaymentModelNote func(childComplexity int) int - AlternativePaymentModelTypes func(childComplexity int) int - AuthorityAllowances func(childComplexity int) int - AuthorityAllowancesNote func(childComplexity int) int - AuthorityAllowancesOther func(childComplexity int) int - CareCoordinationInvolved func(childComplexity int) int - CareCoordinationInvolvedDescription func(childComplexity int) int - CareCoordinationInvolvedNote func(childComplexity int) int - CollectPlanBids func(childComplexity int) int - CollectPlanBidsNote func(childComplexity int) int - CommunityPartnersInvolved func(childComplexity int) int - CommunityPartnersInvolvedDescription func(childComplexity int) int - CommunityPartnersInvolvedNote func(childComplexity int) int - CurrentModelPlanID func(childComplexity int) int - ExistingModel func(childComplexity int) int - ExistingModelID func(childComplexity int) int - GeographiesRegionTypes func(childComplexity int) int - GeographiesStatesAndTerritories func(childComplexity int) int - GeographiesTargeted func(childComplexity int) int - GeographiesTargetedAppliedTo func(childComplexity int) int - GeographiesTargetedAppliedToOther func(childComplexity int) int - GeographiesTargetedNote func(childComplexity int) int - GeographiesTargetedTypes func(childComplexity int) int - GeographiesTargetedTypesOther func(childComplexity int) int - HasComponentsOrTracks func(childComplexity int) int - HasComponentsOrTracksDiffer func(childComplexity int) int - HasComponentsOrTracksNote func(childComplexity int) int - IsNewModel func(childComplexity int) int - KeyCharacteristics func(childComplexity int) int - KeyCharacteristicsNote func(childComplexity int) int - KeyCharacteristicsOther func(childComplexity int) int - ManagePartCDEnrollment func(childComplexity int) int - ManagePartCDEnrollmentNote func(childComplexity int) int - MultiplePatricipationAgreementsNeeded func(childComplexity int) int - MultiplePatricipationAgreementsNeededNote func(childComplexity int) int - ParticipationInModelPrecondition func(childComplexity int) int - ParticipationInModelPreconditionNote func(childComplexity int) int - ParticipationInModelPreconditionOtherOption func(childComplexity int) int - ParticipationInModelPreconditionOtherSpecify func(childComplexity int) int - ParticipationInModelPreconditionWhich func(childComplexity int) int - ParticipationInModelPreconditionWhyHow func(childComplexity int) int - ParticipationOptions func(childComplexity int) int - ParticipationOptionsNote func(childComplexity int) int - PlanContractUpdated func(childComplexity int) int - PlanContractUpdatedNote func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - ResemblesExistingModel func(childComplexity int) int - ResemblesExistingModelHow func(childComplexity int) int - ResemblesExistingModelNote func(childComplexity int) int - ResemblesExistingModelOtherOption func(childComplexity int) int - ResemblesExistingModelOtherSpecify func(childComplexity int) int - ResemblesExistingModelWhich func(childComplexity int) int - ResemblesExistingModelWhyHow func(childComplexity int) int - RulemakingRequired func(childComplexity int) int - RulemakingRequiredDescription func(childComplexity int) int - RulemakingRequiredNote func(childComplexity int) int - Status func(childComplexity int) int - WaiversRequired func(childComplexity int) int - WaiversRequiredNote func(childComplexity int) int - WaiversRequiredTypes func(childComplexity int) int - } - - PlanOpsEvalAndLearning struct { - AnticipatedChallenges func(childComplexity int) int - AppToSendFilesToKnown func(childComplexity int) int - AppToSendFilesToNote func(childComplexity int) int - AppToSendFilesToWhich func(childComplexity int) int - AppealFeedback func(childComplexity int) int - AppealNote func(childComplexity int) int - AppealOther func(childComplexity int) int - AppealPayments func(childComplexity int) int - AppealPerformance func(childComplexity int) int - BenchmarkForPerformance func(childComplexity int) int - BenchmarkForPerformanceNote func(childComplexity int) int - CaptureParticipantInfo func(childComplexity int) int - CaptureParticipantInfoNote func(childComplexity int) int - CcmInvolvment func(childComplexity int) int - CcmInvolvmentNote func(childComplexity int) int - CcmInvolvmentOther func(childComplexity int) int - ComputePerformanceScores func(childComplexity int) int - ComputePerformanceScoresNote func(childComplexity int) int - ContractorSupport func(childComplexity int) int - ContractorSupportHow func(childComplexity int) int - ContractorSupportNote func(childComplexity int) int - ContractorSupportOther func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DataCollectionFrequency func(childComplexity int) int - DataCollectionFrequencyContinually func(childComplexity int) int - DataCollectionFrequencyNote func(childComplexity int) int - DataCollectionFrequencyOther func(childComplexity int) int - DataCollectionStarts func(childComplexity int) int - DataCollectionStartsOther func(childComplexity int) int - DataFlowDiagramsNeeded func(childComplexity int) int - DataFullTimeOrIncremental func(childComplexity int) int - DataMonitoringFileOther func(childComplexity int) int - DataMonitoringFileTypes func(childComplexity int) int - DataMonitoringNote func(childComplexity int) int - DataNeededForMonitoring func(childComplexity int) int - DataNeededForMonitoringNote func(childComplexity int) int - DataNeededForMonitoringOther func(childComplexity int) int - DataResponseFileFrequency func(childComplexity int) int - DataResponseType func(childComplexity int) int - DataSharingFrequency func(childComplexity int) int - DataSharingFrequencyContinually func(childComplexity int) int - DataSharingFrequencyOther func(childComplexity int) int - DataSharingStarts func(childComplexity int) int - DataSharingStartsNote func(childComplexity int) int - DataSharingStartsOther func(childComplexity int) int - DataToSendParticicipants func(childComplexity int) int - DataToSendParticicipantsNote func(childComplexity int) int - DataToSendParticicipantsOther func(childComplexity int) int - DevelopNewQualityMeasures func(childComplexity int) int - DevelopNewQualityMeasuresNote func(childComplexity int) int - DraftIcdDueDate func(childComplexity int) int - EftSetUp func(childComplexity int) int - EvaluationApproachOther func(childComplexity int) int - EvaluationApproaches func(childComplexity int) int - EvalutaionApproachNote func(childComplexity int) int - FileNamingConventions func(childComplexity int) int - HelpdeskUse func(childComplexity int) int - HelpdeskUseNote func(childComplexity int) int - ID func(childComplexity int) int - IcdNote func(childComplexity int) int - IcdOwner func(childComplexity int) int - IddocSupport func(childComplexity int) int - IddocSupportNote func(childComplexity int) int - ModelLearningSystems func(childComplexity int) int - ModelLearningSystemsNote func(childComplexity int) int - ModelLearningSystemsOther func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - ProduceBenefitEnhancementFiles func(childComplexity int) int - QualityPerformanceImpactsPayment func(childComplexity int) int - QualityPerformanceImpactsPaymentNote func(childComplexity int) int - QualityPerformanceImpactsPaymentOther func(childComplexity int) int - QualityReportingFrequency func(childComplexity int) int - QualityReportingFrequencyContinually func(childComplexity int) int - QualityReportingFrequencyOther func(childComplexity int) int - QualityReportingStarts func(childComplexity int) int - QualityReportingStartsNote func(childComplexity int) int - QualityReportingStartsOther func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceByUserAccount func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewByUserAccount func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - RiskAdjustFeedback func(childComplexity int) int - RiskAdjustNote func(childComplexity int) int - RiskAdjustOther func(childComplexity int) int - RiskAdjustPayments func(childComplexity int) int - RiskAdjustPerformance func(childComplexity int) int - SendFilesBetweenCcw func(childComplexity int) int - SendFilesBetweenCcwNote func(childComplexity int) int - ShareCclfData func(childComplexity int) int - ShareCclfDataNote func(childComplexity int) int - Stakeholders func(childComplexity int) int - StakeholdersNote func(childComplexity int) int - StakeholdersOther func(childComplexity int) int - Status func(childComplexity int) int - StcNeeds func(childComplexity int) int - TechnicalContactsIdentified func(childComplexity int) int - TechnicalContactsIdentifiedDetail func(childComplexity int) int - TechnicalContactsIdentifiedNote func(childComplexity int) int - TestingNote func(childComplexity int) int - TestingTimelines func(childComplexity int) int - UatNeeds func(childComplexity int) int - UnsolicitedAdjustmentsIncluded func(childComplexity int) int - UseCcwForFileDistribiutionToParticipants func(childComplexity int) int - UseCcwForFileDistribiutionToParticipantsNote func(childComplexity int) int - } - - PlanOpsEvalAndLearningTranslation struct { - AnticipatedChallenges func(childComplexity int) int - AppToSendFilesToKnown func(childComplexity int) int - AppToSendFilesToNote func(childComplexity int) int - AppToSendFilesToWhich func(childComplexity int) int - AppealFeedback func(childComplexity int) int - AppealNote func(childComplexity int) int - AppealOther func(childComplexity int) int - AppealPayments func(childComplexity int) int - AppealPerformance func(childComplexity int) int - BenchmarkForPerformance func(childComplexity int) int - BenchmarkForPerformanceNote func(childComplexity int) int - CaptureParticipantInfo func(childComplexity int) int - CaptureParticipantInfoNote func(childComplexity int) int - CcmInvolvment func(childComplexity int) int - CcmInvolvmentNote func(childComplexity int) int - CcmInvolvmentOther func(childComplexity int) int - ComputePerformanceScores func(childComplexity int) int - ComputePerformanceScoresNote func(childComplexity int) int - ContractorSupport func(childComplexity int) int - ContractorSupportHow func(childComplexity int) int - ContractorSupportNote func(childComplexity int) int - ContractorSupportOther func(childComplexity int) int - DataCollectionFrequency func(childComplexity int) int - DataCollectionFrequencyContinually func(childComplexity int) int - DataCollectionFrequencyNote func(childComplexity int) int - DataCollectionFrequencyOther func(childComplexity int) int - DataCollectionStarts func(childComplexity int) int - DataCollectionStartsOther func(childComplexity int) int - DataFlowDiagramsNeeded func(childComplexity int) int - DataFullTimeOrIncremental func(childComplexity int) int - DataMonitoringFileOther func(childComplexity int) int - DataMonitoringFileTypes func(childComplexity int) int - DataMonitoringNote func(childComplexity int) int - DataNeededForMonitoring func(childComplexity int) int - DataNeededForMonitoringNote func(childComplexity int) int - DataNeededForMonitoringOther func(childComplexity int) int - DataResponseFileFrequency func(childComplexity int) int - DataResponseType func(childComplexity int) int - DataSharingFrequency func(childComplexity int) int - DataSharingFrequencyContinually func(childComplexity int) int - DataSharingFrequencyOther func(childComplexity int) int - DataSharingStarts func(childComplexity int) int - DataSharingStartsNote func(childComplexity int) int - DataSharingStartsOther func(childComplexity int) int - DataToSendParticicipants func(childComplexity int) int - DataToSendParticicipantsNote func(childComplexity int) int - DataToSendParticicipantsOther func(childComplexity int) int - DevelopNewQualityMeasures func(childComplexity int) int - DevelopNewQualityMeasuresNote func(childComplexity int) int - DraftIcdDueDate func(childComplexity int) int - EftSetUp func(childComplexity int) int - EvaluationApproachOther func(childComplexity int) int - EvaluationApproaches func(childComplexity int) int - EvalutaionApproachNote func(childComplexity int) int - FileNamingConventions func(childComplexity int) int - HelpdeskUse func(childComplexity int) int - HelpdeskUseNote func(childComplexity int) int - IcdNote func(childComplexity int) int - IcdOwner func(childComplexity int) int - IddocSupport func(childComplexity int) int - IddocSupportNote func(childComplexity int) int - ModelLearningSystems func(childComplexity int) int - ModelLearningSystemsNote func(childComplexity int) int - ModelLearningSystemsOther func(childComplexity int) int - ProduceBenefitEnhancementFiles func(childComplexity int) int - QualityPerformanceImpactsPayment func(childComplexity int) int - QualityPerformanceImpactsPaymentNote func(childComplexity int) int - QualityPerformanceImpactsPaymentOther func(childComplexity int) int - QualityReportingFrequency func(childComplexity int) int - QualityReportingFrequencyContinually func(childComplexity int) int - QualityReportingFrequencyOther func(childComplexity int) int - QualityReportingStarts func(childComplexity int) int - QualityReportingStartsNote func(childComplexity int) int - QualityReportingStartsOther func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - RiskAdjustFeedback func(childComplexity int) int - RiskAdjustNote func(childComplexity int) int - RiskAdjustOther func(childComplexity int) int - RiskAdjustPayments func(childComplexity int) int - RiskAdjustPerformance func(childComplexity int) int - SendFilesBetweenCcw func(childComplexity int) int - SendFilesBetweenCcwNote func(childComplexity int) int - ShareCclfData func(childComplexity int) int - ShareCclfDataNote func(childComplexity int) int - Stakeholders func(childComplexity int) int - StakeholdersNote func(childComplexity int) int - StakeholdersOther func(childComplexity int) int - Status func(childComplexity int) int - StcNeeds func(childComplexity int) int - TechnicalContactsIdentified func(childComplexity int) int - TechnicalContactsIdentifiedDetail func(childComplexity int) int - TechnicalContactsIdentifiedNote func(childComplexity int) int - TestingNote func(childComplexity int) int - TestingTimelines func(childComplexity int) int - UatNeeds func(childComplexity int) int - UnsolicitedAdjustmentsIncluded func(childComplexity int) int - UseCcwForFileDistribiutionToParticipants func(childComplexity int) int - UseCcwForFileDistribiutionToParticipantsNote func(childComplexity int) int - } - - PlanParticipantsAndProviders struct { - CommunicationMethod func(childComplexity int) int - CommunicationMethodOther func(childComplexity int) int - CommunicationNote func(childComplexity int) int - ConfidenceNote func(childComplexity int) int - CoordinateWork func(childComplexity int) int - CoordinateWorkNote func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - EstimateConfidence func(childComplexity int) int - ExpectedNumberOfParticipants func(childComplexity int) int - GainsharePayments func(childComplexity int) int - GainsharePaymentsEligibility func(childComplexity int) int - GainsharePaymentsEligibilityOther func(childComplexity int) int - GainsharePaymentsNote func(childComplexity int) int - GainsharePaymentsTrack func(childComplexity int) int - ID func(childComplexity int) int - IsNewTypeOfProvidersOrSuppliers func(childComplexity int) int - MedicareProviderType func(childComplexity int) int - ModelApplicationLevel func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - ParticipantAddedFrequency func(childComplexity int) int - ParticipantAddedFrequencyContinually func(childComplexity int) int - ParticipantAddedFrequencyNote func(childComplexity int) int - ParticipantAddedFrequencyOther func(childComplexity int) int - ParticipantRemovedFrequency func(childComplexity int) int - ParticipantRemovedFrequencyContinually func(childComplexity int) int - ParticipantRemovedFrequencyNote func(childComplexity int) int - ParticipantRemovedFrequencyOther func(childComplexity int) int - ParticipantRequireFinancialGuarantee func(childComplexity int) int - ParticipantRequireFinancialGuaranteeNote func(childComplexity int) int - ParticipantRequireFinancialGuaranteeOther func(childComplexity int) int - ParticipantRequireFinancialGuaranteeType func(childComplexity int) int - Participants func(childComplexity int) int - ParticipantsCurrentlyInModels func(childComplexity int) int - ParticipantsCurrentlyInModelsNote func(childComplexity int) int - ParticipantsIDSNote func(childComplexity int) int - ParticipantsIds func(childComplexity int) int - ParticipantsIdsOther func(childComplexity int) int - ParticipantsNote func(childComplexity int) int - ParticipantsOther func(childComplexity int) int - ProviderAddMethod func(childComplexity int) int - ProviderAddMethodNote func(childComplexity int) int - ProviderAddMethodOther func(childComplexity int) int - ProviderAdditionFrequency func(childComplexity int) int - ProviderAdditionFrequencyContinually func(childComplexity int) int - ProviderAdditionFrequencyNote func(childComplexity int) int - ProviderAdditionFrequencyOther func(childComplexity int) int - ProviderLeaveMethod func(childComplexity int) int - ProviderLeaveMethodNote func(childComplexity int) int - ProviderLeaveMethodOther func(childComplexity int) int - ProviderOverlap func(childComplexity int) int - ProviderOverlapHierarchy func(childComplexity int) int - ProviderOverlapNote func(childComplexity int) int - ProviderRemovalFrequency func(childComplexity int) int - ProviderRemovalFrequencyContinually func(childComplexity int) int - ProviderRemovalFrequencyNote func(childComplexity int) int - ProviderRemovalFrequencyOther func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceByUserAccount func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewByUserAccount func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - RecruitmentMethod func(childComplexity int) int - RecruitmentNote func(childComplexity int) int - RecruitmentOther func(childComplexity int) int - RiskNote func(childComplexity int) int - RiskOther func(childComplexity int) int - RiskType func(childComplexity int) int - SelectionMethod func(childComplexity int) int - SelectionNote func(childComplexity int) int - SelectionOther func(childComplexity int) int - StatesEngagement func(childComplexity int) int - Status func(childComplexity int) int - WillRiskChange func(childComplexity int) int - WillRiskChangeNote func(childComplexity int) int - } - - PlanParticipantsAndProvidersTranslation struct { - CommunicationMethod func(childComplexity int) int - CommunicationMethodOther func(childComplexity int) int - CommunicationNote func(childComplexity int) int - ConfidenceNote func(childComplexity int) int - CoordinateWork func(childComplexity int) int - CoordinateWorkNote func(childComplexity int) int - EstimateConfidence func(childComplexity int) int - ExpectedNumberOfParticipants func(childComplexity int) int - GainsharePayments func(childComplexity int) int - GainsharePaymentsEligibility func(childComplexity int) int - GainsharePaymentsEligibilityOther func(childComplexity int) int - GainsharePaymentsNote func(childComplexity int) int - GainsharePaymentsTrack func(childComplexity int) int - IsNewTypeOfProvidersOrSuppliers func(childComplexity int) int - MedicareProviderType func(childComplexity int) int - ModelApplicationLevel func(childComplexity int) int - ParticipantAddedFrequency func(childComplexity int) int - ParticipantAddedFrequencyContinually func(childComplexity int) int - ParticipantAddedFrequencyNote func(childComplexity int) int - ParticipantAddedFrequencyOther func(childComplexity int) int - ParticipantRemovedFrequency func(childComplexity int) int - ParticipantRemovedFrequencyContinually func(childComplexity int) int - ParticipantRemovedFrequencyNote func(childComplexity int) int - ParticipantRemovedFrequencyOther func(childComplexity int) int - ParticipantRequireFinancialGuarantee func(childComplexity int) int - ParticipantRequireFinancialGuaranteeNote func(childComplexity int) int - ParticipantRequireFinancialGuaranteeOther func(childComplexity int) int - ParticipantRequireFinancialGuaranteeType func(childComplexity int) int - Participants func(childComplexity int) int - ParticipantsCurrentlyInModels func(childComplexity int) int - ParticipantsCurrentlyInModelsNote func(childComplexity int) int - ParticipantsIDSNote func(childComplexity int) int - ParticipantsIds func(childComplexity int) int - ParticipantsIdsOther func(childComplexity int) int - ParticipantsNote func(childComplexity int) int - ParticipantsOther func(childComplexity int) int - ProviderAddMethod func(childComplexity int) int - ProviderAddMethodNote func(childComplexity int) int - ProviderAddMethodOther func(childComplexity int) int - ProviderAdditionFrequency func(childComplexity int) int - ProviderAdditionFrequencyContinually func(childComplexity int) int - ProviderAdditionFrequencyNote func(childComplexity int) int - ProviderAdditionFrequencyOther func(childComplexity int) int - ProviderLeaveMethod func(childComplexity int) int - ProviderLeaveMethodNote func(childComplexity int) int - ProviderLeaveMethodOther func(childComplexity int) int - ProviderOverlap func(childComplexity int) int - ProviderOverlapHierarchy func(childComplexity int) int - ProviderOverlapNote func(childComplexity int) int - ProviderRemovalFrequency func(childComplexity int) int - ProviderRemovalFrequencyContinually func(childComplexity int) int - ProviderRemovalFrequencyNote func(childComplexity int) int - ProviderRemovalFrequencyOther func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - RecruitmentMethod func(childComplexity int) int - RecruitmentNote func(childComplexity int) int - RecruitmentOther func(childComplexity int) int - RiskNote func(childComplexity int) int - RiskOther func(childComplexity int) int - RiskType func(childComplexity int) int - SelectionMethod func(childComplexity int) int - SelectionNote func(childComplexity int) int - SelectionOther func(childComplexity int) int - StatesEngagement func(childComplexity int) int - Status func(childComplexity int) int - WillRiskChange func(childComplexity int) int - WillRiskChangeNote func(childComplexity int) int - } - - PlanPayments struct { - AffectsMedicareSecondaryPayerClaims func(childComplexity int) int - AffectsMedicareSecondaryPayerClaimsHow func(childComplexity int) int - AffectsMedicareSecondaryPayerClaimsNote func(childComplexity int) int - AnticipateReconcilingPaymentsRetrospectively func(childComplexity int) int - AnticipateReconcilingPaymentsRetrospectivelyNote func(childComplexity int) int - AnticipatedPaymentFrequency func(childComplexity int) int - AnticipatedPaymentFrequencyContinually func(childComplexity int) int - AnticipatedPaymentFrequencyNote func(childComplexity int) int - AnticipatedPaymentFrequencyOther func(childComplexity int) int - BeneficiaryCostSharingLevelAndHandling func(childComplexity int) int - CanParticipantsSelectBetweenPaymentMechanisms func(childComplexity int) int - CanParticipantsSelectBetweenPaymentMechanismsHow func(childComplexity int) int - CanParticipantsSelectBetweenPaymentMechanismsNote func(childComplexity int) int - ChangesMedicarePhysicianFeeSchedule func(childComplexity int) int - ChangesMedicarePhysicianFeeScheduleNote func(childComplexity int) int - ClaimsProcessingPrecedence func(childComplexity int) int - ClaimsProcessingPrecedenceNote func(childComplexity int) int - ClaimsProcessingPrecedenceOther func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - CreatingDependenciesBetweenServices func(childComplexity int) int - CreatingDependenciesBetweenServicesNote func(childComplexity int) int - ExpectedCalculationComplexityLevel func(childComplexity int) int - ExpectedCalculationComplexityLevelNote func(childComplexity int) int - FundingSource func(childComplexity int) int - FundingSourceMedicareAInfo func(childComplexity int) int - FundingSourceMedicareBInfo func(childComplexity int) int - FundingSourceNote func(childComplexity int) int - FundingSourceOther func(childComplexity int) int - FundingSourcePatientProtectionInfo func(childComplexity int) int - FundingSourceR func(childComplexity int) int - FundingSourceRMedicareAInfo func(childComplexity int) int - FundingSourceRMedicareBInfo func(childComplexity int) int - FundingSourceRNote func(childComplexity int) int - FundingSourceROther func(childComplexity int) int - FundingSourceRPatientProtectionInfo func(childComplexity int) int - ID func(childComplexity int) int - IsContractorAwareTestDataRequirements func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - NeedsClaimsDataCollection func(childComplexity int) int - NeedsClaimsDataCollectionNote func(childComplexity int) int - NonClaimsPaymentOther func(childComplexity int) int - NonClaimsPayments func(childComplexity int) int - NonClaimsPaymentsNote func(childComplexity int) int - NumberPaymentsPerPayCycle func(childComplexity int) int - NumberPaymentsPerPayCycleNote func(childComplexity int) int - PayClaims func(childComplexity int) int - PayClaimsNote func(childComplexity int) int - PayClaimsOther func(childComplexity int) int - PayModelDifferentiation func(childComplexity int) int - PayRecipients func(childComplexity int) int - PayRecipientsNote func(childComplexity int) int - PayRecipientsOtherSpecification func(childComplexity int) int - PayType func(childComplexity int) int - PayTypeNote func(childComplexity int) int - PaymentCalculationOwner func(childComplexity int) int - PaymentDemandRecoupmentFrequency func(childComplexity int) int - PaymentDemandRecoupmentFrequencyContinually func(childComplexity int) int - PaymentDemandRecoupmentFrequencyNote func(childComplexity int) int - PaymentDemandRecoupmentFrequencyOther func(childComplexity int) int - PaymentReconciliationFrequency func(childComplexity int) int - PaymentReconciliationFrequencyContinually func(childComplexity int) int - PaymentReconciliationFrequencyNote func(childComplexity int) int - PaymentReconciliationFrequencyOther func(childComplexity int) int - PaymentStartDate func(childComplexity int) int - PaymentStartDateNote func(childComplexity int) int - PlanningToUseInnovationPaymentContractor func(childComplexity int) int - PlanningToUseInnovationPaymentContractorNote func(childComplexity int) int - ProvidingThirdPartyFile func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceByUserAccount func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewByUserAccount func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - SharedSystemsInvolvedAdditionalClaimPayment func(childComplexity int) int - SharedSystemsInvolvedAdditionalClaimPaymentNote func(childComplexity int) int - ShouldAnyProviderExcludedFFSSystemsNote func(childComplexity int) int - ShouldAnyProvidersExcludedFFSSystems func(childComplexity int) int - Status func(childComplexity int) int - WaiveBeneficiaryCostSharingForAnyServices func(childComplexity int) int - WaiveBeneficiaryCostSharingNote func(childComplexity int) int - WaiveBeneficiaryCostSharingServiceSpecification func(childComplexity int) int - WaiverOnlyAppliesPartOfPayment func(childComplexity int) int - WillBePaymentAdjustments func(childComplexity int) int - WillBePaymentAdjustmentsNote func(childComplexity int) int - WillRecoverPayments func(childComplexity int) int - WillRecoverPaymentsNote func(childComplexity int) int - } - - PlanPaymentsTranslation struct { - AffectsMedicareSecondaryPayerClaims func(childComplexity int) int - AffectsMedicareSecondaryPayerClaimsHow func(childComplexity int) int - AffectsMedicareSecondaryPayerClaimsNote func(childComplexity int) int - AnticipateReconcilingPaymentsRetrospectively func(childComplexity int) int - AnticipateReconcilingPaymentsRetrospectivelyNote func(childComplexity int) int - AnticipatedPaymentFrequency func(childComplexity int) int - AnticipatedPaymentFrequencyContinually func(childComplexity int) int - AnticipatedPaymentFrequencyNote func(childComplexity int) int - AnticipatedPaymentFrequencyOther func(childComplexity int) int - BeneficiaryCostSharingLevelAndHandling func(childComplexity int) int - CanParticipantsSelectBetweenPaymentMechanisms func(childComplexity int) int - CanParticipantsSelectBetweenPaymentMechanismsHow func(childComplexity int) int - CanParticipantsSelectBetweenPaymentMechanismsNote func(childComplexity int) int - ChangesMedicarePhysicianFeeSchedule func(childComplexity int) int - ChangesMedicarePhysicianFeeScheduleNote func(childComplexity int) int - ClaimsProcessingPrecedence func(childComplexity int) int - ClaimsProcessingPrecedenceNote func(childComplexity int) int - ClaimsProcessingPrecedenceOther func(childComplexity int) int - CreatingDependenciesBetweenServices func(childComplexity int) int - CreatingDependenciesBetweenServicesNote func(childComplexity int) int - ExpectedCalculationComplexityLevel func(childComplexity int) int - ExpectedCalculationComplexityLevelNote func(childComplexity int) int - FundingSource func(childComplexity int) int - FundingSourceMedicareAInfo func(childComplexity int) int - FundingSourceMedicareBInfo func(childComplexity int) int - FundingSourceNote func(childComplexity int) int - FundingSourceOther func(childComplexity int) int - FundingSourcePatientProtectionInfo func(childComplexity int) int - FundingSourceR func(childComplexity int) int - FundingSourceRMedicareAInfo func(childComplexity int) int - FundingSourceRMedicareBInfo func(childComplexity int) int - FundingSourceRNote func(childComplexity int) int - FundingSourceROther func(childComplexity int) int - FundingSourceRPatientProtectionInfo func(childComplexity int) int - IsContractorAwareTestDataRequirements func(childComplexity int) int - NeedsClaimsDataCollection func(childComplexity int) int - NeedsClaimsDataCollectionNote func(childComplexity int) int - NonClaimsPaymentOther func(childComplexity int) int - NonClaimsPayments func(childComplexity int) int - NonClaimsPaymentsNote func(childComplexity int) int - NumberPaymentsPerPayCycle func(childComplexity int) int - NumberPaymentsPerPayCycleNote func(childComplexity int) int - PayClaims func(childComplexity int) int - PayClaimsNote func(childComplexity int) int - PayClaimsOther func(childComplexity int) int - PayModelDifferentiation func(childComplexity int) int - PayRecipients func(childComplexity int) int - PayRecipientsNote func(childComplexity int) int - PayRecipientsOtherSpecification func(childComplexity int) int - PayType func(childComplexity int) int - PayTypeNote func(childComplexity int) int - PaymentCalculationOwner func(childComplexity int) int - PaymentDemandRecoupmentFrequency func(childComplexity int) int - PaymentDemandRecoupmentFrequencyContinually func(childComplexity int) int - PaymentDemandRecoupmentFrequencyNote func(childComplexity int) int - PaymentDemandRecoupmentFrequencyOther func(childComplexity int) int - PaymentReconciliationFrequency func(childComplexity int) int - PaymentReconciliationFrequencyContinually func(childComplexity int) int - PaymentReconciliationFrequencyNote func(childComplexity int) int - PaymentReconciliationFrequencyOther func(childComplexity int) int - PaymentStartDate func(childComplexity int) int - PaymentStartDateNote func(childComplexity int) int - PlanningToUseInnovationPaymentContractor func(childComplexity int) int - PlanningToUseInnovationPaymentContractorNote func(childComplexity int) int - ProvidingThirdPartyFile func(childComplexity int) int - ReadyForClearanceBy func(childComplexity int) int - ReadyForClearanceDts func(childComplexity int) int - ReadyForReviewBy func(childComplexity int) int - ReadyForReviewDts func(childComplexity int) int - SharedSystemsInvolvedAdditionalClaimPayment func(childComplexity int) int - SharedSystemsInvolvedAdditionalClaimPaymentNote func(childComplexity int) int - ShouldAnyProviderExcludedFFSSystemsNote func(childComplexity int) int - ShouldAnyProvidersExcludedFFSSystems func(childComplexity int) int - Status func(childComplexity int) int - WaiveBeneficiaryCostSharingForAnyServices func(childComplexity int) int - WaiveBeneficiaryCostSharingNote func(childComplexity int) int - WaiveBeneficiaryCostSharingServiceSpecification func(childComplexity int) int - WaiverOnlyAppliesPartOfPayment func(childComplexity int) int - WillBePaymentAdjustments func(childComplexity int) int - WillBePaymentAdjustmentsNote func(childComplexity int) int - WillRecoverPayments func(childComplexity int) int - WillRecoverPaymentsNote func(childComplexity int) int - } - - PlanTDL struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DateInitiated func(childComplexity int) int - ID func(childComplexity int) int - IDNumber func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Note func(childComplexity int) int - Title func(childComplexity int) int - } - - PlanTDLTranslation struct { - DateInitiated func(childComplexity int) int - IDNumber func(childComplexity int) int - Note func(childComplexity int) int - Title func(childComplexity int) int - } - - PossibleOperationalNeed struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - ID func(childComplexity int) int - Key func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Name func(childComplexity int) int - PossibleSolutions func(childComplexity int) int - Section func(childComplexity int) int - } - - PossibleOperationalSolution struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - FilterView func(childComplexity int) int - ID func(childComplexity int) int - Key func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Name func(childComplexity int) int - PointsOfContact func(childComplexity int) int - PrimaryContact func(childComplexity int) int - TreatAsOther func(childComplexity int) int - } - - PossibleOperationalSolutionContact struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - Email func(childComplexity int) int - ID func(childComplexity int) int - IsPrimary func(childComplexity int) int - IsTeam func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - Name func(childComplexity int) int - PossibleOperationalSolutionID func(childComplexity int) int - Role func(childComplexity int) int - } - - PrepareForClearance struct { - LatestClearanceDts func(childComplexity int) int - Status func(childComplexity int) int - } - - Query struct { - AnalyzedAudits func(childComplexity int, dateAnalyzed time.Time) int - AuditChanges func(childComplexity int, tableName models.TableName, primaryKey uuid.UUID) int - CurrentUser func(childComplexity int) int - ExistingModelCollection func(childComplexity int) int - ExistingModelLink func(childComplexity int, id uuid.UUID) int - LockableSectionLocks func(childComplexity int, modelPlanID uuid.UUID) int - ModelPlan func(childComplexity int, id uuid.UUID) int - ModelPlanCollection func(childComplexity int, filter model.ModelPlanFilter) int - ModelPlansByOperationalSolutionKey func(childComplexity int, operationalSolutionKey models.OperationalSolutionKey) int - MostRecentDiscussionRoleSelection func(childComplexity int) int - NdaInfo func(childComplexity int) int - OperationalNeed func(childComplexity int, id uuid.UUID) int - OperationalSolution func(childComplexity int, id uuid.UUID) int - OperationalSolutions func(childComplexity int, operationalNeedID uuid.UUID, includeNotNeeded bool) int - PlanCollaboratorByID func(childComplexity int, id uuid.UUID) int - PlanCr func(childComplexity int, id uuid.UUID) int - PlanDocument func(childComplexity int, id uuid.UUID) int - PlanPayments func(childComplexity int, id uuid.UUID) int - PlanTdl func(childComplexity int, id uuid.UUID) int - PossibleOperationalNeeds func(childComplexity int) int - PossibleOperationalSolutions func(childComplexity int) int - SearchOktaUsers func(childComplexity int, searchTerm string) int - TranslatedAuditCollection func(childComplexity int, modelPlanID uuid.UUID, limit *int, offset *int) int - UserAccount func(childComplexity int, username string) int - UserViewCustomization func(childComplexity int) int - } - - RecentModification struct { - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - } - - Subscription struct { - OnLockLockableSectionContext func(childComplexity int, modelPlanID uuid.UUID) int - OnLockableSectionLocksChanged func(childComplexity int, modelPlanID uuid.UUID) int - } - - Tag struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - Entity func(childComplexity int) int - EntityIntID func(childComplexity int) int - EntityUUID func(childComplexity int) int - ID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - TagType func(childComplexity int) int - TaggedContentID func(childComplexity int) int - TaggedContentTable func(childComplexity int) int - TaggedField func(childComplexity int) int - } - - TaggedContent struct { - RawContent func(childComplexity int) int - Tags func(childComplexity int) int - } - - TaggedInDiscussionReplyActivityMeta struct { - Content func(childComplexity int) int - Discussion func(childComplexity int) int - DiscussionID func(childComplexity int) int - ModelPlan func(childComplexity int) int - ModelPlanID func(childComplexity int) int - Reply func(childComplexity int) int - ReplyID func(childComplexity int) int - Type func(childComplexity int) int - Version func(childComplexity int) int - } - - TaggedInPlanDiscussionActivityMeta struct { - Content func(childComplexity int) int - Discussion func(childComplexity int) int - DiscussionID func(childComplexity int) int - ModelPlan func(childComplexity int) int - ModelPlanID func(childComplexity int) int - Type func(childComplexity int) int - Version func(childComplexity int) int - } - - TranslatedAudit struct { - Action func(childComplexity int) int - ActorID func(childComplexity int) int - ActorName func(childComplexity int) int - ChangeID func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - Date func(childComplexity int) int - ID func(childComplexity int) int - MetaData func(childComplexity int) int - MetaDataType func(childComplexity int) int - ModelPlanID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - PrimaryKey func(childComplexity int) int - Restricted func(childComplexity int) int - TableID func(childComplexity int) int - TableName func(childComplexity int) int - TranslatedFields func(childComplexity int) int - } - - TranslatedAuditField struct { - ChangeType func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DataType func(childComplexity int) int - FieldName func(childComplexity int) int - FieldNameTranslated func(childComplexity int) int - FieldOrder func(childComplexity int) int - FormType func(childComplexity int) int - ID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - New func(childComplexity int) int - NewTranslated func(childComplexity int) int - NotApplicableQuestions func(childComplexity int) int - Old func(childComplexity int) int - OldTranslated func(childComplexity int) int - QuestionType func(childComplexity int) int - ReferenceLabel func(childComplexity int) int - TranslatedAuditID func(childComplexity int) int - } - - TranslatedAuditMetaBaseStruct struct { - TableName func(childComplexity int) int - Version func(childComplexity int) int - } - - TranslatedAuditMetaDiscussionReply struct { - DiscussionContent func(childComplexity int) int - DiscussionID func(childComplexity int) int - NumberOfReplies func(childComplexity int) int - TableName func(childComplexity int) int - Version func(childComplexity int) int - } - - TranslatedAuditMetaDocumentSolutionLink struct { - DocumentID func(childComplexity int) int - DocumentName func(childComplexity int) int - DocumentNote func(childComplexity int) int - DocumentOtherType func(childComplexity int) int - DocumentRestricted func(childComplexity int) int - DocumentType func(childComplexity int) int - DocumentURL func(childComplexity int) int - DocumentVisibility func(childComplexity int) int - NeedIsOther func(childComplexity int) int - NeedName func(childComplexity int) int - SolutionIsOther func(childComplexity int) int - SolutionName func(childComplexity int) int - SolutionOtherHeader func(childComplexity int) int - TableName func(childComplexity int) int - Version func(childComplexity int) int - } - - TranslatedAuditMetaGeneric struct { - Relation func(childComplexity int) int - RelationContent func(childComplexity int) int - TableName func(childComplexity int) int - Version func(childComplexity int) int - } - - TranslatedAuditMetaOperationalNeed struct { - IsOther func(childComplexity int) int - NeedName func(childComplexity int) int - TableName func(childComplexity int) int - Version func(childComplexity int) int - } - - TranslatedAuditMetaOperationalSolution struct { - NeedIsOther func(childComplexity int) int - NeedName func(childComplexity int) int - NumberOfSubtasks func(childComplexity int) int - SolutionIsOther func(childComplexity int) int - SolutionMustFinish func(childComplexity int) int - SolutionMustStart func(childComplexity int) int - SolutionName func(childComplexity int) int - SolutionOtherHeader func(childComplexity int) int - SolutionStatus func(childComplexity int) int - TableName func(childComplexity int) int - Version func(childComplexity int) int - } - - TranslatedAuditMetaOperationalSolutionSubtask struct { - NeedIsOther func(childComplexity int) int - NeedName func(childComplexity int) int - NumberOfSubtasks func(childComplexity int) int - SolutionIsOther func(childComplexity int) int - SolutionName func(childComplexity int) int - SolutionOtherHeader func(childComplexity int) int - SubtaskName func(childComplexity int) int - TableName func(childComplexity int) int - Version func(childComplexity int) int - } - - TranslationField struct { - DBField func(childComplexity int) int - DataType func(childComplexity int) int - ExportLabel func(childComplexity int) int - FormType func(childComplexity int) int - GoField func(childComplexity int) int - GqlField func(childComplexity int) int - IsArray func(childComplexity int) int - IsNote func(childComplexity int) int - IsOtherType func(childComplexity int) int - Label func(childComplexity int) int - MultiSelectLabel func(childComplexity int) int - Order func(childComplexity int) int - OtherParentField func(childComplexity int) int - ParentReferencesLabel func(childComplexity int) int - ReadOnlyLabel func(childComplexity int) int - SubLabel func(childComplexity int) int - TableReference func(childComplexity int) int - } - - TranslationFieldWithOptions struct { - DBField func(childComplexity int) int - DataType func(childComplexity int) int - ExportLabel func(childComplexity int) int - ExportOptions func(childComplexity int) int - FormType func(childComplexity int) int - GoField func(childComplexity int) int - GqlField func(childComplexity int) int - IsArray func(childComplexity int) int - IsNote func(childComplexity int) int - IsOtherType func(childComplexity int) int - Label func(childComplexity int) int - MultiSelectLabel func(childComplexity int) int - Options func(childComplexity int) int - Order func(childComplexity int) int - OtherParentField func(childComplexity int) int - ParentReferencesLabel func(childComplexity int) int - ReadOnlyLabel func(childComplexity int) int - SubLabel func(childComplexity int) int - TableReference func(childComplexity int) int - } - - TranslationFieldWithOptionsAndChildren struct { - ChildRelation func(childComplexity int) int - DBField func(childComplexity int) int - DataType func(childComplexity int) int - ExportLabel func(childComplexity int) int - ExportOptions func(childComplexity int) int - FormType func(childComplexity int) int - GoField func(childComplexity int) int - GqlField func(childComplexity int) int - IsArray func(childComplexity int) int - IsNote func(childComplexity int) int - IsOtherType func(childComplexity int) int - Label func(childComplexity int) int - MultiSelectLabel func(childComplexity int) int - Options func(childComplexity int) int - Order func(childComplexity int) int - OtherParentField func(childComplexity int) int - ParentReferencesLabel func(childComplexity int) int - ReadOnlyLabel func(childComplexity int) int - SubLabel func(childComplexity int) int - TableReference func(childComplexity int) int - } - - TranslationFieldWithOptionsAndParent struct { - DBField func(childComplexity int) int - DataType func(childComplexity int) int - ExportLabel func(childComplexity int) int - ExportOptions func(childComplexity int) int - FormType func(childComplexity int) int - GoField func(childComplexity int) int - GqlField func(childComplexity int) int - IsArray func(childComplexity int) int - IsNote func(childComplexity int) int - IsOtherType func(childComplexity int) int - Label func(childComplexity int) int - MultiSelectLabel func(childComplexity int) int - Options func(childComplexity int) int - Order func(childComplexity int) int - OtherParentField func(childComplexity int) int - ParentReferencesLabel func(childComplexity int) int - ParentRelation func(childComplexity int) int - ReadOnlyLabel func(childComplexity int) int - SubLabel func(childComplexity int) int - TableReference func(childComplexity int) int - } - - TranslationFieldWithParent struct { - DBField func(childComplexity int) int - DataType func(childComplexity int) int - ExportLabel func(childComplexity int) int - FormType func(childComplexity int) int - GoField func(childComplexity int) int - GqlField func(childComplexity int) int - IsArray func(childComplexity int) int - IsNote func(childComplexity int) int - IsOtherType func(childComplexity int) int - Label func(childComplexity int) int - MultiSelectLabel func(childComplexity int) int - Order func(childComplexity int) int - OtherParentField func(childComplexity int) int - ParentReferencesLabel func(childComplexity int) int - ParentRelation func(childComplexity int) int - ReadOnlyLabel func(childComplexity int) int - SubLabel func(childComplexity int) int - TableReference func(childComplexity int) int - } - - TranslationFieldWithParentAndChildren struct { - ChildRelation func(childComplexity int) int - DBField func(childComplexity int) int - DataType func(childComplexity int) int - ExportLabel func(childComplexity int) int - ExportOptions func(childComplexity int) int - FormType func(childComplexity int) int - GoField func(childComplexity int) int - GqlField func(childComplexity int) int - IsArray func(childComplexity int) int - IsNote func(childComplexity int) int - IsOtherType func(childComplexity int) int - Label func(childComplexity int) int - MultiSelectLabel func(childComplexity int) int - Options func(childComplexity int) int - Order func(childComplexity int) int - OtherParentField func(childComplexity int) int - ParentReferencesLabel func(childComplexity int) int - ParentRelation func(childComplexity int) int - ReadOnlyLabel func(childComplexity int) int - SubLabel func(childComplexity int) int - TableReference func(childComplexity int) int - } - - UserAccount struct { - CommonName func(childComplexity int) int - Email func(childComplexity int) int - FamilyName func(childComplexity int) int - GivenName func(childComplexity int) int - HasLoggedIn func(childComplexity int) int - ID func(childComplexity int) int - IsEUAID func(childComplexity int) int - Locale func(childComplexity int) int - Username func(childComplexity int) int - ZoneInfo func(childComplexity int) int - } - - UserInfo struct { - DisplayName func(childComplexity int) int - Email func(childComplexity int) int - FirstName func(childComplexity int) int - LastName func(childComplexity int) int - Username func(childComplexity int) int - } - - UserNotification struct { - Activity func(childComplexity int) int - ActivityID func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - EmailSent func(childComplexity int) int - ID func(childComplexity int) int - InAppSent func(childComplexity int) int - IsRead func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - UserID func(childComplexity int) int - } - - UserNotificationPreferences struct { - AddedAsCollaborator func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - DailyDigestComplete func(childComplexity int) int - DataExchangeApproachMarkedComplete func(childComplexity int) int - DataExchangeApproachMarkedCompleteNotificationType func(childComplexity int) int - DatesChanged func(childComplexity int) int - DatesChangedNotificationType func(childComplexity int) int - ID func(childComplexity int) int - ModelPlanShared func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - NewDiscussionReply func(childComplexity int) int - NewModelPlan func(childComplexity int) int - TaggedInDiscussion func(childComplexity int) int - TaggedInDiscussionReply func(childComplexity int) int - UserID func(childComplexity int) int - } - - UserNotifications struct { - Notifications func(childComplexity int) int - NumUnreadNotifications func(childComplexity int) int - UnreadNotifications func(childComplexity int) int - } - - UserViewCustomization struct { - CreatedBy func(childComplexity int) int - CreatedByUserAccount func(childComplexity int) int - CreatedDts func(childComplexity int) int - ID func(childComplexity int) int - ModifiedBy func(childComplexity int) int - ModifiedByUserAccount func(childComplexity int) int - ModifiedDts func(childComplexity int) int - PossibleOperationalSolutions func(childComplexity int) int - UserAccount func(childComplexity int) int - UserID func(childComplexity int) int - ViewCustomization func(childComplexity int) int - } -} - -type ActivityResolver interface { - ActorUserAccount(ctx context.Context, obj *models.Activity) (*authentication.UserAccount, error) -} -type AddedAsCollaboratorMetaResolver interface { - ModelPlan(ctx context.Context, obj *models.AddedAsCollaboratorMeta) (*models.ModelPlan, error) - - Collaborator(ctx context.Context, obj *models.AddedAsCollaboratorMeta) (*models.PlanCollaborator, error) -} -type AnalyzedModelLeadInfoResolver interface { - UserAccount(ctx context.Context, obj *models.AnalyzedModelLeadInfo) (*authentication.UserAccount, error) -} -type AuditChangeResolver interface { - Fields(ctx context.Context, obj *models.AuditChange) (map[string]interface{}, error) -} -type CurrentUserResolver interface { - LaunchDarkly(ctx context.Context, obj *models.CurrentUser) (*model.LaunchDarklySettings, error) - Account(ctx context.Context, obj *models.CurrentUser) (*authentication.UserAccount, error) - Notifications(ctx context.Context, obj *models.CurrentUser) (*models.UserNotifications, error) - NotificationPreferences(ctx context.Context, obj *models.CurrentUser) (*models.UserNotificationPreferences, error) -} -type DailyDigestCompleteActivityMetaResolver interface { - AnalyzedAudits(ctx context.Context, obj *models.DailyDigestCompleteActivityMeta) ([]*models.AnalyzedAudit, error) -} -type DatesChangedActivityMetaResolver interface { - ModelPlan(ctx context.Context, obj *models.DatesChangedActivityMeta) (*models.ModelPlan, error) -} -type DiscussionReplyResolver interface { - Content(ctx context.Context, obj *models.DiscussionReply) (*models.TaggedContent, error) -} -type ExistingModelLinkResolver interface { - Model(ctx context.Context, obj *models.ExistingModelLink) (models.LinkedExistingModel, error) -} -type ExistingModelLinksResolver interface { - Names(ctx context.Context, obj *models.ExistingModelLinks) ([]string, error) -} -type MTOCategoryResolver interface { - SubCategories(ctx context.Context, obj *models.MTOCategory) ([]*models.MTOSubcategory, error) -} -type MTOCommonMilestoneResolver interface { - FacilitatedByRole(ctx context.Context, obj *models.MTOCommonMilestone) ([]models.MTOFacilitator, error) - - IsSuggested(ctx context.Context, obj *models.MTOCommonMilestone) (bool, error) - CommonSolutions(ctx context.Context, obj *models.MTOCommonMilestone) ([]*models.MTOCommonSolution, error) -} -type MTOCommonSolutionResolver interface { - Subjects(ctx context.Context, obj *models.MTOCommonSolution) ([]models.MTOCommonSolutionSubject, error) -} -type MTOInfoResolver interface { - ReadyForReviewByUserAccount(ctx context.Context, obj *models.MTOInfo) (*authentication.UserAccount, error) -} -type MTOMilestoneResolver interface { - FacilitatedBy(ctx context.Context, obj *models.MTOMilestone) ([]models.MTOFacilitator, error) - - CommonMilestone(ctx context.Context, obj *models.MTOMilestone) (*models.MTOCommonMilestone, error) - Solutions(ctx context.Context, obj *models.MTOMilestone) ([]*models.MTOSolution, error) - Category(ctx context.Context, obj *models.MTOMilestone) (*models.MTOCategory, error) - SubCategory(ctx context.Context, obj *models.MTOMilestone) (*models.MTOSubcategory, error) -} -type MTOSolutionResolver interface { - FacilitatedBy(ctx context.Context, obj *models.MTOSolution) ([]models.MTOFacilitator, error) - - RelatedMilestones(ctx context.Context, obj *models.MTOSolution) ([]*models.MTOMilestone, error) - - CommonSolution(ctx context.Context, obj *models.MTOSolution) (*models.MTOCommonSolution, error) -} -type MTOSubcategoryResolver interface { - Milestones(ctx context.Context, obj *models.MTOSubcategory) ([]*models.MTOMilestone, error) -} -type ModelPlanResolver interface { - Basics(ctx context.Context, obj *models.ModelPlan) (*models.PlanBasics, error) - GeneralCharacteristics(ctx context.Context, obj *models.ModelPlan) (*models.PlanGeneralCharacteristics, error) - ParticipantsAndProviders(ctx context.Context, obj *models.ModelPlan) (*models.PlanParticipantsAndProviders, error) - Beneficiaries(ctx context.Context, obj *models.ModelPlan) (*models.PlanBeneficiaries, error) - OpsEvalAndLearning(ctx context.Context, obj *models.ModelPlan) (*models.PlanOpsEvalAndLearning, error) - Collaborators(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanCollaborator, error) - Documents(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanDocument, error) - Discussions(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanDiscussion, error) - Payments(ctx context.Context, obj *models.ModelPlan) (*models.PlanPayments, error) - DataExchangeApproach(ctx context.Context, obj *models.ModelPlan) (*models.PlanDataExchangeApproach, error) - - TaskListStatus(ctx context.Context, obj *models.ModelPlan) (models.TaskStatus, error) - SuggestedPhase(ctx context.Context, obj *models.ModelPlan) (*model.PhaseSuggestion, error) - IsFavorite(ctx context.Context, obj *models.ModelPlan) (bool, error) - IsCollaborator(ctx context.Context, obj *models.ModelPlan) (bool, error) - Crs(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanCR, error) - Tdls(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanTDL, error) - EchimpCRsAndTDLs(ctx context.Context, obj *models.ModelPlan) ([]models.EChimpCRAndTDLS, error) - PrepareForClearance(ctx context.Context, obj *models.ModelPlan) (*model.PrepareForClearance, error) - NameHistory(ctx context.Context, obj *models.ModelPlan, sort models.SortDirection) ([]string, error) - OperationalNeeds(ctx context.Context, obj *models.ModelPlan) ([]*models.OperationalNeed, error) - OpSolutionLastModifiedDts(ctx context.Context, obj *models.ModelPlan) (*time.Time, error) - - MtoMatrix(ctx context.Context, obj *models.ModelPlan) (*models.ModelsToOperationMatrix, error) - ModelBySolutionStatus(ctx context.Context, obj *models.ModelPlan) (models.ModelBySolutionStatus, error) -} -type ModelPlanAndPossibleOperationalSolutionResolver interface { - PossibleOperationalSolution(ctx context.Context, obj *models.ModelPlanAndPossibleOperationalSolution) (*models.PossibleOperationalSolution, error) - - ModelPlan(ctx context.Context, obj *models.ModelPlanAndPossibleOperationalSolution) (*models.ModelPlan, error) -} -type ModelPlanSharedActivityMetaResolver interface { - ModelPlan(ctx context.Context, obj *models.ModelPlanSharedActivityMeta) (*models.ModelPlan, error) -} -type ModelsToOperationMatrixResolver interface { - Categories(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOCategory, error) - CommonMilestones(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOCommonMilestone, error) - CommonSolutions(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOCommonSolution, error) - Milestones(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOMilestone, error) - Solutions(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOSolution, error) - Status(ctx context.Context, obj *models.ModelsToOperationMatrix) (models.MTOStatus, error) - RecentEdit(ctx context.Context, obj *models.ModelsToOperationMatrix) (*models.RecentModification, error) - Info(ctx context.Context, obj *models.ModelsToOperationMatrix) (*models.MTOInfo, error) -} -type MutationResolver interface { - CreateDiscussionReply(ctx context.Context, input model.DiscussionReplyCreateInput) (*models.DiscussionReply, error) - UpdateExistingModelLinks(ctx context.Context, modelPlanID uuid.UUID, fieldName models.ExisitingModelLinkFieldType, existingModelIDs []int, currentModelPlanIDs []uuid.UUID) (*models.ExistingModelLinks, error) - LockLockableSection(ctx context.Context, modelPlanID uuid.UUID, section models.LockableSection) (bool, error) - UnlockLockableSection(ctx context.Context, modelPlanID uuid.UUID, section models.LockableSection) (bool, error) - UnlockAllLockableSections(ctx context.Context, modelPlanID uuid.UUID) ([]*model.LockableSectionLockStatus, error) - CreateModelPlan(ctx context.Context, modelName string) (*models.ModelPlan, error) - UpdateModelPlan(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.ModelPlan, error) - ShareModelPlan(ctx context.Context, modelPlanID uuid.UUID, viewFilter *models.ModelViewFilter, usernames []string, optionalMessage *string) (bool, error) - MarkMTOReadyForReview(ctx context.Context, modelPlanID uuid.UUID, readyForReview bool) (*models.MTOInfo, error) - CreateMTOCategory(ctx context.Context, modelPlanID uuid.UUID, name string, parentID *uuid.UUID) (*models.MTOCategory, error) - RenameMTOCategory(ctx context.Context, id uuid.UUID, name string) (*models.MTOCategory, error) - ReorderMTOCategory(ctx context.Context, id uuid.UUID, newOrder *int, parentID *uuid.UUID) (*models.MTOCategory, error) - CreateMTOMilestoneCustom(ctx context.Context, modelPlanID uuid.UUID, name string, mtoCategoryID *uuid.UUID) (*models.MTOMilestone, error) - CreateMTOMilestoneCommon(ctx context.Context, modelPlanID uuid.UUID, commonMilestoneKey models.MTOCommonMilestoneKey) (*models.MTOMilestone, error) - UpdateMTOMilestone(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.MTOMilestone, error) - CreateMTOSolutionCustom(ctx context.Context, modelPlanID uuid.UUID, solutionType models.MTOSolutionType, name string, pocName string, pocEmail string) (*models.MTOSolution, error) - CreateMTOSolutionCommon(ctx context.Context, modelPlanID uuid.UUID, key models.MTOCommonSolutionKey) (*models.MTOSolution, error) - UpdateMTOSolution(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.MTOSolution, error) - AgreeToNda(ctx context.Context, agree bool) (*model.NDAInfo, error) - AddOrUpdateCustomOperationalNeed(ctx context.Context, modelPlanID uuid.UUID, customNeedType string, needed bool) (*models.OperationalNeed, error) - UpdateCustomOperationalNeedByID(ctx context.Context, id uuid.UUID, customNeedType *string, needed bool) (*models.OperationalNeed, error) - CreateOperationalSolution(ctx context.Context, operationalNeedID uuid.UUID, solutionType *models.OperationalSolutionKey, changes map[string]interface{}) (*models.OperationalSolution, error) - UpdateOperationalSolution(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.OperationalSolution, error) - CreateOperationalSolutionSubtasks(ctx context.Context, solutionID uuid.UUID, inputs []*model.CreateOperationalSolutionSubtaskInput) ([]*models.OperationalSolutionSubtask, error) - UpdateOperationalSolutionSubtasks(ctx context.Context, inputs []*model.UpdateOperationalSolutionSubtaskInput) ([]*models.OperationalSolutionSubtask, error) - DeleteOperationalSolutionSubtask(ctx context.Context, id uuid.UUID) (int, error) - UpdatePlanBasics(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanBasics, error) - UpdatePlanBeneficiaries(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanBeneficiaries, error) - CreatePlanCollaborator(ctx context.Context, input model.PlanCollaboratorCreateInput) (*models.PlanCollaborator, error) - UpdatePlanCollaborator(ctx context.Context, id uuid.UUID, newRoles []models.TeamRole) (*models.PlanCollaborator, error) - DeletePlanCollaborator(ctx context.Context, id uuid.UUID) (*models.PlanCollaborator, error) - CreatePlanCr(ctx context.Context, input model.PlanCRCreateInput) (*models.PlanCR, error) - UpdatePlanCr(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanCR, error) - DeletePlanCr(ctx context.Context, id uuid.UUID) (*models.PlanCR, error) - UpdatePlanDataExchangeApproach(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanDataExchangeApproach, error) - CreatePlanDiscussion(ctx context.Context, input model.PlanDiscussionCreateInput) (*models.PlanDiscussion, error) - UploadNewPlanDocument(ctx context.Context, input model.PlanDocumentInput) (*models.PlanDocument, error) - LinkNewPlanDocument(ctx context.Context, input model.PlanDocumentLinkInput) (*models.PlanDocument, error) - DeletePlanDocument(ctx context.Context, id uuid.UUID) (int, error) - CreatePlanDocumentSolutionLinks(ctx context.Context, solutionID uuid.UUID, documentIDs []uuid.UUID) ([]*models.PlanDocumentSolutionLink, error) - RemovePlanDocumentSolutionLinks(ctx context.Context, solutionID uuid.UUID, documentIDs []uuid.UUID) (bool, error) - AddPlanFavorite(ctx context.Context, modelPlanID uuid.UUID) (*models.PlanFavorite, error) - DeletePlanFavorite(ctx context.Context, modelPlanID uuid.UUID) (*models.PlanFavorite, error) - UpdatePlanGeneralCharacteristics(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanGeneralCharacteristics, error) - UpdatePlanOpsEvalAndLearning(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanOpsEvalAndLearning, error) - UpdatePlanParticipantsAndProviders(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanParticipantsAndProviders, error) - UpdatePlanPayments(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanPayments, error) - CreatePlanTdl(ctx context.Context, input model.PlanTDLCreateInput) (*models.PlanTDL, error) - UpdatePlanTdl(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanTDL, error) - DeletePlanTdl(ctx context.Context, id uuid.UUID) (*models.PlanTDL, error) - ReportAProblem(ctx context.Context, input model.ReportAProblemInput) (bool, error) - SendFeedbackEmail(ctx context.Context, input model.SendFeedbackEmailInput) (bool, error) - MarkNotificationAsRead(ctx context.Context, notificationID uuid.UUID) (*models.UserNotification, error) - MarkAllNotificationsAsRead(ctx context.Context) ([]*models.UserNotification, error) - UpdateUserNotificationPreferences(ctx context.Context, changes map[string]interface{}) (*models.UserNotificationPreferences, error) - UpdateUserViewCustomization(ctx context.Context, changes map[string]interface{}) (*models.UserViewCustomization, error) -} -type NewDiscussionRepliedActivityMetaResolver interface { - ModelPlan(ctx context.Context, obj *models.NewDiscussionRepliedActivityMeta) (*models.ModelPlan, error) - - Discussion(ctx context.Context, obj *models.NewDiscussionRepliedActivityMeta) (*models.PlanDiscussion, error) - - Reply(ctx context.Context, obj *models.NewDiscussionRepliedActivityMeta) (*models.DiscussionReply, error) -} -type NewModelPlanActivityMetaResolver interface { - ModelPlan(ctx context.Context, obj *models.NewModelPlanActivityMeta) (*models.ModelPlan, error) -} -type OperationalNeedResolver interface { - Solutions(ctx context.Context, obj *models.OperationalNeed, includeNotNeeded bool) ([]*models.OperationalSolution, error) -} -type OperationalSolutionResolver interface { - Documents(ctx context.Context, obj *models.OperationalSolution) ([]*models.PlanDocument, error) - OperationalSolutionSubtasks(ctx context.Context, obj *models.OperationalSolution) ([]*models.OperationalSolutionSubtask, error) -} -type PlanBasicsResolver interface { - AdditionalModelCategories(ctx context.Context, obj *models.PlanBasics) ([]models.ModelCategory, error) - CmsCenters(ctx context.Context, obj *models.PlanBasics) ([]model.CMSCenter, error) - CmmiGroups(ctx context.Context, obj *models.PlanBasics) ([]model.CMMIGroup, error) - ModelType(ctx context.Context, obj *models.PlanBasics) ([]models.ModelType, error) -} -type PlanBeneficiariesResolver interface { - Beneficiaries(ctx context.Context, obj *models.PlanBeneficiaries) ([]model.BeneficiariesType, error) - - BeneficiarySelectionMethod(ctx context.Context, obj *models.PlanBeneficiaries) ([]model.SelectionMethodType, error) - - BeneficiarySelectionFrequency(ctx context.Context, obj *models.PlanBeneficiaries) ([]models.FrequencyType, error) - - BeneficiaryRemovalFrequency(ctx context.Context, obj *models.PlanBeneficiaries) ([]models.FrequencyType, error) - - PrecedenceRules(ctx context.Context, obj *models.PlanBeneficiaries) ([]models.YesNoType, error) -} -type PlanCollaboratorResolver interface { - TeamRoles(ctx context.Context, obj *models.PlanCollaborator) ([]models.TeamRole, error) -} -type PlanDataExchangeApproachResolver interface { - DataToCollectFromParticipants(ctx context.Context, obj *models.PlanDataExchangeApproach) ([]models.DataToCollectFromParticipants, error) - - DataToSendToParticipants(ctx context.Context, obj *models.PlanDataExchangeApproach) ([]models.DataToSendToParticipants, error) - - AnticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, obj *models.PlanDataExchangeApproach) ([]models.AnticipatedMultiPayerDataAvailabilityUseCase, error) - - MultiSourceDataToCollect(ctx context.Context, obj *models.PlanDataExchangeApproach) ([]models.MultiSourceDataToCollect, error) -} -type PlanDataExchangeApproachMarkedCompleteActivityMetaResolver interface { - DataExchangeApproach(ctx context.Context, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (*models.PlanDataExchangeApproach, error) - ModelPlan(ctx context.Context, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (*models.ModelPlan, error) - - MarkedCompleteByUserAccount(ctx context.Context, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (*authentication.UserAccount, error) -} -type PlanDiscussionResolver interface { - Content(ctx context.Context, obj *models.PlanDiscussion) (*models.TaggedContent, error) - - Replies(ctx context.Context, obj *models.PlanDiscussion) ([]*models.DiscussionReply, error) -} -type PlanDocumentResolver interface { - URL(ctx context.Context, obj *models.PlanDocument) (*string, error) - - OtherType(ctx context.Context, obj *models.PlanDocument) (*string, error) - OptionalNotes(ctx context.Context, obj *models.PlanDocument) (*string, error) - DownloadURL(ctx context.Context, obj *models.PlanDocument) (*string, error) - - NumLinkedSolutions(ctx context.Context, obj *models.PlanDocument) (int, error) -} -type PlanGeneralCharacteristicsResolver interface { - ExistingModel(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*string, error) - - CurrentModelPlan(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*models.ModelPlan, error) - - ExistingModelPlan(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*models.ExistingModel, error) - - ResemblesExistingModelWhich(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*models.ExistingModelLinks, error) - - ParticipationInModelPreconditionWhich(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*models.ExistingModelLinks, error) - - AgencyOrStateHelp(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.AgencyOrStateHelpType, error) - - AlternativePaymentModelTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.AlternativePaymentModelType, error) - - KeyCharacteristics(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.KeyCharacteristic, error) - - GeographiesTargetedTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.GeographyType, error) - GeographiesStatesAndTerritories(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]models.StatesAndTerritories, error) - GeographiesRegionTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]models.GeographyRegionType, error) - - GeographiesTargetedAppliedTo(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.GeographyApplication, error) - - AgreementTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.AgreementType, error) - - AuthorityAllowances(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.AuthorityAllowance, error) - - WaiversRequiredTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.WaiverType, error) -} -type PlanOpsEvalAndLearningResolver interface { - Stakeholders(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.StakeholdersType, error) - - ContractorSupport(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.ContractorSupportType, error) - - DataMonitoringFileTypes(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.MonitoringFileType, error) - - EvaluationApproaches(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.EvaluationApproachType, error) - - CcmInvolvment(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.CcmInvolvmentType, error) - - DataNeededForMonitoring(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.DataForMonitoringType, error) - - DataToSendParticicipants(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.DataToSendParticipantsType, error) - - DataSharingFrequency(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]models.FrequencyType, error) - - DataCollectionFrequency(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]models.FrequencyType, error) - - QualityReportingFrequency(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]models.FrequencyType, error) - - ModelLearningSystems(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.ModelLearningSystemType, error) -} -type PlanParticipantsAndProvidersResolver interface { - Participants(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantsType, error) - - SelectionMethod(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantSelectionType, error) - - ParticipantAddedFrequency(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.FrequencyType, error) - - ParticipantRemovedFrequency(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.FrequencyType, error) - - CommunicationMethod(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantCommunicationType, error) - - RiskType(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.ParticipantRiskType, error) - - ParticipantRequireFinancialGuaranteeType(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantRequireFinancialGuaranteeType, error) - - GainsharePaymentsEligibility(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.GainshareArrangementEligibility, error) - - ParticipantsIds(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantsIDType, error) - - ProviderAdditionFrequency(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.FrequencyType, error) - - ProviderAddMethod(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ProviderAddType, error) - - ProviderLeaveMethod(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ProviderLeaveType, error) - - ProviderRemovalFrequency(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.FrequencyType, error) -} -type PlanPaymentsResolver interface { - FundingSource(ctx context.Context, obj *models.PlanPayments) ([]models.FundingSource, error) - - FundingSourceR(ctx context.Context, obj *models.PlanPayments) ([]models.FundingSource, error) - - PayRecipients(ctx context.Context, obj *models.PlanPayments) ([]models.PayRecipient, error) - - PayType(ctx context.Context, obj *models.PlanPayments) ([]models.PayType, error) - - PayClaims(ctx context.Context, obj *models.PlanPayments) ([]models.ClaimsBasedPayType, error) - - NonClaimsPayments(ctx context.Context, obj *models.PlanPayments) ([]model.NonClaimsBasedPayType, error) - NonClaimsPaymentOther(ctx context.Context, obj *models.PlanPayments) (*string, error) - - AnticipatedPaymentFrequency(ctx context.Context, obj *models.PlanPayments) ([]models.FrequencyType, error) - - PaymentReconciliationFrequency(ctx context.Context, obj *models.PlanPayments) ([]models.FrequencyType, error) - - PaymentDemandRecoupmentFrequency(ctx context.Context, obj *models.PlanPayments) ([]models.FrequencyType, error) -} -type PossibleOperationalNeedResolver interface { - PossibleSolutions(ctx context.Context, obj *models.PossibleOperationalNeed) ([]*models.PossibleOperationalSolution, error) -} -type PossibleOperationalSolutionResolver interface { - PointsOfContact(ctx context.Context, obj *models.PossibleOperationalSolution) ([]*models.PossibleOperationalSolutionContact, error) - PrimaryContact(ctx context.Context, obj *models.PossibleOperationalSolution) (*models.PossibleOperationalSolutionContact, error) -} -type QueryResolver interface { - AnalyzedAudits(ctx context.Context, dateAnalyzed time.Time) ([]*models.AnalyzedAudit, error) - AuditChanges(ctx context.Context, tableName models.TableName, primaryKey uuid.UUID) ([]*models.AuditChange, error) - CurrentUser(ctx context.Context) (*models.CurrentUser, error) - MostRecentDiscussionRoleSelection(ctx context.Context) (*models.DiscussionRoleSelection, error) - ExistingModelCollection(ctx context.Context) ([]*models.ExistingModel, error) - ExistingModelLink(ctx context.Context, id uuid.UUID) (*models.ExistingModelLink, error) - LockableSectionLocks(ctx context.Context, modelPlanID uuid.UUID) ([]*model.LockableSectionLockStatus, error) - ModelPlan(ctx context.Context, id uuid.UUID) (*models.ModelPlan, error) - ModelPlanCollection(ctx context.Context, filter model.ModelPlanFilter) ([]*models.ModelPlan, error) - ModelPlansByOperationalSolutionKey(ctx context.Context, operationalSolutionKey models.OperationalSolutionKey) ([]*models.ModelPlanAndPossibleOperationalSolution, error) - NdaInfo(ctx context.Context) (*model.NDAInfo, error) - OperationalNeed(ctx context.Context, id uuid.UUID) (*models.OperationalNeed, error) - OperationalSolutions(ctx context.Context, operationalNeedID uuid.UUID, includeNotNeeded bool) ([]*models.OperationalSolution, error) - OperationalSolution(ctx context.Context, id uuid.UUID) (*models.OperationalSolution, error) - PlanCollaboratorByID(ctx context.Context, id uuid.UUID) (*models.PlanCollaborator, error) - PlanCr(ctx context.Context, id uuid.UUID) (*models.PlanCR, error) - PlanDocument(ctx context.Context, id uuid.UUID) (*models.PlanDocument, error) - PlanPayments(ctx context.Context, id uuid.UUID) (*models.PlanPayments, error) - PlanTdl(ctx context.Context, id uuid.UUID) (*models.PlanTDL, error) - PossibleOperationalNeeds(ctx context.Context) ([]*models.PossibleOperationalNeed, error) - PossibleOperationalSolutions(ctx context.Context) ([]*models.PossibleOperationalSolution, error) - TranslatedAuditCollection(ctx context.Context, modelPlanID uuid.UUID, limit *int, offset *int) ([]*models.TranslatedAudit, error) - UserAccount(ctx context.Context, username string) (*authentication.UserAccount, error) - SearchOktaUsers(ctx context.Context, searchTerm string) ([]*models.UserInfo, error) - UserViewCustomization(ctx context.Context) (*models.UserViewCustomization, error) -} -type SubscriptionResolver interface { - OnLockableSectionLocksChanged(ctx context.Context, modelPlanID uuid.UUID) (<-chan *model.LockableSectionLockStatusChanged, error) - OnLockLockableSectionContext(ctx context.Context, modelPlanID uuid.UUID) (<-chan *model.LockableSectionLockStatusChanged, error) -} -type TagResolver interface { - Entity(ctx context.Context, obj *models.Tag) (models.TaggedEntity, error) -} -type TaggedContentResolver interface { - RawContent(ctx context.Context, obj *models.TaggedContent) (string, error) -} -type TaggedInDiscussionReplyActivityMetaResolver interface { - ModelPlan(ctx context.Context, obj *models.TaggedInDiscussionReplyActivityMeta) (*models.ModelPlan, error) - - Discussion(ctx context.Context, obj *models.TaggedInDiscussionReplyActivityMeta) (*models.PlanDiscussion, error) - - Reply(ctx context.Context, obj *models.TaggedInDiscussionReplyActivityMeta) (*models.DiscussionReply, error) -} -type TaggedInPlanDiscussionActivityMetaResolver interface { - ModelPlan(ctx context.Context, obj *models.TaggedInPlanDiscussionActivityMeta) (*models.ModelPlan, error) - - Discussion(ctx context.Context, obj *models.TaggedInPlanDiscussionActivityMeta) (*models.PlanDiscussion, error) -} -type TranslatedAuditResolver interface { - TranslatedFields(ctx context.Context, obj *models.TranslatedAudit) ([]*models.TranslatedAuditField, error) -} -type TranslatedAuditFieldResolver interface { - NotApplicableQuestions(ctx context.Context, obj *models.TranslatedAuditField) ([]string, error) -} -type TranslationFieldWithOptionsAndChildrenResolver interface { - ChildRelation(ctx context.Context, obj *models.TranslationFieldWithOptionsAndChildren) (map[string]interface{}, error) -} -type TranslationFieldWithParentAndChildrenResolver interface { - ChildRelation(ctx context.Context, obj *models.TranslationFieldWithParentAndChildren) (map[string]interface{}, error) -} -type UserNotificationResolver interface { - Activity(ctx context.Context, obj *models.UserNotification) (*models.Activity, error) -} -type UserNotificationPreferencesResolver interface { - DailyDigestComplete(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) - AddedAsCollaborator(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) - TaggedInDiscussion(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) - TaggedInDiscussionReply(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) - NewDiscussionReply(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) - ModelPlanShared(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) - NewModelPlan(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) - DatesChanged(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) - - DataExchangeApproachMarkedComplete(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) -} -type UserViewCustomizationResolver interface { - ViewCustomization(ctx context.Context, obj *models.UserViewCustomization) ([]models.ViewCustomizationType, error) - PossibleOperationalSolutions(ctx context.Context, obj *models.UserViewCustomization) ([]models.OperationalSolutionKey, error) -} - -type executableSchema struct { - resolvers ResolverRoot - directives DirectiveRoot - complexity ComplexityRoot -} - -func (e *executableSchema) Schema() *ast.Schema { - return parsedSchema -} - -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { - ec := executionContext{nil, e, 0, 0, nil} - _ = ec - switch typeName + "." + field { - - case "Activity.activityType": - if e.complexity.Activity.ActivityType == nil { - break - } - - return e.complexity.Activity.ActivityType(childComplexity), true - - case "Activity.actorID": - if e.complexity.Activity.ActorID == nil { - break - } - - return e.complexity.Activity.ActorID(childComplexity), true - - case "Activity.actorUserAccount": - if e.complexity.Activity.ActorUserAccount == nil { - break - } - - return e.complexity.Activity.ActorUserAccount(childComplexity), true - - case "Activity.createdBy": - if e.complexity.Activity.CreatedBy == nil { - break - } - - return e.complexity.Activity.CreatedBy(childComplexity), true - - case "Activity.createdByUserAccount": - if e.complexity.Activity.CreatedByUserAccount == nil { - break - } - - return e.complexity.Activity.CreatedByUserAccount(childComplexity), true - - case "Activity.createdDts": - if e.complexity.Activity.CreatedDts == nil { - break - } - - return e.complexity.Activity.CreatedDts(childComplexity), true - - case "Activity.entityID": - if e.complexity.Activity.EntityID == nil { - break - } - - return e.complexity.Activity.EntityID(childComplexity), true - - case "Activity.id": - if e.complexity.Activity.ID == nil { - break - } - - return e.complexity.Activity.ID(childComplexity), true - - case "Activity.metaData": - if e.complexity.Activity.MetaData == nil { - break - } - - return e.complexity.Activity.MetaData(childComplexity), true - - case "Activity.modifiedBy": - if e.complexity.Activity.ModifiedBy == nil { - break - } - - return e.complexity.Activity.ModifiedBy(childComplexity), true - - case "Activity.modifiedByUserAccount": - if e.complexity.Activity.ModifiedByUserAccount == nil { - break - } - - return e.complexity.Activity.ModifiedByUserAccount(childComplexity), true - - case "Activity.modifiedDts": - if e.complexity.Activity.ModifiedDts == nil { - break - } - - return e.complexity.Activity.ModifiedDts(childComplexity), true - - case "AddedAsCollaboratorMeta.collaborator": - if e.complexity.AddedAsCollaboratorMeta.Collaborator == nil { - break - } - - return e.complexity.AddedAsCollaboratorMeta.Collaborator(childComplexity), true - - case "AddedAsCollaboratorMeta.collaboratorID": - if e.complexity.AddedAsCollaboratorMeta.CollaboratorID == nil { - break - } - - return e.complexity.AddedAsCollaboratorMeta.CollaboratorID(childComplexity), true - - case "AddedAsCollaboratorMeta.modelPlan": - if e.complexity.AddedAsCollaboratorMeta.ModelPlan == nil { - break - } - - return e.complexity.AddedAsCollaboratorMeta.ModelPlan(childComplexity), true - - case "AddedAsCollaboratorMeta.modelPlanID": - if e.complexity.AddedAsCollaboratorMeta.ModelPlanID == nil { - break - } - - return e.complexity.AddedAsCollaboratorMeta.ModelPlanID(childComplexity), true - - case "AddedAsCollaboratorMeta.type": - if e.complexity.AddedAsCollaboratorMeta.Type == nil { - break - } - - return e.complexity.AddedAsCollaboratorMeta.Type(childComplexity), true - - case "AddedAsCollaboratorMeta.version": - if e.complexity.AddedAsCollaboratorMeta.Version == nil { - break - } - - return e.complexity.AddedAsCollaboratorMeta.Version(childComplexity), true - - case "AnalyzedAudit.changes": - if e.complexity.AnalyzedAudit.Changes == nil { - break - } - - return e.complexity.AnalyzedAudit.Changes(childComplexity), true - - case "AnalyzedAudit.createdBy": - if e.complexity.AnalyzedAudit.CreatedBy == nil { - break - } - - return e.complexity.AnalyzedAudit.CreatedBy(childComplexity), true - - case "AnalyzedAudit.createdByUserAccount": - if e.complexity.AnalyzedAudit.CreatedByUserAccount == nil { - break - } - - return e.complexity.AnalyzedAudit.CreatedByUserAccount(childComplexity), true - - case "AnalyzedAudit.createdDts": - if e.complexity.AnalyzedAudit.CreatedDts == nil { - break - } - - return e.complexity.AnalyzedAudit.CreatedDts(childComplexity), true - - case "AnalyzedAudit.date": - if e.complexity.AnalyzedAudit.Date == nil { - break - } - - return e.complexity.AnalyzedAudit.Date(childComplexity), true - - case "AnalyzedAudit.id": - if e.complexity.AnalyzedAudit.ID == nil { - break - } - - return e.complexity.AnalyzedAudit.ID(childComplexity), true - - case "AnalyzedAudit.modelName": - if e.complexity.AnalyzedAudit.ModelName == nil { - break - } - - return e.complexity.AnalyzedAudit.ModelName(childComplexity), true - - case "AnalyzedAudit.modelPlanID": - if e.complexity.AnalyzedAudit.ModelPlanID == nil { - break - } - - return e.complexity.AnalyzedAudit.ModelPlanID(childComplexity), true - - case "AnalyzedAudit.modifiedBy": - if e.complexity.AnalyzedAudit.ModifiedBy == nil { - break - } - - return e.complexity.AnalyzedAudit.ModifiedBy(childComplexity), true - - case "AnalyzedAudit.modifiedByUserAccount": - if e.complexity.AnalyzedAudit.ModifiedByUserAccount == nil { - break - } - - return e.complexity.AnalyzedAudit.ModifiedByUserAccount(childComplexity), true - - case "AnalyzedAudit.modifiedDts": - if e.complexity.AnalyzedAudit.ModifiedDts == nil { - break - } - - return e.complexity.AnalyzedAudit.ModifiedDts(childComplexity), true - - case "AnalyzedAuditChange.crTdls": - if e.complexity.AnalyzedAuditChange.CrTdls == nil { - break - } - - return e.complexity.AnalyzedAuditChange.CrTdls(childComplexity), true - - case "AnalyzedAuditChange.documents": - if e.complexity.AnalyzedAuditChange.Documents == nil { - break - } - - return e.complexity.AnalyzedAuditChange.Documents(childComplexity), true - - case "AnalyzedAuditChange.modelLeads": - if e.complexity.AnalyzedAuditChange.ModelLeads == nil { - break - } - - return e.complexity.AnalyzedAuditChange.ModelLeads(childComplexity), true - - case "AnalyzedAuditChange.modelPlan": - if e.complexity.AnalyzedAuditChange.ModelPlan == nil { - break - } - - return e.complexity.AnalyzedAuditChange.ModelPlan(childComplexity), true - - case "AnalyzedAuditChange.planDiscussions": - if e.complexity.AnalyzedAuditChange.PlanDiscussions == nil { - break - } - - return e.complexity.AnalyzedAuditChange.PlanDiscussions(childComplexity), true - - case "AnalyzedAuditChange.planSections": - if e.complexity.AnalyzedAuditChange.PlanSections == nil { - break - } - - return e.complexity.AnalyzedAuditChange.PlanSections(childComplexity), true - - case "AnalyzedCrTdls.activity": - if e.complexity.AnalyzedCrTdls.Activity == nil { - break - } - - return e.complexity.AnalyzedCrTdls.Activity(childComplexity), true - - case "AnalyzedDocuments.count": - if e.complexity.AnalyzedDocuments.Count == nil { - break - } - - return e.complexity.AnalyzedDocuments.Count(childComplexity), true - - case "AnalyzedModelLeadInfo.commonName": - if e.complexity.AnalyzedModelLeadInfo.CommonName == nil { - break - } - - return e.complexity.AnalyzedModelLeadInfo.CommonName(childComplexity), true - - case "AnalyzedModelLeadInfo.id": - if e.complexity.AnalyzedModelLeadInfo.ID == nil { - break - } - - return e.complexity.AnalyzedModelLeadInfo.ID(childComplexity), true - - case "AnalyzedModelLeadInfo.userAccount": - if e.complexity.AnalyzedModelLeadInfo.UserAccount == nil { - break - } - - return e.complexity.AnalyzedModelLeadInfo.UserAccount(childComplexity), true - - case "AnalyzedModelLeads.added": - if e.complexity.AnalyzedModelLeads.Added == nil { - break - } - - return e.complexity.AnalyzedModelLeads.Added(childComplexity), true - - case "AnalyzedModelPlan.oldName": - if e.complexity.AnalyzedModelPlan.OldName == nil { - break - } - - return e.complexity.AnalyzedModelPlan.OldName(childComplexity), true - - case "AnalyzedModelPlan.statusChanges": - if e.complexity.AnalyzedModelPlan.StatusChanges == nil { - break - } - - return e.complexity.AnalyzedModelPlan.StatusChanges(childComplexity), true - - case "AnalyzedPlanDiscussions.activity": - if e.complexity.AnalyzedPlanDiscussions.Activity == nil { - break - } - - return e.complexity.AnalyzedPlanDiscussions.Activity(childComplexity), true - - case "AnalyzedPlanSections.dataExchangeApproachMarkedComplete": - if e.complexity.AnalyzedPlanSections.DataExchangeApproachMarkedComplete == nil { - break - } - - return e.complexity.AnalyzedPlanSections.DataExchangeApproachMarkedComplete(childComplexity), true - - case "AnalyzedPlanSections.readyForClearance": - if e.complexity.AnalyzedPlanSections.ReadyForClearance == nil { - break - } - - return e.complexity.AnalyzedPlanSections.ReadyForClearance(childComplexity), true - - case "AnalyzedPlanSections.readyForReview": - if e.complexity.AnalyzedPlanSections.ReadyForReview == nil { - break - } - - return e.complexity.AnalyzedPlanSections.ReadyForReview(childComplexity), true - - case "AnalyzedPlanSections.updated": - if e.complexity.AnalyzedPlanSections.Updated == nil { - break - } - - return e.complexity.AnalyzedPlanSections.Updated(childComplexity), true - - case "AuditChange.action": - if e.complexity.AuditChange.Action == nil { - break - } - - return e.complexity.AuditChange.Action(childComplexity), true - - case "AuditChange.fields": - if e.complexity.AuditChange.Fields == nil { - break - } - - return e.complexity.AuditChange.Fields(childComplexity), true - - case "AuditChange.foreignKey": - if e.complexity.AuditChange.ForeignKey == nil { - break - } - - return e.complexity.AuditChange.ForeignKey(childComplexity), true - - case "AuditChange.id": - if e.complexity.AuditChange.ID == nil { - break - } - - return e.complexity.AuditChange.ID(childComplexity), true - - case "AuditChange.modifiedBy": - if e.complexity.AuditChange.ModifiedBy == nil { - break - } - - return e.complexity.AuditChange.ModifiedBy(childComplexity), true - - case "AuditChange.modifiedByUserAccount": - if e.complexity.AuditChange.ModifiedByUserAccount == nil { - break - } - - return e.complexity.AuditChange.ModifiedByUserAccount(childComplexity), true - - case "AuditChange.modifiedDts": - if e.complexity.AuditChange.ModifiedDts == nil { - break - } - - return e.complexity.AuditChange.ModifiedDts(childComplexity), true - - case "AuditChange.primaryKey": - if e.complexity.AuditChange.PrimaryKey == nil { - break - } - - return e.complexity.AuditChange.PrimaryKey(childComplexity), true - - case "AuditChange.tableName": - if e.complexity.AuditChange.TableName == nil { - break - } - - return e.complexity.AuditChange.TableName(childComplexity), true - - case "CurrentUser.account": - if e.complexity.CurrentUser.Account == nil { - break - } - - return e.complexity.CurrentUser.Account(childComplexity), true - - case "CurrentUser.launchDarkly": - if e.complexity.CurrentUser.LaunchDarkly == nil { - break - } - - return e.complexity.CurrentUser.LaunchDarkly(childComplexity), true - - case "CurrentUser.notificationPreferences": - if e.complexity.CurrentUser.NotificationPreferences == nil { - break - } - - return e.complexity.CurrentUser.NotificationPreferences(childComplexity), true - - case "CurrentUser.notifications": - if e.complexity.CurrentUser.Notifications == nil { - break - } - - return e.complexity.CurrentUser.Notifications(childComplexity), true - - case "DailyDigestCompleteActivityMeta.analyzedAudits": - if e.complexity.DailyDigestCompleteActivityMeta.AnalyzedAudits == nil { - break - } - - return e.complexity.DailyDigestCompleteActivityMeta.AnalyzedAudits(childComplexity), true - - case "DailyDigestCompleteActivityMeta.date": - if e.complexity.DailyDigestCompleteActivityMeta.Date == nil { - break - } - - return e.complexity.DailyDigestCompleteActivityMeta.Date(childComplexity), true - - case "DailyDigestCompleteActivityMeta.modelPlanIDs": - if e.complexity.DailyDigestCompleteActivityMeta.ModelPlanIDs == nil { - break - } - - return e.complexity.DailyDigestCompleteActivityMeta.ModelPlanIDs(childComplexity), true - - case "DailyDigestCompleteActivityMeta.type": - if e.complexity.DailyDigestCompleteActivityMeta.Type == nil { - break - } - - return e.complexity.DailyDigestCompleteActivityMeta.Type(childComplexity), true - - case "DailyDigestCompleteActivityMeta.userID": - if e.complexity.DailyDigestCompleteActivityMeta.UserID == nil { - break - } - - return e.complexity.DailyDigestCompleteActivityMeta.UserID(childComplexity), true - - case "DailyDigestCompleteActivityMeta.version": - if e.complexity.DailyDigestCompleteActivityMeta.Version == nil { - break - } - - return e.complexity.DailyDigestCompleteActivityMeta.Version(childComplexity), true - - case "DateChange.field": - if e.complexity.DateChange.Field == nil { - break - } - - return e.complexity.DateChange.Field(childComplexity), true - - case "DateChange.isChanged": - if e.complexity.DateChange.IsChanged == nil { - break - } - - return e.complexity.DateChange.IsChanged(childComplexity), true - - case "DateChange.isRange": - if e.complexity.DateChange.IsRange == nil { - break - } - - return e.complexity.DateChange.IsRange(childComplexity), true - - case "DateChange.newDate": - if e.complexity.DateChange.NewDate == nil { - break - } - - return e.complexity.DateChange.NewDate(childComplexity), true - - case "DateChange.newRangeEnd": - if e.complexity.DateChange.NewRangeEnd == nil { - break - } - - return e.complexity.DateChange.NewRangeEnd(childComplexity), true - - case "DateChange.newRangeStart": - if e.complexity.DateChange.NewRangeStart == nil { - break - } - - return e.complexity.DateChange.NewRangeStart(childComplexity), true - - case "DateChange.oldDate": - if e.complexity.DateChange.OldDate == nil { - break - } - - return e.complexity.DateChange.OldDate(childComplexity), true - - case "DateChange.oldRangeEnd": - if e.complexity.DateChange.OldRangeEnd == nil { - break - } - - return e.complexity.DateChange.OldRangeEnd(childComplexity), true - - case "DateChange.oldRangeStart": - if e.complexity.DateChange.OldRangeStart == nil { - break - } - - return e.complexity.DateChange.OldRangeStart(childComplexity), true - - case "DatesChangedActivityMeta.dateChanges": - if e.complexity.DatesChangedActivityMeta.DateChanges == nil { - break - } - - return e.complexity.DatesChangedActivityMeta.DateChanges(childComplexity), true - - case "DatesChangedActivityMeta.modelPlan": - if e.complexity.DatesChangedActivityMeta.ModelPlan == nil { - break - } - - return e.complexity.DatesChangedActivityMeta.ModelPlan(childComplexity), true - - case "DatesChangedActivityMeta.modelPlanID": - if e.complexity.DatesChangedActivityMeta.ModelPlanID == nil { - break - } - - return e.complexity.DatesChangedActivityMeta.ModelPlanID(childComplexity), true - - case "DatesChangedActivityMeta.type": - if e.complexity.DatesChangedActivityMeta.Type == nil { - break - } - - return e.complexity.DatesChangedActivityMeta.Type(childComplexity), true - - case "DatesChangedActivityMeta.version": - if e.complexity.DatesChangedActivityMeta.Version == nil { - break - } - - return e.complexity.DatesChangedActivityMeta.Version(childComplexity), true - - case "DiscussionReply.content": - if e.complexity.DiscussionReply.Content == nil { - break - } - - return e.complexity.DiscussionReply.Content(childComplexity), true - - case "DiscussionReply.createdBy": - if e.complexity.DiscussionReply.CreatedBy == nil { - break - } - - return e.complexity.DiscussionReply.CreatedBy(childComplexity), true - - case "DiscussionReply.createdByUserAccount": - if e.complexity.DiscussionReply.CreatedByUserAccount == nil { - break - } - - return e.complexity.DiscussionReply.CreatedByUserAccount(childComplexity), true - - case "DiscussionReply.createdDts": - if e.complexity.DiscussionReply.CreatedDts == nil { - break - } - - return e.complexity.DiscussionReply.CreatedDts(childComplexity), true - - case "DiscussionReply.discussionID": - if e.complexity.DiscussionReply.DiscussionID == nil { - break - } - - return e.complexity.DiscussionReply.DiscussionID(childComplexity), true - - case "DiscussionReply.id": - if e.complexity.DiscussionReply.ID == nil { - break - } - - return e.complexity.DiscussionReply.ID(childComplexity), true - - case "DiscussionReply.isAssessment": - if e.complexity.DiscussionReply.IsAssessment == nil { - break - } - - return e.complexity.DiscussionReply.IsAssessment(childComplexity), true - - case "DiscussionReply.modifiedBy": - if e.complexity.DiscussionReply.ModifiedBy == nil { - break - } - - return e.complexity.DiscussionReply.ModifiedBy(childComplexity), true - - case "DiscussionReply.modifiedByUserAccount": - if e.complexity.DiscussionReply.ModifiedByUserAccount == nil { - break - } - - return e.complexity.DiscussionReply.ModifiedByUserAccount(childComplexity), true - - case "DiscussionReply.modifiedDts": - if e.complexity.DiscussionReply.ModifiedDts == nil { - break - } - - return e.complexity.DiscussionReply.ModifiedDts(childComplexity), true - - case "DiscussionReply.userRole": - if e.complexity.DiscussionReply.UserRole == nil { - break - } - - return e.complexity.DiscussionReply.UserRole(childComplexity), true - - case "DiscussionReply.userRoleDescription": - if e.complexity.DiscussionReply.UserRoleDescription == nil { - break - } - - return e.complexity.DiscussionReply.UserRoleDescription(childComplexity), true - - case "DiscussionReplyTranslation.content": - if e.complexity.DiscussionReplyTranslation.Content == nil { - break - } - - return e.complexity.DiscussionReplyTranslation.Content(childComplexity), true - - case "DiscussionReplyTranslation.isAssessment": - if e.complexity.DiscussionReplyTranslation.IsAssessment == nil { - break - } - - return e.complexity.DiscussionReplyTranslation.IsAssessment(childComplexity), true - - case "DiscussionReplyTranslation.userRole": - if e.complexity.DiscussionReplyTranslation.UserRole == nil { - break - } - - return e.complexity.DiscussionReplyTranslation.UserRole(childComplexity), true - - case "DiscussionReplyTranslation.userRoleDescription": - if e.complexity.DiscussionReplyTranslation.UserRoleDescription == nil { - break - } - - return e.complexity.DiscussionReplyTranslation.UserRoleDescription(childComplexity), true - - case "DiscussionRoleSelection.userRole": - if e.complexity.DiscussionRoleSelection.UserRole == nil { - break - } - - return e.complexity.DiscussionRoleSelection.UserRole(childComplexity), true - - case "DiscussionRoleSelection.userRoleDescription": - if e.complexity.DiscussionRoleSelection.UserRoleDescription == nil { - break - } - - return e.complexity.DiscussionRoleSelection.UserRoleDescription(childComplexity), true - - case "EChimpCR.associatedModelUids": - if e.complexity.EChimpCR.AssociatedModelUids == nil { - break - } - - return e.complexity.EChimpCR.AssociatedModelUids(childComplexity), true - - case "EChimpCR.id": - if e.complexity.EChimpCR.CrNumber == nil { - break - } - - return e.complexity.EChimpCR.CrNumber(childComplexity), true - - case "EChimpCR.crStatus": - if e.complexity.EChimpCR.CrStatus == nil { - break - } - - return e.complexity.EChimpCR.CrStatus(childComplexity), true - - case "EChimpCR.crSummary": - if e.complexity.EChimpCR.CrSummary == nil { - break - } - - return e.complexity.EChimpCR.CrSummary(childComplexity), true - - case "EChimpCR.emergencyCrFlag": - if e.complexity.EChimpCR.EmergencyCrFlag == nil { - break - } - - return e.complexity.EChimpCR.EmergencyCrFlag(childComplexity), true - - case "EChimpCR.firstName": - if e.complexity.EChimpCR.FirstName == nil { - break - } - - return e.complexity.EChimpCR.FirstName(childComplexity), true - - case "EChimpCR.implementationDate": - if e.complexity.EChimpCR.ImplementationDate == nil { - break - } - - return e.complexity.EChimpCR.ImplementationDate(childComplexity), true - - case "EChimpCR.initiator": - if e.complexity.EChimpCR.Initiator == nil { - break - } - - return e.complexity.EChimpCR.Initiator(childComplexity), true - - case "EChimpCR.lastName": - if e.complexity.EChimpCR.LastName == nil { - break - } - - return e.complexity.EChimpCR.LastName(childComplexity), true - - case "EChimpCR.relatedCrNumbers": - if e.complexity.EChimpCR.RelatedCrNumbers == nil { - break - } - - return e.complexity.EChimpCR.RelatedCrNumbers(childComplexity), true - - case "EChimpCR.relatedCrTdlNumbers": - if e.complexity.EChimpCR.RelatedCrTdlNumbers == nil { - break - } - - return e.complexity.EChimpCR.RelatedCrTdlNumbers(childComplexity), true - - case "EChimpCR.sensitiveFlag": - if e.complexity.EChimpCR.SensitiveFlag == nil { - break - } - - return e.complexity.EChimpCR.SensitiveFlag(childComplexity), true - - case "EChimpCR.title": - if e.complexity.EChimpCR.Title == nil { - break - } - - return e.complexity.EChimpCR.Title(childComplexity), true - - case "EChimpCR.versionNum": - if e.complexity.EChimpCR.VersionNum == nil { - break - } - - return e.complexity.EChimpCR.VersionNum(childComplexity), true - - case "EChimpTDL.associatedModelUids": - if e.complexity.EChimpTDL.AssociatedModelUids == nil { - break - } - - return e.complexity.EChimpTDL.AssociatedModelUids(childComplexity), true - - case "EChimpTDL.firstName": - if e.complexity.EChimpTDL.FirstName == nil { - break - } - - return e.complexity.EChimpTDL.FirstName(childComplexity), true - - case "EChimpTDL.initiator": - if e.complexity.EChimpTDL.Initiator == nil { - break - } - - return e.complexity.EChimpTDL.Initiator(childComplexity), true - - case "EChimpTDL.issuedDate": - if e.complexity.EChimpTDL.IssuedDate == nil { - break - } - - return e.complexity.EChimpTDL.IssuedDate(childComplexity), true - - case "EChimpTDL.lastName": - if e.complexity.EChimpTDL.LastName == nil { - break - } - - return e.complexity.EChimpTDL.LastName(childComplexity), true - - case "EChimpTDL.status": - if e.complexity.EChimpTDL.Status == nil { - break - } - - return e.complexity.EChimpTDL.Status(childComplexity), true - - case "EChimpTDL.id": - if e.complexity.EChimpTDL.TdlNumber == nil { - break - } - - return e.complexity.EChimpTDL.TdlNumber(childComplexity), true - - case "EChimpTDL.title": - if e.complexity.EChimpTDL.Title == nil { - break - } - - return e.complexity.EChimpTDL.Title(childComplexity), true - - case "EChimpTDL.versionNum": - if e.complexity.EChimpTDL.VersionNum == nil { - break - } - - return e.complexity.EChimpTDL.VersionNum(childComplexity), true - - case "EnumTranslation.generalName": - if e.complexity.EnumTranslation.GeneralName == nil { - break - } - - return e.complexity.EnumTranslation.GeneralName(childComplexity), true - - case "EnumTranslation.groupedName": - if e.complexity.EnumTranslation.GroupedName == nil { - break - } - - return e.complexity.EnumTranslation.GroupedName(childComplexity), true - - case "ExistingModel.authority": - if e.complexity.ExistingModel.Authority == nil { - break - } - - return e.complexity.ExistingModel.Authority(childComplexity), true - - case "ExistingModel.category": - if e.complexity.ExistingModel.Category == nil { - break - } - - return e.complexity.ExistingModel.Category(childComplexity), true - - case "ExistingModel.createdBy": - if e.complexity.ExistingModel.CreatedBy == nil { - break - } - - return e.complexity.ExistingModel.CreatedBy(childComplexity), true - - case "ExistingModel.createdByUserAccount": - if e.complexity.ExistingModel.CreatedByUserAccount == nil { - break - } - - return e.complexity.ExistingModel.CreatedByUserAccount(childComplexity), true - - case "ExistingModel.createdDts": - if e.complexity.ExistingModel.CreatedDts == nil { - break - } - - return e.complexity.ExistingModel.CreatedDts(childComplexity), true - - case "ExistingModel.dateBegan": - if e.complexity.ExistingModel.DateBegan == nil { - break - } - - return e.complexity.ExistingModel.DateBegan(childComplexity), true - - case "ExistingModel.dateEnded": - if e.complexity.ExistingModel.DateEnded == nil { - break - } - - return e.complexity.ExistingModel.DateEnded(childComplexity), true - - case "ExistingModel.description": - if e.complexity.ExistingModel.Description == nil { - break - } - - return e.complexity.ExistingModel.Description(childComplexity), true - - case "ExistingModel.displayModelSummary": - if e.complexity.ExistingModel.DisplayModelSummary == nil { - break - } - - return e.complexity.ExistingModel.DisplayModelSummary(childComplexity), true - - case "ExistingModel.id": - if e.complexity.ExistingModel.ID == nil { - break - } - - return e.complexity.ExistingModel.ID(childComplexity), true - - case "ExistingModel.keywords": - if e.complexity.ExistingModel.Keywords == nil { - break - } - - return e.complexity.ExistingModel.Keywords(childComplexity), true - - case "ExistingModel.modelName": - if e.complexity.ExistingModel.ModelName == nil { - break - } - - return e.complexity.ExistingModel.ModelName(childComplexity), true - - case "ExistingModel.modifiedBy": - if e.complexity.ExistingModel.ModifiedBy == nil { - break - } - - return e.complexity.ExistingModel.ModifiedBy(childComplexity), true - - case "ExistingModel.modifiedByUserAccount": - if e.complexity.ExistingModel.ModifiedByUserAccount == nil { - break - } - - return e.complexity.ExistingModel.ModifiedByUserAccount(childComplexity), true - - case "ExistingModel.modifiedDts": - if e.complexity.ExistingModel.ModifiedDts == nil { - break - } - - return e.complexity.ExistingModel.ModifiedDts(childComplexity), true - - case "ExistingModel.numberOfBeneficiariesImpacted": - if e.complexity.ExistingModel.NumberOfBeneficiariesImpacted == nil { - break - } - - return e.complexity.ExistingModel.NumberOfBeneficiariesImpacted(childComplexity), true - - case "ExistingModel.numberOfParticipants": - if e.complexity.ExistingModel.NumberOfParticipants == nil { - break - } - - return e.complexity.ExistingModel.NumberOfParticipants(childComplexity), true - - case "ExistingModel.numberOfPhysiciansImpacted": - if e.complexity.ExistingModel.NumberOfPhysiciansImpacted == nil { - break - } - - return e.complexity.ExistingModel.NumberOfPhysiciansImpacted(childComplexity), true - - case "ExistingModel.stage": - if e.complexity.ExistingModel.Stage == nil { - break - } - - return e.complexity.ExistingModel.Stage(childComplexity), true - - case "ExistingModel.states": - if e.complexity.ExistingModel.States == nil { - break - } - - return e.complexity.ExistingModel.States(childComplexity), true - - case "ExistingModel.url": - if e.complexity.ExistingModel.URL == nil { - break - } - - return e.complexity.ExistingModel.URL(childComplexity), true - - case "ExistingModelLink.createdBy": - if e.complexity.ExistingModelLink.CreatedBy == nil { - break - } - - return e.complexity.ExistingModelLink.CreatedBy(childComplexity), true - - case "ExistingModelLink.createdByUserAccount": - if e.complexity.ExistingModelLink.CreatedByUserAccount == nil { - break - } - - return e.complexity.ExistingModelLink.CreatedByUserAccount(childComplexity), true - - case "ExistingModelLink.createdDts": - if e.complexity.ExistingModelLink.CreatedDts == nil { - break - } - - return e.complexity.ExistingModelLink.CreatedDts(childComplexity), true - - case "ExistingModelLink.currentModelPlanID": - if e.complexity.ExistingModelLink.CurrentModelPlanID == nil { - break - } - - return e.complexity.ExistingModelLink.CurrentModelPlanID(childComplexity), true - - case "ExistingModelLink.existingModelID": - if e.complexity.ExistingModelLink.ExistingModelID == nil { - break - } - - return e.complexity.ExistingModelLink.ExistingModelID(childComplexity), true - - case "ExistingModelLink.fieldName": - if e.complexity.ExistingModelLink.FieldName == nil { - break - } - - return e.complexity.ExistingModelLink.FieldName(childComplexity), true - - case "ExistingModelLink.id": - if e.complexity.ExistingModelLink.ID == nil { - break - } - - return e.complexity.ExistingModelLink.ID(childComplexity), true - - case "ExistingModelLink.model": - if e.complexity.ExistingModelLink.Model == nil { - break - } - - return e.complexity.ExistingModelLink.Model(childComplexity), true - - case "ExistingModelLink.modelPlanID": - if e.complexity.ExistingModelLink.ModelPlanID == nil { - break - } - - return e.complexity.ExistingModelLink.ModelPlanID(childComplexity), true - - case "ExistingModelLink.modifiedBy": - if e.complexity.ExistingModelLink.ModifiedBy == nil { - break - } - - return e.complexity.ExistingModelLink.ModifiedBy(childComplexity), true - - case "ExistingModelLink.modifiedByUserAccount": - if e.complexity.ExistingModelLink.ModifiedByUserAccount == nil { - break - } - - return e.complexity.ExistingModelLink.ModifiedByUserAccount(childComplexity), true - - case "ExistingModelLink.modifiedDts": - if e.complexity.ExistingModelLink.ModifiedDts == nil { - break - } - - return e.complexity.ExistingModelLink.ModifiedDts(childComplexity), true - - case "ExistingModelLinkTranslation.currentModelPlanID": - if e.complexity.ExistingModelLinkTranslation.CurrentModelPlanID == nil { - break - } - - return e.complexity.ExistingModelLinkTranslation.CurrentModelPlanID(childComplexity), true - - case "ExistingModelLinkTranslation.existingModelID": - if e.complexity.ExistingModelLinkTranslation.ExistingModelID == nil { - break - } - - return e.complexity.ExistingModelLinkTranslation.ExistingModelID(childComplexity), true - - case "ExistingModelLinkTranslation.fieldName": - if e.complexity.ExistingModelLinkTranslation.FieldName == nil { - break - } - - return e.complexity.ExistingModelLinkTranslation.FieldName(childComplexity), true - - case "ExistingModelLinks.fieldName": - if e.complexity.ExistingModelLinks.FieldName == nil { - break - } - - return e.complexity.ExistingModelLinks.FieldName(childComplexity), true - - case "ExistingModelLinks.links": - if e.complexity.ExistingModelLinks.Links == nil { - break - } - - return e.complexity.ExistingModelLinks.Links(childComplexity), true - - case "ExistingModelLinks.modelPlanID": - if e.complexity.ExistingModelLinks.ModelPlanID == nil { - break - } - - return e.complexity.ExistingModelLinks.ModelPlanID(childComplexity), true - - case "ExistingModelLinks.names": - if e.complexity.ExistingModelLinks.Names == nil { - break - } - - return e.complexity.ExistingModelLinks.Names(childComplexity), true - - case "LaunchDarklySettings.signedHash": - if e.complexity.LaunchDarklySettings.SignedHash == nil { - break - } - - return e.complexity.LaunchDarklySettings.SignedHash(childComplexity), true - - case "LaunchDarklySettings.userKey": - if e.complexity.LaunchDarklySettings.UserKey == nil { - break - } - - return e.complexity.LaunchDarklySettings.UserKey(childComplexity), true - - case "LockableSectionLockStatus.isAssessment": - if e.complexity.LockableSectionLockStatus.IsAssessment == nil { - break - } - - return e.complexity.LockableSectionLockStatus.IsAssessment(childComplexity), true - - case "LockableSectionLockStatus.lockedByUserAccount": - if e.complexity.LockableSectionLockStatus.LockedByUserAccount == nil { - break - } - - return e.complexity.LockableSectionLockStatus.LockedByUserAccount(childComplexity), true - - case "LockableSectionLockStatus.modelPlanID": - if e.complexity.LockableSectionLockStatus.ModelPlanID == nil { - break - } - - return e.complexity.LockableSectionLockStatus.ModelPlanID(childComplexity), true - - case "LockableSectionLockStatus.section": - if e.complexity.LockableSectionLockStatus.Section == nil { - break - } - - return e.complexity.LockableSectionLockStatus.Section(childComplexity), true - - case "LockableSectionLockStatusChanged.actionType": - if e.complexity.LockableSectionLockStatusChanged.ActionType == nil { - break - } - - return e.complexity.LockableSectionLockStatusChanged.ActionType(childComplexity), true - - case "LockableSectionLockStatusChanged.changeType": - if e.complexity.LockableSectionLockStatusChanged.ChangeType == nil { - break - } - - return e.complexity.LockableSectionLockStatusChanged.ChangeType(childComplexity), true - - case "LockableSectionLockStatusChanged.lockStatus": - if e.complexity.LockableSectionLockStatusChanged.LockStatus == nil { - break - } - - return e.complexity.LockableSectionLockStatusChanged.LockStatus(childComplexity), true - - case "MTOCategory.id": - if e.complexity.MTOCategory.ID == nil { - break - } - - return e.complexity.MTOCategory.ID(childComplexity), true - - case "MTOCategory.isUncategorized": - if e.complexity.MTOCategory.IsUncategorized == nil { - break - } - - return e.complexity.MTOCategory.IsUncategorized(childComplexity), true - - case "MTOCategory.name": - if e.complexity.MTOCategory.Name == nil { - break - } - - return e.complexity.MTOCategory.Name(childComplexity), true - - case "MTOCategory.position": - if e.complexity.MTOCategory.Position == nil { - break - } - - return e.complexity.MTOCategory.Position(childComplexity), true - - case "MTOCategory.subCategories": - if e.complexity.MTOCategory.SubCategories == nil { - break - } - - return e.complexity.MTOCategory.SubCategories(childComplexity), true - - case "MTOCategoryTranslation.name": - if e.complexity.MTOCategoryTranslation.Name == nil { - break - } - - return e.complexity.MTOCategoryTranslation.Name(childComplexity), true - - case "MTOCommonMilestone.categoryName": - if e.complexity.MTOCommonMilestone.CategoryName == nil { - break - } - - return e.complexity.MTOCommonMilestone.CategoryName(childComplexity), true - - case "MTOCommonMilestone.commonSolutions": - if e.complexity.MTOCommonMilestone.CommonSolutions == nil { - break - } - - return e.complexity.MTOCommonMilestone.CommonSolutions(childComplexity), true - - case "MTOCommonMilestone.facilitatedByRole": - if e.complexity.MTOCommonMilestone.FacilitatedByRole == nil { - break - } - - return e.complexity.MTOCommonMilestone.FacilitatedByRole(childComplexity), true - - case "MTOCommonMilestone.isAdded": - if e.complexity.MTOCommonMilestone.IsAdded == nil { - break - } - - return e.complexity.MTOCommonMilestone.IsAdded(childComplexity), true - - case "MTOCommonMilestone.isSuggested": - if e.complexity.MTOCommonMilestone.IsSuggested == nil { - break - } - - return e.complexity.MTOCommonMilestone.IsSuggested(childComplexity), true - - case "MTOCommonMilestone.key": - if e.complexity.MTOCommonMilestone.Key == nil { - break - } - - return e.complexity.MTOCommonMilestone.Key(childComplexity), true - - case "MTOCommonMilestone.name": - if e.complexity.MTOCommonMilestone.Name == nil { - break - } - - return e.complexity.MTOCommonMilestone.Name(childComplexity), true - - case "MTOCommonMilestone.section": - if e.complexity.MTOCommonMilestone.Section == nil { - break - } - - return e.complexity.MTOCommonMilestone.Section(childComplexity), true - - case "MTOCommonMilestone.subCategoryName": - if e.complexity.MTOCommonMilestone.SubCategoryName == nil { - break - } - - return e.complexity.MTOCommonMilestone.SubCategoryName(childComplexity), true - - case "MTOCommonSolution.filterView": - if e.complexity.MTOCommonSolution.FilterView == nil { - break - } - - return e.complexity.MTOCommonSolution.FilterView(childComplexity), true - - case "MTOCommonSolution.isAdded": - if e.complexity.MTOCommonSolution.IsAdded == nil { - break - } - - return e.complexity.MTOCommonSolution.IsAdded(childComplexity), true - - case "MTOCommonSolution.key": - if e.complexity.MTOCommonSolution.Key == nil { - break - } - - return e.complexity.MTOCommonSolution.Key(childComplexity), true - - case "MTOCommonSolution.name": - if e.complexity.MTOCommonSolution.Name == nil { - break - } - - return e.complexity.MTOCommonSolution.Name(childComplexity), true - - case "MTOCommonSolution.subjects": - if e.complexity.MTOCommonSolution.Subjects == nil { - break - } - - return e.complexity.MTOCommonSolution.Subjects(childComplexity), true - - case "MTOCommonSolution.type": - if e.complexity.MTOCommonSolution.Type == nil { - break - } - - return e.complexity.MTOCommonSolution.Type(childComplexity), true - - case "MTOInfo.createdBy": - if e.complexity.MTOInfo.CreatedBy == nil { - break - } - - return e.complexity.MTOInfo.CreatedBy(childComplexity), true - - case "MTOInfo.createdByUserAccount": - if e.complexity.MTOInfo.CreatedByUserAccount == nil { - break - } - - return e.complexity.MTOInfo.CreatedByUserAccount(childComplexity), true - - case "MTOInfo.createdDts": - if e.complexity.MTOInfo.CreatedDts == nil { - break - } - - return e.complexity.MTOInfo.CreatedDts(childComplexity), true - - case "MTOInfo.id": - if e.complexity.MTOInfo.ID == nil { - break - } - - return e.complexity.MTOInfo.ID(childComplexity), true - - case "MTOInfo.modelPlanID": - if e.complexity.MTOInfo.ModelPlanID == nil { - break - } - - return e.complexity.MTOInfo.ModelPlanID(childComplexity), true - - case "MTOInfo.modifiedBy": - if e.complexity.MTOInfo.ModifiedBy == nil { - break - } - - return e.complexity.MTOInfo.ModifiedBy(childComplexity), true - - case "MTOInfo.modifiedByUserAccount": - if e.complexity.MTOInfo.ModifiedByUserAccount == nil { - break - } - - return e.complexity.MTOInfo.ModifiedByUserAccount(childComplexity), true - - case "MTOInfo.modifiedDts": - if e.complexity.MTOInfo.ModifiedDts == nil { - break - } - - return e.complexity.MTOInfo.ModifiedDts(childComplexity), true - - case "MTOInfo.readyForReviewBy": - if e.complexity.MTOInfo.ReadyForReviewBy == nil { - break - } - - return e.complexity.MTOInfo.ReadyForReviewBy(childComplexity), true - - case "MTOInfo.readyForReviewByUserAccount": - if e.complexity.MTOInfo.ReadyForReviewByUserAccount == nil { - break - } - - return e.complexity.MTOInfo.ReadyForReviewByUserAccount(childComplexity), true - - case "MTOInfo.readyForReviewDTS": - if e.complexity.MTOInfo.ReadyForReviewDts == nil { - break - } - - return e.complexity.MTOInfo.ReadyForReviewDts(childComplexity), true - - case "MTOInfoTranslation.readyForReviewBy": - if e.complexity.MTOInfoTranslation.ReadyForReviewBy == nil { - break - } - - return e.complexity.MTOInfoTranslation.ReadyForReviewBy(childComplexity), true - - case "MTOInfoTranslation.readyForReviewDTS": - if e.complexity.MTOInfoTranslation.ReadyForReviewDts == nil { - break - } - - return e.complexity.MTOInfoTranslation.ReadyForReviewDts(childComplexity), true - - case "MTOMilestone.addedFromMilestoneLibrary": - if e.complexity.MTOMilestone.AddedFromMilestoneLibrary == nil { - break - } - - return e.complexity.MTOMilestone.AddedFromMilestoneLibrary(childComplexity), true - - case "MTOMilestone.category": - if e.complexity.MTOMilestone.Category == nil { - break - } - - return e.complexity.MTOMilestone.Category(childComplexity), true - - case "MTOMilestone.commonMilestone": - if e.complexity.MTOMilestone.CommonMilestone == nil { - break - } - - return e.complexity.MTOMilestone.CommonMilestone(childComplexity), true - - case "MTOMilestone.createdBy": - if e.complexity.MTOMilestone.CreatedBy == nil { - break - } - - return e.complexity.MTOMilestone.CreatedBy(childComplexity), true - - case "MTOMilestone.createdByUserAccount": - if e.complexity.MTOMilestone.CreatedByUserAccount == nil { - break - } - - return e.complexity.MTOMilestone.CreatedByUserAccount(childComplexity), true - - case "MTOMilestone.createdDts": - if e.complexity.MTOMilestone.CreatedDts == nil { - break - } - - return e.complexity.MTOMilestone.CreatedDts(childComplexity), true - - case "MTOMilestone.facilitatedBy": - if e.complexity.MTOMilestone.FacilitatedBy == nil { - break - } - - return e.complexity.MTOMilestone.FacilitatedBy(childComplexity), true - - case "MTOMilestone.id": - if e.complexity.MTOMilestone.ID == nil { - break - } - - return e.complexity.MTOMilestone.ID(childComplexity), true - - case "MTOMilestone.isDraft": - if e.complexity.MTOMilestone.IsDraft == nil { - break - } - - return e.complexity.MTOMilestone.IsDraft(childComplexity), true - - case "MTOMilestone.key": - if e.complexity.MTOMilestone.Key == nil { - break - } - - return e.complexity.MTOMilestone.Key(childComplexity), true - - case "MTOMilestone.mtoCategoryID": - if e.complexity.MTOMilestone.MTOCategoryID == nil { - break - } - - return e.complexity.MTOMilestone.MTOCategoryID(childComplexity), true - - case "MTOMilestone.modifiedBy": - if e.complexity.MTOMilestone.ModifiedBy == nil { - break - } - - return e.complexity.MTOMilestone.ModifiedBy(childComplexity), true - - case "MTOMilestone.modifiedByUserAccount": - if e.complexity.MTOMilestone.ModifiedByUserAccount == nil { - break - } - - return e.complexity.MTOMilestone.ModifiedByUserAccount(childComplexity), true - - case "MTOMilestone.modifiedDts": - if e.complexity.MTOMilestone.ModifiedDts == nil { - break - } - - return e.complexity.MTOMilestone.ModifiedDts(childComplexity), true - - case "MTOMilestone.name": - if e.complexity.MTOMilestone.Name == nil { - break - } - - return e.complexity.MTOMilestone.Name(childComplexity), true - - case "MTOMilestone.needBy": - if e.complexity.MTOMilestone.NeedBy == nil { - break - } - - return e.complexity.MTOMilestone.NeedBy(childComplexity), true - - case "MTOMilestone.riskIndicator": - if e.complexity.MTOMilestone.RiskIndicator == nil { - break - } - - return e.complexity.MTOMilestone.RiskIndicator(childComplexity), true - - case "MTOMilestone.solutions": - if e.complexity.MTOMilestone.Solutions == nil { - break - } - - return e.complexity.MTOMilestone.Solutions(childComplexity), true - - case "MTOMilestone.status": - if e.complexity.MTOMilestone.Status == nil { - break - } - - return e.complexity.MTOMilestone.Status(childComplexity), true - - case "MTOMilestone.subCategory": - if e.complexity.MTOMilestone.SubCategory == nil { - break - } - - return e.complexity.MTOMilestone.SubCategory(childComplexity), true - - case "MTOMilestoneTranslation.name": - if e.complexity.MTOMilestoneTranslation.Name == nil { - break - } - - return e.complexity.MTOMilestoneTranslation.Name(childComplexity), true - - case "MTOSolution.addedFromSolutionLibrary": - if e.complexity.MTOSolution.AddedFromSolutionLibrary == nil { - break - } - - return e.complexity.MTOSolution.AddedFromSolutionLibrary(childComplexity), true - - case "MTOSolution.commonSolution": - if e.complexity.MTOSolution.CommonSolution == nil { - break - } - - return e.complexity.MTOSolution.CommonSolution(childComplexity), true - - case "MTOSolution.createdBy": - if e.complexity.MTOSolution.CreatedBy == nil { - break - } - - return e.complexity.MTOSolution.CreatedBy(childComplexity), true - - case "MTOSolution.createdByUserAccount": - if e.complexity.MTOSolution.CreatedByUserAccount == nil { - break - } - - return e.complexity.MTOSolution.CreatedByUserAccount(childComplexity), true - - case "MTOSolution.createdDts": - if e.complexity.MTOSolution.CreatedDts == nil { - break - } - - return e.complexity.MTOSolution.CreatedDts(childComplexity), true - - case "MTOSolution.facilitatedBy": - if e.complexity.MTOSolution.FacilitatedBy == nil { - break - } - - return e.complexity.MTOSolution.FacilitatedBy(childComplexity), true - - case "MTOSolution.id": - if e.complexity.MTOSolution.ID == nil { - break - } - - return e.complexity.MTOSolution.ID(childComplexity), true - - case "MTOSolution.key": - if e.complexity.MTOSolution.Key == nil { - break - } - - return e.complexity.MTOSolution.Key(childComplexity), true - - case "MTOSolution.modifiedBy": - if e.complexity.MTOSolution.ModifiedBy == nil { - break - } - - return e.complexity.MTOSolution.ModifiedBy(childComplexity), true - - case "MTOSolution.modifiedByUserAccount": - if e.complexity.MTOSolution.ModifiedByUserAccount == nil { - break - } - - return e.complexity.MTOSolution.ModifiedByUserAccount(childComplexity), true - - case "MTOSolution.modifiedDts": - if e.complexity.MTOSolution.ModifiedDts == nil { - break - } - - return e.complexity.MTOSolution.ModifiedDts(childComplexity), true - - case "MTOSolution.name": - if e.complexity.MTOSolution.Name == nil { - break - } - - return e.complexity.MTOSolution.Name(childComplexity), true - - case "MTOSolution.neededBy": - if e.complexity.MTOSolution.NeededBy == nil { - break - } - - return e.complexity.MTOSolution.NeededBy(childComplexity), true - - case "MTOSolution.pocEmail": - if e.complexity.MTOSolution.PocEmail == nil { - break - } - - return e.complexity.MTOSolution.PocEmail(childComplexity), true - - case "MTOSolution.pocName": - if e.complexity.MTOSolution.PocName == nil { - break - } - - return e.complexity.MTOSolution.PocName(childComplexity), true - - case "MTOSolution.relatedMilestones": - if e.complexity.MTOSolution.RelatedMilestones == nil { - break - } - - return e.complexity.MTOSolution.RelatedMilestones(childComplexity), true - - case "MTOSolution.riskIndicator": - if e.complexity.MTOSolution.RiskIndicator == nil { - break - } - - return e.complexity.MTOSolution.RiskIndicator(childComplexity), true - - case "MTOSolution.status": - if e.complexity.MTOSolution.Status == nil { - break - } - - return e.complexity.MTOSolution.Status(childComplexity), true - - case "MTOSolution.type": - if e.complexity.MTOSolution.Type == nil { - break - } - - return e.complexity.MTOSolution.Type(childComplexity), true - - case "MTOSubcategory.id": - if e.complexity.MTOSubcategory.ID == nil { - break - } - - return e.complexity.MTOSubcategory.ID(childComplexity), true - - case "MTOSubcategory.isUncategorized": - if e.complexity.MTOSubcategory.IsUncategorized == nil { - break - } - - return e.complexity.MTOSubcategory.IsUncategorized(childComplexity), true - - case "MTOSubcategory.milestones": - if e.complexity.MTOSubcategory.Milestones == nil { - break - } - - return e.complexity.MTOSubcategory.Milestones(childComplexity), true - - case "MTOSubcategory.name": - if e.complexity.MTOSubcategory.Name == nil { - break - } - - return e.complexity.MTOSubcategory.Name(childComplexity), true - - case "MTOSubcategory.position": - if e.complexity.MTOSubcategory.Position == nil { - break - } - - return e.complexity.MTOSubcategory.Position(childComplexity), true - - case "ModelPlan.abbreviation": - if e.complexity.ModelPlan.Abbreviation == nil { - break - } - - return e.complexity.ModelPlan.Abbreviation(childComplexity), true - - case "ModelPlan.archived": - if e.complexity.ModelPlan.Archived == nil { - break - } - - return e.complexity.ModelPlan.Archived(childComplexity), true - - case "ModelPlan.basics": - if e.complexity.ModelPlan.Basics == nil { - break - } - - return e.complexity.ModelPlan.Basics(childComplexity), true - - case "ModelPlan.beneficiaries": - if e.complexity.ModelPlan.Beneficiaries == nil { - break - } - - return e.complexity.ModelPlan.Beneficiaries(childComplexity), true - - case "ModelPlan.collaborators": - if e.complexity.ModelPlan.Collaborators == nil { - break - } - - return e.complexity.ModelPlan.Collaborators(childComplexity), true - - case "ModelPlan.createdBy": - if e.complexity.ModelPlan.CreatedBy == nil { - break - } - - return e.complexity.ModelPlan.CreatedBy(childComplexity), true - - case "ModelPlan.createdByUserAccount": - if e.complexity.ModelPlan.CreatedByUserAccount == nil { - break - } - - return e.complexity.ModelPlan.CreatedByUserAccount(childComplexity), true - - case "ModelPlan.createdDts": - if e.complexity.ModelPlan.CreatedDts == nil { - break - } - - return e.complexity.ModelPlan.CreatedDts(childComplexity), true - - case "ModelPlan.crs": - if e.complexity.ModelPlan.Crs == nil { - break - } - - return e.complexity.ModelPlan.Crs(childComplexity), true - - case "ModelPlan.dataExchangeApproach": - if e.complexity.ModelPlan.DataExchangeApproach == nil { - break - } - - return e.complexity.ModelPlan.DataExchangeApproach(childComplexity), true - - case "ModelPlan.discussions": - if e.complexity.ModelPlan.Discussions == nil { - break - } - - return e.complexity.ModelPlan.Discussions(childComplexity), true - - case "ModelPlan.documents": - if e.complexity.ModelPlan.Documents == nil { - break - } - - return e.complexity.ModelPlan.Documents(childComplexity), true - - case "ModelPlan.echimpCRsAndTDLs": - if e.complexity.ModelPlan.EchimpCRsAndTDLs == nil { - break - } - - return e.complexity.ModelPlan.EchimpCRsAndTDLs(childComplexity), true - - case "ModelPlan.generalCharacteristics": - if e.complexity.ModelPlan.GeneralCharacteristics == nil { - break - } - - return e.complexity.ModelPlan.GeneralCharacteristics(childComplexity), true - - case "ModelPlan.id": - if e.complexity.ModelPlan.ID == nil { - break - } - - return e.complexity.ModelPlan.ID(childComplexity), true - - case "ModelPlan.isCollaborator": - if e.complexity.ModelPlan.IsCollaborator == nil { - break - } - - return e.complexity.ModelPlan.IsCollaborator(childComplexity), true - - case "ModelPlan.isFavorite": - if e.complexity.ModelPlan.IsFavorite == nil { - break - } - - return e.complexity.ModelPlan.IsFavorite(childComplexity), true - - case "ModelPlan.modelBySolutionStatus": - if e.complexity.ModelPlan.ModelBySolutionStatus == nil { - break - } - - return e.complexity.ModelPlan.ModelBySolutionStatus(childComplexity), true - - case "ModelPlan.modelName": - if e.complexity.ModelPlan.ModelName == nil { - break - } - - return e.complexity.ModelPlan.ModelName(childComplexity), true - - case "ModelPlan.modifiedBy": - if e.complexity.ModelPlan.ModifiedBy == nil { - break - } - - return e.complexity.ModelPlan.ModifiedBy(childComplexity), true - - case "ModelPlan.modifiedByUserAccount": - if e.complexity.ModelPlan.ModifiedByUserAccount == nil { - break - } - - return e.complexity.ModelPlan.ModifiedByUserAccount(childComplexity), true - - case "ModelPlan.modifiedDts": - if e.complexity.ModelPlan.ModifiedDts == nil { - break - } - - return e.complexity.ModelPlan.ModifiedDts(childComplexity), true - - case "ModelPlan.mtoMatrix": - if e.complexity.ModelPlan.MtoMatrix == nil { - break - } - - return e.complexity.ModelPlan.MtoMatrix(childComplexity), true - - case "ModelPlan.nameHistory": - if e.complexity.ModelPlan.NameHistory == nil { - break - } - - args, err := ec.field_ModelPlan_nameHistory_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ModelPlan.NameHistory(childComplexity, args["sort"].(models.SortDirection)), true - - case "ModelPlan.opSolutionLastModifiedDts": - if e.complexity.ModelPlan.OpSolutionLastModifiedDts == nil { - break - } - - return e.complexity.ModelPlan.OpSolutionLastModifiedDts(childComplexity), true - - case "ModelPlan.operationalNeeds": - if e.complexity.ModelPlan.OperationalNeeds == nil { - break - } - - return e.complexity.ModelPlan.OperationalNeeds(childComplexity), true - - case "ModelPlan.opsEvalAndLearning": - if e.complexity.ModelPlan.OpsEvalAndLearning == nil { - break - } - - return e.complexity.ModelPlan.OpsEvalAndLearning(childComplexity), true - - case "ModelPlan.participantsAndProviders": - if e.complexity.ModelPlan.ParticipantsAndProviders == nil { - break - } - - return e.complexity.ModelPlan.ParticipantsAndProviders(childComplexity), true - - case "ModelPlan.payments": - if e.complexity.ModelPlan.Payments == nil { - break - } - - return e.complexity.ModelPlan.Payments(childComplexity), true - - case "ModelPlan.prepareForClearance": - if e.complexity.ModelPlan.PrepareForClearance == nil { - break - } - - return e.complexity.ModelPlan.PrepareForClearance(childComplexity), true - - case "ModelPlan.previousSuggestedPhase": - if e.complexity.ModelPlan.PreviousSuggestedPhase == nil { - break - } - - return e.complexity.ModelPlan.PreviousSuggestedPhase(childComplexity), true - - case "ModelPlan.status": - if e.complexity.ModelPlan.Status == nil { - break - } - - return e.complexity.ModelPlan.Status(childComplexity), true - - case "ModelPlan.suggestedPhase": - if e.complexity.ModelPlan.SuggestedPhase == nil { - break - } - - return e.complexity.ModelPlan.SuggestedPhase(childComplexity), true - - case "ModelPlan.taskListStatus": - if e.complexity.ModelPlan.TaskListStatus == nil { - break - } - - return e.complexity.ModelPlan.TaskListStatus(childComplexity), true - - case "ModelPlan.tdls": - if e.complexity.ModelPlan.Tdls == nil { - break - } - - return e.complexity.ModelPlan.Tdls(childComplexity), true - - case "ModelPlanAndPossibleOperationalSolution.key": - if e.complexity.ModelPlanAndPossibleOperationalSolution.Key == nil { - break - } - - return e.complexity.ModelPlanAndPossibleOperationalSolution.Key(childComplexity), true - - case "ModelPlanAndPossibleOperationalSolution.modelPlan": - if e.complexity.ModelPlanAndPossibleOperationalSolution.ModelPlan == nil { - break - } - - return e.complexity.ModelPlanAndPossibleOperationalSolution.ModelPlan(childComplexity), true - - case "ModelPlanAndPossibleOperationalSolution.modelPlanID": - if e.complexity.ModelPlanAndPossibleOperationalSolution.ModelPlanID == nil { - break - } - - return e.complexity.ModelPlanAndPossibleOperationalSolution.ModelPlanID(childComplexity), true - - case "ModelPlanAndPossibleOperationalSolution.possibleOperationalSolution": - if e.complexity.ModelPlanAndPossibleOperationalSolution.PossibleOperationalSolution == nil { - break - } - - return e.complexity.ModelPlanAndPossibleOperationalSolution.PossibleOperationalSolution(childComplexity), true - - case "ModelPlanAndPossibleOperationalSolution.possibleOperationalSolutionID": - if e.complexity.ModelPlanAndPossibleOperationalSolution.PossibleOperationalSolutionID == nil { - break - } - - return e.complexity.ModelPlanAndPossibleOperationalSolution.PossibleOperationalSolutionID(childComplexity), true - - case "ModelPlanSharedActivityMeta.modelPlan": - if e.complexity.ModelPlanSharedActivityMeta.ModelPlan == nil { - break - } - - return e.complexity.ModelPlanSharedActivityMeta.ModelPlan(childComplexity), true - - case "ModelPlanSharedActivityMeta.modelPlanID": - if e.complexity.ModelPlanSharedActivityMeta.ModelPlanID == nil { - break - } - - return e.complexity.ModelPlanSharedActivityMeta.ModelPlanID(childComplexity), true - - case "ModelPlanSharedActivityMeta.optionalMessage": - if e.complexity.ModelPlanSharedActivityMeta.OptionalMessage == nil { - break - } - - return e.complexity.ModelPlanSharedActivityMeta.OptionalMessage(childComplexity), true - - case "ModelPlanSharedActivityMeta.type": - if e.complexity.ModelPlanSharedActivityMeta.Type == nil { - break - } - - return e.complexity.ModelPlanSharedActivityMeta.Type(childComplexity), true - - case "ModelPlanSharedActivityMeta.version": - if e.complexity.ModelPlanSharedActivityMeta.Version == nil { - break - } - - return e.complexity.ModelPlanSharedActivityMeta.Version(childComplexity), true - - case "ModelPlanTranslation.abbreviation": - if e.complexity.ModelPlanTranslation.Abbreviation == nil { - break - } - - return e.complexity.ModelPlanTranslation.Abbreviation(childComplexity), true - - case "ModelPlanTranslation.archived": - if e.complexity.ModelPlanTranslation.Archived == nil { - break - } - - return e.complexity.ModelPlanTranslation.Archived(childComplexity), true - - case "ModelPlanTranslation.modelName": - if e.complexity.ModelPlanTranslation.ModelName == nil { - break - } - - return e.complexity.ModelPlanTranslation.ModelName(childComplexity), true - - case "ModelPlanTranslation.nameHistory": - if e.complexity.ModelPlanTranslation.NameHistory == nil { - break - } - - return e.complexity.ModelPlanTranslation.NameHistory(childComplexity), true - - case "ModelPlanTranslation.previousName": - if e.complexity.ModelPlanTranslation.PreviousName == nil { - break - } - - return e.complexity.ModelPlanTranslation.PreviousName(childComplexity), true - - case "ModelPlanTranslation.status": - if e.complexity.ModelPlanTranslation.Status == nil { - break - } - - return e.complexity.ModelPlanTranslation.Status(childComplexity), true - - case "ModelsToOperationMatrix.categories": - if e.complexity.ModelsToOperationMatrix.Categories == nil { - break - } - - return e.complexity.ModelsToOperationMatrix.Categories(childComplexity), true - - case "ModelsToOperationMatrix.commonMilestones": - if e.complexity.ModelsToOperationMatrix.CommonMilestones == nil { - break - } - - return e.complexity.ModelsToOperationMatrix.CommonMilestones(childComplexity), true - - case "ModelsToOperationMatrix.commonSolutions": - if e.complexity.ModelsToOperationMatrix.CommonSolutions == nil { - break - } - - return e.complexity.ModelsToOperationMatrix.CommonSolutions(childComplexity), true - - case "ModelsToOperationMatrix.info": - if e.complexity.ModelsToOperationMatrix.Info == nil { - break - } - - return e.complexity.ModelsToOperationMatrix.Info(childComplexity), true - - case "ModelsToOperationMatrix.milestones": - if e.complexity.ModelsToOperationMatrix.Milestones == nil { - break - } - - return e.complexity.ModelsToOperationMatrix.Milestones(childComplexity), true - - case "ModelsToOperationMatrix.recentEdit": - if e.complexity.ModelsToOperationMatrix.RecentEdit == nil { - break - } - - return e.complexity.ModelsToOperationMatrix.RecentEdit(childComplexity), true - - case "ModelsToOperationMatrix.solutions": - if e.complexity.ModelsToOperationMatrix.Solutions == nil { - break - } - - return e.complexity.ModelsToOperationMatrix.Solutions(childComplexity), true - - case "ModelsToOperationMatrix.status": - if e.complexity.ModelsToOperationMatrix.Status == nil { - break - } - - return e.complexity.ModelsToOperationMatrix.Status(childComplexity), true - - case "Mutation.addOrUpdateCustomOperationalNeed": - if e.complexity.Mutation.AddOrUpdateCustomOperationalNeed == nil { - break - } - - args, err := ec.field_Mutation_addOrUpdateCustomOperationalNeed_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddOrUpdateCustomOperationalNeed(childComplexity, args["modelPlanID"].(uuid.UUID), args["customNeedType"].(string), args["needed"].(bool)), true - - case "Mutation.addPlanFavorite": - if e.complexity.Mutation.AddPlanFavorite == nil { - break - } - - args, err := ec.field_Mutation_addPlanFavorite_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddPlanFavorite(childComplexity, args["modelPlanID"].(uuid.UUID)), true - - case "Mutation.agreeToNDA": - if e.complexity.Mutation.AgreeToNda == nil { - break - } - - args, err := ec.field_Mutation_agreeToNDA_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AgreeToNda(childComplexity, args["agree"].(bool)), true - - case "Mutation.createDiscussionReply": - if e.complexity.Mutation.CreateDiscussionReply == nil { - break - } - - args, err := ec.field_Mutation_createDiscussionReply_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateDiscussionReply(childComplexity, args["input"].(model.DiscussionReplyCreateInput)), true - - case "Mutation.createMTOCategory": - if e.complexity.Mutation.CreateMTOCategory == nil { - break - } - - args, err := ec.field_Mutation_createMTOCategory_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateMTOCategory(childComplexity, args["modelPlanID"].(uuid.UUID), args["name"].(string), args["parentID"].(*uuid.UUID)), true - - case "Mutation.createMTOMilestoneCommon": - if e.complexity.Mutation.CreateMTOMilestoneCommon == nil { - break - } - - args, err := ec.field_Mutation_createMTOMilestoneCommon_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateMTOMilestoneCommon(childComplexity, args["modelPlanID"].(uuid.UUID), args["commonMilestoneKey"].(models.MTOCommonMilestoneKey)), true - - case "Mutation.createMTOMilestoneCustom": - if e.complexity.Mutation.CreateMTOMilestoneCustom == nil { - break - } - - args, err := ec.field_Mutation_createMTOMilestoneCustom_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateMTOMilestoneCustom(childComplexity, args["modelPlanID"].(uuid.UUID), args["name"].(string), args["mtoCategoryID"].(*uuid.UUID)), true - - case "Mutation.createMTOSolutionCommon": - if e.complexity.Mutation.CreateMTOSolutionCommon == nil { - break - } - - args, err := ec.field_Mutation_createMTOSolutionCommon_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateMTOSolutionCommon(childComplexity, args["modelPlanID"].(uuid.UUID), args["key"].(models.MTOCommonSolutionKey)), true - - case "Mutation.createMTOSolutionCustom": - if e.complexity.Mutation.CreateMTOSolutionCustom == nil { - break - } - - args, err := ec.field_Mutation_createMTOSolutionCustom_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateMTOSolutionCustom(childComplexity, args["modelPlanID"].(uuid.UUID), args["solutionType"].(models.MTOSolutionType), args["name"].(string), args["pocName"].(string), args["pocEmail"].(string)), true - - case "Mutation.createModelPlan": - if e.complexity.Mutation.CreateModelPlan == nil { - break - } - - args, err := ec.field_Mutation_createModelPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateModelPlan(childComplexity, args["modelName"].(string)), true - - case "Mutation.createOperationalSolution": - if e.complexity.Mutation.CreateOperationalSolution == nil { - break - } - - args, err := ec.field_Mutation_createOperationalSolution_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateOperationalSolution(childComplexity, args["operationalNeedID"].(uuid.UUID), args["solutionType"].(*models.OperationalSolutionKey), args["changes"].(map[string]interface{})), true - - case "Mutation.createOperationalSolutionSubtasks": - if e.complexity.Mutation.CreateOperationalSolutionSubtasks == nil { - break - } - - args, err := ec.field_Mutation_createOperationalSolutionSubtasks_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateOperationalSolutionSubtasks(childComplexity, args["solutionID"].(uuid.UUID), args["inputs"].([]*model.CreateOperationalSolutionSubtaskInput)), true - - case "Mutation.createPlanCollaborator": - if e.complexity.Mutation.CreatePlanCollaborator == nil { - break - } - - args, err := ec.field_Mutation_createPlanCollaborator_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreatePlanCollaborator(childComplexity, args["input"].(model.PlanCollaboratorCreateInput)), true - - case "Mutation.createPlanCR": - if e.complexity.Mutation.CreatePlanCr == nil { - break - } - - args, err := ec.field_Mutation_createPlanCR_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreatePlanCr(childComplexity, args["input"].(model.PlanCRCreateInput)), true - - case "Mutation.createPlanDiscussion": - if e.complexity.Mutation.CreatePlanDiscussion == nil { - break - } - - args, err := ec.field_Mutation_createPlanDiscussion_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreatePlanDiscussion(childComplexity, args["input"].(model.PlanDiscussionCreateInput)), true - - case "Mutation.createPlanDocumentSolutionLinks": - if e.complexity.Mutation.CreatePlanDocumentSolutionLinks == nil { - break - } - - args, err := ec.field_Mutation_createPlanDocumentSolutionLinks_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreatePlanDocumentSolutionLinks(childComplexity, args["solutionID"].(uuid.UUID), args["documentIDs"].([]uuid.UUID)), true - - case "Mutation.createPlanTDL": - if e.complexity.Mutation.CreatePlanTdl == nil { - break - } - - args, err := ec.field_Mutation_createPlanTDL_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreatePlanTdl(childComplexity, args["input"].(model.PlanTDLCreateInput)), true - - case "Mutation.deleteOperationalSolutionSubtask": - if e.complexity.Mutation.DeleteOperationalSolutionSubtask == nil { - break - } - - args, err := ec.field_Mutation_deleteOperationalSolutionSubtask_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteOperationalSolutionSubtask(childComplexity, args["id"].(uuid.UUID)), true - - case "Mutation.deletePlanCollaborator": - if e.complexity.Mutation.DeletePlanCollaborator == nil { - break - } - - args, err := ec.field_Mutation_deletePlanCollaborator_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeletePlanCollaborator(childComplexity, args["id"].(uuid.UUID)), true - - case "Mutation.deletePlanCR": - if e.complexity.Mutation.DeletePlanCr == nil { - break - } - - args, err := ec.field_Mutation_deletePlanCR_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeletePlanCr(childComplexity, args["id"].(uuid.UUID)), true - - case "Mutation.deletePlanDocument": - if e.complexity.Mutation.DeletePlanDocument == nil { - break - } - - args, err := ec.field_Mutation_deletePlanDocument_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeletePlanDocument(childComplexity, args["id"].(uuid.UUID)), true - - case "Mutation.deletePlanFavorite": - if e.complexity.Mutation.DeletePlanFavorite == nil { - break - } - - args, err := ec.field_Mutation_deletePlanFavorite_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeletePlanFavorite(childComplexity, args["modelPlanID"].(uuid.UUID)), true - - case "Mutation.deletePlanTDL": - if e.complexity.Mutation.DeletePlanTdl == nil { - break - } - - args, err := ec.field_Mutation_deletePlanTDL_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeletePlanTdl(childComplexity, args["id"].(uuid.UUID)), true - - case "Mutation.linkNewPlanDocument": - if e.complexity.Mutation.LinkNewPlanDocument == nil { - break - } - - args, err := ec.field_Mutation_linkNewPlanDocument_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.LinkNewPlanDocument(childComplexity, args["input"].(model.PlanDocumentLinkInput)), true - - case "Mutation.lockLockableSection": - if e.complexity.Mutation.LockLockableSection == nil { - break - } - - args, err := ec.field_Mutation_lockLockableSection_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.LockLockableSection(childComplexity, args["modelPlanID"].(uuid.UUID), args["section"].(models.LockableSection)), true - - case "Mutation.markAllNotificationsAsRead": - if e.complexity.Mutation.MarkAllNotificationsAsRead == nil { - break - } - - return e.complexity.Mutation.MarkAllNotificationsAsRead(childComplexity), true - - case "Mutation.markMTOReadyForReview": - if e.complexity.Mutation.MarkMTOReadyForReview == nil { - break - } - - args, err := ec.field_Mutation_markMTOReadyForReview_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.MarkMTOReadyForReview(childComplexity, args["modelPlanID"].(uuid.UUID), args["readyForReview"].(bool)), true - - case "Mutation.markNotificationAsRead": - if e.complexity.Mutation.MarkNotificationAsRead == nil { - break - } - - args, err := ec.field_Mutation_markNotificationAsRead_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.MarkNotificationAsRead(childComplexity, args["notificationID"].(uuid.UUID)), true - - case "Mutation.removePlanDocumentSolutionLinks": - if e.complexity.Mutation.RemovePlanDocumentSolutionLinks == nil { - break - } - - args, err := ec.field_Mutation_removePlanDocumentSolutionLinks_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RemovePlanDocumentSolutionLinks(childComplexity, args["solutionID"].(uuid.UUID), args["documentIDs"].([]uuid.UUID)), true - - case "Mutation.renameMTOCategory": - if e.complexity.Mutation.RenameMTOCategory == nil { - break - } - - args, err := ec.field_Mutation_renameMTOCategory_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RenameMTOCategory(childComplexity, args["id"].(uuid.UUID), args["name"].(string)), true - - case "Mutation.reorderMTOCategory": - if e.complexity.Mutation.ReorderMTOCategory == nil { - break - } - - args, err := ec.field_Mutation_reorderMTOCategory_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.ReorderMTOCategory(childComplexity, args["id"].(uuid.UUID), args["newOrder"].(*int), args["parentID"].(*uuid.UUID)), true - - case "Mutation.reportAProblem": - if e.complexity.Mutation.ReportAProblem == nil { - break - } - - args, err := ec.field_Mutation_reportAProblem_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.ReportAProblem(childComplexity, args["input"].(model.ReportAProblemInput)), true - - case "Mutation.sendFeedbackEmail": - if e.complexity.Mutation.SendFeedbackEmail == nil { - break - } - - args, err := ec.field_Mutation_sendFeedbackEmail_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.SendFeedbackEmail(childComplexity, args["input"].(model.SendFeedbackEmailInput)), true - - case "Mutation.shareModelPlan": - if e.complexity.Mutation.ShareModelPlan == nil { - break - } - - args, err := ec.field_Mutation_shareModelPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.ShareModelPlan(childComplexity, args["modelPlanID"].(uuid.UUID), args["viewFilter"].(*models.ModelViewFilter), args["usernames"].([]string), args["optionalMessage"].(*string)), true - - case "Mutation.unlockAllLockableSections": - if e.complexity.Mutation.UnlockAllLockableSections == nil { - break - } - - args, err := ec.field_Mutation_unlockAllLockableSections_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UnlockAllLockableSections(childComplexity, args["modelPlanID"].(uuid.UUID)), true - - case "Mutation.unlockLockableSection": - if e.complexity.Mutation.UnlockLockableSection == nil { - break - } - - args, err := ec.field_Mutation_unlockLockableSection_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UnlockLockableSection(childComplexity, args["modelPlanID"].(uuid.UUID), args["section"].(models.LockableSection)), true - - case "Mutation.updateCustomOperationalNeedByID": - if e.complexity.Mutation.UpdateCustomOperationalNeedByID == nil { - break - } - - args, err := ec.field_Mutation_updateCustomOperationalNeedByID_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateCustomOperationalNeedByID(childComplexity, args["id"].(uuid.UUID), args["customNeedType"].(*string), args["needed"].(bool)), true - - case "Mutation.updateExistingModelLinks": - if e.complexity.Mutation.UpdateExistingModelLinks == nil { - break - } - - args, err := ec.field_Mutation_updateExistingModelLinks_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateExistingModelLinks(childComplexity, args["modelPlanID"].(uuid.UUID), args["fieldName"].(models.ExisitingModelLinkFieldType), args["existingModelIDs"].([]int), args["currentModelPlanIDs"].([]uuid.UUID)), true - - case "Mutation.updateMTOMilestone": - if e.complexity.Mutation.UpdateMTOMilestone == nil { - break - } - - args, err := ec.field_Mutation_updateMTOMilestone_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateMTOMilestone(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updateMTOSolution": - if e.complexity.Mutation.UpdateMTOSolution == nil { - break - } - - args, err := ec.field_Mutation_updateMTOSolution_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateMTOSolution(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updateModelPlan": - if e.complexity.Mutation.UpdateModelPlan == nil { - break - } - - args, err := ec.field_Mutation_updateModelPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateModelPlan(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updateOperationalSolution": - if e.complexity.Mutation.UpdateOperationalSolution == nil { - break - } - - args, err := ec.field_Mutation_updateOperationalSolution_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateOperationalSolution(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updateOperationalSolutionSubtasks": - if e.complexity.Mutation.UpdateOperationalSolutionSubtasks == nil { - break - } - - args, err := ec.field_Mutation_updateOperationalSolutionSubtasks_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateOperationalSolutionSubtasks(childComplexity, args["inputs"].([]*model.UpdateOperationalSolutionSubtaskInput)), true - - case "Mutation.updatePlanBasics": - if e.complexity.Mutation.UpdatePlanBasics == nil { - break - } - - args, err := ec.field_Mutation_updatePlanBasics_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanBasics(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updatePlanBeneficiaries": - if e.complexity.Mutation.UpdatePlanBeneficiaries == nil { - break - } - - args, err := ec.field_Mutation_updatePlanBeneficiaries_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanBeneficiaries(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updatePlanCollaborator": - if e.complexity.Mutation.UpdatePlanCollaborator == nil { - break - } - - args, err := ec.field_Mutation_updatePlanCollaborator_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanCollaborator(childComplexity, args["id"].(uuid.UUID), args["newRoles"].([]models.TeamRole)), true - - case "Mutation.updatePlanCR": - if e.complexity.Mutation.UpdatePlanCr == nil { - break - } - - args, err := ec.field_Mutation_updatePlanCR_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanCr(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updatePlanDataExchangeApproach": - if e.complexity.Mutation.UpdatePlanDataExchangeApproach == nil { - break - } - - args, err := ec.field_Mutation_updatePlanDataExchangeApproach_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanDataExchangeApproach(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updatePlanGeneralCharacteristics": - if e.complexity.Mutation.UpdatePlanGeneralCharacteristics == nil { - break - } - - args, err := ec.field_Mutation_updatePlanGeneralCharacteristics_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanGeneralCharacteristics(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updatePlanOpsEvalAndLearning": - if e.complexity.Mutation.UpdatePlanOpsEvalAndLearning == nil { - break - } - - args, err := ec.field_Mutation_updatePlanOpsEvalAndLearning_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanOpsEvalAndLearning(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updatePlanParticipantsAndProviders": - if e.complexity.Mutation.UpdatePlanParticipantsAndProviders == nil { - break - } - - args, err := ec.field_Mutation_updatePlanParticipantsAndProviders_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanParticipantsAndProviders(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updatePlanPayments": - if e.complexity.Mutation.UpdatePlanPayments == nil { - break - } - - args, err := ec.field_Mutation_updatePlanPayments_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanPayments(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updatePlanTDL": - if e.complexity.Mutation.UpdatePlanTdl == nil { - break - } - - args, err := ec.field_Mutation_updatePlanTDL_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePlanTdl(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true - - case "Mutation.updateUserNotificationPreferences": - if e.complexity.Mutation.UpdateUserNotificationPreferences == nil { - break - } - - args, err := ec.field_Mutation_updateUserNotificationPreferences_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateUserNotificationPreferences(childComplexity, args["changes"].(map[string]interface{})), true - - case "Mutation.updateUserViewCustomization": - if e.complexity.Mutation.UpdateUserViewCustomization == nil { - break - } - - args, err := ec.field_Mutation_updateUserViewCustomization_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateUserViewCustomization(childComplexity, args["changes"].(map[string]interface{})), true - - case "Mutation.uploadNewPlanDocument": - if e.complexity.Mutation.UploadNewPlanDocument == nil { - break - } - - args, err := ec.field_Mutation_uploadNewPlanDocument_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UploadNewPlanDocument(childComplexity, args["input"].(model.PlanDocumentInput)), true - - case "NDAInfo.agreed": - if e.complexity.NDAInfo.Agreed == nil { - break - } - - return e.complexity.NDAInfo.Agreed(childComplexity), true - - case "NDAInfo.agreedDts": - if e.complexity.NDAInfo.AgreedDts == nil { - break - } - - return e.complexity.NDAInfo.AgreedDts(childComplexity), true - - case "NewDiscussionRepliedActivityMeta.content": - if e.complexity.NewDiscussionRepliedActivityMeta.Content == nil { - break - } - - return e.complexity.NewDiscussionRepliedActivityMeta.Content(childComplexity), true - - case "NewDiscussionRepliedActivityMeta.discussion": - if e.complexity.NewDiscussionRepliedActivityMeta.Discussion == nil { - break - } - - return e.complexity.NewDiscussionRepliedActivityMeta.Discussion(childComplexity), true - - case "NewDiscussionRepliedActivityMeta.discussionID": - if e.complexity.NewDiscussionRepliedActivityMeta.DiscussionID == nil { - break - } - - return e.complexity.NewDiscussionRepliedActivityMeta.DiscussionID(childComplexity), true - - case "NewDiscussionRepliedActivityMeta.modelPlan": - if e.complexity.NewDiscussionRepliedActivityMeta.ModelPlan == nil { - break - } - - return e.complexity.NewDiscussionRepliedActivityMeta.ModelPlan(childComplexity), true - - case "NewDiscussionRepliedActivityMeta.modelPlanID": - if e.complexity.NewDiscussionRepliedActivityMeta.ModelPlanID == nil { - break - } - - return e.complexity.NewDiscussionRepliedActivityMeta.ModelPlanID(childComplexity), true - - case "NewDiscussionRepliedActivityMeta.reply": - if e.complexity.NewDiscussionRepliedActivityMeta.Reply == nil { - break - } - - return e.complexity.NewDiscussionRepliedActivityMeta.Reply(childComplexity), true - - case "NewDiscussionRepliedActivityMeta.replyID": - if e.complexity.NewDiscussionRepliedActivityMeta.ReplyID == nil { - break - } - - return e.complexity.NewDiscussionRepliedActivityMeta.ReplyID(childComplexity), true - - case "NewDiscussionRepliedActivityMeta.type": - if e.complexity.NewDiscussionRepliedActivityMeta.Type == nil { - break - } - - return e.complexity.NewDiscussionRepliedActivityMeta.Type(childComplexity), true - - case "NewDiscussionRepliedActivityMeta.version": - if e.complexity.NewDiscussionRepliedActivityMeta.Version == nil { - break - } - - return e.complexity.NewDiscussionRepliedActivityMeta.Version(childComplexity), true - - case "NewModelPlanActivityMeta.modelPlan": - if e.complexity.NewModelPlanActivityMeta.ModelPlan == nil { - break - } - - return e.complexity.NewModelPlanActivityMeta.ModelPlan(childComplexity), true - - case "NewModelPlanActivityMeta.modelPlanID": - if e.complexity.NewModelPlanActivityMeta.ModelPlanID == nil { - break - } - - return e.complexity.NewModelPlanActivityMeta.ModelPlanID(childComplexity), true - - case "NewModelPlanActivityMeta.type": - if e.complexity.NewModelPlanActivityMeta.Type == nil { - break - } - - return e.complexity.NewModelPlanActivityMeta.Type(childComplexity), true - - case "NewModelPlanActivityMeta.version": - if e.complexity.NewModelPlanActivityMeta.Version == nil { - break - } - - return e.complexity.NewModelPlanActivityMeta.Version(childComplexity), true - - case "OperationalNeed.createdBy": - if e.complexity.OperationalNeed.CreatedBy == nil { - break - } - - return e.complexity.OperationalNeed.CreatedBy(childComplexity), true - - case "OperationalNeed.createdByUserAccount": - if e.complexity.OperationalNeed.CreatedByUserAccount == nil { - break - } - - return e.complexity.OperationalNeed.CreatedByUserAccount(childComplexity), true - - case "OperationalNeed.createdDts": - if e.complexity.OperationalNeed.CreatedDts == nil { - break - } - - return e.complexity.OperationalNeed.CreatedDts(childComplexity), true - - case "OperationalNeed.id": - if e.complexity.OperationalNeed.ID == nil { - break - } - - return e.complexity.OperationalNeed.ID(childComplexity), true - - case "OperationalNeed.key": - if e.complexity.OperationalNeed.Key == nil { - break - } - - return e.complexity.OperationalNeed.Key(childComplexity), true - - case "OperationalNeed.modelPlanID": - if e.complexity.OperationalNeed.ModelPlanID == nil { - break - } - - return e.complexity.OperationalNeed.ModelPlanID(childComplexity), true - - case "OperationalNeed.modifiedBy": - if e.complexity.OperationalNeed.ModifiedBy == nil { - break - } - - return e.complexity.OperationalNeed.ModifiedBy(childComplexity), true - - case "OperationalNeed.modifiedByUserAccount": - if e.complexity.OperationalNeed.ModifiedByUserAccount == nil { - break - } - - return e.complexity.OperationalNeed.ModifiedByUserAccount(childComplexity), true - - case "OperationalNeed.modifiedDts": - if e.complexity.OperationalNeed.ModifiedDts == nil { - break - } - - return e.complexity.OperationalNeed.ModifiedDts(childComplexity), true - - case "OperationalNeed.name": - if e.complexity.OperationalNeed.Name == nil { - break - } - - return e.complexity.OperationalNeed.Name(childComplexity), true - - case "OperationalNeed.nameOther": - if e.complexity.OperationalNeed.NameOther == nil { - break - } - - return e.complexity.OperationalNeed.NameOther(childComplexity), true - - case "OperationalNeed.needed": - if e.complexity.OperationalNeed.Needed == nil { - break - } - - return e.complexity.OperationalNeed.Needed(childComplexity), true - - case "OperationalNeed.section": - if e.complexity.OperationalNeed.Section == nil { - break - } - - return e.complexity.OperationalNeed.Section(childComplexity), true - - case "OperationalNeed.solutions": - if e.complexity.OperationalNeed.Solutions == nil { - break - } - - args, err := ec.field_OperationalNeed_solutions_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.OperationalNeed.Solutions(childComplexity, args["includeNotNeeded"].(bool)), true - - case "OperationalNeedTranslation.key": - if e.complexity.OperationalNeedTranslation.Key == nil { - break - } - - return e.complexity.OperationalNeedTranslation.Key(childComplexity), true - - case "OperationalNeedTranslation.name": - if e.complexity.OperationalNeedTranslation.Name == nil { - break - } - - return e.complexity.OperationalNeedTranslation.Name(childComplexity), true - - case "OperationalNeedTranslation.nameOther": - if e.complexity.OperationalNeedTranslation.NameOther == nil { - break - } - - return e.complexity.OperationalNeedTranslation.NameOther(childComplexity), true - - case "OperationalNeedTranslation.needed": - if e.complexity.OperationalNeedTranslation.Needed == nil { - break - } - - return e.complexity.OperationalNeedTranslation.Needed(childComplexity), true - - case "OperationalNeedTranslation.section": - if e.complexity.OperationalNeedTranslation.Section == nil { - break - } - - return e.complexity.OperationalNeedTranslation.Section(childComplexity), true - - case "OperationalSolution.createdBy": - if e.complexity.OperationalSolution.CreatedBy == nil { - break - } - - return e.complexity.OperationalSolution.CreatedBy(childComplexity), true - - case "OperationalSolution.createdByUserAccount": - if e.complexity.OperationalSolution.CreatedByUserAccount == nil { - break - } - - return e.complexity.OperationalSolution.CreatedByUserAccount(childComplexity), true - - case "OperationalSolution.createdDts": - if e.complexity.OperationalSolution.CreatedDts == nil { - break - } - - return e.complexity.OperationalSolution.CreatedDts(childComplexity), true - - case "OperationalSolution.documents": - if e.complexity.OperationalSolution.Documents == nil { - break - } - - return e.complexity.OperationalSolution.Documents(childComplexity), true - - case "OperationalSolution.id": - if e.complexity.OperationalSolution.ID == nil { - break - } - - return e.complexity.OperationalSolution.ID(childComplexity), true - - case "OperationalSolution.isCommonSolution": - if e.complexity.OperationalSolution.IsCommonSolution == nil { - break - } - - return e.complexity.OperationalSolution.IsCommonSolution(childComplexity), true - - case "OperationalSolution.isOther": - if e.complexity.OperationalSolution.IsOther == nil { - break - } - - return e.complexity.OperationalSolution.IsOther(childComplexity), true - - case "OperationalSolution.key": - if e.complexity.OperationalSolution.Key == nil { - break - } - - return e.complexity.OperationalSolution.Key(childComplexity), true - - case "OperationalSolution.modifiedBy": - if e.complexity.OperationalSolution.ModifiedBy == nil { - break - } - - return e.complexity.OperationalSolution.ModifiedBy(childComplexity), true - - case "OperationalSolution.modifiedByUserAccount": - if e.complexity.OperationalSolution.ModifiedByUserAccount == nil { - break - } - - return e.complexity.OperationalSolution.ModifiedByUserAccount(childComplexity), true - - case "OperationalSolution.modifiedDts": - if e.complexity.OperationalSolution.ModifiedDts == nil { - break - } - - return e.complexity.OperationalSolution.ModifiedDts(childComplexity), true - - case "OperationalSolution.mustFinishDts": - if e.complexity.OperationalSolution.MustFinishDts == nil { - break - } - - return e.complexity.OperationalSolution.MustFinishDts(childComplexity), true - - case "OperationalSolution.mustStartDts": - if e.complexity.OperationalSolution.MustStartDts == nil { - break - } - - return e.complexity.OperationalSolution.MustStartDts(childComplexity), true - - case "OperationalSolution.name": - if e.complexity.OperationalSolution.Name == nil { - break - } - - return e.complexity.OperationalSolution.Name(childComplexity), true - - case "OperationalSolution.nameOther": - if e.complexity.OperationalSolution.NameOther == nil { - break - } - - return e.complexity.OperationalSolution.NameOther(childComplexity), true - - case "OperationalSolution.needed": - if e.complexity.OperationalSolution.Needed == nil { - break - } - - return e.complexity.OperationalSolution.Needed(childComplexity), true - - case "OperationalSolution.operationalNeedID": - if e.complexity.OperationalSolution.OperationalNeedID == nil { - break - } - - return e.complexity.OperationalSolution.OperationalNeedID(childComplexity), true - - case "OperationalSolution.operationalSolutionSubtasks": - if e.complexity.OperationalSolution.OperationalSolutionSubtasks == nil { - break - } - - return e.complexity.OperationalSolution.OperationalSolutionSubtasks(childComplexity), true - - case "OperationalSolution.otherHeader": - if e.complexity.OperationalSolution.OtherHeader == nil { - break - } - - return e.complexity.OperationalSolution.OtherHeader(childComplexity), true - - case "OperationalSolution.pocEmail": - if e.complexity.OperationalSolution.PocEmail == nil { - break - } - - return e.complexity.OperationalSolution.PocEmail(childComplexity), true - - case "OperationalSolution.pocName": - if e.complexity.OperationalSolution.PocName == nil { - break - } - - return e.complexity.OperationalSolution.PocName(childComplexity), true - - case "OperationalSolution.solutionType": - if e.complexity.OperationalSolution.SolutionType == nil { - break - } - - return e.complexity.OperationalSolution.SolutionType(childComplexity), true - - case "OperationalSolution.status": - if e.complexity.OperationalSolution.Status == nil { - break - } - - return e.complexity.OperationalSolution.Status(childComplexity), true - - case "OperationalSolutionSubtask.createdBy": - if e.complexity.OperationalSolutionSubtask.CreatedBy == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.CreatedBy(childComplexity), true - - case "OperationalSolutionSubtask.createdByUserAccount": - if e.complexity.OperationalSolutionSubtask.CreatedByUserAccount == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.CreatedByUserAccount(childComplexity), true - - case "OperationalSolutionSubtask.createdDts": - if e.complexity.OperationalSolutionSubtask.CreatedDts == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.CreatedDts(childComplexity), true - - case "OperationalSolutionSubtask.id": - if e.complexity.OperationalSolutionSubtask.ID == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.ID(childComplexity), true - - case "OperationalSolutionSubtask.modifiedBy": - if e.complexity.OperationalSolutionSubtask.ModifiedBy == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.ModifiedBy(childComplexity), true - - case "OperationalSolutionSubtask.modifiedByUserAccount": - if e.complexity.OperationalSolutionSubtask.ModifiedByUserAccount == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.ModifiedByUserAccount(childComplexity), true - - case "OperationalSolutionSubtask.modifiedDts": - if e.complexity.OperationalSolutionSubtask.ModifiedDts == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.ModifiedDts(childComplexity), true - - case "OperationalSolutionSubtask.name": - if e.complexity.OperationalSolutionSubtask.Name == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.Name(childComplexity), true - - case "OperationalSolutionSubtask.solutionID": - if e.complexity.OperationalSolutionSubtask.SolutionID == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.SolutionID(childComplexity), true - - case "OperationalSolutionSubtask.status": - if e.complexity.OperationalSolutionSubtask.Status == nil { - break - } - - return e.complexity.OperationalSolutionSubtask.Status(childComplexity), true - - case "OperationalSolutionSubtaskTranslation.name": - if e.complexity.OperationalSolutionSubtaskTranslation.Name == nil { - break - } - - return e.complexity.OperationalSolutionSubtaskTranslation.Name(childComplexity), true - - case "OperationalSolutionSubtaskTranslation.status": - if e.complexity.OperationalSolutionSubtaskTranslation.Status == nil { - break - } - - return e.complexity.OperationalSolutionSubtaskTranslation.Status(childComplexity), true - - case "OperationalSolutionTranslation.isOther": - if e.complexity.OperationalSolutionTranslation.IsOther == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.IsOther(childComplexity), true - - case "OperationalSolutionTranslation.key": - if e.complexity.OperationalSolutionTranslation.Key == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.Key(childComplexity), true - - case "OperationalSolutionTranslation.mustFinishDts": - if e.complexity.OperationalSolutionTranslation.MustFinishDts == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.MustFinishDts(childComplexity), true - - case "OperationalSolutionTranslation.mustStartDts": - if e.complexity.OperationalSolutionTranslation.MustStartDts == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.MustStartDts(childComplexity), true - - case "OperationalSolutionTranslation.name": - if e.complexity.OperationalSolutionTranslation.Name == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.Name(childComplexity), true - - case "OperationalSolutionTranslation.nameOther": - if e.complexity.OperationalSolutionTranslation.NameOther == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.NameOther(childComplexity), true - - case "OperationalSolutionTranslation.needed": - if e.complexity.OperationalSolutionTranslation.Needed == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.Needed(childComplexity), true - - case "OperationalSolutionTranslation.otherHeader": - if e.complexity.OperationalSolutionTranslation.OtherHeader == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.OtherHeader(childComplexity), true - - case "OperationalSolutionTranslation.pocEmail": - if e.complexity.OperationalSolutionTranslation.PocEmail == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.PocEmail(childComplexity), true - - case "OperationalSolutionTranslation.pocName": - if e.complexity.OperationalSolutionTranslation.PocName == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.PocName(childComplexity), true - - case "OperationalSolutionTranslation.status": - if e.complexity.OperationalSolutionTranslation.Status == nil { - break - } - - return e.complexity.OperationalSolutionTranslation.Status(childComplexity), true - - case "PhaseSuggestion.phase": - if e.complexity.PhaseSuggestion.Phase == nil { - break - } - - return e.complexity.PhaseSuggestion.Phase(childComplexity), true - - case "PhaseSuggestion.suggestedStatuses": - if e.complexity.PhaseSuggestion.SuggestedStatuses == nil { - break - } - - return e.complexity.PhaseSuggestion.SuggestedStatuses(childComplexity), true - - case "PlanBasics.additionalModelCategories": - if e.complexity.PlanBasics.AdditionalModelCategories == nil { - break - } - - return e.complexity.PlanBasics.AdditionalModelCategories(childComplexity), true - - case "PlanBasics.amsModelID": - if e.complexity.PlanBasics.AmsModelID == nil { - break - } - - return e.complexity.PlanBasics.AmsModelID(childComplexity), true - - case "PlanBasics.announced": - if e.complexity.PlanBasics.Announced == nil { - break - } - - return e.complexity.PlanBasics.Announced(childComplexity), true - - case "PlanBasics.applicationsEnd": - if e.complexity.PlanBasics.ApplicationsEnd == nil { - break - } - - return e.complexity.PlanBasics.ApplicationsEnd(childComplexity), true - - case "PlanBasics.applicationsStart": - if e.complexity.PlanBasics.ApplicationsStart == nil { - break - } - - return e.complexity.PlanBasics.ApplicationsStart(childComplexity), true - - case "PlanBasics.clearanceEnds": - if e.complexity.PlanBasics.ClearanceEnds == nil { - break - } - - return e.complexity.PlanBasics.ClearanceEnds(childComplexity), true - - case "PlanBasics.clearanceStarts": - if e.complexity.PlanBasics.ClearanceStarts == nil { - break - } - - return e.complexity.PlanBasics.ClearanceStarts(childComplexity), true - - case "PlanBasics.cmmiGroups": - if e.complexity.PlanBasics.CmmiGroups == nil { - break - } - - return e.complexity.PlanBasics.CmmiGroups(childComplexity), true - - case "PlanBasics.cmsCenters": - if e.complexity.PlanBasics.CmsCenters == nil { - break - } - - return e.complexity.PlanBasics.CmsCenters(childComplexity), true - - case "PlanBasics.completeICIP": - if e.complexity.PlanBasics.CompleteICIP == nil { - break - } - - return e.complexity.PlanBasics.CompleteICIP(childComplexity), true - - case "PlanBasics.createdBy": - if e.complexity.PlanBasics.CreatedBy == nil { - break - } - - return e.complexity.PlanBasics.CreatedBy(childComplexity), true - - case "PlanBasics.createdByUserAccount": - if e.complexity.PlanBasics.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanBasics.CreatedByUserAccount(childComplexity), true - - case "PlanBasics.createdDts": - if e.complexity.PlanBasics.CreatedDts == nil { - break - } - - return e.complexity.PlanBasics.CreatedDts(childComplexity), true - - case "PlanBasics.demoCode": - if e.complexity.PlanBasics.DemoCode == nil { - break - } - - return e.complexity.PlanBasics.DemoCode(childComplexity), true - - case "PlanBasics.goal": - if e.complexity.PlanBasics.Goal == nil { - break - } - - return e.complexity.PlanBasics.Goal(childComplexity), true - - case "PlanBasics.highLevelNote": - if e.complexity.PlanBasics.HighLevelNote == nil { - break - } - - return e.complexity.PlanBasics.HighLevelNote(childComplexity), true - - case "PlanBasics.id": - if e.complexity.PlanBasics.ID == nil { - break - } - - return e.complexity.PlanBasics.ID(childComplexity), true - - case "PlanBasics.modelCategory": - if e.complexity.PlanBasics.ModelCategory == nil { - break - } - - return e.complexity.PlanBasics.ModelCategory(childComplexity), true - - case "PlanBasics.modelPlanID": - if e.complexity.PlanBasics.ModelPlanID == nil { - break - } - - return e.complexity.PlanBasics.ModelPlanID(childComplexity), true - - case "PlanBasics.modelType": - if e.complexity.PlanBasics.ModelType == nil { - break - } - - return e.complexity.PlanBasics.ModelType(childComplexity), true - - case "PlanBasics.modelTypeOther": - if e.complexity.PlanBasics.ModelTypeOther == nil { - break - } - - return e.complexity.PlanBasics.ModelTypeOther(childComplexity), true - - case "PlanBasics.modifiedBy": - if e.complexity.PlanBasics.ModifiedBy == nil { - break - } - - return e.complexity.PlanBasics.ModifiedBy(childComplexity), true - - case "PlanBasics.modifiedByUserAccount": - if e.complexity.PlanBasics.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanBasics.ModifiedByUserAccount(childComplexity), true - - case "PlanBasics.modifiedDts": - if e.complexity.PlanBasics.ModifiedDts == nil { - break - } - - return e.complexity.PlanBasics.ModifiedDts(childComplexity), true - - case "PlanBasics.note": - if e.complexity.PlanBasics.Note == nil { - break - } - - return e.complexity.PlanBasics.Note(childComplexity), true - - case "PlanBasics.performancePeriodEnds": - if e.complexity.PlanBasics.PerformancePeriodEnds == nil { - break - } - - return e.complexity.PlanBasics.PerformancePeriodEnds(childComplexity), true - - case "PlanBasics.performancePeriodStarts": - if e.complexity.PlanBasics.PerformancePeriodStarts == nil { - break - } - - return e.complexity.PlanBasics.PerformancePeriodStarts(childComplexity), true - - case "PlanBasics.phasedIn": - if e.complexity.PlanBasics.PhasedIn == nil { - break - } - - return e.complexity.PlanBasics.PhasedIn(childComplexity), true - - case "PlanBasics.phasedInNote": - if e.complexity.PlanBasics.PhasedInNote == nil { - break - } - - return e.complexity.PlanBasics.PhasedInNote(childComplexity), true - - case "PlanBasics.problem": - if e.complexity.PlanBasics.Problem == nil { - break - } - - return e.complexity.PlanBasics.Problem(childComplexity), true - - case "PlanBasics.readyForClearanceBy": - if e.complexity.PlanBasics.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanBasics.ReadyForClearanceBy(childComplexity), true - - case "PlanBasics.readyForClearanceByUserAccount": - if e.complexity.PlanBasics.ReadyForClearanceByUserAccount == nil { - break - } - - return e.complexity.PlanBasics.ReadyForClearanceByUserAccount(childComplexity), true - - case "PlanBasics.readyForClearanceDts": - if e.complexity.PlanBasics.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanBasics.ReadyForClearanceDts(childComplexity), true - - case "PlanBasics.readyForReviewBy": - if e.complexity.PlanBasics.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanBasics.ReadyForReviewBy(childComplexity), true - - case "PlanBasics.readyForReviewByUserAccount": - if e.complexity.PlanBasics.ReadyForReviewByUserAccount == nil { - break - } - - return e.complexity.PlanBasics.ReadyForReviewByUserAccount(childComplexity), true - - case "PlanBasics.readyForReviewDts": - if e.complexity.PlanBasics.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanBasics.ReadyForReviewDts(childComplexity), true - - case "PlanBasics.status": - if e.complexity.PlanBasics.Status == nil { - break - } - - return e.complexity.PlanBasics.Status(childComplexity), true - - case "PlanBasics.testInterventions": - if e.complexity.PlanBasics.TestInterventions == nil { - break - } - - return e.complexity.PlanBasics.TestInterventions(childComplexity), true - - case "PlanBasics.wrapUpEnds": - if e.complexity.PlanBasics.WrapUpEnds == nil { - break - } - - return e.complexity.PlanBasics.WrapUpEnds(childComplexity), true - - case "PlanBasicsTranslation.additionalModelCategories": - if e.complexity.PlanBasicsTranslation.AdditionalModelCategories == nil { - break - } - - return e.complexity.PlanBasicsTranslation.AdditionalModelCategories(childComplexity), true - - case "PlanBasicsTranslation.amsModelID": - if e.complexity.PlanBasicsTranslation.AmsModelID == nil { - break - } - - return e.complexity.PlanBasicsTranslation.AmsModelID(childComplexity), true - - case "PlanBasicsTranslation.announced": - if e.complexity.PlanBasicsTranslation.Announced == nil { - break - } - - return e.complexity.PlanBasicsTranslation.Announced(childComplexity), true - - case "PlanBasicsTranslation.applicationsEnd": - if e.complexity.PlanBasicsTranslation.ApplicationsEnd == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ApplicationsEnd(childComplexity), true - - case "PlanBasicsTranslation.applicationsStart": - if e.complexity.PlanBasicsTranslation.ApplicationsStart == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ApplicationsStart(childComplexity), true - - case "PlanBasicsTranslation.clearanceEnds": - if e.complexity.PlanBasicsTranslation.ClearanceEnds == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ClearanceEnds(childComplexity), true - - case "PlanBasicsTranslation.clearanceStarts": - if e.complexity.PlanBasicsTranslation.ClearanceStarts == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ClearanceStarts(childComplexity), true - - case "PlanBasicsTranslation.cmmiGroups": - if e.complexity.PlanBasicsTranslation.CmmiGroups == nil { - break - } - - return e.complexity.PlanBasicsTranslation.CmmiGroups(childComplexity), true - - case "PlanBasicsTranslation.cmsCenters": - if e.complexity.PlanBasicsTranslation.CmsCenters == nil { - break - } - - return e.complexity.PlanBasicsTranslation.CmsCenters(childComplexity), true - - case "PlanBasicsTranslation.completeICIP": - if e.complexity.PlanBasicsTranslation.CompleteIcip == nil { - break - } - - return e.complexity.PlanBasicsTranslation.CompleteIcip(childComplexity), true - - case "PlanBasicsTranslation.demoCode": - if e.complexity.PlanBasicsTranslation.DemoCode == nil { - break - } - - return e.complexity.PlanBasicsTranslation.DemoCode(childComplexity), true - - case "PlanBasicsTranslation.goal": - if e.complexity.PlanBasicsTranslation.Goal == nil { - break - } - - return e.complexity.PlanBasicsTranslation.Goal(childComplexity), true - - case "PlanBasicsTranslation.highLevelNote": - if e.complexity.PlanBasicsTranslation.HighLevelNote == nil { - break - } - - return e.complexity.PlanBasicsTranslation.HighLevelNote(childComplexity), true - - case "PlanBasicsTranslation.modelCategory": - if e.complexity.PlanBasicsTranslation.ModelCategory == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ModelCategory(childComplexity), true - - case "PlanBasicsTranslation.modelType": - if e.complexity.PlanBasicsTranslation.ModelType == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ModelType(childComplexity), true - - case "PlanBasicsTranslation.modelTypeOther": - if e.complexity.PlanBasicsTranslation.ModelTypeOther == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ModelTypeOther(childComplexity), true - - case "PlanBasicsTranslation.note": - if e.complexity.PlanBasicsTranslation.Note == nil { - break - } - - return e.complexity.PlanBasicsTranslation.Note(childComplexity), true - - case "PlanBasicsTranslation.performancePeriodEnds": - if e.complexity.PlanBasicsTranslation.PerformancePeriodEnds == nil { - break - } - - return e.complexity.PlanBasicsTranslation.PerformancePeriodEnds(childComplexity), true - - case "PlanBasicsTranslation.performancePeriodStarts": - if e.complexity.PlanBasicsTranslation.PerformancePeriodStarts == nil { - break - } - - return e.complexity.PlanBasicsTranslation.PerformancePeriodStarts(childComplexity), true - - case "PlanBasicsTranslation.phasedIn": - if e.complexity.PlanBasicsTranslation.PhasedIn == nil { - break - } - - return e.complexity.PlanBasicsTranslation.PhasedIn(childComplexity), true - - case "PlanBasicsTranslation.phasedInNote": - if e.complexity.PlanBasicsTranslation.PhasedInNote == nil { - break - } - - return e.complexity.PlanBasicsTranslation.PhasedInNote(childComplexity), true - - case "PlanBasicsTranslation.problem": - if e.complexity.PlanBasicsTranslation.Problem == nil { - break - } - - return e.complexity.PlanBasicsTranslation.Problem(childComplexity), true - - case "PlanBasicsTranslation.readyForClearanceBy": - if e.complexity.PlanBasicsTranslation.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ReadyForClearanceBy(childComplexity), true - - case "PlanBasicsTranslation.readyForClearanceDts": - if e.complexity.PlanBasicsTranslation.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ReadyForClearanceDts(childComplexity), true - - case "PlanBasicsTranslation.readyForReviewBy": - if e.complexity.PlanBasicsTranslation.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ReadyForReviewBy(childComplexity), true - - case "PlanBasicsTranslation.readyForReviewDts": - if e.complexity.PlanBasicsTranslation.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanBasicsTranslation.ReadyForReviewDts(childComplexity), true - - case "PlanBasicsTranslation.status": - if e.complexity.PlanBasicsTranslation.Status == nil { - break - } - - return e.complexity.PlanBasicsTranslation.Status(childComplexity), true - - case "PlanBasicsTranslation.testInterventions": - if e.complexity.PlanBasicsTranslation.TestInterventions == nil { - break - } - - return e.complexity.PlanBasicsTranslation.TestInterventions(childComplexity), true - - case "PlanBasicsTranslation.wrapUpEnds": - if e.complexity.PlanBasicsTranslation.WrapUpEnds == nil { - break - } - - return e.complexity.PlanBasicsTranslation.WrapUpEnds(childComplexity), true - - case "PlanBeneficiaries.beneficiaries": - if e.complexity.PlanBeneficiaries.Beneficiaries == nil { - break - } - - return e.complexity.PlanBeneficiaries.Beneficiaries(childComplexity), true - - case "PlanBeneficiaries.beneficiariesNote": - if e.complexity.PlanBeneficiaries.BeneficiariesNote == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiariesNote(childComplexity), true - - case "PlanBeneficiaries.beneficiariesOther": - if e.complexity.PlanBeneficiaries.BeneficiariesOther == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiariesOther(childComplexity), true - - case "PlanBeneficiaries.beneficiaryOverlap": - if e.complexity.PlanBeneficiaries.BeneficiaryOverlap == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiaryOverlap(childComplexity), true - - case "PlanBeneficiaries.beneficiaryOverlapNote": - if e.complexity.PlanBeneficiaries.BeneficiaryOverlapNote == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiaryOverlapNote(childComplexity), true - - case "PlanBeneficiaries.beneficiaryRemovalFrequency": - if e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequency == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequency(childComplexity), true - - case "PlanBeneficiaries.beneficiaryRemovalFrequencyContinually": - if e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyContinually == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyContinually(childComplexity), true - - case "PlanBeneficiaries.beneficiaryRemovalFrequencyNote": - if e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyNote == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyNote(childComplexity), true - - case "PlanBeneficiaries.beneficiaryRemovalFrequencyOther": - if e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyOther == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyOther(childComplexity), true - - case "PlanBeneficiaries.beneficiarySelectionFrequency": - if e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequency == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequency(childComplexity), true - - case "PlanBeneficiaries.beneficiarySelectionFrequencyContinually": - if e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyContinually == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyContinually(childComplexity), true - - case "PlanBeneficiaries.beneficiarySelectionFrequencyNote": - if e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyNote == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyNote(childComplexity), true - - case "PlanBeneficiaries.beneficiarySelectionFrequencyOther": - if e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyOther == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyOther(childComplexity), true - - case "PlanBeneficiaries.beneficiarySelectionMethod": - if e.complexity.PlanBeneficiaries.BeneficiarySelectionMethod == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiarySelectionMethod(childComplexity), true - - case "PlanBeneficiaries.beneficiarySelectionNote": - if e.complexity.PlanBeneficiaries.BeneficiarySelectionNote == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiarySelectionNote(childComplexity), true - - case "PlanBeneficiaries.beneficiarySelectionOther": - if e.complexity.PlanBeneficiaries.BeneficiarySelectionOther == nil { - break - } - - return e.complexity.PlanBeneficiaries.BeneficiarySelectionOther(childComplexity), true - - case "PlanBeneficiaries.confidenceNote": - if e.complexity.PlanBeneficiaries.ConfidenceNote == nil { - break - } - - return e.complexity.PlanBeneficiaries.ConfidenceNote(childComplexity), true - - case "PlanBeneficiaries.createdBy": - if e.complexity.PlanBeneficiaries.CreatedBy == nil { - break - } - - return e.complexity.PlanBeneficiaries.CreatedBy(childComplexity), true - - case "PlanBeneficiaries.createdByUserAccount": - if e.complexity.PlanBeneficiaries.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanBeneficiaries.CreatedByUserAccount(childComplexity), true - - case "PlanBeneficiaries.createdDts": - if e.complexity.PlanBeneficiaries.CreatedDts == nil { - break - } - - return e.complexity.PlanBeneficiaries.CreatedDts(childComplexity), true - - case "PlanBeneficiaries.diseaseSpecificGroup": - if e.complexity.PlanBeneficiaries.DiseaseSpecificGroup == nil { - break - } - - return e.complexity.PlanBeneficiaries.DiseaseSpecificGroup(childComplexity), true - - case "PlanBeneficiaries.estimateConfidence": - if e.complexity.PlanBeneficiaries.EstimateConfidence == nil { - break - } - - return e.complexity.PlanBeneficiaries.EstimateConfidence(childComplexity), true - - case "PlanBeneficiaries.excludeCertainCharacteristics": - if e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristics == nil { - break - } - - return e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristics(childComplexity), true - - case "PlanBeneficiaries.excludeCertainCharacteristicsCriteria": - if e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristicsCriteria == nil { - break - } - - return e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristicsCriteria(childComplexity), true - - case "PlanBeneficiaries.excludeCertainCharacteristicsNote": - if e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristicsNote == nil { - break - } - - return e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristicsNote(childComplexity), true - - case "PlanBeneficiaries.id": - if e.complexity.PlanBeneficiaries.ID == nil { - break - } - - return e.complexity.PlanBeneficiaries.ID(childComplexity), true - - case "PlanBeneficiaries.modelPlanID": - if e.complexity.PlanBeneficiaries.ModelPlanID == nil { - break - } - - return e.complexity.PlanBeneficiaries.ModelPlanID(childComplexity), true - - case "PlanBeneficiaries.modifiedBy": - if e.complexity.PlanBeneficiaries.ModifiedBy == nil { - break - } - - return e.complexity.PlanBeneficiaries.ModifiedBy(childComplexity), true - - case "PlanBeneficiaries.modifiedByUserAccount": - if e.complexity.PlanBeneficiaries.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanBeneficiaries.ModifiedByUserAccount(childComplexity), true - - case "PlanBeneficiaries.modifiedDts": - if e.complexity.PlanBeneficiaries.ModifiedDts == nil { - break - } - - return e.complexity.PlanBeneficiaries.ModifiedDts(childComplexity), true - - case "PlanBeneficiaries.numberPeopleImpacted": - if e.complexity.PlanBeneficiaries.NumberPeopleImpacted == nil { - break - } - - return e.complexity.PlanBeneficiaries.NumberPeopleImpacted(childComplexity), true - - case "PlanBeneficiaries.precedenceRules": - if e.complexity.PlanBeneficiaries.PrecedenceRules == nil { - break - } - - return e.complexity.PlanBeneficiaries.PrecedenceRules(childComplexity), true - - case "PlanBeneficiaries.precedenceRulesNo": - if e.complexity.PlanBeneficiaries.PrecedenceRulesNo == nil { - break - } - - return e.complexity.PlanBeneficiaries.PrecedenceRulesNo(childComplexity), true - - case "PlanBeneficiaries.precedenceRulesNote": - if e.complexity.PlanBeneficiaries.PrecedenceRulesNote == nil { - break - } - - return e.complexity.PlanBeneficiaries.PrecedenceRulesNote(childComplexity), true - - case "PlanBeneficiaries.precedenceRulesYes": - if e.complexity.PlanBeneficiaries.PrecedenceRulesYes == nil { - break - } - - return e.complexity.PlanBeneficiaries.PrecedenceRulesYes(childComplexity), true - - case "PlanBeneficiaries.readyForClearanceBy": - if e.complexity.PlanBeneficiaries.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanBeneficiaries.ReadyForClearanceBy(childComplexity), true - - case "PlanBeneficiaries.readyForClearanceByUserAccount": - if e.complexity.PlanBeneficiaries.ReadyForClearanceByUserAccount == nil { - break - } - - return e.complexity.PlanBeneficiaries.ReadyForClearanceByUserAccount(childComplexity), true - - case "PlanBeneficiaries.readyForClearanceDts": - if e.complexity.PlanBeneficiaries.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanBeneficiaries.ReadyForClearanceDts(childComplexity), true - - case "PlanBeneficiaries.readyForReviewBy": - if e.complexity.PlanBeneficiaries.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanBeneficiaries.ReadyForReviewBy(childComplexity), true - - case "PlanBeneficiaries.readyForReviewByUserAccount": - if e.complexity.PlanBeneficiaries.ReadyForReviewByUserAccount == nil { - break - } - - return e.complexity.PlanBeneficiaries.ReadyForReviewByUserAccount(childComplexity), true - - case "PlanBeneficiaries.readyForReviewDts": - if e.complexity.PlanBeneficiaries.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanBeneficiaries.ReadyForReviewDts(childComplexity), true - - case "PlanBeneficiaries.status": - if e.complexity.PlanBeneficiaries.Status == nil { - break - } - - return e.complexity.PlanBeneficiaries.Status(childComplexity), true - - case "PlanBeneficiaries.treatDualElligibleDifferent": - if e.complexity.PlanBeneficiaries.TreatDualElligibleDifferent == nil { - break - } - - return e.complexity.PlanBeneficiaries.TreatDualElligibleDifferent(childComplexity), true - - case "PlanBeneficiaries.treatDualElligibleDifferentHow": - if e.complexity.PlanBeneficiaries.TreatDualElligibleDifferentHow == nil { - break - } - - return e.complexity.PlanBeneficiaries.TreatDualElligibleDifferentHow(childComplexity), true - - case "PlanBeneficiaries.treatDualElligibleDifferentNote": - if e.complexity.PlanBeneficiaries.TreatDualElligibleDifferentNote == nil { - break - } - - return e.complexity.PlanBeneficiaries.TreatDualElligibleDifferentNote(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiaries": - if e.complexity.PlanBeneficiariesTranslation.Beneficiaries == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.Beneficiaries(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiariesNote": - if e.complexity.PlanBeneficiariesTranslation.BeneficiariesNote == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiariesNote(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiariesOther": - if e.complexity.PlanBeneficiariesTranslation.BeneficiariesOther == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiariesOther(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiaryOverlap": - if e.complexity.PlanBeneficiariesTranslation.BeneficiaryOverlap == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiaryOverlap(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiaryOverlapNote": - if e.complexity.PlanBeneficiariesTranslation.BeneficiaryOverlapNote == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiaryOverlapNote(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiaryRemovalFrequency": - if e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequency == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequency(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiaryRemovalFrequencyContinually": - if e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyContinually == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyContinually(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiaryRemovalFrequencyNote": - if e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyNote == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyNote(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiaryRemovalFrequencyOther": - if e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyOther == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyOther(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiarySelectionFrequency": - if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequency == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequency(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiarySelectionFrequencyContinually": - if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyContinually == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyContinually(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiarySelectionFrequencyNote": - if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyNote == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyNote(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiarySelectionFrequencyOther": - if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyOther == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyOther(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiarySelectionMethod": - if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionMethod == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionMethod(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiarySelectionNote": - if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionNote == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionNote(childComplexity), true - - case "PlanBeneficiariesTranslation.beneficiarySelectionOther": - if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionOther == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionOther(childComplexity), true - - case "PlanBeneficiariesTranslation.confidenceNote": - if e.complexity.PlanBeneficiariesTranslation.ConfidenceNote == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.ConfidenceNote(childComplexity), true - - case "PlanBeneficiariesTranslation.diseaseSpecificGroup": - if e.complexity.PlanBeneficiariesTranslation.DiseaseSpecificGroup == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.DiseaseSpecificGroup(childComplexity), true - - case "PlanBeneficiariesTranslation.estimateConfidence": - if e.complexity.PlanBeneficiariesTranslation.EstimateConfidence == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.EstimateConfidence(childComplexity), true - - case "PlanBeneficiariesTranslation.excludeCertainCharacteristics": - if e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristics == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristics(childComplexity), true - - case "PlanBeneficiariesTranslation.excludeCertainCharacteristicsCriteria": - if e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristicsCriteria == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristicsCriteria(childComplexity), true - - case "PlanBeneficiariesTranslation.excludeCertainCharacteristicsNote": - if e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristicsNote == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristicsNote(childComplexity), true - - case "PlanBeneficiariesTranslation.numberPeopleImpacted": - if e.complexity.PlanBeneficiariesTranslation.NumberPeopleImpacted == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.NumberPeopleImpacted(childComplexity), true - - case "PlanBeneficiariesTranslation.precedenceRules": - if e.complexity.PlanBeneficiariesTranslation.PrecedenceRules == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.PrecedenceRules(childComplexity), true - - case "PlanBeneficiariesTranslation.precedenceRulesNo": - if e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesNo == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesNo(childComplexity), true - - case "PlanBeneficiariesTranslation.precedenceRulesNote": - if e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesNote == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesNote(childComplexity), true - - case "PlanBeneficiariesTranslation.precedenceRulesYes": - if e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesYes == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesYes(childComplexity), true - - case "PlanBeneficiariesTranslation.readyForClearanceBy": - if e.complexity.PlanBeneficiariesTranslation.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.ReadyForClearanceBy(childComplexity), true - - case "PlanBeneficiariesTranslation.readyForClearanceDts": - if e.complexity.PlanBeneficiariesTranslation.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.ReadyForClearanceDts(childComplexity), true - - case "PlanBeneficiariesTranslation.readyForReviewBy": - if e.complexity.PlanBeneficiariesTranslation.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.ReadyForReviewBy(childComplexity), true - - case "PlanBeneficiariesTranslation.readyForReviewDts": - if e.complexity.PlanBeneficiariesTranslation.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.ReadyForReviewDts(childComplexity), true - - case "PlanBeneficiariesTranslation.status": - if e.complexity.PlanBeneficiariesTranslation.Status == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.Status(childComplexity), true - - case "PlanBeneficiariesTranslation.treatDualElligibleDifferent": - if e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferent == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferent(childComplexity), true - - case "PlanBeneficiariesTranslation.treatDualElligibleDifferentHow": - if e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferentHow == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferentHow(childComplexity), true - - case "PlanBeneficiariesTranslation.treatDualElligibleDifferentNote": - if e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferentNote == nil { - break - } - - return e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferentNote(childComplexity), true - - case "PlanCR.createdBy": - if e.complexity.PlanCR.CreatedBy == nil { - break - } - - return e.complexity.PlanCR.CreatedBy(childComplexity), true - - case "PlanCR.createdByUserAccount": - if e.complexity.PlanCR.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanCR.CreatedByUserAccount(childComplexity), true - - case "PlanCR.createdDts": - if e.complexity.PlanCR.CreatedDts == nil { - break - } - - return e.complexity.PlanCR.CreatedDts(childComplexity), true - - case "PlanCR.dateImplemented": - if e.complexity.PlanCR.DateImplemented == nil { - break - } - - return e.complexity.PlanCR.DateImplemented(childComplexity), true - - case "PlanCR.dateInitiated": - if e.complexity.PlanCR.DateInitiated == nil { - break - } - - return e.complexity.PlanCR.DateInitiated(childComplexity), true - - case "PlanCR.id": - if e.complexity.PlanCR.ID == nil { - break - } - - return e.complexity.PlanCR.ID(childComplexity), true - - case "PlanCR.idNumber": - if e.complexity.PlanCR.IDNumber == nil { - break - } - - return e.complexity.PlanCR.IDNumber(childComplexity), true - - case "PlanCR.modelPlanID": - if e.complexity.PlanCR.ModelPlanID == nil { - break - } - - return e.complexity.PlanCR.ModelPlanID(childComplexity), true - - case "PlanCR.modifiedBy": - if e.complexity.PlanCR.ModifiedBy == nil { - break - } - - return e.complexity.PlanCR.ModifiedBy(childComplexity), true - - case "PlanCR.modifiedByUserAccount": - if e.complexity.PlanCR.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanCR.ModifiedByUserAccount(childComplexity), true - - case "PlanCR.modifiedDts": - if e.complexity.PlanCR.ModifiedDts == nil { - break - } - - return e.complexity.PlanCR.ModifiedDts(childComplexity), true - - case "PlanCR.note": - if e.complexity.PlanCR.Note == nil { - break - } - - return e.complexity.PlanCR.Note(childComplexity), true - - case "PlanCR.title": - if e.complexity.PlanCR.Title == nil { - break - } - - return e.complexity.PlanCR.Title(childComplexity), true - - case "PlanCRTranslation.dateImplemented": - if e.complexity.PlanCRTranslation.DateImplemented == nil { - break - } - - return e.complexity.PlanCRTranslation.DateImplemented(childComplexity), true - - case "PlanCRTranslation.dateInitiated": - if e.complexity.PlanCRTranslation.DateInitiated == nil { - break - } - - return e.complexity.PlanCRTranslation.DateInitiated(childComplexity), true - - case "PlanCRTranslation.idNumber": - if e.complexity.PlanCRTranslation.IDNumber == nil { - break - } - - return e.complexity.PlanCRTranslation.IDNumber(childComplexity), true - - case "PlanCRTranslation.note": - if e.complexity.PlanCRTranslation.Note == nil { - break - } - - return e.complexity.PlanCRTranslation.Note(childComplexity), true - - case "PlanCRTranslation.title": - if e.complexity.PlanCRTranslation.Title == nil { - break - } - - return e.complexity.PlanCRTranslation.Title(childComplexity), true - - case "PlanCollaborator.createdBy": - if e.complexity.PlanCollaborator.CreatedBy == nil { - break - } - - return e.complexity.PlanCollaborator.CreatedBy(childComplexity), true - - case "PlanCollaborator.createdByUserAccount": - if e.complexity.PlanCollaborator.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanCollaborator.CreatedByUserAccount(childComplexity), true - - case "PlanCollaborator.createdDts": - if e.complexity.PlanCollaborator.CreatedDts == nil { - break - } - - return e.complexity.PlanCollaborator.CreatedDts(childComplexity), true - - case "PlanCollaborator.id": - if e.complexity.PlanCollaborator.ID == nil { - break - } - - return e.complexity.PlanCollaborator.ID(childComplexity), true - - case "PlanCollaborator.modelPlanID": - if e.complexity.PlanCollaborator.ModelPlanID == nil { - break - } - - return e.complexity.PlanCollaborator.ModelPlanID(childComplexity), true - - case "PlanCollaborator.modifiedBy": - if e.complexity.PlanCollaborator.ModifiedBy == nil { - break - } - - return e.complexity.PlanCollaborator.ModifiedBy(childComplexity), true - - case "PlanCollaborator.modifiedByUserAccount": - if e.complexity.PlanCollaborator.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanCollaborator.ModifiedByUserAccount(childComplexity), true - - case "PlanCollaborator.modifiedDts": - if e.complexity.PlanCollaborator.ModifiedDts == nil { - break - } - - return e.complexity.PlanCollaborator.ModifiedDts(childComplexity), true - - case "PlanCollaborator.teamRoles": - if e.complexity.PlanCollaborator.TeamRoles == nil { - break - } - - return e.complexity.PlanCollaborator.TeamRoles(childComplexity), true - - case "PlanCollaborator.userAccount": - if e.complexity.PlanCollaborator.UserAccount == nil { - break - } - - return e.complexity.PlanCollaborator.UserAccount(childComplexity), true - - case "PlanCollaborator.userID": - if e.complexity.PlanCollaborator.UserID == nil { - break - } - - return e.complexity.PlanCollaborator.UserID(childComplexity), true - - case "PlanCollaboratorTranslation.teamRoles": - if e.complexity.PlanCollaboratorTranslation.TeamRoles == nil { - break - } - - return e.complexity.PlanCollaboratorTranslation.TeamRoles(childComplexity), true - - case "PlanCollaboratorTranslation.userID": - if e.complexity.PlanCollaboratorTranslation.UserID == nil { - break - } - - return e.complexity.PlanCollaboratorTranslation.UserID(childComplexity), true - - case "PlanCollaboratorTranslation.username": - if e.complexity.PlanCollaboratorTranslation.Username == nil { - break - } - - return e.complexity.PlanCollaboratorTranslation.Username(childComplexity), true - - case "PlanDataExchangeApproach.additionalDataExchangeConsiderationsDescription": - if e.complexity.PlanDataExchangeApproach.AdditionalDataExchangeConsiderationsDescription == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.AdditionalDataExchangeConsiderationsDescription(childComplexity), true - - case "PlanDataExchangeApproach.anticipatedMultiPayerDataAvailabilityUseCase": - if e.complexity.PlanDataExchangeApproach.AnticipatedMultiPayerDataAvailabilityUseCase == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.AnticipatedMultiPayerDataAvailabilityUseCase(childComplexity), true - - case "PlanDataExchangeApproach.createdBy": - if e.complexity.PlanDataExchangeApproach.CreatedBy == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.CreatedBy(childComplexity), true - - case "PlanDataExchangeApproach.createdByUserAccount": - if e.complexity.PlanDataExchangeApproach.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.CreatedByUserAccount(childComplexity), true - - case "PlanDataExchangeApproach.createdDts": - if e.complexity.PlanDataExchangeApproach.CreatedDts == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.CreatedDts(childComplexity), true - - case "PlanDataExchangeApproach.dataToCollectFromParticipants": - if e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipants == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipants(childComplexity), true - - case "PlanDataExchangeApproach.dataToCollectFromParticipantsNote": - if e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsNote(childComplexity), true - - case "PlanDataExchangeApproach.dataToCollectFromParticipantsOther": - if e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsOther == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsOther(childComplexity), true - - case "PlanDataExchangeApproach.dataToCollectFromParticipantsReportsDetails": - if e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsReportsDetails == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsReportsDetails(childComplexity), true - - case "PlanDataExchangeApproach.dataToSendToParticipants": - if e.complexity.PlanDataExchangeApproach.DataToSendToParticipants == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DataToSendToParticipants(childComplexity), true - - case "PlanDataExchangeApproach.dataToSendToParticipantsNote": - if e.complexity.PlanDataExchangeApproach.DataToSendToParticipantsNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DataToSendToParticipantsNote(childComplexity), true - - case "PlanDataExchangeApproach.dataWillNotBeCollectedFromParticipants": - if e.complexity.PlanDataExchangeApproach.DataWillNotBeCollectedFromParticipants == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DataWillNotBeCollectedFromParticipants(childComplexity), true - - case "PlanDataExchangeApproach.doesNeedToCollectAndAggregateMultiSourceData": - if e.complexity.PlanDataExchangeApproach.DoesNeedToCollectAndAggregateMultiSourceData == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DoesNeedToCollectAndAggregateMultiSourceData(childComplexity), true - - case "PlanDataExchangeApproach.doesNeedToCollectAndAggregateMultiSourceDataNote": - if e.complexity.PlanDataExchangeApproach.DoesNeedToCollectAndAggregateMultiSourceDataNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DoesNeedToCollectAndAggregateMultiSourceDataNote(childComplexity), true - - case "PlanDataExchangeApproach.doesNeedToMakeMultiPayerDataAvailable": - if e.complexity.PlanDataExchangeApproach.DoesNeedToMakeMultiPayerDataAvailable == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DoesNeedToMakeMultiPayerDataAvailable(childComplexity), true - - case "PlanDataExchangeApproach.doesNeedToMakeMultiPayerDataAvailableNote": - if e.complexity.PlanDataExchangeApproach.DoesNeedToMakeMultiPayerDataAvailableNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.DoesNeedToMakeMultiPayerDataAvailableNote(childComplexity), true - - case "PlanDataExchangeApproach.id": - if e.complexity.PlanDataExchangeApproach.ID == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.ID(childComplexity), true - - case "PlanDataExchangeApproach.isDataExchangeApproachComplete": - if e.complexity.PlanDataExchangeApproach.IsDataExchangeApproachComplete == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.IsDataExchangeApproachComplete(childComplexity), true - - case "PlanDataExchangeApproach.markedCompleteBy": - if e.complexity.PlanDataExchangeApproach.MarkedCompleteBy == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.MarkedCompleteBy(childComplexity), true - - case "PlanDataExchangeApproach.markedCompleteByUserAccount": - if e.complexity.PlanDataExchangeApproach.MarkedCompleteByUserAccount == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.MarkedCompleteByUserAccount(childComplexity), true - - case "PlanDataExchangeApproach.markedCompleteDts": - if e.complexity.PlanDataExchangeApproach.MarkedCompleteDts == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.MarkedCompleteDts(childComplexity), true - - case "PlanDataExchangeApproach.modelPlanID": - if e.complexity.PlanDataExchangeApproach.ModelPlanID == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.ModelPlanID(childComplexity), true - - case "PlanDataExchangeApproach.modifiedBy": - if e.complexity.PlanDataExchangeApproach.ModifiedBy == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.ModifiedBy(childComplexity), true - - case "PlanDataExchangeApproach.modifiedByUserAccount": - if e.complexity.PlanDataExchangeApproach.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.ModifiedByUserAccount(childComplexity), true - - case "PlanDataExchangeApproach.modifiedDts": - if e.complexity.PlanDataExchangeApproach.ModifiedDts == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.ModifiedDts(childComplexity), true - - case "PlanDataExchangeApproach.multiSourceDataToCollect": - if e.complexity.PlanDataExchangeApproach.MultiSourceDataToCollect == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.MultiSourceDataToCollect(childComplexity), true - - case "PlanDataExchangeApproach.multiSourceDataToCollectOther": - if e.complexity.PlanDataExchangeApproach.MultiSourceDataToCollectOther == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.MultiSourceDataToCollectOther(childComplexity), true - - case "PlanDataExchangeApproach.newDataExchangeMethodsDescription": - if e.complexity.PlanDataExchangeApproach.NewDataExchangeMethodsDescription == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.NewDataExchangeMethodsDescription(childComplexity), true - - case "PlanDataExchangeApproach.newDataExchangeMethodsNote": - if e.complexity.PlanDataExchangeApproach.NewDataExchangeMethodsNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.NewDataExchangeMethodsNote(childComplexity), true - - case "PlanDataExchangeApproach.status": - if e.complexity.PlanDataExchangeApproach.Status == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.Status(childComplexity), true - - case "PlanDataExchangeApproach.willImplementNewDataExchangeMethods": - if e.complexity.PlanDataExchangeApproach.WillImplementNewDataExchangeMethods == nil { - break - } - - return e.complexity.PlanDataExchangeApproach.WillImplementNewDataExchangeMethods(childComplexity), true - - case "PlanDataExchangeApproachMarkedCompleteActivityMeta.dataExchangeApproach": - if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.DataExchangeApproach == nil { - break - } - - return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.DataExchangeApproach(childComplexity), true - - case "PlanDataExchangeApproachMarkedCompleteActivityMeta.dataExchangeApproachID": - if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.DataExchangeApproachID == nil { - break - } - - return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.DataExchangeApproachID(childComplexity), true - - case "PlanDataExchangeApproachMarkedCompleteActivityMeta.markedCompleteBy": - if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.MarkedCompleteBy == nil { - break - } - - return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.MarkedCompleteBy(childComplexity), true - - case "PlanDataExchangeApproachMarkedCompleteActivityMeta.markedCompleteByUserAccount": - if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.MarkedCompleteByUserAccount == nil { - break - } - - return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.MarkedCompleteByUserAccount(childComplexity), true - - case "PlanDataExchangeApproachMarkedCompleteActivityMeta.modelPlan": - if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.ModelPlan == nil { - break - } - - return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.ModelPlan(childComplexity), true - - case "PlanDataExchangeApproachMarkedCompleteActivityMeta.type": - if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.Type == nil { - break - } - - return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.Type(childComplexity), true - - case "PlanDataExchangeApproachMarkedCompleteActivityMeta.version": - if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.Version == nil { - break - } - - return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.Version(childComplexity), true - - case "PlanDataExchangeApproachTranslation.additionalDataExchangeConsiderationsDescription": - if e.complexity.PlanDataExchangeApproachTranslation.AdditionalDataExchangeConsiderationsDescription == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.AdditionalDataExchangeConsiderationsDescription(childComplexity), true - - case "PlanDataExchangeApproachTranslation.anticipatedMultiPayerDataAvailabilityUseCase": - if e.complexity.PlanDataExchangeApproachTranslation.AnticipatedMultiPayerDataAvailabilityUseCase == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.AnticipatedMultiPayerDataAvailabilityUseCase(childComplexity), true - - case "PlanDataExchangeApproachTranslation.dataToCollectFromParticipants": - if e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipants == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipants(childComplexity), true - - case "PlanDataExchangeApproachTranslation.dataToCollectFromParticipantsNote": - if e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsNote(childComplexity), true - - case "PlanDataExchangeApproachTranslation.dataToCollectFromParticipantsOther": - if e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsOther == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsOther(childComplexity), true - - case "PlanDataExchangeApproachTranslation.dataToCollectFromParticipantsReportsDetails": - if e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsReportsDetails == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsReportsDetails(childComplexity), true - - case "PlanDataExchangeApproachTranslation.dataToSendToParticipants": - if e.complexity.PlanDataExchangeApproachTranslation.DataToSendToParticipants == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DataToSendToParticipants(childComplexity), true - - case "PlanDataExchangeApproachTranslation.dataToSendToParticipantsNote": - if e.complexity.PlanDataExchangeApproachTranslation.DataToSendToParticipantsNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DataToSendToParticipantsNote(childComplexity), true - - case "PlanDataExchangeApproachTranslation.dataWillNotBeCollectedFromParticipants": - if e.complexity.PlanDataExchangeApproachTranslation.DataWillNotBeCollectedFromParticipants == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DataWillNotBeCollectedFromParticipants(childComplexity), true - - case "PlanDataExchangeApproachTranslation.doesNeedToCollectAndAggregateMultiSourceData": - if e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToCollectAndAggregateMultiSourceData == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToCollectAndAggregateMultiSourceData(childComplexity), true - - case "PlanDataExchangeApproachTranslation.doesNeedToCollectAndAggregateMultiSourceDataNote": - if e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToCollectAndAggregateMultiSourceDataNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToCollectAndAggregateMultiSourceDataNote(childComplexity), true - - case "PlanDataExchangeApproachTranslation.doesNeedToMakeMultiPayerDataAvailable": - if e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToMakeMultiPayerDataAvailable == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToMakeMultiPayerDataAvailable(childComplexity), true - - case "PlanDataExchangeApproachTranslation.doesNeedToMakeMultiPayerDataAvailableNote": - if e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToMakeMultiPayerDataAvailableNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToMakeMultiPayerDataAvailableNote(childComplexity), true - - case "PlanDataExchangeApproachTranslation.isDataExchangeApproachComplete": - if e.complexity.PlanDataExchangeApproachTranslation.IsDataExchangeApproachComplete == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.IsDataExchangeApproachComplete(childComplexity), true - - case "PlanDataExchangeApproachTranslation.markedCompleteBy": - if e.complexity.PlanDataExchangeApproachTranslation.MarkedCompleteBy == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.MarkedCompleteBy(childComplexity), true - - case "PlanDataExchangeApproachTranslation.markedCompleteDts": - if e.complexity.PlanDataExchangeApproachTranslation.MarkedCompleteDts == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.MarkedCompleteDts(childComplexity), true - - case "PlanDataExchangeApproachTranslation.multiSourceDataToCollect": - if e.complexity.PlanDataExchangeApproachTranslation.MultiSourceDataToCollect == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.MultiSourceDataToCollect(childComplexity), true - - case "PlanDataExchangeApproachTranslation.multiSourceDataToCollectOther": - if e.complexity.PlanDataExchangeApproachTranslation.MultiSourceDataToCollectOther == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.MultiSourceDataToCollectOther(childComplexity), true - - case "PlanDataExchangeApproachTranslation.newDataExchangeMethodsDescription": - if e.complexity.PlanDataExchangeApproachTranslation.NewDataExchangeMethodsDescription == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.NewDataExchangeMethodsDescription(childComplexity), true - - case "PlanDataExchangeApproachTranslation.newDataExchangeMethodsNote": - if e.complexity.PlanDataExchangeApproachTranslation.NewDataExchangeMethodsNote == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.NewDataExchangeMethodsNote(childComplexity), true - - case "PlanDataExchangeApproachTranslation.status": - if e.complexity.PlanDataExchangeApproachTranslation.Status == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.Status(childComplexity), true - - case "PlanDataExchangeApproachTranslation.willImplementNewDataExchangeMethods": - if e.complexity.PlanDataExchangeApproachTranslation.WillImplementNewDataExchangeMethods == nil { - break - } - - return e.complexity.PlanDataExchangeApproachTranslation.WillImplementNewDataExchangeMethods(childComplexity), true - - case "PlanDiscussion.content": - if e.complexity.PlanDiscussion.Content == nil { - break - } - - return e.complexity.PlanDiscussion.Content(childComplexity), true - - case "PlanDiscussion.createdBy": - if e.complexity.PlanDiscussion.CreatedBy == nil { - break - } - - return e.complexity.PlanDiscussion.CreatedBy(childComplexity), true - - case "PlanDiscussion.createdByUserAccount": - if e.complexity.PlanDiscussion.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanDiscussion.CreatedByUserAccount(childComplexity), true - - case "PlanDiscussion.createdDts": - if e.complexity.PlanDiscussion.CreatedDts == nil { - break - } - - return e.complexity.PlanDiscussion.CreatedDts(childComplexity), true - - case "PlanDiscussion.id": - if e.complexity.PlanDiscussion.ID == nil { - break - } - - return e.complexity.PlanDiscussion.ID(childComplexity), true - - case "PlanDiscussion.isAssessment": - if e.complexity.PlanDiscussion.IsAssessment == nil { - break - } - - return e.complexity.PlanDiscussion.IsAssessment(childComplexity), true - - case "PlanDiscussion.modelPlanID": - if e.complexity.PlanDiscussion.ModelPlanID == nil { - break - } - - return e.complexity.PlanDiscussion.ModelPlanID(childComplexity), true - - case "PlanDiscussion.modifiedBy": - if e.complexity.PlanDiscussion.ModifiedBy == nil { - break - } - - return e.complexity.PlanDiscussion.ModifiedBy(childComplexity), true - - case "PlanDiscussion.modifiedByUserAccount": - if e.complexity.PlanDiscussion.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanDiscussion.ModifiedByUserAccount(childComplexity), true - - case "PlanDiscussion.modifiedDts": - if e.complexity.PlanDiscussion.ModifiedDts == nil { - break - } - - return e.complexity.PlanDiscussion.ModifiedDts(childComplexity), true - - case "PlanDiscussion.replies": - if e.complexity.PlanDiscussion.Replies == nil { - break - } - - return e.complexity.PlanDiscussion.Replies(childComplexity), true - - case "PlanDiscussion.userRole": - if e.complexity.PlanDiscussion.UserRole == nil { - break - } - - return e.complexity.PlanDiscussion.UserRole(childComplexity), true - - case "PlanDiscussion.userRoleDescription": - if e.complexity.PlanDiscussion.UserRoleDescription == nil { - break - } - - return e.complexity.PlanDiscussion.UserRoleDescription(childComplexity), true - - case "PlanDiscussionTranslation.content": - if e.complexity.PlanDiscussionTranslation.Content == nil { - break - } - - return e.complexity.PlanDiscussionTranslation.Content(childComplexity), true - - case "PlanDiscussionTranslation.isAssessment": - if e.complexity.PlanDiscussionTranslation.IsAssessment == nil { - break - } - - return e.complexity.PlanDiscussionTranslation.IsAssessment(childComplexity), true - - case "PlanDiscussionTranslation.userRole": - if e.complexity.PlanDiscussionTranslation.UserRole == nil { - break - } - - return e.complexity.PlanDiscussionTranslation.UserRole(childComplexity), true - - case "PlanDiscussionTranslation.userRoleDescription": - if e.complexity.PlanDiscussionTranslation.UserRoleDescription == nil { - break - } - - return e.complexity.PlanDiscussionTranslation.UserRoleDescription(childComplexity), true - - case "PlanDocument.bucket": - if e.complexity.PlanDocument.Bucket == nil { - break - } - - return e.complexity.PlanDocument.Bucket(childComplexity), true - - case "PlanDocument.createdBy": - if e.complexity.PlanDocument.CreatedBy == nil { - break - } - - return e.complexity.PlanDocument.CreatedBy(childComplexity), true - - case "PlanDocument.createdByUserAccount": - if e.complexity.PlanDocument.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanDocument.CreatedByUserAccount(childComplexity), true - - case "PlanDocument.createdDts": - if e.complexity.PlanDocument.CreatedDts == nil { - break - } - - return e.complexity.PlanDocument.CreatedDts(childComplexity), true - - case "PlanDocument.deletedAt": - if e.complexity.PlanDocument.DeletedAt == nil { - break - } - - return e.complexity.PlanDocument.DeletedAt(childComplexity), true - - case "PlanDocument.documentType": - if e.complexity.PlanDocument.DocumentType == nil { - break - } - - return e.complexity.PlanDocument.DocumentType(childComplexity), true - - case "PlanDocument.downloadUrl": - if e.complexity.PlanDocument.DownloadURL == nil { - break - } - - return e.complexity.PlanDocument.DownloadURL(childComplexity), true - - case "PlanDocument.fileKey": - if e.complexity.PlanDocument.FileKey == nil { - break - } - - return e.complexity.PlanDocument.FileKey(childComplexity), true - - case "PlanDocument.fileName": - if e.complexity.PlanDocument.FileName == nil { - break - } - - return e.complexity.PlanDocument.FileName(childComplexity), true - - case "PlanDocument.fileSize": - if e.complexity.PlanDocument.FileSize == nil { - break - } - - return e.complexity.PlanDocument.FileSize(childComplexity), true - - case "PlanDocument.fileType": - if e.complexity.PlanDocument.FileType == nil { - break - } - - return e.complexity.PlanDocument.FileType(childComplexity), true - - case "PlanDocument.id": - if e.complexity.PlanDocument.ID == nil { - break - } - - return e.complexity.PlanDocument.ID(childComplexity), true - - case "PlanDocument.isLink": - if e.complexity.PlanDocument.IsLink == nil { - break - } - - return e.complexity.PlanDocument.IsLink(childComplexity), true - - case "PlanDocument.modelPlanID": - if e.complexity.PlanDocument.ModelPlanID == nil { - break - } - - return e.complexity.PlanDocument.ModelPlanID(childComplexity), true - - case "PlanDocument.modifiedBy": - if e.complexity.PlanDocument.ModifiedBy == nil { - break - } - - return e.complexity.PlanDocument.ModifiedBy(childComplexity), true - - case "PlanDocument.modifiedByUserAccount": - if e.complexity.PlanDocument.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanDocument.ModifiedByUserAccount(childComplexity), true - - case "PlanDocument.modifiedDts": - if e.complexity.PlanDocument.ModifiedDts == nil { - break - } - - return e.complexity.PlanDocument.ModifiedDts(childComplexity), true - - case "PlanDocument.numLinkedSolutions": - if e.complexity.PlanDocument.NumLinkedSolutions == nil { - break - } - - return e.complexity.PlanDocument.NumLinkedSolutions(childComplexity), true - - case "PlanDocument.optionalNotes": - if e.complexity.PlanDocument.OptionalNotes == nil { - break - } - - return e.complexity.PlanDocument.OptionalNotes(childComplexity), true - - case "PlanDocument.otherType": - if e.complexity.PlanDocument.OtherType == nil { - break - } - - return e.complexity.PlanDocument.OtherType(childComplexity), true - - case "PlanDocument.restricted": - if e.complexity.PlanDocument.Restricted == nil { - break - } - - return e.complexity.PlanDocument.Restricted(childComplexity), true - - case "PlanDocument.url": - if e.complexity.PlanDocument.URL == nil { - break - } - - return e.complexity.PlanDocument.URL(childComplexity), true - - case "PlanDocument.virusClean": - if e.complexity.PlanDocument.VirusClean == nil { - break - } - - return e.complexity.PlanDocument.VirusClean(childComplexity), true - - case "PlanDocument.virusScanned": - if e.complexity.PlanDocument.VirusScanned == nil { - break - } - - return e.complexity.PlanDocument.VirusScanned(childComplexity), true - - case "PlanDocumentSolutionLink.createdBy": - if e.complexity.PlanDocumentSolutionLink.CreatedBy == nil { - break - } - - return e.complexity.PlanDocumentSolutionLink.CreatedBy(childComplexity), true - - case "PlanDocumentSolutionLink.createdByUserAccount": - if e.complexity.PlanDocumentSolutionLink.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanDocumentSolutionLink.CreatedByUserAccount(childComplexity), true - - case "PlanDocumentSolutionLink.createdDts": - if e.complexity.PlanDocumentSolutionLink.CreatedDts == nil { - break - } - - return e.complexity.PlanDocumentSolutionLink.CreatedDts(childComplexity), true - - case "PlanDocumentSolutionLink.documentID": - if e.complexity.PlanDocumentSolutionLink.DocumentID == nil { - break - } - - return e.complexity.PlanDocumentSolutionLink.DocumentID(childComplexity), true - - case "PlanDocumentSolutionLink.id": - if e.complexity.PlanDocumentSolutionLink.ID == nil { - break - } - - return e.complexity.PlanDocumentSolutionLink.ID(childComplexity), true - - case "PlanDocumentSolutionLink.modifiedBy": - if e.complexity.PlanDocumentSolutionLink.ModifiedBy == nil { - break - } - - return e.complexity.PlanDocumentSolutionLink.ModifiedBy(childComplexity), true - - case "PlanDocumentSolutionLink.modifiedByUserAccount": - if e.complexity.PlanDocumentSolutionLink.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanDocumentSolutionLink.ModifiedByUserAccount(childComplexity), true - - case "PlanDocumentSolutionLink.modifiedDts": - if e.complexity.PlanDocumentSolutionLink.ModifiedDts == nil { - break - } - - return e.complexity.PlanDocumentSolutionLink.ModifiedDts(childComplexity), true - - case "PlanDocumentSolutionLink.solutionID": - if e.complexity.PlanDocumentSolutionLink.SolutionID == nil { - break - } - - return e.complexity.PlanDocumentSolutionLink.SolutionID(childComplexity), true - - case "PlanDocumentSolutionLinkTranslation.documentID": - if e.complexity.PlanDocumentSolutionLinkTranslation.DocumentID == nil { - break - } - - return e.complexity.PlanDocumentSolutionLinkTranslation.DocumentID(childComplexity), true - - case "PlanDocumentSolutionLinkTranslation.solutionID": - if e.complexity.PlanDocumentSolutionLinkTranslation.SolutionID == nil { - break - } - - return e.complexity.PlanDocumentSolutionLinkTranslation.SolutionID(childComplexity), true - - case "PlanDocumentTranslation.documentType": - if e.complexity.PlanDocumentTranslation.DocumentType == nil { - break - } - - return e.complexity.PlanDocumentTranslation.DocumentType(childComplexity), true - - case "PlanDocumentTranslation.fileName": - if e.complexity.PlanDocumentTranslation.FileName == nil { - break - } - - return e.complexity.PlanDocumentTranslation.FileName(childComplexity), true - - case "PlanDocumentTranslation.fileType": - if e.complexity.PlanDocumentTranslation.FileType == nil { - break - } - - return e.complexity.PlanDocumentTranslation.FileType(childComplexity), true - - case "PlanDocumentTranslation.isLink": - if e.complexity.PlanDocumentTranslation.IsLink == nil { - break - } - - return e.complexity.PlanDocumentTranslation.IsLink(childComplexity), true - - case "PlanDocumentTranslation.optionalNotes": - if e.complexity.PlanDocumentTranslation.OptionalNotes == nil { - break - } - - return e.complexity.PlanDocumentTranslation.OptionalNotes(childComplexity), true - - case "PlanDocumentTranslation.otherType": - if e.complexity.PlanDocumentTranslation.OtherType == nil { - break - } - - return e.complexity.PlanDocumentTranslation.OtherType(childComplexity), true - - case "PlanDocumentTranslation.restricted": - if e.complexity.PlanDocumentTranslation.Restricted == nil { - break - } - - return e.complexity.PlanDocumentTranslation.Restricted(childComplexity), true - - case "PlanDocumentTranslation.url": - if e.complexity.PlanDocumentTranslation.URL == nil { - break - } - - return e.complexity.PlanDocumentTranslation.URL(childComplexity), true - - case "PlanFavorite.createdBy": - if e.complexity.PlanFavorite.CreatedBy == nil { - break - } - - return e.complexity.PlanFavorite.CreatedBy(childComplexity), true - - case "PlanFavorite.createdByUserAccount": - if e.complexity.PlanFavorite.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanFavorite.CreatedByUserAccount(childComplexity), true - - case "PlanFavorite.createdDts": - if e.complexity.PlanFavorite.CreatedDts == nil { - break - } - - return e.complexity.PlanFavorite.CreatedDts(childComplexity), true - - case "PlanFavorite.id": - if e.complexity.PlanFavorite.ID == nil { - break - } - - return e.complexity.PlanFavorite.ID(childComplexity), true - - case "PlanFavorite.modelPlanID": - if e.complexity.PlanFavorite.ModelPlanID == nil { - break - } - - return e.complexity.PlanFavorite.ModelPlanID(childComplexity), true - - case "PlanFavorite.modifiedBy": - if e.complexity.PlanFavorite.ModifiedBy == nil { - break - } - - return e.complexity.PlanFavorite.ModifiedBy(childComplexity), true - - case "PlanFavorite.modifiedByUserAccount": - if e.complexity.PlanFavorite.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanFavorite.ModifiedByUserAccount(childComplexity), true - - case "PlanFavorite.modifiedDts": - if e.complexity.PlanFavorite.ModifiedDts == nil { - break - } - - return e.complexity.PlanFavorite.ModifiedDts(childComplexity), true - - case "PlanFavorite.userAccount": - if e.complexity.PlanFavorite.UserAccount == nil { - break - } - - return e.complexity.PlanFavorite.UserAccount(childComplexity), true - - case "PlanFavorite.userID": - if e.complexity.PlanFavorite.UserID == nil { - break - } - - return e.complexity.PlanFavorite.UserID(childComplexity), true - - case "PlanGeneralCharacteristics.additionalServicesInvolved": - if e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolved == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolved(childComplexity), true - - case "PlanGeneralCharacteristics.additionalServicesInvolvedDescription": - if e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolvedDescription == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolvedDescription(childComplexity), true - - case "PlanGeneralCharacteristics.additionalServicesInvolvedNote": - if e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolvedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolvedNote(childComplexity), true - - case "PlanGeneralCharacteristics.agencyOrStateHelp": - if e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelp == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelp(childComplexity), true - - case "PlanGeneralCharacteristics.agencyOrStateHelpNote": - if e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelpNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelpNote(childComplexity), true - - case "PlanGeneralCharacteristics.agencyOrStateHelpOther": - if e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelpOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelpOther(childComplexity), true - - case "PlanGeneralCharacteristics.agreementTypes": - if e.complexity.PlanGeneralCharacteristics.AgreementTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AgreementTypes(childComplexity), true - - case "PlanGeneralCharacteristics.agreementTypesOther": - if e.complexity.PlanGeneralCharacteristics.AgreementTypesOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AgreementTypesOther(childComplexity), true - - case "PlanGeneralCharacteristics.alternativePaymentModelNote": - if e.complexity.PlanGeneralCharacteristics.AlternativePaymentModelNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AlternativePaymentModelNote(childComplexity), true - - case "PlanGeneralCharacteristics.alternativePaymentModelTypes": - if e.complexity.PlanGeneralCharacteristics.AlternativePaymentModelTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AlternativePaymentModelTypes(childComplexity), true - - case "PlanGeneralCharacteristics.authorityAllowances": - if e.complexity.PlanGeneralCharacteristics.AuthorityAllowances == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AuthorityAllowances(childComplexity), true - - case "PlanGeneralCharacteristics.authorityAllowancesNote": - if e.complexity.PlanGeneralCharacteristics.AuthorityAllowancesNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AuthorityAllowancesNote(childComplexity), true - - case "PlanGeneralCharacteristics.authorityAllowancesOther": - if e.complexity.PlanGeneralCharacteristics.AuthorityAllowancesOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.AuthorityAllowancesOther(childComplexity), true - - case "PlanGeneralCharacteristics.careCoordinationInvolved": - if e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolved == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolved(childComplexity), true - - case "PlanGeneralCharacteristics.careCoordinationInvolvedDescription": - if e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolvedDescription == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolvedDescription(childComplexity), true - - case "PlanGeneralCharacteristics.careCoordinationInvolvedNote": - if e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolvedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolvedNote(childComplexity), true - - case "PlanGeneralCharacteristics.collectPlanBids": - if e.complexity.PlanGeneralCharacteristics.CollectPlanBids == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CollectPlanBids(childComplexity), true - - case "PlanGeneralCharacteristics.collectPlanBidsNote": - if e.complexity.PlanGeneralCharacteristics.CollectPlanBidsNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CollectPlanBidsNote(childComplexity), true - - case "PlanGeneralCharacteristics.communityPartnersInvolved": - if e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolved == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolved(childComplexity), true - - case "PlanGeneralCharacteristics.communityPartnersInvolvedDescription": - if e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolvedDescription == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolvedDescription(childComplexity), true - - case "PlanGeneralCharacteristics.communityPartnersInvolvedNote": - if e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolvedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolvedNote(childComplexity), true - - case "PlanGeneralCharacteristics.createdBy": - if e.complexity.PlanGeneralCharacteristics.CreatedBy == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CreatedBy(childComplexity), true - - case "PlanGeneralCharacteristics.createdByUserAccount": - if e.complexity.PlanGeneralCharacteristics.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CreatedByUserAccount(childComplexity), true - - case "PlanGeneralCharacteristics.createdDts": - if e.complexity.PlanGeneralCharacteristics.CreatedDts == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CreatedDts(childComplexity), true - - case "PlanGeneralCharacteristics.currentModelPlan": - if e.complexity.PlanGeneralCharacteristics.CurrentModelPlan == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CurrentModelPlan(childComplexity), true - - case "PlanGeneralCharacteristics.currentModelPlanID": - if e.complexity.PlanGeneralCharacteristics.CurrentModelPlanID == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.CurrentModelPlanID(childComplexity), true - - case "PlanGeneralCharacteristics.existingModel": - if e.complexity.PlanGeneralCharacteristics.ExistingModel == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ExistingModel(childComplexity), true - - case "PlanGeneralCharacteristics.existingModelID": - if e.complexity.PlanGeneralCharacteristics.ExistingModelID == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ExistingModelID(childComplexity), true - - case "PlanGeneralCharacteristics.existingModelPlan": - if e.complexity.PlanGeneralCharacteristics.ExistingModelPlan == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ExistingModelPlan(childComplexity), true - - case "PlanGeneralCharacteristics.geographiesRegionTypes": - if e.complexity.PlanGeneralCharacteristics.GeographiesRegionTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.GeographiesRegionTypes(childComplexity), true - - case "PlanGeneralCharacteristics.geographiesStatesAndTerritories": - if e.complexity.PlanGeneralCharacteristics.GeographiesStatesAndTerritories == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.GeographiesStatesAndTerritories(childComplexity), true - - case "PlanGeneralCharacteristics.geographiesTargeted": - if e.complexity.PlanGeneralCharacteristics.GeographiesTargeted == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.GeographiesTargeted(childComplexity), true - - case "PlanGeneralCharacteristics.geographiesTargetedAppliedTo": - if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedAppliedTo == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedAppliedTo(childComplexity), true - - case "PlanGeneralCharacteristics.geographiesTargetedAppliedToOther": - if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedAppliedToOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedAppliedToOther(childComplexity), true - - case "PlanGeneralCharacteristics.geographiesTargetedNote": - if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedNote(childComplexity), true - - case "PlanGeneralCharacteristics.geographiesTargetedTypes": - if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedTypes(childComplexity), true - - case "PlanGeneralCharacteristics.geographiesTargetedTypesOther": - if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedTypesOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedTypesOther(childComplexity), true - - case "PlanGeneralCharacteristics.hasComponentsOrTracks": - if e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracks == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracks(childComplexity), true - - case "PlanGeneralCharacteristics.hasComponentsOrTracksDiffer": - if e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracksDiffer == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracksDiffer(childComplexity), true - - case "PlanGeneralCharacteristics.hasComponentsOrTracksNote": - if e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracksNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracksNote(childComplexity), true - - case "PlanGeneralCharacteristics.id": - if e.complexity.PlanGeneralCharacteristics.ID == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ID(childComplexity), true - - case "PlanGeneralCharacteristics.isNewModel": - if e.complexity.PlanGeneralCharacteristics.IsNewModel == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.IsNewModel(childComplexity), true - - case "PlanGeneralCharacteristics.keyCharacteristics": - if e.complexity.PlanGeneralCharacteristics.KeyCharacteristics == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.KeyCharacteristics(childComplexity), true - - case "PlanGeneralCharacteristics.keyCharacteristicsNote": - if e.complexity.PlanGeneralCharacteristics.KeyCharacteristicsNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.KeyCharacteristicsNote(childComplexity), true - - case "PlanGeneralCharacteristics.keyCharacteristicsOther": - if e.complexity.PlanGeneralCharacteristics.KeyCharacteristicsOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.KeyCharacteristicsOther(childComplexity), true - - case "PlanGeneralCharacteristics.managePartCDEnrollment": - if e.complexity.PlanGeneralCharacteristics.ManagePartCDEnrollment == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ManagePartCDEnrollment(childComplexity), true - - case "PlanGeneralCharacteristics.managePartCDEnrollmentNote": - if e.complexity.PlanGeneralCharacteristics.ManagePartCDEnrollmentNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ManagePartCDEnrollmentNote(childComplexity), true - - case "PlanGeneralCharacteristics.modelPlanID": - if e.complexity.PlanGeneralCharacteristics.ModelPlanID == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ModelPlanID(childComplexity), true - - case "PlanGeneralCharacteristics.modifiedBy": - if e.complexity.PlanGeneralCharacteristics.ModifiedBy == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ModifiedBy(childComplexity), true - - case "PlanGeneralCharacteristics.modifiedByUserAccount": - if e.complexity.PlanGeneralCharacteristics.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ModifiedByUserAccount(childComplexity), true - - case "PlanGeneralCharacteristics.modifiedDts": - if e.complexity.PlanGeneralCharacteristics.ModifiedDts == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ModifiedDts(childComplexity), true - - case "PlanGeneralCharacteristics.multiplePatricipationAgreementsNeeded": - if e.complexity.PlanGeneralCharacteristics.MultiplePatricipationAgreementsNeeded == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.MultiplePatricipationAgreementsNeeded(childComplexity), true - - case "PlanGeneralCharacteristics.multiplePatricipationAgreementsNeededNote": - if e.complexity.PlanGeneralCharacteristics.MultiplePatricipationAgreementsNeededNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.MultiplePatricipationAgreementsNeededNote(childComplexity), true - - case "PlanGeneralCharacteristics.participationInModelPrecondition": - if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPrecondition == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPrecondition(childComplexity), true - - case "PlanGeneralCharacteristics.participationInModelPreconditionNote": - if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionNote(childComplexity), true - - case "PlanGeneralCharacteristics.participationInModelPreconditionOtherOption": - if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherOption == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherOption(childComplexity), true - - case "PlanGeneralCharacteristics.participationInModelPreconditionOtherSelected": - if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherSelected == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherSelected(childComplexity), true - - case "PlanGeneralCharacteristics.participationInModelPreconditionOtherSpecify": - if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherSpecify == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherSpecify(childComplexity), true - - case "PlanGeneralCharacteristics.participationInModelPreconditionWhich": - if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionWhich == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionWhich(childComplexity), true - - case "PlanGeneralCharacteristics.participationInModelPreconditionWhyHow": - if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionWhyHow == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionWhyHow(childComplexity), true - - case "PlanGeneralCharacteristics.participationOptions": - if e.complexity.PlanGeneralCharacteristics.ParticipationOptions == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ParticipationOptions(childComplexity), true - - case "PlanGeneralCharacteristics.participationOptionsNote": - if e.complexity.PlanGeneralCharacteristics.ParticipationOptionsNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ParticipationOptionsNote(childComplexity), true - - case "PlanGeneralCharacteristics.planContractUpdated": - if e.complexity.PlanGeneralCharacteristics.PlanContractUpdated == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.PlanContractUpdated(childComplexity), true - - case "PlanGeneralCharacteristics.planContractUpdatedNote": - if e.complexity.PlanGeneralCharacteristics.PlanContractUpdatedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.PlanContractUpdatedNote(childComplexity), true - - case "PlanGeneralCharacteristics.readyForClearanceBy": - if e.complexity.PlanGeneralCharacteristics.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ReadyForClearanceBy(childComplexity), true - - case "PlanGeneralCharacteristics.readyForClearanceByUserAccount": - if e.complexity.PlanGeneralCharacteristics.ReadyForClearanceByUserAccount == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ReadyForClearanceByUserAccount(childComplexity), true - - case "PlanGeneralCharacteristics.readyForClearanceDts": - if e.complexity.PlanGeneralCharacteristics.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ReadyForClearanceDts(childComplexity), true - - case "PlanGeneralCharacteristics.readyForReviewBy": - if e.complexity.PlanGeneralCharacteristics.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ReadyForReviewBy(childComplexity), true - - case "PlanGeneralCharacteristics.readyForReviewByUserAccount": - if e.complexity.PlanGeneralCharacteristics.ReadyForReviewByUserAccount == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ReadyForReviewByUserAccount(childComplexity), true - - case "PlanGeneralCharacteristics.readyForReviewDts": - if e.complexity.PlanGeneralCharacteristics.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ReadyForReviewDts(childComplexity), true - - case "PlanGeneralCharacteristics.resemblesExistingModel": - if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModel == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModel(childComplexity), true - - case "PlanGeneralCharacteristics.resemblesExistingModelHow": - if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelHow == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelHow(childComplexity), true - - case "PlanGeneralCharacteristics.resemblesExistingModelNote": - if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelNote(childComplexity), true - - case "PlanGeneralCharacteristics.resemblesExistingModelOtherOption": - if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherOption == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherOption(childComplexity), true - - case "PlanGeneralCharacteristics.resemblesExistingModelOtherSelected": - if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherSelected == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherSelected(childComplexity), true - - case "PlanGeneralCharacteristics.resemblesExistingModelOtherSpecify": - if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherSpecify == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherSpecify(childComplexity), true - - case "PlanGeneralCharacteristics.resemblesExistingModelWhich": - if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelWhich == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelWhich(childComplexity), true - - case "PlanGeneralCharacteristics.resemblesExistingModelWhyHow": - if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelWhyHow == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelWhyHow(childComplexity), true - - case "PlanGeneralCharacteristics.rulemakingRequired": - if e.complexity.PlanGeneralCharacteristics.RulemakingRequired == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.RulemakingRequired(childComplexity), true - - case "PlanGeneralCharacteristics.rulemakingRequiredDescription": - if e.complexity.PlanGeneralCharacteristics.RulemakingRequiredDescription == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.RulemakingRequiredDescription(childComplexity), true - - case "PlanGeneralCharacteristics.rulemakingRequiredNote": - if e.complexity.PlanGeneralCharacteristics.RulemakingRequiredNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.RulemakingRequiredNote(childComplexity), true - - case "PlanGeneralCharacteristics.status": - if e.complexity.PlanGeneralCharacteristics.Status == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.Status(childComplexity), true - - case "PlanGeneralCharacteristics.waiversRequired": - if e.complexity.PlanGeneralCharacteristics.WaiversRequired == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.WaiversRequired(childComplexity), true - - case "PlanGeneralCharacteristics.waiversRequiredNote": - if e.complexity.PlanGeneralCharacteristics.WaiversRequiredNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.WaiversRequiredNote(childComplexity), true - - case "PlanGeneralCharacteristics.waiversRequiredTypes": - if e.complexity.PlanGeneralCharacteristics.WaiversRequiredTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristics.WaiversRequiredTypes(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.additionalServicesInvolved": - if e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolved == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolved(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.additionalServicesInvolvedDescription": - if e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolvedDescription == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolvedDescription(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.additionalServicesInvolvedNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolvedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolvedNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.agencyOrStateHelp": - if e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelp == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelp(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.agencyOrStateHelpNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelpNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelpNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.agencyOrStateHelpOther": - if e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelpOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelpOther(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.agreementTypes": - if e.complexity.PlanGeneralCharacteristicsTranslation.AgreementTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AgreementTypes(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.agreementTypesOther": - if e.complexity.PlanGeneralCharacteristicsTranslation.AgreementTypesOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AgreementTypesOther(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.alternativePaymentModelNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.AlternativePaymentModelNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AlternativePaymentModelNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.alternativePaymentModelTypes": - if e.complexity.PlanGeneralCharacteristicsTranslation.AlternativePaymentModelTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AlternativePaymentModelTypes(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.authorityAllowances": - if e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowances == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowances(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.authorityAllowancesNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowancesNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowancesNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.authorityAllowancesOther": - if e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowancesOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowancesOther(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.careCoordinationInvolved": - if e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolved == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolved(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.careCoordinationInvolvedDescription": - if e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolvedDescription == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolvedDescription(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.careCoordinationInvolvedNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolvedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolvedNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.collectPlanBids": - if e.complexity.PlanGeneralCharacteristicsTranslation.CollectPlanBids == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.CollectPlanBids(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.collectPlanBidsNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.CollectPlanBidsNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.CollectPlanBidsNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.communityPartnersInvolved": - if e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolved == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolved(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.communityPartnersInvolvedDescription": - if e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolvedDescription == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolvedDescription(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.communityPartnersInvolvedNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolvedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolvedNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.currentModelPlanID": - if e.complexity.PlanGeneralCharacteristicsTranslation.CurrentModelPlanID == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.CurrentModelPlanID(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.existingModel": - if e.complexity.PlanGeneralCharacteristicsTranslation.ExistingModel == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ExistingModel(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.existingModelID": - if e.complexity.PlanGeneralCharacteristicsTranslation.ExistingModelID == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ExistingModelID(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.geographiesRegionTypes": - if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesRegionTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesRegionTypes(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.geographiesStatesAndTerritories": - if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesStatesAndTerritories == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesStatesAndTerritories(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.geographiesTargeted": - if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargeted == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargeted(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.geographiesTargetedAppliedTo": - if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedAppliedTo == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedAppliedTo(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.geographiesTargetedAppliedToOther": - if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedAppliedToOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedAppliedToOther(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.geographiesTargetedNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.geographiesTargetedTypes": - if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedTypes(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.geographiesTargetedTypesOther": - if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedTypesOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedTypesOther(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.hasComponentsOrTracks": - if e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracks == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracks(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.hasComponentsOrTracksDiffer": - if e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracksDiffer == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracksDiffer(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.hasComponentsOrTracksNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracksNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracksNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.isNewModel": - if e.complexity.PlanGeneralCharacteristicsTranslation.IsNewModel == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.IsNewModel(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.keyCharacteristics": - if e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristics == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristics(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.keyCharacteristicsNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristicsNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristicsNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.keyCharacteristicsOther": - if e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristicsOther == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristicsOther(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.managePartCDEnrollment": - if e.complexity.PlanGeneralCharacteristicsTranslation.ManagePartCDEnrollment == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ManagePartCDEnrollment(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.managePartCDEnrollmentNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.ManagePartCDEnrollmentNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ManagePartCDEnrollmentNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.multiplePatricipationAgreementsNeeded": - if e.complexity.PlanGeneralCharacteristicsTranslation.MultiplePatricipationAgreementsNeeded == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.MultiplePatricipationAgreementsNeeded(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.multiplePatricipationAgreementsNeededNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.MultiplePatricipationAgreementsNeededNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.MultiplePatricipationAgreementsNeededNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.participationInModelPrecondition": - if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPrecondition == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPrecondition(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionOtherOption": - if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionOtherOption == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionOtherOption(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionOtherSpecify": - if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionOtherSpecify == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionOtherSpecify(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionWhich": - if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionWhich == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionWhich(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionWhyHow": - if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionWhyHow == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionWhyHow(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.participationOptions": - if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationOptions == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationOptions(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.participationOptionsNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationOptionsNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationOptionsNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.planContractUpdated": - if e.complexity.PlanGeneralCharacteristicsTranslation.PlanContractUpdated == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.PlanContractUpdated(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.planContractUpdatedNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.PlanContractUpdatedNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.PlanContractUpdatedNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.readyForClearanceBy": - if e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForClearanceBy(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.readyForClearanceDts": - if e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForClearanceDts(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.readyForReviewBy": - if e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForReviewBy(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.readyForReviewDts": - if e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForReviewDts(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.resemblesExistingModel": - if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModel == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModel(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelHow": - if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelHow == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelHow(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelOtherOption": - if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelOtherOption == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelOtherOption(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelOtherSpecify": - if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelOtherSpecify == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelOtherSpecify(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelWhich": - if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelWhich == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelWhich(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelWhyHow": - if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelWhyHow == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelWhyHow(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.rulemakingRequired": - if e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequired == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequired(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.rulemakingRequiredDescription": - if e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequiredDescription == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequiredDescription(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.rulemakingRequiredNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequiredNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequiredNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.status": - if e.complexity.PlanGeneralCharacteristicsTranslation.Status == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.Status(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.waiversRequired": - if e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequired == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequired(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.waiversRequiredNote": - if e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequiredNote == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequiredNote(childComplexity), true - - case "PlanGeneralCharacteristicsTranslation.waiversRequiredTypes": - if e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequiredTypes == nil { - break - } - - return e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequiredTypes(childComplexity), true - - case "PlanOpsEvalAndLearning.anticipatedChallenges": - if e.complexity.PlanOpsEvalAndLearning.AnticipatedChallenges == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.AnticipatedChallenges(childComplexity), true - - case "PlanOpsEvalAndLearning.appToSendFilesToKnown": - if e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToKnown == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToKnown(childComplexity), true - - case "PlanOpsEvalAndLearning.appToSendFilesToNote": - if e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToNote(childComplexity), true - - case "PlanOpsEvalAndLearning.appToSendFilesToWhich": - if e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToWhich == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToWhich(childComplexity), true - - case "PlanOpsEvalAndLearning.appealFeedback": - if e.complexity.PlanOpsEvalAndLearning.AppealFeedback == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.AppealFeedback(childComplexity), true - - case "PlanOpsEvalAndLearning.appealNote": - if e.complexity.PlanOpsEvalAndLearning.AppealNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.AppealNote(childComplexity), true - - case "PlanOpsEvalAndLearning.appealOther": - if e.complexity.PlanOpsEvalAndLearning.AppealOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.AppealOther(childComplexity), true - - case "PlanOpsEvalAndLearning.appealPayments": - if e.complexity.PlanOpsEvalAndLearning.AppealPayments == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.AppealPayments(childComplexity), true - - case "PlanOpsEvalAndLearning.appealPerformance": - if e.complexity.PlanOpsEvalAndLearning.AppealPerformance == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.AppealPerformance(childComplexity), true - - case "PlanOpsEvalAndLearning.benchmarkForPerformance": - if e.complexity.PlanOpsEvalAndLearning.BenchmarkForPerformance == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.BenchmarkForPerformance(childComplexity), true - - case "PlanOpsEvalAndLearning.benchmarkForPerformanceNote": - if e.complexity.PlanOpsEvalAndLearning.BenchmarkForPerformanceNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.BenchmarkForPerformanceNote(childComplexity), true - - case "PlanOpsEvalAndLearning.captureParticipantInfo": - if e.complexity.PlanOpsEvalAndLearning.CaptureParticipantInfo == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.CaptureParticipantInfo(childComplexity), true - - case "PlanOpsEvalAndLearning.captureParticipantInfoNote": - if e.complexity.PlanOpsEvalAndLearning.CaptureParticipantInfoNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.CaptureParticipantInfoNote(childComplexity), true - - case "PlanOpsEvalAndLearning.ccmInvolvment": - if e.complexity.PlanOpsEvalAndLearning.CcmInvolvment == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.CcmInvolvment(childComplexity), true - - case "PlanOpsEvalAndLearning.ccmInvolvmentNote": - if e.complexity.PlanOpsEvalAndLearning.CcmInvolvmentNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.CcmInvolvmentNote(childComplexity), true - - case "PlanOpsEvalAndLearning.ccmInvolvmentOther": - if e.complexity.PlanOpsEvalAndLearning.CcmInvolvmentOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.CcmInvolvmentOther(childComplexity), true - - case "PlanOpsEvalAndLearning.computePerformanceScores": - if e.complexity.PlanOpsEvalAndLearning.ComputePerformanceScores == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ComputePerformanceScores(childComplexity), true - - case "PlanOpsEvalAndLearning.computePerformanceScoresNote": - if e.complexity.PlanOpsEvalAndLearning.ComputePerformanceScoresNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ComputePerformanceScoresNote(childComplexity), true - - case "PlanOpsEvalAndLearning.contractorSupport": - if e.complexity.PlanOpsEvalAndLearning.ContractorSupport == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ContractorSupport(childComplexity), true - - case "PlanOpsEvalAndLearning.contractorSupportHow": - if e.complexity.PlanOpsEvalAndLearning.ContractorSupportHow == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ContractorSupportHow(childComplexity), true - - case "PlanOpsEvalAndLearning.contractorSupportNote": - if e.complexity.PlanOpsEvalAndLearning.ContractorSupportNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ContractorSupportNote(childComplexity), true - - case "PlanOpsEvalAndLearning.contractorSupportOther": - if e.complexity.PlanOpsEvalAndLearning.ContractorSupportOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ContractorSupportOther(childComplexity), true - - case "PlanOpsEvalAndLearning.createdBy": - if e.complexity.PlanOpsEvalAndLearning.CreatedBy == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.CreatedBy(childComplexity), true - - case "PlanOpsEvalAndLearning.createdByUserAccount": - if e.complexity.PlanOpsEvalAndLearning.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.CreatedByUserAccount(childComplexity), true - - case "PlanOpsEvalAndLearning.createdDts": - if e.complexity.PlanOpsEvalAndLearning.CreatedDts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.CreatedDts(childComplexity), true - - case "PlanOpsEvalAndLearning.dataCollectionFrequency": - if e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequency == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequency(childComplexity), true - - case "PlanOpsEvalAndLearning.dataCollectionFrequencyContinually": - if e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyContinually == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyContinually(childComplexity), true - - case "PlanOpsEvalAndLearning.dataCollectionFrequencyNote": - if e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyNote(childComplexity), true - - case "PlanOpsEvalAndLearning.dataCollectionFrequencyOther": - if e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyOther(childComplexity), true - - case "PlanOpsEvalAndLearning.dataCollectionStarts": - if e.complexity.PlanOpsEvalAndLearning.DataCollectionStarts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataCollectionStarts(childComplexity), true - - case "PlanOpsEvalAndLearning.dataCollectionStartsOther": - if e.complexity.PlanOpsEvalAndLearning.DataCollectionStartsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataCollectionStartsOther(childComplexity), true - - case "PlanOpsEvalAndLearning.dataFlowDiagramsNeeded": - if e.complexity.PlanOpsEvalAndLearning.DataFlowDiagramsNeeded == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataFlowDiagramsNeeded(childComplexity), true - - case "PlanOpsEvalAndLearning.dataFullTimeOrIncremental": - if e.complexity.PlanOpsEvalAndLearning.DataFullTimeOrIncremental == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataFullTimeOrIncremental(childComplexity), true - - case "PlanOpsEvalAndLearning.dataMonitoringFileOther": - if e.complexity.PlanOpsEvalAndLearning.DataMonitoringFileOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataMonitoringFileOther(childComplexity), true - - case "PlanOpsEvalAndLearning.dataMonitoringFileTypes": - if e.complexity.PlanOpsEvalAndLearning.DataMonitoringFileTypes == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataMonitoringFileTypes(childComplexity), true - - case "PlanOpsEvalAndLearning.dataMonitoringNote": - if e.complexity.PlanOpsEvalAndLearning.DataMonitoringNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataMonitoringNote(childComplexity), true - - case "PlanOpsEvalAndLearning.dataNeededForMonitoring": - if e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoring == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoring(childComplexity), true - - case "PlanOpsEvalAndLearning.dataNeededForMonitoringNote": - if e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoringNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoringNote(childComplexity), true - - case "PlanOpsEvalAndLearning.dataNeededForMonitoringOther": - if e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoringOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoringOther(childComplexity), true - - case "PlanOpsEvalAndLearning.dataResponseFileFrequency": - if e.complexity.PlanOpsEvalAndLearning.DataResponseFileFrequency == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataResponseFileFrequency(childComplexity), true - - case "PlanOpsEvalAndLearning.dataResponseType": - if e.complexity.PlanOpsEvalAndLearning.DataResponseType == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataResponseType(childComplexity), true - - case "PlanOpsEvalAndLearning.dataSharingFrequency": - if e.complexity.PlanOpsEvalAndLearning.DataSharingFrequency == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataSharingFrequency(childComplexity), true - - case "PlanOpsEvalAndLearning.dataSharingFrequencyContinually": - if e.complexity.PlanOpsEvalAndLearning.DataSharingFrequencyContinually == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataSharingFrequencyContinually(childComplexity), true - - case "PlanOpsEvalAndLearning.dataSharingFrequencyOther": - if e.complexity.PlanOpsEvalAndLearning.DataSharingFrequencyOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataSharingFrequencyOther(childComplexity), true - - case "PlanOpsEvalAndLearning.dataSharingStarts": - if e.complexity.PlanOpsEvalAndLearning.DataSharingStarts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataSharingStarts(childComplexity), true - - case "PlanOpsEvalAndLearning.dataSharingStartsNote": - if e.complexity.PlanOpsEvalAndLearning.DataSharingStartsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataSharingStartsNote(childComplexity), true - - case "PlanOpsEvalAndLearning.dataSharingStartsOther": - if e.complexity.PlanOpsEvalAndLearning.DataSharingStartsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataSharingStartsOther(childComplexity), true - - case "PlanOpsEvalAndLearning.dataToSendParticicipants": - if e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipants == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipants(childComplexity), true - - case "PlanOpsEvalAndLearning.dataToSendParticicipantsNote": - if e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipantsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipantsNote(childComplexity), true - - case "PlanOpsEvalAndLearning.dataToSendParticicipantsOther": - if e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipantsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipantsOther(childComplexity), true - - case "PlanOpsEvalAndLearning.developNewQualityMeasures": - if e.complexity.PlanOpsEvalAndLearning.DevelopNewQualityMeasures == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DevelopNewQualityMeasures(childComplexity), true - - case "PlanOpsEvalAndLearning.developNewQualityMeasuresNote": - if e.complexity.PlanOpsEvalAndLearning.DevelopNewQualityMeasuresNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DevelopNewQualityMeasuresNote(childComplexity), true - - case "PlanOpsEvalAndLearning.draftIcdDueDate": - if e.complexity.PlanOpsEvalAndLearning.DraftIcdDueDate == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.DraftIcdDueDate(childComplexity), true - - case "PlanOpsEvalAndLearning.eftSetUp": - if e.complexity.PlanOpsEvalAndLearning.EftSetUp == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.EftSetUp(childComplexity), true - - case "PlanOpsEvalAndLearning.evaluationApproachOther": - if e.complexity.PlanOpsEvalAndLearning.EvaluationApproachOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.EvaluationApproachOther(childComplexity), true - - case "PlanOpsEvalAndLearning.evaluationApproaches": - if e.complexity.PlanOpsEvalAndLearning.EvaluationApproaches == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.EvaluationApproaches(childComplexity), true - - case "PlanOpsEvalAndLearning.evalutaionApproachNote": - if e.complexity.PlanOpsEvalAndLearning.EvalutaionApproachNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.EvalutaionApproachNote(childComplexity), true - - case "PlanOpsEvalAndLearning.fileNamingConventions": - if e.complexity.PlanOpsEvalAndLearning.FileNamingConventions == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.FileNamingConventions(childComplexity), true - - case "PlanOpsEvalAndLearning.helpdeskUse": - if e.complexity.PlanOpsEvalAndLearning.HelpdeskUse == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.HelpdeskUse(childComplexity), true - - case "PlanOpsEvalAndLearning.helpdeskUseNote": - if e.complexity.PlanOpsEvalAndLearning.HelpdeskUseNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.HelpdeskUseNote(childComplexity), true - - case "PlanOpsEvalAndLearning.id": - if e.complexity.PlanOpsEvalAndLearning.ID == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ID(childComplexity), true - - case "PlanOpsEvalAndLearning.icdNote": - if e.complexity.PlanOpsEvalAndLearning.IcdNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.IcdNote(childComplexity), true - - case "PlanOpsEvalAndLearning.icdOwner": - if e.complexity.PlanOpsEvalAndLearning.IcdOwner == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.IcdOwner(childComplexity), true - - case "PlanOpsEvalAndLearning.iddocSupport": - if e.complexity.PlanOpsEvalAndLearning.IddocSupport == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.IddocSupport(childComplexity), true - - case "PlanOpsEvalAndLearning.iddocSupportNote": - if e.complexity.PlanOpsEvalAndLearning.IddocSupportNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.IddocSupportNote(childComplexity), true - - case "PlanOpsEvalAndLearning.modelLearningSystems": - if e.complexity.PlanOpsEvalAndLearning.ModelLearningSystems == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ModelLearningSystems(childComplexity), true - - case "PlanOpsEvalAndLearning.modelLearningSystemsNote": - if e.complexity.PlanOpsEvalAndLearning.ModelLearningSystemsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ModelLearningSystemsNote(childComplexity), true - - case "PlanOpsEvalAndLearning.modelLearningSystemsOther": - if e.complexity.PlanOpsEvalAndLearning.ModelLearningSystemsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ModelLearningSystemsOther(childComplexity), true - - case "PlanOpsEvalAndLearning.modelPlanID": - if e.complexity.PlanOpsEvalAndLearning.ModelPlanID == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ModelPlanID(childComplexity), true - - case "PlanOpsEvalAndLearning.modifiedBy": - if e.complexity.PlanOpsEvalAndLearning.ModifiedBy == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ModifiedBy(childComplexity), true - - case "PlanOpsEvalAndLearning.modifiedByUserAccount": - if e.complexity.PlanOpsEvalAndLearning.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ModifiedByUserAccount(childComplexity), true - - case "PlanOpsEvalAndLearning.modifiedDts": - if e.complexity.PlanOpsEvalAndLearning.ModifiedDts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ModifiedDts(childComplexity), true - - case "PlanOpsEvalAndLearning.produceBenefitEnhancementFiles": - if e.complexity.PlanOpsEvalAndLearning.ProduceBenefitEnhancementFiles == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ProduceBenefitEnhancementFiles(childComplexity), true - - case "PlanOpsEvalAndLearning.qualityPerformanceImpactsPayment": - if e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPayment == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPayment(childComplexity), true - - case "PlanOpsEvalAndLearning.qualityPerformanceImpactsPaymentNote": - if e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPaymentNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPaymentNote(childComplexity), true - - case "PlanOpsEvalAndLearning.qualityPerformanceImpactsPaymentOther": - if e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPaymentOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPaymentOther(childComplexity), true - - case "PlanOpsEvalAndLearning.qualityReportingFrequency": - if e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequency == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequency(childComplexity), true - - case "PlanOpsEvalAndLearning.qualityReportingFrequencyContinually": - if e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequencyContinually == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequencyContinually(childComplexity), true - - case "PlanOpsEvalAndLearning.qualityReportingFrequencyOther": - if e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequencyOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequencyOther(childComplexity), true - - case "PlanOpsEvalAndLearning.qualityReportingStarts": - if e.complexity.PlanOpsEvalAndLearning.QualityReportingStarts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.QualityReportingStarts(childComplexity), true - - case "PlanOpsEvalAndLearning.qualityReportingStartsNote": - if e.complexity.PlanOpsEvalAndLearning.QualityReportingStartsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.QualityReportingStartsNote(childComplexity), true - - case "PlanOpsEvalAndLearning.qualityReportingStartsOther": - if e.complexity.PlanOpsEvalAndLearning.QualityReportingStartsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.QualityReportingStartsOther(childComplexity), true - - case "PlanOpsEvalAndLearning.readyForClearanceBy": - if e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceBy(childComplexity), true - - case "PlanOpsEvalAndLearning.readyForClearanceByUserAccount": - if e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceByUserAccount == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceByUserAccount(childComplexity), true - - case "PlanOpsEvalAndLearning.readyForClearanceDts": - if e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceDts(childComplexity), true - - case "PlanOpsEvalAndLearning.readyForReviewBy": - if e.complexity.PlanOpsEvalAndLearning.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ReadyForReviewBy(childComplexity), true - - case "PlanOpsEvalAndLearning.readyForReviewByUserAccount": - if e.complexity.PlanOpsEvalAndLearning.ReadyForReviewByUserAccount == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ReadyForReviewByUserAccount(childComplexity), true - - case "PlanOpsEvalAndLearning.readyForReviewDts": - if e.complexity.PlanOpsEvalAndLearning.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ReadyForReviewDts(childComplexity), true - - case "PlanOpsEvalAndLearning.riskAdjustFeedback": - if e.complexity.PlanOpsEvalAndLearning.RiskAdjustFeedback == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.RiskAdjustFeedback(childComplexity), true - - case "PlanOpsEvalAndLearning.riskAdjustNote": - if e.complexity.PlanOpsEvalAndLearning.RiskAdjustNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.RiskAdjustNote(childComplexity), true - - case "PlanOpsEvalAndLearning.riskAdjustOther": - if e.complexity.PlanOpsEvalAndLearning.RiskAdjustOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.RiskAdjustOther(childComplexity), true - - case "PlanOpsEvalAndLearning.riskAdjustPayments": - if e.complexity.PlanOpsEvalAndLearning.RiskAdjustPayments == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.RiskAdjustPayments(childComplexity), true - - case "PlanOpsEvalAndLearning.riskAdjustPerformance": - if e.complexity.PlanOpsEvalAndLearning.RiskAdjustPerformance == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.RiskAdjustPerformance(childComplexity), true - - case "PlanOpsEvalAndLearning.sendFilesBetweenCcw": - if e.complexity.PlanOpsEvalAndLearning.SendFilesBetweenCcw == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.SendFilesBetweenCcw(childComplexity), true - - case "PlanOpsEvalAndLearning.sendFilesBetweenCcwNote": - if e.complexity.PlanOpsEvalAndLearning.SendFilesBetweenCcwNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.SendFilesBetweenCcwNote(childComplexity), true - - case "PlanOpsEvalAndLearning.shareCclfData": - if e.complexity.PlanOpsEvalAndLearning.ShareCclfData == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ShareCclfData(childComplexity), true - - case "PlanOpsEvalAndLearning.shareCclfDataNote": - if e.complexity.PlanOpsEvalAndLearning.ShareCclfDataNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.ShareCclfDataNote(childComplexity), true - - case "PlanOpsEvalAndLearning.stakeholders": - if e.complexity.PlanOpsEvalAndLearning.Stakeholders == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.Stakeholders(childComplexity), true - - case "PlanOpsEvalAndLearning.stakeholdersNote": - if e.complexity.PlanOpsEvalAndLearning.StakeholdersNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.StakeholdersNote(childComplexity), true - - case "PlanOpsEvalAndLearning.stakeholdersOther": - if e.complexity.PlanOpsEvalAndLearning.StakeholdersOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.StakeholdersOther(childComplexity), true - - case "PlanOpsEvalAndLearning.status": - if e.complexity.PlanOpsEvalAndLearning.Status == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.Status(childComplexity), true - - case "PlanOpsEvalAndLearning.stcNeeds": - if e.complexity.PlanOpsEvalAndLearning.StcNeeds == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.StcNeeds(childComplexity), true - - case "PlanOpsEvalAndLearning.technicalContactsIdentified": - if e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentified == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentified(childComplexity), true - - case "PlanOpsEvalAndLearning.technicalContactsIdentifiedDetail": - if e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentifiedDetail == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentifiedDetail(childComplexity), true - - case "PlanOpsEvalAndLearning.technicalContactsIdentifiedNote": - if e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentifiedNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentifiedNote(childComplexity), true - - case "PlanOpsEvalAndLearning.testingNote": - if e.complexity.PlanOpsEvalAndLearning.TestingNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.TestingNote(childComplexity), true - - case "PlanOpsEvalAndLearning.testingTimelines": - if e.complexity.PlanOpsEvalAndLearning.TestingTimelines == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.TestingTimelines(childComplexity), true - - case "PlanOpsEvalAndLearning.uatNeeds": - if e.complexity.PlanOpsEvalAndLearning.UatNeeds == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.UatNeeds(childComplexity), true - - case "PlanOpsEvalAndLearning.unsolicitedAdjustmentsIncluded": - if e.complexity.PlanOpsEvalAndLearning.UnsolicitedAdjustmentsIncluded == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.UnsolicitedAdjustmentsIncluded(childComplexity), true - - case "PlanOpsEvalAndLearning.useCcwForFileDistribiutionToParticipants": - if e.complexity.PlanOpsEvalAndLearning.UseCcwForFileDistribiutionToParticipants == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.UseCcwForFileDistribiutionToParticipants(childComplexity), true - - case "PlanOpsEvalAndLearning.useCcwForFileDistribiutionToParticipantsNote": - if e.complexity.PlanOpsEvalAndLearning.UseCcwForFileDistribiutionToParticipantsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearning.UseCcwForFileDistribiutionToParticipantsNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.anticipatedChallenges": - if e.complexity.PlanOpsEvalAndLearningTranslation.AnticipatedChallenges == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.AnticipatedChallenges(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.appToSendFilesToKnown": - if e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToKnown == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToKnown(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.appToSendFilesToNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.appToSendFilesToWhich": - if e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToWhich == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToWhich(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.appealFeedback": - if e.complexity.PlanOpsEvalAndLearningTranslation.AppealFeedback == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.AppealFeedback(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.appealNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.AppealNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.AppealNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.appealOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.AppealOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.AppealOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.appealPayments": - if e.complexity.PlanOpsEvalAndLearningTranslation.AppealPayments == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.AppealPayments(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.appealPerformance": - if e.complexity.PlanOpsEvalAndLearningTranslation.AppealPerformance == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.AppealPerformance(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.benchmarkForPerformance": - if e.complexity.PlanOpsEvalAndLearningTranslation.BenchmarkForPerformance == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.BenchmarkForPerformance(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.benchmarkForPerformanceNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.BenchmarkForPerformanceNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.BenchmarkForPerformanceNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.captureParticipantInfo": - if e.complexity.PlanOpsEvalAndLearningTranslation.CaptureParticipantInfo == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.CaptureParticipantInfo(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.captureParticipantInfoNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.CaptureParticipantInfoNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.CaptureParticipantInfoNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.ccmInvolvment": - if e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvment == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvment(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.ccmInvolvmentNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvmentNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvmentNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.ccmInvolvmentOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvmentOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvmentOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.computePerformanceScores": - if e.complexity.PlanOpsEvalAndLearningTranslation.ComputePerformanceScores == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ComputePerformanceScores(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.computePerformanceScoresNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.ComputePerformanceScoresNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ComputePerformanceScoresNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.contractorSupport": - if e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupport == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupport(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.contractorSupportHow": - if e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportHow == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportHow(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.contractorSupportNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.contractorSupportOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataCollectionFrequency": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequency == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequency(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataCollectionFrequencyContinually": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyContinually == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyContinually(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataCollectionFrequencyNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataCollectionFrequencyOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataCollectionStarts": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionStarts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionStarts(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataCollectionStartsOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionStartsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionStartsOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataFlowDiagramsNeeded": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataFlowDiagramsNeeded == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataFlowDiagramsNeeded(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataFullTimeOrIncremental": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataFullTimeOrIncremental == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataFullTimeOrIncremental(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataMonitoringFileOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringFileOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringFileOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataMonitoringFileTypes": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringFileTypes == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringFileTypes(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataMonitoringNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataNeededForMonitoring": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoring == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoring(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataNeededForMonitoringNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoringNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoringNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataNeededForMonitoringOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoringOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoringOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataResponseFileFrequency": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataResponseFileFrequency == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataResponseFileFrequency(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataResponseType": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataResponseType == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataResponseType(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataSharingFrequency": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequency == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequency(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataSharingFrequencyContinually": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequencyContinually == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequencyContinually(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataSharingFrequencyOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequencyOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequencyOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataSharingStarts": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStarts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStarts(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataSharingStartsNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStartsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStartsNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataSharingStartsOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStartsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStartsOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataToSendParticicipants": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipants == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipants(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataToSendParticicipantsNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipantsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipantsNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.dataToSendParticicipantsOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipantsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipantsOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.developNewQualityMeasures": - if e.complexity.PlanOpsEvalAndLearningTranslation.DevelopNewQualityMeasures == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DevelopNewQualityMeasures(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.developNewQualityMeasuresNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.DevelopNewQualityMeasuresNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DevelopNewQualityMeasuresNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.draftIcdDueDate": - if e.complexity.PlanOpsEvalAndLearningTranslation.DraftIcdDueDate == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.DraftIcdDueDate(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.eftSetUp": - if e.complexity.PlanOpsEvalAndLearningTranslation.EftSetUp == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.EftSetUp(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.evaluationApproachOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.EvaluationApproachOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.EvaluationApproachOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.evaluationApproaches": - if e.complexity.PlanOpsEvalAndLearningTranslation.EvaluationApproaches == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.EvaluationApproaches(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.evalutaionApproachNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.EvalutaionApproachNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.EvalutaionApproachNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.fileNamingConventions": - if e.complexity.PlanOpsEvalAndLearningTranslation.FileNamingConventions == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.FileNamingConventions(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.helpdeskUse": - if e.complexity.PlanOpsEvalAndLearningTranslation.HelpdeskUse == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.HelpdeskUse(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.helpdeskUseNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.HelpdeskUseNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.HelpdeskUseNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.icdNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.IcdNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.IcdNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.icdOwner": - if e.complexity.PlanOpsEvalAndLearningTranslation.IcdOwner == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.IcdOwner(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.iddocSupport": - if e.complexity.PlanOpsEvalAndLearningTranslation.IddocSupport == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.IddocSupport(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.iddocSupportNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.IddocSupportNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.IddocSupportNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.modelLearningSystems": - if e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystems == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystems(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.modelLearningSystemsNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystemsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystemsNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.modelLearningSystemsOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystemsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystemsOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.produceBenefitEnhancementFiles": - if e.complexity.PlanOpsEvalAndLearningTranslation.ProduceBenefitEnhancementFiles == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ProduceBenefitEnhancementFiles(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.qualityPerformanceImpactsPayment": - if e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPayment == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPayment(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.qualityPerformanceImpactsPaymentNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPaymentNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPaymentNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.qualityPerformanceImpactsPaymentOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPaymentOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPaymentOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.qualityReportingFrequency": - if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequency == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequency(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.qualityReportingFrequencyContinually": - if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequencyContinually == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequencyContinually(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.qualityReportingFrequencyOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequencyOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequencyOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.qualityReportingStarts": - if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStarts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStarts(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.qualityReportingStartsNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStartsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStartsNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.qualityReportingStartsOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStartsOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStartsOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.readyForClearanceBy": - if e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForClearanceBy(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.readyForClearanceDts": - if e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForClearanceDts(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.readyForReviewBy": - if e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForReviewBy(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.readyForReviewDts": - if e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForReviewDts(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.riskAdjustFeedback": - if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustFeedback == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustFeedback(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.riskAdjustNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.riskAdjustOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.riskAdjustPayments": - if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustPayments == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustPayments(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.riskAdjustPerformance": - if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustPerformance == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustPerformance(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.sendFilesBetweenCcw": - if e.complexity.PlanOpsEvalAndLearningTranslation.SendFilesBetweenCcw == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.SendFilesBetweenCcw(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.sendFilesBetweenCcwNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.SendFilesBetweenCcwNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.SendFilesBetweenCcwNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.shareCclfData": - if e.complexity.PlanOpsEvalAndLearningTranslation.ShareCclfData == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ShareCclfData(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.shareCclfDataNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.ShareCclfDataNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.ShareCclfDataNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.stakeholders": - if e.complexity.PlanOpsEvalAndLearningTranslation.Stakeholders == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.Stakeholders(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.stakeholdersNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.StakeholdersNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.StakeholdersNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.stakeholdersOther": - if e.complexity.PlanOpsEvalAndLearningTranslation.StakeholdersOther == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.StakeholdersOther(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.status": - if e.complexity.PlanOpsEvalAndLearningTranslation.Status == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.Status(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.stcNeeds": - if e.complexity.PlanOpsEvalAndLearningTranslation.StcNeeds == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.StcNeeds(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.technicalContactsIdentified": - if e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentified == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentified(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.technicalContactsIdentifiedDetail": - if e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentifiedDetail == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentifiedDetail(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.technicalContactsIdentifiedNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentifiedNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentifiedNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.testingNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.TestingNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.TestingNote(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.testingTimelines": - if e.complexity.PlanOpsEvalAndLearningTranslation.TestingTimelines == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.TestingTimelines(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.uatNeeds": - if e.complexity.PlanOpsEvalAndLearningTranslation.UatNeeds == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.UatNeeds(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.unsolicitedAdjustmentsIncluded": - if e.complexity.PlanOpsEvalAndLearningTranslation.UnsolicitedAdjustmentsIncluded == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.UnsolicitedAdjustmentsIncluded(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.useCcwForFileDistribiutionToParticipants": - if e.complexity.PlanOpsEvalAndLearningTranslation.UseCcwForFileDistribiutionToParticipants == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.UseCcwForFileDistribiutionToParticipants(childComplexity), true - - case "PlanOpsEvalAndLearningTranslation.useCcwForFileDistribiutionToParticipantsNote": - if e.complexity.PlanOpsEvalAndLearningTranslation.UseCcwForFileDistribiutionToParticipantsNote == nil { - break - } - - return e.complexity.PlanOpsEvalAndLearningTranslation.UseCcwForFileDistribiutionToParticipantsNote(childComplexity), true - - case "PlanParticipantsAndProviders.communicationMethod": - if e.complexity.PlanParticipantsAndProviders.CommunicationMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.CommunicationMethod(childComplexity), true - - case "PlanParticipantsAndProviders.communicationMethodOther": - if e.complexity.PlanParticipantsAndProviders.CommunicationMethodOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.CommunicationMethodOther(childComplexity), true - - case "PlanParticipantsAndProviders.communicationNote": - if e.complexity.PlanParticipantsAndProviders.CommunicationNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.CommunicationNote(childComplexity), true - - case "PlanParticipantsAndProviders.confidenceNote": - if e.complexity.PlanParticipantsAndProviders.ConfidenceNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ConfidenceNote(childComplexity), true - - case "PlanParticipantsAndProviders.coordinateWork": - if e.complexity.PlanParticipantsAndProviders.CoordinateWork == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.CoordinateWork(childComplexity), true - - case "PlanParticipantsAndProviders.coordinateWorkNote": - if e.complexity.PlanParticipantsAndProviders.CoordinateWorkNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.CoordinateWorkNote(childComplexity), true - - case "PlanParticipantsAndProviders.createdBy": - if e.complexity.PlanParticipantsAndProviders.CreatedBy == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.CreatedBy(childComplexity), true - - case "PlanParticipantsAndProviders.createdByUserAccount": - if e.complexity.PlanParticipantsAndProviders.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.CreatedByUserAccount(childComplexity), true - - case "PlanParticipantsAndProviders.createdDts": - if e.complexity.PlanParticipantsAndProviders.CreatedDts == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.CreatedDts(childComplexity), true - - case "PlanParticipantsAndProviders.estimateConfidence": - if e.complexity.PlanParticipantsAndProviders.EstimateConfidence == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.EstimateConfidence(childComplexity), true - - case "PlanParticipantsAndProviders.expectedNumberOfParticipants": - if e.complexity.PlanParticipantsAndProviders.ExpectedNumberOfParticipants == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ExpectedNumberOfParticipants(childComplexity), true - - case "PlanParticipantsAndProviders.gainsharePayments": - if e.complexity.PlanParticipantsAndProviders.GainsharePayments == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.GainsharePayments(childComplexity), true - - case "PlanParticipantsAndProviders.gainsharePaymentsEligibility": - if e.complexity.PlanParticipantsAndProviders.GainsharePaymentsEligibility == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.GainsharePaymentsEligibility(childComplexity), true - - case "PlanParticipantsAndProviders.gainsharePaymentsEligibilityOther": - if e.complexity.PlanParticipantsAndProviders.GainsharePaymentsEligibilityOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.GainsharePaymentsEligibilityOther(childComplexity), true - - case "PlanParticipantsAndProviders.gainsharePaymentsNote": - if e.complexity.PlanParticipantsAndProviders.GainsharePaymentsNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.GainsharePaymentsNote(childComplexity), true - - case "PlanParticipantsAndProviders.gainsharePaymentsTrack": - if e.complexity.PlanParticipantsAndProviders.GainsharePaymentsTrack == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.GainsharePaymentsTrack(childComplexity), true - - case "PlanParticipantsAndProviders.id": - if e.complexity.PlanParticipantsAndProviders.ID == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ID(childComplexity), true - - case "PlanParticipantsAndProviders.isNewTypeOfProvidersOrSuppliers": - if e.complexity.PlanParticipantsAndProviders.IsNewTypeOfProvidersOrSuppliers == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.IsNewTypeOfProvidersOrSuppliers(childComplexity), true - - case "PlanParticipantsAndProviders.medicareProviderType": - if e.complexity.PlanParticipantsAndProviders.MedicareProviderType == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.MedicareProviderType(childComplexity), true - - case "PlanParticipantsAndProviders.modelApplicationLevel": - if e.complexity.PlanParticipantsAndProviders.ModelApplicationLevel == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ModelApplicationLevel(childComplexity), true - - case "PlanParticipantsAndProviders.modelPlanID": - if e.complexity.PlanParticipantsAndProviders.ModelPlanID == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ModelPlanID(childComplexity), true - - case "PlanParticipantsAndProviders.modifiedBy": - if e.complexity.PlanParticipantsAndProviders.ModifiedBy == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ModifiedBy(childComplexity), true - - case "PlanParticipantsAndProviders.modifiedByUserAccount": - if e.complexity.PlanParticipantsAndProviders.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ModifiedByUserAccount(childComplexity), true - - case "PlanParticipantsAndProviders.modifiedDts": - if e.complexity.PlanParticipantsAndProviders.ModifiedDts == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ModifiedDts(childComplexity), true - - case "PlanParticipantsAndProviders.participantAddedFrequency": - if e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequency == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequency(childComplexity), true - - case "PlanParticipantsAndProviders.participantAddedFrequencyContinually": - if e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyContinually == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyContinually(childComplexity), true - - case "PlanParticipantsAndProviders.participantAddedFrequencyNote": - if e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyNote(childComplexity), true - - case "PlanParticipantsAndProviders.participantAddedFrequencyOther": - if e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyOther(childComplexity), true - - case "PlanParticipantsAndProviders.participantRemovedFrequency": - if e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequency == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequency(childComplexity), true - - case "PlanParticipantsAndProviders.participantRemovedFrequencyContinually": - if e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyContinually == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyContinually(childComplexity), true - - case "PlanParticipantsAndProviders.participantRemovedFrequencyNote": - if e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyNote(childComplexity), true - - case "PlanParticipantsAndProviders.participantRemovedFrequencyOther": - if e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyOther(childComplexity), true - - case "PlanParticipantsAndProviders.participantRequireFinancialGuarantee": - if e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuarantee == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuarantee(childComplexity), true - - case "PlanParticipantsAndProviders.participantRequireFinancialGuaranteeNote": - if e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeNote(childComplexity), true - - case "PlanParticipantsAndProviders.participantRequireFinancialGuaranteeOther": - if e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeOther(childComplexity), true - - case "PlanParticipantsAndProviders.participantRequireFinancialGuaranteeType": - if e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeType == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeType(childComplexity), true - - case "PlanParticipantsAndProviders.participants": - if e.complexity.PlanParticipantsAndProviders.Participants == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.Participants(childComplexity), true - - case "PlanParticipantsAndProviders.participantsCurrentlyInModels": - if e.complexity.PlanParticipantsAndProviders.ParticipantsCurrentlyInModels == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantsCurrentlyInModels(childComplexity), true - - case "PlanParticipantsAndProviders.participantsCurrentlyInModelsNote": - if e.complexity.PlanParticipantsAndProviders.ParticipantsCurrentlyInModelsNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantsCurrentlyInModelsNote(childComplexity), true - - case "PlanParticipantsAndProviders.participantsIDSNote": - if e.complexity.PlanParticipantsAndProviders.ParticipantsIDSNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantsIDSNote(childComplexity), true - - case "PlanParticipantsAndProviders.participantsIds": - if e.complexity.PlanParticipantsAndProviders.ParticipantsIds == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantsIds(childComplexity), true - - case "PlanParticipantsAndProviders.participantsIdsOther": - if e.complexity.PlanParticipantsAndProviders.ParticipantsIdsOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantsIdsOther(childComplexity), true - - case "PlanParticipantsAndProviders.participantsNote": - if e.complexity.PlanParticipantsAndProviders.ParticipantsNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantsNote(childComplexity), true - - case "PlanParticipantsAndProviders.participantsOther": - if e.complexity.PlanParticipantsAndProviders.ParticipantsOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ParticipantsOther(childComplexity), true - - case "PlanParticipantsAndProviders.providerAddMethod": - if e.complexity.PlanParticipantsAndProviders.ProviderAddMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderAddMethod(childComplexity), true - - case "PlanParticipantsAndProviders.providerAddMethodNote": - if e.complexity.PlanParticipantsAndProviders.ProviderAddMethodNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderAddMethodNote(childComplexity), true - - case "PlanParticipantsAndProviders.providerAddMethodOther": - if e.complexity.PlanParticipantsAndProviders.ProviderAddMethodOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderAddMethodOther(childComplexity), true - - case "PlanParticipantsAndProviders.providerAdditionFrequency": - if e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequency == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequency(childComplexity), true - - case "PlanParticipantsAndProviders.providerAdditionFrequencyContinually": - if e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyContinually == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyContinually(childComplexity), true - - case "PlanParticipantsAndProviders.providerAdditionFrequencyNote": - if e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyNote(childComplexity), true - - case "PlanParticipantsAndProviders.providerAdditionFrequencyOther": - if e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyOther(childComplexity), true - - case "PlanParticipantsAndProviders.providerLeaveMethod": - if e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethod(childComplexity), true - - case "PlanParticipantsAndProviders.providerLeaveMethodNote": - if e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethodNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethodNote(childComplexity), true - - case "PlanParticipantsAndProviders.providerLeaveMethodOther": - if e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethodOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethodOther(childComplexity), true - - case "PlanParticipantsAndProviders.providerOverlap": - if e.complexity.PlanParticipantsAndProviders.ProviderOverlap == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderOverlap(childComplexity), true - - case "PlanParticipantsAndProviders.providerOverlapHierarchy": - if e.complexity.PlanParticipantsAndProviders.ProviderOverlapHierarchy == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderOverlapHierarchy(childComplexity), true - - case "PlanParticipantsAndProviders.providerOverlapNote": - if e.complexity.PlanParticipantsAndProviders.ProviderOverlapNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderOverlapNote(childComplexity), true - - case "PlanParticipantsAndProviders.providerRemovalFrequency": - if e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequency == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequency(childComplexity), true - - case "PlanParticipantsAndProviders.providerRemovalFrequencyContinually": - if e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyContinually == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyContinually(childComplexity), true - - case "PlanParticipantsAndProviders.providerRemovalFrequencyNote": - if e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyNote(childComplexity), true - - case "PlanParticipantsAndProviders.providerRemovalFrequencyOther": - if e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyOther(childComplexity), true - - case "PlanParticipantsAndProviders.readyForClearanceBy": - if e.complexity.PlanParticipantsAndProviders.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ReadyForClearanceBy(childComplexity), true - - case "PlanParticipantsAndProviders.readyForClearanceByUserAccount": - if e.complexity.PlanParticipantsAndProviders.ReadyForClearanceByUserAccount == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ReadyForClearanceByUserAccount(childComplexity), true - - case "PlanParticipantsAndProviders.readyForClearanceDts": - if e.complexity.PlanParticipantsAndProviders.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ReadyForClearanceDts(childComplexity), true - - case "PlanParticipantsAndProviders.readyForReviewBy": - if e.complexity.PlanParticipantsAndProviders.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ReadyForReviewBy(childComplexity), true - - case "PlanParticipantsAndProviders.readyForReviewByUserAccount": - if e.complexity.PlanParticipantsAndProviders.ReadyForReviewByUserAccount == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ReadyForReviewByUserAccount(childComplexity), true - - case "PlanParticipantsAndProviders.readyForReviewDts": - if e.complexity.PlanParticipantsAndProviders.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.ReadyForReviewDts(childComplexity), true - - case "PlanParticipantsAndProviders.recruitmentMethod": - if e.complexity.PlanParticipantsAndProviders.RecruitmentMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.RecruitmentMethod(childComplexity), true - - case "PlanParticipantsAndProviders.recruitmentNote": - if e.complexity.PlanParticipantsAndProviders.RecruitmentNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.RecruitmentNote(childComplexity), true - - case "PlanParticipantsAndProviders.recruitmentOther": - if e.complexity.PlanParticipantsAndProviders.RecruitmentOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.RecruitmentOther(childComplexity), true - - case "PlanParticipantsAndProviders.riskNote": - if e.complexity.PlanParticipantsAndProviders.RiskNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.RiskNote(childComplexity), true - - case "PlanParticipantsAndProviders.riskOther": - if e.complexity.PlanParticipantsAndProviders.RiskOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.RiskOther(childComplexity), true - - case "PlanParticipantsAndProviders.riskType": - if e.complexity.PlanParticipantsAndProviders.RiskType == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.RiskType(childComplexity), true - - case "PlanParticipantsAndProviders.selectionMethod": - if e.complexity.PlanParticipantsAndProviders.SelectionMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.SelectionMethod(childComplexity), true - - case "PlanParticipantsAndProviders.selectionNote": - if e.complexity.PlanParticipantsAndProviders.SelectionNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.SelectionNote(childComplexity), true - - case "PlanParticipantsAndProviders.selectionOther": - if e.complexity.PlanParticipantsAndProviders.SelectionOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.SelectionOther(childComplexity), true - - case "PlanParticipantsAndProviders.statesEngagement": - if e.complexity.PlanParticipantsAndProviders.StatesEngagement == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.StatesEngagement(childComplexity), true - - case "PlanParticipantsAndProviders.status": - if e.complexity.PlanParticipantsAndProviders.Status == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.Status(childComplexity), true - - case "PlanParticipantsAndProviders.willRiskChange": - if e.complexity.PlanParticipantsAndProviders.WillRiskChange == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.WillRiskChange(childComplexity), true - - case "PlanParticipantsAndProviders.willRiskChangeNote": - if e.complexity.PlanParticipantsAndProviders.WillRiskChangeNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProviders.WillRiskChangeNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.communicationMethod": - if e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationMethod(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.communicationMethodOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationMethodOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationMethodOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.communicationNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.confidenceNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ConfidenceNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ConfidenceNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.coordinateWork": - if e.complexity.PlanParticipantsAndProvidersTranslation.CoordinateWork == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.CoordinateWork(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.coordinateWorkNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.CoordinateWorkNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.CoordinateWorkNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.estimateConfidence": - if e.complexity.PlanParticipantsAndProvidersTranslation.EstimateConfidence == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.EstimateConfidence(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.expectedNumberOfParticipants": - if e.complexity.PlanParticipantsAndProvidersTranslation.ExpectedNumberOfParticipants == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ExpectedNumberOfParticipants(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.gainsharePayments": - if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePayments == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePayments(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.gainsharePaymentsEligibility": - if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsEligibility == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsEligibility(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.gainsharePaymentsEligibilityOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsEligibilityOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsEligibilityOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.gainsharePaymentsNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.gainsharePaymentsTrack": - if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsTrack == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsTrack(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.isNewTypeOfProvidersOrSuppliers": - if e.complexity.PlanParticipantsAndProvidersTranslation.IsNewTypeOfProvidersOrSuppliers == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.IsNewTypeOfProvidersOrSuppliers(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.medicareProviderType": - if e.complexity.PlanParticipantsAndProvidersTranslation.MedicareProviderType == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.MedicareProviderType(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.modelApplicationLevel": - if e.complexity.PlanParticipantsAndProvidersTranslation.ModelApplicationLevel == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ModelApplicationLevel(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantAddedFrequency": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequency == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequency(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantAddedFrequencyContinually": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyContinually == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyContinually(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantAddedFrequencyNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantAddedFrequencyOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantRemovedFrequency": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequency == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequency(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantRemovedFrequencyContinually": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyContinually == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyContinually(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantRemovedFrequencyNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantRemovedFrequencyOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantRequireFinancialGuarantee": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuarantee == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuarantee(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantRequireFinancialGuaranteeNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantRequireFinancialGuaranteeOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantRequireFinancialGuaranteeType": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeType == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeType(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participants": - if e.complexity.PlanParticipantsAndProvidersTranslation.Participants == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.Participants(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantsCurrentlyInModels": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsCurrentlyInModels == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsCurrentlyInModels(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantsCurrentlyInModelsNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsCurrentlyInModelsNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsCurrentlyInModelsNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantsIDSNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIDSNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIDSNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantsIds": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIds == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIds(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantsIdsOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIdsOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIdsOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantsNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.participantsOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerAddMethod": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethod(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerAddMethodNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethodNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethodNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerAddMethodOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethodOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethodOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerAdditionFrequency": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequency == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequency(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerAdditionFrequencyContinually": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyContinually == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyContinually(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerAdditionFrequencyNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerAdditionFrequencyOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerLeaveMethod": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethod(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerLeaveMethodNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethodNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethodNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerLeaveMethodOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethodOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethodOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerOverlap": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlap == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlap(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerOverlapHierarchy": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlapHierarchy == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlapHierarchy(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerOverlapNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlapNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlapNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerRemovalFrequency": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequency == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequency(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerRemovalFrequencyContinually": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyContinually == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyContinually(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerRemovalFrequencyNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.providerRemovalFrequencyOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.readyForClearanceBy": - if e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForClearanceBy(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.readyForClearanceDts": - if e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForClearanceDts(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.readyForReviewBy": - if e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForReviewBy(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.readyForReviewDts": - if e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForReviewDts(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.recruitmentMethod": - if e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentMethod(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.recruitmentNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.recruitmentOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.riskNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.RiskNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.RiskNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.riskOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.RiskOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.RiskOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.riskType": - if e.complexity.PlanParticipantsAndProvidersTranslation.RiskType == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.RiskType(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.selectionMethod": - if e.complexity.PlanParticipantsAndProvidersTranslation.SelectionMethod == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.SelectionMethod(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.selectionNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.SelectionNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.SelectionNote(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.selectionOther": - if e.complexity.PlanParticipantsAndProvidersTranslation.SelectionOther == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.SelectionOther(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.statesEngagement": - if e.complexity.PlanParticipantsAndProvidersTranslation.StatesEngagement == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.StatesEngagement(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.status": - if e.complexity.PlanParticipantsAndProvidersTranslation.Status == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.Status(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.willRiskChange": - if e.complexity.PlanParticipantsAndProvidersTranslation.WillRiskChange == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.WillRiskChange(childComplexity), true - - case "PlanParticipantsAndProvidersTranslation.willRiskChangeNote": - if e.complexity.PlanParticipantsAndProvidersTranslation.WillRiskChangeNote == nil { - break - } - - return e.complexity.PlanParticipantsAndProvidersTranslation.WillRiskChangeNote(childComplexity), true - - case "PlanPayments.affectsMedicareSecondaryPayerClaims": - if e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaims == nil { - break - } - - return e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaims(childComplexity), true - - case "PlanPayments.affectsMedicareSecondaryPayerClaimsHow": - if e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaimsHow == nil { - break - } - - return e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaimsHow(childComplexity), true - - case "PlanPayments.affectsMedicareSecondaryPayerClaimsNote": - if e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaimsNote == nil { - break - } - - return e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaimsNote(childComplexity), true - - case "PlanPayments.anticipateReconcilingPaymentsRetrospectively": - if e.complexity.PlanPayments.AnticipateReconcilingPaymentsRetrospectively == nil { - break - } - - return e.complexity.PlanPayments.AnticipateReconcilingPaymentsRetrospectively(childComplexity), true - - case "PlanPayments.anticipateReconcilingPaymentsRetrospectivelyNote": - if e.complexity.PlanPayments.AnticipateReconcilingPaymentsRetrospectivelyNote == nil { - break - } - - return e.complexity.PlanPayments.AnticipateReconcilingPaymentsRetrospectivelyNote(childComplexity), true - - case "PlanPayments.anticipatedPaymentFrequency": - if e.complexity.PlanPayments.AnticipatedPaymentFrequency == nil { - break - } - - return e.complexity.PlanPayments.AnticipatedPaymentFrequency(childComplexity), true - - case "PlanPayments.anticipatedPaymentFrequencyContinually": - if e.complexity.PlanPayments.AnticipatedPaymentFrequencyContinually == nil { - break - } - - return e.complexity.PlanPayments.AnticipatedPaymentFrequencyContinually(childComplexity), true - - case "PlanPayments.anticipatedPaymentFrequencyNote": - if e.complexity.PlanPayments.AnticipatedPaymentFrequencyNote == nil { - break - } - - return e.complexity.PlanPayments.AnticipatedPaymentFrequencyNote(childComplexity), true - - case "PlanPayments.anticipatedPaymentFrequencyOther": - if e.complexity.PlanPayments.AnticipatedPaymentFrequencyOther == nil { - break - } - - return e.complexity.PlanPayments.AnticipatedPaymentFrequencyOther(childComplexity), true - - case "PlanPayments.beneficiaryCostSharingLevelAndHandling": - if e.complexity.PlanPayments.BeneficiaryCostSharingLevelAndHandling == nil { - break - } - - return e.complexity.PlanPayments.BeneficiaryCostSharingLevelAndHandling(childComplexity), true - - case "PlanPayments.canParticipantsSelectBetweenPaymentMechanisms": - if e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanisms == nil { - break - } - - return e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanisms(childComplexity), true - - case "PlanPayments.canParticipantsSelectBetweenPaymentMechanismsHow": - if e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanismsHow == nil { - break - } - - return e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanismsHow(childComplexity), true - - case "PlanPayments.canParticipantsSelectBetweenPaymentMechanismsNote": - if e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanismsNote == nil { - break - } - - return e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanismsNote(childComplexity), true - - case "PlanPayments.changesMedicarePhysicianFeeSchedule": - if e.complexity.PlanPayments.ChangesMedicarePhysicianFeeSchedule == nil { - break - } - - return e.complexity.PlanPayments.ChangesMedicarePhysicianFeeSchedule(childComplexity), true - - case "PlanPayments.changesMedicarePhysicianFeeScheduleNote": - if e.complexity.PlanPayments.ChangesMedicarePhysicianFeeScheduleNote == nil { - break - } - - return e.complexity.PlanPayments.ChangesMedicarePhysicianFeeScheduleNote(childComplexity), true - - case "PlanPayments.claimsProcessingPrecedence": - if e.complexity.PlanPayments.ClaimsProcessingPrecedence == nil { - break - } - - return e.complexity.PlanPayments.ClaimsProcessingPrecedence(childComplexity), true - - case "PlanPayments.claimsProcessingPrecedenceNote": - if e.complexity.PlanPayments.ClaimsProcessingPrecedenceNote == nil { - break - } - - return e.complexity.PlanPayments.ClaimsProcessingPrecedenceNote(childComplexity), true - - case "PlanPayments.claimsProcessingPrecedenceOther": - if e.complexity.PlanPayments.ClaimsProcessingPrecedenceOther == nil { - break - } - - return e.complexity.PlanPayments.ClaimsProcessingPrecedenceOther(childComplexity), true - - case "PlanPayments.createdBy": - if e.complexity.PlanPayments.CreatedBy == nil { - break - } - - return e.complexity.PlanPayments.CreatedBy(childComplexity), true - - case "PlanPayments.createdByUserAccount": - if e.complexity.PlanPayments.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanPayments.CreatedByUserAccount(childComplexity), true - - case "PlanPayments.createdDts": - if e.complexity.PlanPayments.CreatedDts == nil { - break - } - - return e.complexity.PlanPayments.CreatedDts(childComplexity), true - - case "PlanPayments.creatingDependenciesBetweenServices": - if e.complexity.PlanPayments.CreatingDependenciesBetweenServices == nil { - break - } - - return e.complexity.PlanPayments.CreatingDependenciesBetweenServices(childComplexity), true - - case "PlanPayments.creatingDependenciesBetweenServicesNote": - if e.complexity.PlanPayments.CreatingDependenciesBetweenServicesNote == nil { - break - } - - return e.complexity.PlanPayments.CreatingDependenciesBetweenServicesNote(childComplexity), true - - case "PlanPayments.expectedCalculationComplexityLevel": - if e.complexity.PlanPayments.ExpectedCalculationComplexityLevel == nil { - break - } - - return e.complexity.PlanPayments.ExpectedCalculationComplexityLevel(childComplexity), true - - case "PlanPayments.expectedCalculationComplexityLevelNote": - if e.complexity.PlanPayments.ExpectedCalculationComplexityLevelNote == nil { - break - } - - return e.complexity.PlanPayments.ExpectedCalculationComplexityLevelNote(childComplexity), true - - case "PlanPayments.fundingSource": - if e.complexity.PlanPayments.FundingSource == nil { - break - } - - return e.complexity.PlanPayments.FundingSource(childComplexity), true - - case "PlanPayments.fundingSourceMedicareAInfo": - if e.complexity.PlanPayments.FundingSourceMedicareAInfo == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceMedicareAInfo(childComplexity), true - - case "PlanPayments.fundingSourceMedicareBInfo": - if e.complexity.PlanPayments.FundingSourceMedicareBInfo == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceMedicareBInfo(childComplexity), true - - case "PlanPayments.fundingSourceNote": - if e.complexity.PlanPayments.FundingSourceNote == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceNote(childComplexity), true - - case "PlanPayments.fundingSourceOther": - if e.complexity.PlanPayments.FundingSourceOther == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceOther(childComplexity), true - - case "PlanPayments.fundingSourcePatientProtectionInfo": - if e.complexity.PlanPayments.FundingSourcePatientProtectionInfo == nil { - break - } - - return e.complexity.PlanPayments.FundingSourcePatientProtectionInfo(childComplexity), true - - case "PlanPayments.fundingSourceR": - if e.complexity.PlanPayments.FundingSourceR == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceR(childComplexity), true - - case "PlanPayments.fundingSourceRMedicareAInfo": - if e.complexity.PlanPayments.FundingSourceRMedicareAInfo == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceRMedicareAInfo(childComplexity), true - - case "PlanPayments.fundingSourceRMedicareBInfo": - if e.complexity.PlanPayments.FundingSourceRMedicareBInfo == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceRMedicareBInfo(childComplexity), true - - case "PlanPayments.fundingSourceRNote": - if e.complexity.PlanPayments.FundingSourceRNote == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceRNote(childComplexity), true - - case "PlanPayments.fundingSourceROther": - if e.complexity.PlanPayments.FundingSourceROther == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceROther(childComplexity), true - - case "PlanPayments.fundingSourceRPatientProtectionInfo": - if e.complexity.PlanPayments.FundingSourceRPatientProtectionInfo == nil { - break - } - - return e.complexity.PlanPayments.FundingSourceRPatientProtectionInfo(childComplexity), true - - case "PlanPayments.id": - if e.complexity.PlanPayments.ID == nil { - break - } - - return e.complexity.PlanPayments.ID(childComplexity), true - - case "PlanPayments.isContractorAwareTestDataRequirements": - if e.complexity.PlanPayments.IsContractorAwareTestDataRequirements == nil { - break - } - - return e.complexity.PlanPayments.IsContractorAwareTestDataRequirements(childComplexity), true - - case "PlanPayments.modelPlanID": - if e.complexity.PlanPayments.ModelPlanID == nil { - break - } - - return e.complexity.PlanPayments.ModelPlanID(childComplexity), true - - case "PlanPayments.modifiedBy": - if e.complexity.PlanPayments.ModifiedBy == nil { - break - } - - return e.complexity.PlanPayments.ModifiedBy(childComplexity), true - - case "PlanPayments.modifiedByUserAccount": - if e.complexity.PlanPayments.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanPayments.ModifiedByUserAccount(childComplexity), true - - case "PlanPayments.modifiedDts": - if e.complexity.PlanPayments.ModifiedDts == nil { - break - } - - return e.complexity.PlanPayments.ModifiedDts(childComplexity), true - - case "PlanPayments.needsClaimsDataCollection": - if e.complexity.PlanPayments.NeedsClaimsDataCollection == nil { - break - } - - return e.complexity.PlanPayments.NeedsClaimsDataCollection(childComplexity), true - - case "PlanPayments.needsClaimsDataCollectionNote": - if e.complexity.PlanPayments.NeedsClaimsDataCollectionNote == nil { - break - } - - return e.complexity.PlanPayments.NeedsClaimsDataCollectionNote(childComplexity), true - - case "PlanPayments.nonClaimsPaymentOther": - if e.complexity.PlanPayments.NonClaimsPaymentOther == nil { - break - } - - return e.complexity.PlanPayments.NonClaimsPaymentOther(childComplexity), true - - case "PlanPayments.nonClaimsPayments": - if e.complexity.PlanPayments.NonClaimsPayments == nil { - break - } - - return e.complexity.PlanPayments.NonClaimsPayments(childComplexity), true - - case "PlanPayments.nonClaimsPaymentsNote": - if e.complexity.PlanPayments.NonClaimsPaymentsNote == nil { - break - } - - return e.complexity.PlanPayments.NonClaimsPaymentsNote(childComplexity), true - - case "PlanPayments.numberPaymentsPerPayCycle": - if e.complexity.PlanPayments.NumberPaymentsPerPayCycle == nil { - break - } - - return e.complexity.PlanPayments.NumberPaymentsPerPayCycle(childComplexity), true - - case "PlanPayments.numberPaymentsPerPayCycleNote": - if e.complexity.PlanPayments.NumberPaymentsPerPayCycleNote == nil { - break - } - - return e.complexity.PlanPayments.NumberPaymentsPerPayCycleNote(childComplexity), true - - case "PlanPayments.payClaims": - if e.complexity.PlanPayments.PayClaims == nil { - break - } - - return e.complexity.PlanPayments.PayClaims(childComplexity), true - - case "PlanPayments.payClaimsNote": - if e.complexity.PlanPayments.PayClaimsNote == nil { - break - } - - return e.complexity.PlanPayments.PayClaimsNote(childComplexity), true - - case "PlanPayments.payClaimsOther": - if e.complexity.PlanPayments.PayClaimsOther == nil { - break - } - - return e.complexity.PlanPayments.PayClaimsOther(childComplexity), true - - case "PlanPayments.payModelDifferentiation": - if e.complexity.PlanPayments.PayModelDifferentiation == nil { - break - } - - return e.complexity.PlanPayments.PayModelDifferentiation(childComplexity), true - - case "PlanPayments.payRecipients": - if e.complexity.PlanPayments.PayRecipients == nil { - break - } - - return e.complexity.PlanPayments.PayRecipients(childComplexity), true - - case "PlanPayments.payRecipientsNote": - if e.complexity.PlanPayments.PayRecipientsNote == nil { - break - } - - return e.complexity.PlanPayments.PayRecipientsNote(childComplexity), true - - case "PlanPayments.payRecipientsOtherSpecification": - if e.complexity.PlanPayments.PayRecipientsOtherSpecification == nil { - break - } - - return e.complexity.PlanPayments.PayRecipientsOtherSpecification(childComplexity), true - - case "PlanPayments.payType": - if e.complexity.PlanPayments.PayType == nil { - break - } - - return e.complexity.PlanPayments.PayType(childComplexity), true - - case "PlanPayments.payTypeNote": - if e.complexity.PlanPayments.PayTypeNote == nil { - break - } - - return e.complexity.PlanPayments.PayTypeNote(childComplexity), true - - case "PlanPayments.paymentCalculationOwner": - if e.complexity.PlanPayments.PaymentCalculationOwner == nil { - break - } - - return e.complexity.PlanPayments.PaymentCalculationOwner(childComplexity), true - - case "PlanPayments.paymentDemandRecoupmentFrequency": - if e.complexity.PlanPayments.PaymentDemandRecoupmentFrequency == nil { - break - } - - return e.complexity.PlanPayments.PaymentDemandRecoupmentFrequency(childComplexity), true - - case "PlanPayments.paymentDemandRecoupmentFrequencyContinually": - if e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyContinually == nil { - break - } - - return e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyContinually(childComplexity), true - - case "PlanPayments.paymentDemandRecoupmentFrequencyNote": - if e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyNote == nil { - break - } - - return e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyNote(childComplexity), true - - case "PlanPayments.paymentDemandRecoupmentFrequencyOther": - if e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyOther == nil { - break - } - - return e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyOther(childComplexity), true - - case "PlanPayments.paymentReconciliationFrequency": - if e.complexity.PlanPayments.PaymentReconciliationFrequency == nil { - break - } - - return e.complexity.PlanPayments.PaymentReconciliationFrequency(childComplexity), true - - case "PlanPayments.paymentReconciliationFrequencyContinually": - if e.complexity.PlanPayments.PaymentReconciliationFrequencyContinually == nil { - break - } - - return e.complexity.PlanPayments.PaymentReconciliationFrequencyContinually(childComplexity), true - - case "PlanPayments.paymentReconciliationFrequencyNote": - if e.complexity.PlanPayments.PaymentReconciliationFrequencyNote == nil { - break - } - - return e.complexity.PlanPayments.PaymentReconciliationFrequencyNote(childComplexity), true - - case "PlanPayments.paymentReconciliationFrequencyOther": - if e.complexity.PlanPayments.PaymentReconciliationFrequencyOther == nil { - break - } - - return e.complexity.PlanPayments.PaymentReconciliationFrequencyOther(childComplexity), true - - case "PlanPayments.paymentStartDate": - if e.complexity.PlanPayments.PaymentStartDate == nil { - break - } - - return e.complexity.PlanPayments.PaymentStartDate(childComplexity), true - - case "PlanPayments.paymentStartDateNote": - if e.complexity.PlanPayments.PaymentStartDateNote == nil { - break - } - - return e.complexity.PlanPayments.PaymentStartDateNote(childComplexity), true - - case "PlanPayments.planningToUseInnovationPaymentContractor": - if e.complexity.PlanPayments.PlanningToUseInnovationPaymentContractor == nil { - break - } - - return e.complexity.PlanPayments.PlanningToUseInnovationPaymentContractor(childComplexity), true - - case "PlanPayments.planningToUseInnovationPaymentContractorNote": - if e.complexity.PlanPayments.PlanningToUseInnovationPaymentContractorNote == nil { - break - } - - return e.complexity.PlanPayments.PlanningToUseInnovationPaymentContractorNote(childComplexity), true - - case "PlanPayments.providingThirdPartyFile": - if e.complexity.PlanPayments.ProvidingThirdPartyFile == nil { - break - } - - return e.complexity.PlanPayments.ProvidingThirdPartyFile(childComplexity), true - - case "PlanPayments.readyForClearanceBy": - if e.complexity.PlanPayments.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanPayments.ReadyForClearanceBy(childComplexity), true - - case "PlanPayments.readyForClearanceByUserAccount": - if e.complexity.PlanPayments.ReadyForClearanceByUserAccount == nil { - break - } - - return e.complexity.PlanPayments.ReadyForClearanceByUserAccount(childComplexity), true - - case "PlanPayments.readyForClearanceDts": - if e.complexity.PlanPayments.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanPayments.ReadyForClearanceDts(childComplexity), true - - case "PlanPayments.readyForReviewBy": - if e.complexity.PlanPayments.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanPayments.ReadyForReviewBy(childComplexity), true - - case "PlanPayments.readyForReviewByUserAccount": - if e.complexity.PlanPayments.ReadyForReviewByUserAccount == nil { - break - } - - return e.complexity.PlanPayments.ReadyForReviewByUserAccount(childComplexity), true - - case "PlanPayments.readyForReviewDts": - if e.complexity.PlanPayments.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanPayments.ReadyForReviewDts(childComplexity), true - - case "PlanPayments.sharedSystemsInvolvedAdditionalClaimPayment": - if e.complexity.PlanPayments.SharedSystemsInvolvedAdditionalClaimPayment == nil { - break - } - - return e.complexity.PlanPayments.SharedSystemsInvolvedAdditionalClaimPayment(childComplexity), true - - case "PlanPayments.sharedSystemsInvolvedAdditionalClaimPaymentNote": - if e.complexity.PlanPayments.SharedSystemsInvolvedAdditionalClaimPaymentNote == nil { - break - } - - return e.complexity.PlanPayments.SharedSystemsInvolvedAdditionalClaimPaymentNote(childComplexity), true - - case "PlanPayments.shouldAnyProviderExcludedFFSSystemsNote": - if e.complexity.PlanPayments.ShouldAnyProviderExcludedFFSSystemsNote == nil { - break - } - - return e.complexity.PlanPayments.ShouldAnyProviderExcludedFFSSystemsNote(childComplexity), true - - case "PlanPayments.shouldAnyProvidersExcludedFFSSystems": - if e.complexity.PlanPayments.ShouldAnyProvidersExcludedFFSSystems == nil { - break - } - - return e.complexity.PlanPayments.ShouldAnyProvidersExcludedFFSSystems(childComplexity), true - - case "PlanPayments.status": - if e.complexity.PlanPayments.Status == nil { - break - } - - return e.complexity.PlanPayments.Status(childComplexity), true - - case "PlanPayments.waiveBeneficiaryCostSharingForAnyServices": - if e.complexity.PlanPayments.WaiveBeneficiaryCostSharingForAnyServices == nil { - break - } - - return e.complexity.PlanPayments.WaiveBeneficiaryCostSharingForAnyServices(childComplexity), true - - case "PlanPayments.waiveBeneficiaryCostSharingNote": - if e.complexity.PlanPayments.WaiveBeneficiaryCostSharingNote == nil { - break - } - - return e.complexity.PlanPayments.WaiveBeneficiaryCostSharingNote(childComplexity), true - - case "PlanPayments.waiveBeneficiaryCostSharingServiceSpecification": - if e.complexity.PlanPayments.WaiveBeneficiaryCostSharingServiceSpecification == nil { - break - } - - return e.complexity.PlanPayments.WaiveBeneficiaryCostSharingServiceSpecification(childComplexity), true - - case "PlanPayments.waiverOnlyAppliesPartOfPayment": - if e.complexity.PlanPayments.WaiverOnlyAppliesPartOfPayment == nil { - break - } - - return e.complexity.PlanPayments.WaiverOnlyAppliesPartOfPayment(childComplexity), true - - case "PlanPayments.willBePaymentAdjustments": - if e.complexity.PlanPayments.WillBePaymentAdjustments == nil { - break - } - - return e.complexity.PlanPayments.WillBePaymentAdjustments(childComplexity), true - - case "PlanPayments.willBePaymentAdjustmentsNote": - if e.complexity.PlanPayments.WillBePaymentAdjustmentsNote == nil { - break - } - - return e.complexity.PlanPayments.WillBePaymentAdjustmentsNote(childComplexity), true - - case "PlanPayments.willRecoverPayments": - if e.complexity.PlanPayments.WillRecoverPayments == nil { - break - } - - return e.complexity.PlanPayments.WillRecoverPayments(childComplexity), true - - case "PlanPayments.willRecoverPaymentsNote": - if e.complexity.PlanPayments.WillRecoverPaymentsNote == nil { - break - } - - return e.complexity.PlanPayments.WillRecoverPaymentsNote(childComplexity), true - - case "PlanPaymentsTranslation.affectsMedicareSecondaryPayerClaims": - if e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaims == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaims(childComplexity), true - - case "PlanPaymentsTranslation.affectsMedicareSecondaryPayerClaimsHow": - if e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaimsHow == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaimsHow(childComplexity), true - - case "PlanPaymentsTranslation.affectsMedicareSecondaryPayerClaimsNote": - if e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaimsNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaimsNote(childComplexity), true - - case "PlanPaymentsTranslation.anticipateReconcilingPaymentsRetrospectively": - if e.complexity.PlanPaymentsTranslation.AnticipateReconcilingPaymentsRetrospectively == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.AnticipateReconcilingPaymentsRetrospectively(childComplexity), true - - case "PlanPaymentsTranslation.anticipateReconcilingPaymentsRetrospectivelyNote": - if e.complexity.PlanPaymentsTranslation.AnticipateReconcilingPaymentsRetrospectivelyNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.AnticipateReconcilingPaymentsRetrospectivelyNote(childComplexity), true - - case "PlanPaymentsTranslation.anticipatedPaymentFrequency": - if e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequency == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequency(childComplexity), true - - case "PlanPaymentsTranslation.anticipatedPaymentFrequencyContinually": - if e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyContinually == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyContinually(childComplexity), true - - case "PlanPaymentsTranslation.anticipatedPaymentFrequencyNote": - if e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyNote(childComplexity), true - - case "PlanPaymentsTranslation.anticipatedPaymentFrequencyOther": - if e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyOther == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyOther(childComplexity), true - - case "PlanPaymentsTranslation.beneficiaryCostSharingLevelAndHandling": - if e.complexity.PlanPaymentsTranslation.BeneficiaryCostSharingLevelAndHandling == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.BeneficiaryCostSharingLevelAndHandling(childComplexity), true - - case "PlanPaymentsTranslation.canParticipantsSelectBetweenPaymentMechanisms": - if e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanisms == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanisms(childComplexity), true - - case "PlanPaymentsTranslation.canParticipantsSelectBetweenPaymentMechanismsHow": - if e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanismsHow == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanismsHow(childComplexity), true - - case "PlanPaymentsTranslation.canParticipantsSelectBetweenPaymentMechanismsNote": - if e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanismsNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanismsNote(childComplexity), true - - case "PlanPaymentsTranslation.changesMedicarePhysicianFeeSchedule": - if e.complexity.PlanPaymentsTranslation.ChangesMedicarePhysicianFeeSchedule == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ChangesMedicarePhysicianFeeSchedule(childComplexity), true - - case "PlanPaymentsTranslation.changesMedicarePhysicianFeeScheduleNote": - if e.complexity.PlanPaymentsTranslation.ChangesMedicarePhysicianFeeScheduleNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ChangesMedicarePhysicianFeeScheduleNote(childComplexity), true - - case "PlanPaymentsTranslation.claimsProcessingPrecedence": - if e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedence == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedence(childComplexity), true - - case "PlanPaymentsTranslation.claimsProcessingPrecedenceNote": - if e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedenceNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedenceNote(childComplexity), true - - case "PlanPaymentsTranslation.claimsProcessingPrecedenceOther": - if e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedenceOther == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedenceOther(childComplexity), true - - case "PlanPaymentsTranslation.creatingDependenciesBetweenServices": - if e.complexity.PlanPaymentsTranslation.CreatingDependenciesBetweenServices == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.CreatingDependenciesBetweenServices(childComplexity), true - - case "PlanPaymentsTranslation.creatingDependenciesBetweenServicesNote": - if e.complexity.PlanPaymentsTranslation.CreatingDependenciesBetweenServicesNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.CreatingDependenciesBetweenServicesNote(childComplexity), true - - case "PlanPaymentsTranslation.expectedCalculationComplexityLevel": - if e.complexity.PlanPaymentsTranslation.ExpectedCalculationComplexityLevel == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ExpectedCalculationComplexityLevel(childComplexity), true - - case "PlanPaymentsTranslation.expectedCalculationComplexityLevelNote": - if e.complexity.PlanPaymentsTranslation.ExpectedCalculationComplexityLevelNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ExpectedCalculationComplexityLevelNote(childComplexity), true - - case "PlanPaymentsTranslation.fundingSource": - if e.complexity.PlanPaymentsTranslation.FundingSource == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSource(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceMedicareAInfo": - if e.complexity.PlanPaymentsTranslation.FundingSourceMedicareAInfo == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceMedicareAInfo(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceMedicareBInfo": - if e.complexity.PlanPaymentsTranslation.FundingSourceMedicareBInfo == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceMedicareBInfo(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceNote": - if e.complexity.PlanPaymentsTranslation.FundingSourceNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceNote(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceOther": - if e.complexity.PlanPaymentsTranslation.FundingSourceOther == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceOther(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourcePatientProtectionInfo": - if e.complexity.PlanPaymentsTranslation.FundingSourcePatientProtectionInfo == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourcePatientProtectionInfo(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceR": - if e.complexity.PlanPaymentsTranslation.FundingSourceR == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceR(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceRMedicareAInfo": - if e.complexity.PlanPaymentsTranslation.FundingSourceRMedicareAInfo == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceRMedicareAInfo(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceRMedicareBInfo": - if e.complexity.PlanPaymentsTranslation.FundingSourceRMedicareBInfo == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceRMedicareBInfo(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceRNote": - if e.complexity.PlanPaymentsTranslation.FundingSourceRNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceRNote(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceROther": - if e.complexity.PlanPaymentsTranslation.FundingSourceROther == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceROther(childComplexity), true - - case "PlanPaymentsTranslation.fundingSourceRPatientProtectionInfo": - if e.complexity.PlanPaymentsTranslation.FundingSourceRPatientProtectionInfo == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.FundingSourceRPatientProtectionInfo(childComplexity), true - - case "PlanPaymentsTranslation.isContractorAwareTestDataRequirements": - if e.complexity.PlanPaymentsTranslation.IsContractorAwareTestDataRequirements == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.IsContractorAwareTestDataRequirements(childComplexity), true - - case "PlanPaymentsTranslation.needsClaimsDataCollection": - if e.complexity.PlanPaymentsTranslation.NeedsClaimsDataCollection == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.NeedsClaimsDataCollection(childComplexity), true - - case "PlanPaymentsTranslation.needsClaimsDataCollectionNote": - if e.complexity.PlanPaymentsTranslation.NeedsClaimsDataCollectionNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.NeedsClaimsDataCollectionNote(childComplexity), true - - case "PlanPaymentsTranslation.nonClaimsPaymentOther": - if e.complexity.PlanPaymentsTranslation.NonClaimsPaymentOther == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.NonClaimsPaymentOther(childComplexity), true - - case "PlanPaymentsTranslation.nonClaimsPayments": - if e.complexity.PlanPaymentsTranslation.NonClaimsPayments == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.NonClaimsPayments(childComplexity), true - - case "PlanPaymentsTranslation.nonClaimsPaymentsNote": - if e.complexity.PlanPaymentsTranslation.NonClaimsPaymentsNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.NonClaimsPaymentsNote(childComplexity), true - - case "PlanPaymentsTranslation.numberPaymentsPerPayCycle": - if e.complexity.PlanPaymentsTranslation.NumberPaymentsPerPayCycle == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.NumberPaymentsPerPayCycle(childComplexity), true - - case "PlanPaymentsTranslation.numberPaymentsPerPayCycleNote": - if e.complexity.PlanPaymentsTranslation.NumberPaymentsPerPayCycleNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.NumberPaymentsPerPayCycleNote(childComplexity), true - - case "PlanPaymentsTranslation.payClaims": - if e.complexity.PlanPaymentsTranslation.PayClaims == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PayClaims(childComplexity), true - - case "PlanPaymentsTranslation.payClaimsNote": - if e.complexity.PlanPaymentsTranslation.PayClaimsNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PayClaimsNote(childComplexity), true - - case "PlanPaymentsTranslation.payClaimsOther": - if e.complexity.PlanPaymentsTranslation.PayClaimsOther == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PayClaimsOther(childComplexity), true - - case "PlanPaymentsTranslation.payModelDifferentiation": - if e.complexity.PlanPaymentsTranslation.PayModelDifferentiation == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PayModelDifferentiation(childComplexity), true - - case "PlanPaymentsTranslation.payRecipients": - if e.complexity.PlanPaymentsTranslation.PayRecipients == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PayRecipients(childComplexity), true - - case "PlanPaymentsTranslation.payRecipientsNote": - if e.complexity.PlanPaymentsTranslation.PayRecipientsNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PayRecipientsNote(childComplexity), true - - case "PlanPaymentsTranslation.payRecipientsOtherSpecification": - if e.complexity.PlanPaymentsTranslation.PayRecipientsOtherSpecification == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PayRecipientsOtherSpecification(childComplexity), true - - case "PlanPaymentsTranslation.payType": - if e.complexity.PlanPaymentsTranslation.PayType == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PayType(childComplexity), true - - case "PlanPaymentsTranslation.payTypeNote": - if e.complexity.PlanPaymentsTranslation.PayTypeNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PayTypeNote(childComplexity), true - - case "PlanPaymentsTranslation.paymentCalculationOwner": - if e.complexity.PlanPaymentsTranslation.PaymentCalculationOwner == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentCalculationOwner(childComplexity), true - - case "PlanPaymentsTranslation.paymentDemandRecoupmentFrequency": - if e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequency == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequency(childComplexity), true - - case "PlanPaymentsTranslation.paymentDemandRecoupmentFrequencyContinually": - if e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyContinually == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyContinually(childComplexity), true - - case "PlanPaymentsTranslation.paymentDemandRecoupmentFrequencyNote": - if e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyNote(childComplexity), true - - case "PlanPaymentsTranslation.paymentDemandRecoupmentFrequencyOther": - if e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyOther == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyOther(childComplexity), true - - case "PlanPaymentsTranslation.paymentReconciliationFrequency": - if e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequency == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequency(childComplexity), true - - case "PlanPaymentsTranslation.paymentReconciliationFrequencyContinually": - if e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyContinually == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyContinually(childComplexity), true - - case "PlanPaymentsTranslation.paymentReconciliationFrequencyNote": - if e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyNote(childComplexity), true - - case "PlanPaymentsTranslation.paymentReconciliationFrequencyOther": - if e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyOther == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyOther(childComplexity), true - - case "PlanPaymentsTranslation.paymentStartDate": - if e.complexity.PlanPaymentsTranslation.PaymentStartDate == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentStartDate(childComplexity), true - - case "PlanPaymentsTranslation.paymentStartDateNote": - if e.complexity.PlanPaymentsTranslation.PaymentStartDateNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PaymentStartDateNote(childComplexity), true - - case "PlanPaymentsTranslation.planningToUseInnovationPaymentContractor": - if e.complexity.PlanPaymentsTranslation.PlanningToUseInnovationPaymentContractor == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PlanningToUseInnovationPaymentContractor(childComplexity), true - - case "PlanPaymentsTranslation.planningToUseInnovationPaymentContractorNote": - if e.complexity.PlanPaymentsTranslation.PlanningToUseInnovationPaymentContractorNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.PlanningToUseInnovationPaymentContractorNote(childComplexity), true - - case "PlanPaymentsTranslation.providingThirdPartyFile": - if e.complexity.PlanPaymentsTranslation.ProvidingThirdPartyFile == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ProvidingThirdPartyFile(childComplexity), true - - case "PlanPaymentsTranslation.readyForClearanceBy": - if e.complexity.PlanPaymentsTranslation.ReadyForClearanceBy == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ReadyForClearanceBy(childComplexity), true - - case "PlanPaymentsTranslation.readyForClearanceDts": - if e.complexity.PlanPaymentsTranslation.ReadyForClearanceDts == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ReadyForClearanceDts(childComplexity), true - - case "PlanPaymentsTranslation.readyForReviewBy": - if e.complexity.PlanPaymentsTranslation.ReadyForReviewBy == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ReadyForReviewBy(childComplexity), true - - case "PlanPaymentsTranslation.readyForReviewDts": - if e.complexity.PlanPaymentsTranslation.ReadyForReviewDts == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ReadyForReviewDts(childComplexity), true - - case "PlanPaymentsTranslation.sharedSystemsInvolvedAdditionalClaimPayment": - if e.complexity.PlanPaymentsTranslation.SharedSystemsInvolvedAdditionalClaimPayment == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.SharedSystemsInvolvedAdditionalClaimPayment(childComplexity), true - - case "PlanPaymentsTranslation.sharedSystemsInvolvedAdditionalClaimPaymentNote": - if e.complexity.PlanPaymentsTranslation.SharedSystemsInvolvedAdditionalClaimPaymentNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.SharedSystemsInvolvedAdditionalClaimPaymentNote(childComplexity), true - - case "PlanPaymentsTranslation.shouldAnyProviderExcludedFFSSystemsNote": - if e.complexity.PlanPaymentsTranslation.ShouldAnyProviderExcludedFFSSystemsNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ShouldAnyProviderExcludedFFSSystemsNote(childComplexity), true - - case "PlanPaymentsTranslation.shouldAnyProvidersExcludedFFSSystems": - if e.complexity.PlanPaymentsTranslation.ShouldAnyProvidersExcludedFFSSystems == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.ShouldAnyProvidersExcludedFFSSystems(childComplexity), true - - case "PlanPaymentsTranslation.status": - if e.complexity.PlanPaymentsTranslation.Status == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.Status(childComplexity), true - - case "PlanPaymentsTranslation.waiveBeneficiaryCostSharingForAnyServices": - if e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingForAnyServices == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingForAnyServices(childComplexity), true - - case "PlanPaymentsTranslation.waiveBeneficiaryCostSharingNote": - if e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingNote(childComplexity), true - - case "PlanPaymentsTranslation.waiveBeneficiaryCostSharingServiceSpecification": - if e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingServiceSpecification == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingServiceSpecification(childComplexity), true - - case "PlanPaymentsTranslation.waiverOnlyAppliesPartOfPayment": - if e.complexity.PlanPaymentsTranslation.WaiverOnlyAppliesPartOfPayment == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.WaiverOnlyAppliesPartOfPayment(childComplexity), true - - case "PlanPaymentsTranslation.willBePaymentAdjustments": - if e.complexity.PlanPaymentsTranslation.WillBePaymentAdjustments == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.WillBePaymentAdjustments(childComplexity), true - - case "PlanPaymentsTranslation.willBePaymentAdjustmentsNote": - if e.complexity.PlanPaymentsTranslation.WillBePaymentAdjustmentsNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.WillBePaymentAdjustmentsNote(childComplexity), true - - case "PlanPaymentsTranslation.willRecoverPayments": - if e.complexity.PlanPaymentsTranslation.WillRecoverPayments == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.WillRecoverPayments(childComplexity), true - - case "PlanPaymentsTranslation.willRecoverPaymentsNote": - if e.complexity.PlanPaymentsTranslation.WillRecoverPaymentsNote == nil { - break - } - - return e.complexity.PlanPaymentsTranslation.WillRecoverPaymentsNote(childComplexity), true - - case "PlanTDL.createdBy": - if e.complexity.PlanTDL.CreatedBy == nil { - break - } - - return e.complexity.PlanTDL.CreatedBy(childComplexity), true - - case "PlanTDL.createdByUserAccount": - if e.complexity.PlanTDL.CreatedByUserAccount == nil { - break - } - - return e.complexity.PlanTDL.CreatedByUserAccount(childComplexity), true - - case "PlanTDL.createdDts": - if e.complexity.PlanTDL.CreatedDts == nil { - break - } - - return e.complexity.PlanTDL.CreatedDts(childComplexity), true - - case "PlanTDL.dateInitiated": - if e.complexity.PlanTDL.DateInitiated == nil { - break - } - - return e.complexity.PlanTDL.DateInitiated(childComplexity), true - - case "PlanTDL.id": - if e.complexity.PlanTDL.ID == nil { - break - } - - return e.complexity.PlanTDL.ID(childComplexity), true - - case "PlanTDL.idNumber": - if e.complexity.PlanTDL.IDNumber == nil { - break - } - - return e.complexity.PlanTDL.IDNumber(childComplexity), true - - case "PlanTDL.modelPlanID": - if e.complexity.PlanTDL.ModelPlanID == nil { - break - } - - return e.complexity.PlanTDL.ModelPlanID(childComplexity), true - - case "PlanTDL.modifiedBy": - if e.complexity.PlanTDL.ModifiedBy == nil { - break - } - - return e.complexity.PlanTDL.ModifiedBy(childComplexity), true - - case "PlanTDL.modifiedByUserAccount": - if e.complexity.PlanTDL.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PlanTDL.ModifiedByUserAccount(childComplexity), true - - case "PlanTDL.modifiedDts": - if e.complexity.PlanTDL.ModifiedDts == nil { - break - } - - return e.complexity.PlanTDL.ModifiedDts(childComplexity), true - - case "PlanTDL.note": - if e.complexity.PlanTDL.Note == nil { - break - } - - return e.complexity.PlanTDL.Note(childComplexity), true - - case "PlanTDL.title": - if e.complexity.PlanTDL.Title == nil { - break - } - - return e.complexity.PlanTDL.Title(childComplexity), true - - case "PlanTDLTranslation.dateInitiated": - if e.complexity.PlanTDLTranslation.DateInitiated == nil { - break - } - - return e.complexity.PlanTDLTranslation.DateInitiated(childComplexity), true - - case "PlanTDLTranslation.idNumber": - if e.complexity.PlanTDLTranslation.IDNumber == nil { - break - } - - return e.complexity.PlanTDLTranslation.IDNumber(childComplexity), true - - case "PlanTDLTranslation.note": - if e.complexity.PlanTDLTranslation.Note == nil { - break - } - - return e.complexity.PlanTDLTranslation.Note(childComplexity), true - - case "PlanTDLTranslation.title": - if e.complexity.PlanTDLTranslation.Title == nil { - break - } - - return e.complexity.PlanTDLTranslation.Title(childComplexity), true - - case "PossibleOperationalNeed.createdBy": - if e.complexity.PossibleOperationalNeed.CreatedBy == nil { - break - } - - return e.complexity.PossibleOperationalNeed.CreatedBy(childComplexity), true - - case "PossibleOperationalNeed.createdByUserAccount": - if e.complexity.PossibleOperationalNeed.CreatedByUserAccount == nil { - break - } - - return e.complexity.PossibleOperationalNeed.CreatedByUserAccount(childComplexity), true - - case "PossibleOperationalNeed.createdDts": - if e.complexity.PossibleOperationalNeed.CreatedDts == nil { - break - } - - return e.complexity.PossibleOperationalNeed.CreatedDts(childComplexity), true - - case "PossibleOperationalNeed.id": - if e.complexity.PossibleOperationalNeed.ID == nil { - break - } - - return e.complexity.PossibleOperationalNeed.ID(childComplexity), true - - case "PossibleOperationalNeed.key": - if e.complexity.PossibleOperationalNeed.Key == nil { - break - } - - return e.complexity.PossibleOperationalNeed.Key(childComplexity), true - - case "PossibleOperationalNeed.modifiedBy": - if e.complexity.PossibleOperationalNeed.ModifiedBy == nil { - break - } - - return e.complexity.PossibleOperationalNeed.ModifiedBy(childComplexity), true - - case "PossibleOperationalNeed.modifiedByUserAccount": - if e.complexity.PossibleOperationalNeed.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PossibleOperationalNeed.ModifiedByUserAccount(childComplexity), true - - case "PossibleOperationalNeed.modifiedDts": - if e.complexity.PossibleOperationalNeed.ModifiedDts == nil { - break - } - - return e.complexity.PossibleOperationalNeed.ModifiedDts(childComplexity), true - - case "PossibleOperationalNeed.name": - if e.complexity.PossibleOperationalNeed.Name == nil { - break - } - - return e.complexity.PossibleOperationalNeed.Name(childComplexity), true - - case "PossibleOperationalNeed.possibleSolutions": - if e.complexity.PossibleOperationalNeed.PossibleSolutions == nil { - break - } - - return e.complexity.PossibleOperationalNeed.PossibleSolutions(childComplexity), true - - case "PossibleOperationalNeed.section": - if e.complexity.PossibleOperationalNeed.Section == nil { - break - } - - return e.complexity.PossibleOperationalNeed.Section(childComplexity), true - - case "PossibleOperationalSolution.createdBy": - if e.complexity.PossibleOperationalSolution.CreatedBy == nil { - break - } - - return e.complexity.PossibleOperationalSolution.CreatedBy(childComplexity), true - - case "PossibleOperationalSolution.createdByUserAccount": - if e.complexity.PossibleOperationalSolution.CreatedByUserAccount == nil { - break - } - - return e.complexity.PossibleOperationalSolution.CreatedByUserAccount(childComplexity), true - - case "PossibleOperationalSolution.createdDts": - if e.complexity.PossibleOperationalSolution.CreatedDts == nil { - break - } - - return e.complexity.PossibleOperationalSolution.CreatedDts(childComplexity), true - - case "PossibleOperationalSolution.filterView": - if e.complexity.PossibleOperationalSolution.FilterView == nil { - break - } - - return e.complexity.PossibleOperationalSolution.FilterView(childComplexity), true - - case "PossibleOperationalSolution.id": - if e.complexity.PossibleOperationalSolution.ID == nil { - break - } - - return e.complexity.PossibleOperationalSolution.ID(childComplexity), true - - case "PossibleOperationalSolution.key": - if e.complexity.PossibleOperationalSolution.Key == nil { - break - } - - return e.complexity.PossibleOperationalSolution.Key(childComplexity), true - - case "PossibleOperationalSolution.modifiedBy": - if e.complexity.PossibleOperationalSolution.ModifiedBy == nil { - break - } - - return e.complexity.PossibleOperationalSolution.ModifiedBy(childComplexity), true - - case "PossibleOperationalSolution.modifiedByUserAccount": - if e.complexity.PossibleOperationalSolution.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PossibleOperationalSolution.ModifiedByUserAccount(childComplexity), true - - case "PossibleOperationalSolution.modifiedDts": - if e.complexity.PossibleOperationalSolution.ModifiedDts == nil { - break - } - - return e.complexity.PossibleOperationalSolution.ModifiedDts(childComplexity), true - - case "PossibleOperationalSolution.name": - if e.complexity.PossibleOperationalSolution.Name == nil { - break - } - - return e.complexity.PossibleOperationalSolution.Name(childComplexity), true - - case "PossibleOperationalSolution.pointsOfContact": - if e.complexity.PossibleOperationalSolution.PointsOfContact == nil { - break - } - - return e.complexity.PossibleOperationalSolution.PointsOfContact(childComplexity), true - - case "PossibleOperationalSolution.primaryContact": - if e.complexity.PossibleOperationalSolution.PrimaryContact == nil { - break - } - - return e.complexity.PossibleOperationalSolution.PrimaryContact(childComplexity), true - - case "PossibleOperationalSolution.treatAsOther": - if e.complexity.PossibleOperationalSolution.TreatAsOther == nil { - break - } - - return e.complexity.PossibleOperationalSolution.TreatAsOther(childComplexity), true - - case "PossibleOperationalSolutionContact.createdBy": - if e.complexity.PossibleOperationalSolutionContact.CreatedBy == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.CreatedBy(childComplexity), true - - case "PossibleOperationalSolutionContact.createdByUserAccount": - if e.complexity.PossibleOperationalSolutionContact.CreatedByUserAccount == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.CreatedByUserAccount(childComplexity), true - - case "PossibleOperationalSolutionContact.createdDts": - if e.complexity.PossibleOperationalSolutionContact.CreatedDts == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.CreatedDts(childComplexity), true - - case "PossibleOperationalSolutionContact.email": - if e.complexity.PossibleOperationalSolutionContact.Email == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.Email(childComplexity), true - - case "PossibleOperationalSolutionContact.id": - if e.complexity.PossibleOperationalSolutionContact.ID == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.ID(childComplexity), true - - case "PossibleOperationalSolutionContact.isPrimary": - if e.complexity.PossibleOperationalSolutionContact.IsPrimary == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.IsPrimary(childComplexity), true - - case "PossibleOperationalSolutionContact.isTeam": - if e.complexity.PossibleOperationalSolutionContact.IsTeam == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.IsTeam(childComplexity), true - - case "PossibleOperationalSolutionContact.modifiedBy": - if e.complexity.PossibleOperationalSolutionContact.ModifiedBy == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.ModifiedBy(childComplexity), true - - case "PossibleOperationalSolutionContact.modifiedByUserAccount": - if e.complexity.PossibleOperationalSolutionContact.ModifiedByUserAccount == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.ModifiedByUserAccount(childComplexity), true - - case "PossibleOperationalSolutionContact.modifiedDts": - if e.complexity.PossibleOperationalSolutionContact.ModifiedDts == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.ModifiedDts(childComplexity), true - - case "PossibleOperationalSolutionContact.name": - if e.complexity.PossibleOperationalSolutionContact.Name == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.Name(childComplexity), true - - case "PossibleOperationalSolutionContact.possibleOperationalSolutionID": - if e.complexity.PossibleOperationalSolutionContact.PossibleOperationalSolutionID == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.PossibleOperationalSolutionID(childComplexity), true - - case "PossibleOperationalSolutionContact.role": - if e.complexity.PossibleOperationalSolutionContact.Role == nil { - break - } - - return e.complexity.PossibleOperationalSolutionContact.Role(childComplexity), true - - case "PrepareForClearance.latestClearanceDts": - if e.complexity.PrepareForClearance.LatestClearanceDts == nil { - break - } - - return e.complexity.PrepareForClearance.LatestClearanceDts(childComplexity), true - - case "PrepareForClearance.status": - if e.complexity.PrepareForClearance.Status == nil { - break - } - - return e.complexity.PrepareForClearance.Status(childComplexity), true - - case "Query.analyzedAudits": - if e.complexity.Query.AnalyzedAudits == nil { - break - } - - args, err := ec.field_Query_analyzedAudits_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AnalyzedAudits(childComplexity, args["dateAnalyzed"].(time.Time)), true - - case "Query.auditChanges": - if e.complexity.Query.AuditChanges == nil { - break - } - - args, err := ec.field_Query_auditChanges_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AuditChanges(childComplexity, args["tableName"].(models.TableName), args["primaryKey"].(uuid.UUID)), true - - case "Query.currentUser": - if e.complexity.Query.CurrentUser == nil { - break - } - - return e.complexity.Query.CurrentUser(childComplexity), true - - case "Query.existingModelCollection": - if e.complexity.Query.ExistingModelCollection == nil { - break - } - - return e.complexity.Query.ExistingModelCollection(childComplexity), true - - case "Query.existingModelLink": - if e.complexity.Query.ExistingModelLink == nil { - break - } - - args, err := ec.field_Query_existingModelLink_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ExistingModelLink(childComplexity, args["id"].(uuid.UUID)), true - - case "Query.lockableSectionLocks": - if e.complexity.Query.LockableSectionLocks == nil { - break - } - - args, err := ec.field_Query_lockableSectionLocks_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.LockableSectionLocks(childComplexity, args["modelPlanID"].(uuid.UUID)), true - - case "Query.modelPlan": - if e.complexity.Query.ModelPlan == nil { - break - } - - args, err := ec.field_Query_modelPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ModelPlan(childComplexity, args["id"].(uuid.UUID)), true - - case "Query.modelPlanCollection": - if e.complexity.Query.ModelPlanCollection == nil { - break - } - - args, err := ec.field_Query_modelPlanCollection_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ModelPlanCollection(childComplexity, args["filter"].(model.ModelPlanFilter)), true - - case "Query.modelPlansByOperationalSolutionKey": - if e.complexity.Query.ModelPlansByOperationalSolutionKey == nil { - break - } - - args, err := ec.field_Query_modelPlansByOperationalSolutionKey_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ModelPlansByOperationalSolutionKey(childComplexity, args["operationalSolutionKey"].(models.OperationalSolutionKey)), true - - case "Query.mostRecentDiscussionRoleSelection": - if e.complexity.Query.MostRecentDiscussionRoleSelection == nil { - break - } - - return e.complexity.Query.MostRecentDiscussionRoleSelection(childComplexity), true - - case "Query.ndaInfo": - if e.complexity.Query.NdaInfo == nil { - break - } - - return e.complexity.Query.NdaInfo(childComplexity), true - - case "Query.operationalNeed": - if e.complexity.Query.OperationalNeed == nil { - break - } - - args, err := ec.field_Query_operationalNeed_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OperationalNeed(childComplexity, args["id"].(uuid.UUID)), true - - case "Query.operationalSolution": - if e.complexity.Query.OperationalSolution == nil { - break - } - - args, err := ec.field_Query_operationalSolution_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OperationalSolution(childComplexity, args["id"].(uuid.UUID)), true - - case "Query.operationalSolutions": - if e.complexity.Query.OperationalSolutions == nil { - break - } - - args, err := ec.field_Query_operationalSolutions_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OperationalSolutions(childComplexity, args["operationalNeedID"].(uuid.UUID), args["includeNotNeeded"].(bool)), true - - case "Query.planCollaboratorByID": - if e.complexity.Query.PlanCollaboratorByID == nil { - break - } - - args, err := ec.field_Query_planCollaboratorByID_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.PlanCollaboratorByID(childComplexity, args["id"].(uuid.UUID)), true - - case "Query.planCR": - if e.complexity.Query.PlanCr == nil { - break - } - - args, err := ec.field_Query_planCR_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.PlanCr(childComplexity, args["id"].(uuid.UUID)), true - - case "Query.planDocument": - if e.complexity.Query.PlanDocument == nil { - break - } - - args, err := ec.field_Query_planDocument_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.PlanDocument(childComplexity, args["id"].(uuid.UUID)), true - - case "Query.planPayments": - if e.complexity.Query.PlanPayments == nil { - break - } - - args, err := ec.field_Query_planPayments_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.PlanPayments(childComplexity, args["id"].(uuid.UUID)), true - - case "Query.planTDL": - if e.complexity.Query.PlanTdl == nil { - break - } - - args, err := ec.field_Query_planTDL_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.PlanTdl(childComplexity, args["id"].(uuid.UUID)), true - - case "Query.possibleOperationalNeeds": - if e.complexity.Query.PossibleOperationalNeeds == nil { - break - } - - return e.complexity.Query.PossibleOperationalNeeds(childComplexity), true - - case "Query.possibleOperationalSolutions": - if e.complexity.Query.PossibleOperationalSolutions == nil { - break - } - - return e.complexity.Query.PossibleOperationalSolutions(childComplexity), true - - case "Query.searchOktaUsers": - if e.complexity.Query.SearchOktaUsers == nil { - break - } - - args, err := ec.field_Query_searchOktaUsers_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.SearchOktaUsers(childComplexity, args["searchTerm"].(string)), true - - case "Query.translatedAuditCollection": - if e.complexity.Query.TranslatedAuditCollection == nil { - break - } - - args, err := ec.field_Query_translatedAuditCollection_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.TranslatedAuditCollection(childComplexity, args["modelPlanID"].(uuid.UUID), args["limit"].(*int), args["offset"].(*int)), true - - case "Query.userAccount": - if e.complexity.Query.UserAccount == nil { - break - } - - args, err := ec.field_Query_userAccount_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.UserAccount(childComplexity, args["username"].(string)), true - - case "Query.userViewCustomization": - if e.complexity.Query.UserViewCustomization == nil { - break - } - - return e.complexity.Query.UserViewCustomization(childComplexity), true - - case "RecentModification.modifiedBy": - if e.complexity.RecentModification.ModifiedBy == nil { - break - } - - return e.complexity.RecentModification.ModifiedBy(childComplexity), true - - case "RecentModification.modifiedByUserAccount": - if e.complexity.RecentModification.ModifiedByUserAccount == nil { - break - } - - return e.complexity.RecentModification.ModifiedByUserAccount(childComplexity), true - - case "RecentModification.modifiedDts": - if e.complexity.RecentModification.ModifiedDts == nil { - break - } - - return e.complexity.RecentModification.ModifiedDts(childComplexity), true - - case "Subscription.onLockLockableSectionContext": - if e.complexity.Subscription.OnLockLockableSectionContext == nil { - break - } - - args, err := ec.field_Subscription_onLockLockableSectionContext_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Subscription.OnLockLockableSectionContext(childComplexity, args["modelPlanID"].(uuid.UUID)), true - - case "Subscription.onLockableSectionLocksChanged": - if e.complexity.Subscription.OnLockableSectionLocksChanged == nil { - break - } - - args, err := ec.field_Subscription_onLockableSectionLocksChanged_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Subscription.OnLockableSectionLocksChanged(childComplexity, args["modelPlanID"].(uuid.UUID)), true - - case "Tag.createdBy": - if e.complexity.Tag.CreatedBy == nil { - break - } - - return e.complexity.Tag.CreatedBy(childComplexity), true - - case "Tag.createdByUserAccount": - if e.complexity.Tag.CreatedByUserAccount == nil { - break - } - - return e.complexity.Tag.CreatedByUserAccount(childComplexity), true - - case "Tag.createdDts": - if e.complexity.Tag.CreatedDts == nil { - break - } - - return e.complexity.Tag.CreatedDts(childComplexity), true - - case "Tag.entity": - if e.complexity.Tag.Entity == nil { - break - } - - return e.complexity.Tag.Entity(childComplexity), true - - case "Tag.entityIntID": - if e.complexity.Tag.EntityIntID == nil { - break - } - - return e.complexity.Tag.EntityIntID(childComplexity), true - - case "Tag.entityUUID": - if e.complexity.Tag.EntityUUID == nil { - break - } - - return e.complexity.Tag.EntityUUID(childComplexity), true - - case "Tag.id": - if e.complexity.Tag.ID == nil { - break - } - - return e.complexity.Tag.ID(childComplexity), true - - case "Tag.modifiedBy": - if e.complexity.Tag.ModifiedBy == nil { - break - } - - return e.complexity.Tag.ModifiedBy(childComplexity), true - - case "Tag.modifiedByUserAccount": - if e.complexity.Tag.ModifiedByUserAccount == nil { - break - } - - return e.complexity.Tag.ModifiedByUserAccount(childComplexity), true - - case "Tag.modifiedDts": - if e.complexity.Tag.ModifiedDts == nil { - break - } - - return e.complexity.Tag.ModifiedDts(childComplexity), true - - case "Tag.tagType": - if e.complexity.Tag.TagType == nil { - break - } - - return e.complexity.Tag.TagType(childComplexity), true - - case "Tag.taggedContentID": - if e.complexity.Tag.TaggedContentID == nil { - break - } - - return e.complexity.Tag.TaggedContentID(childComplexity), true - - case "Tag.taggedContentTable": - if e.complexity.Tag.TaggedContentTable == nil { - break - } - - return e.complexity.Tag.TaggedContentTable(childComplexity), true - - case "Tag.taggedField": - if e.complexity.Tag.TaggedField == nil { - break - } - - return e.complexity.Tag.TaggedField(childComplexity), true - - case "TaggedContent.rawContent": - if e.complexity.TaggedContent.RawContent == nil { - break - } - - return e.complexity.TaggedContent.RawContent(childComplexity), true - - case "TaggedContent.tags": - if e.complexity.TaggedContent.Tags == nil { - break - } - - return e.complexity.TaggedContent.Tags(childComplexity), true - - case "TaggedInDiscussionReplyActivityMeta.content": - if e.complexity.TaggedInDiscussionReplyActivityMeta.Content == nil { - break - } - - return e.complexity.TaggedInDiscussionReplyActivityMeta.Content(childComplexity), true - - case "TaggedInDiscussionReplyActivityMeta.discussion": - if e.complexity.TaggedInDiscussionReplyActivityMeta.Discussion == nil { - break - } - - return e.complexity.TaggedInDiscussionReplyActivityMeta.Discussion(childComplexity), true - - case "TaggedInDiscussionReplyActivityMeta.discussionID": - if e.complexity.TaggedInDiscussionReplyActivityMeta.DiscussionID == nil { - break - } - - return e.complexity.TaggedInDiscussionReplyActivityMeta.DiscussionID(childComplexity), true - - case "TaggedInDiscussionReplyActivityMeta.modelPlan": - if e.complexity.TaggedInDiscussionReplyActivityMeta.ModelPlan == nil { - break - } - - return e.complexity.TaggedInDiscussionReplyActivityMeta.ModelPlan(childComplexity), true - - case "TaggedInDiscussionReplyActivityMeta.modelPlanID": - if e.complexity.TaggedInDiscussionReplyActivityMeta.ModelPlanID == nil { - break - } - - return e.complexity.TaggedInDiscussionReplyActivityMeta.ModelPlanID(childComplexity), true - - case "TaggedInDiscussionReplyActivityMeta.reply": - if e.complexity.TaggedInDiscussionReplyActivityMeta.Reply == nil { - break - } - - return e.complexity.TaggedInDiscussionReplyActivityMeta.Reply(childComplexity), true - - case "TaggedInDiscussionReplyActivityMeta.replyID": - if e.complexity.TaggedInDiscussionReplyActivityMeta.ReplyID == nil { - break - } - - return e.complexity.TaggedInDiscussionReplyActivityMeta.ReplyID(childComplexity), true - - case "TaggedInDiscussionReplyActivityMeta.type": - if e.complexity.TaggedInDiscussionReplyActivityMeta.Type == nil { - break - } - - return e.complexity.TaggedInDiscussionReplyActivityMeta.Type(childComplexity), true - - case "TaggedInDiscussionReplyActivityMeta.version": - if e.complexity.TaggedInDiscussionReplyActivityMeta.Version == nil { - break - } - - return e.complexity.TaggedInDiscussionReplyActivityMeta.Version(childComplexity), true - - case "TaggedInPlanDiscussionActivityMeta.content": - if e.complexity.TaggedInPlanDiscussionActivityMeta.Content == nil { - break - } - - return e.complexity.TaggedInPlanDiscussionActivityMeta.Content(childComplexity), true - - case "TaggedInPlanDiscussionActivityMeta.discussion": - if e.complexity.TaggedInPlanDiscussionActivityMeta.Discussion == nil { - break - } - - return e.complexity.TaggedInPlanDiscussionActivityMeta.Discussion(childComplexity), true - - case "TaggedInPlanDiscussionActivityMeta.discussionID": - if e.complexity.TaggedInPlanDiscussionActivityMeta.DiscussionID == nil { - break - } - - return e.complexity.TaggedInPlanDiscussionActivityMeta.DiscussionID(childComplexity), true - - case "TaggedInPlanDiscussionActivityMeta.modelPlan": - if e.complexity.TaggedInPlanDiscussionActivityMeta.ModelPlan == nil { - break - } - - return e.complexity.TaggedInPlanDiscussionActivityMeta.ModelPlan(childComplexity), true - - case "TaggedInPlanDiscussionActivityMeta.modelPlanID": - if e.complexity.TaggedInPlanDiscussionActivityMeta.ModelPlanID == nil { - break - } - - return e.complexity.TaggedInPlanDiscussionActivityMeta.ModelPlanID(childComplexity), true - - case "TaggedInPlanDiscussionActivityMeta.type": - if e.complexity.TaggedInPlanDiscussionActivityMeta.Type == nil { - break - } - - return e.complexity.TaggedInPlanDiscussionActivityMeta.Type(childComplexity), true - - case "TaggedInPlanDiscussionActivityMeta.version": - if e.complexity.TaggedInPlanDiscussionActivityMeta.Version == nil { - break - } - - return e.complexity.TaggedInPlanDiscussionActivityMeta.Version(childComplexity), true - - case "TranslatedAudit.action": - if e.complexity.TranslatedAudit.Action == nil { - break - } - - return e.complexity.TranslatedAudit.Action(childComplexity), true - - case "TranslatedAudit.actorID": - if e.complexity.TranslatedAudit.ActorID == nil { - break - } - - return e.complexity.TranslatedAudit.ActorID(childComplexity), true - - case "TranslatedAudit.actorName": - if e.complexity.TranslatedAudit.ActorName == nil { - break - } - - return e.complexity.TranslatedAudit.ActorName(childComplexity), true - - case "TranslatedAudit.changeID": - if e.complexity.TranslatedAudit.ChangeID == nil { - break - } - - return e.complexity.TranslatedAudit.ChangeID(childComplexity), true - - case "TranslatedAudit.createdBy": - if e.complexity.TranslatedAudit.CreatedBy == nil { - break - } - - return e.complexity.TranslatedAudit.CreatedBy(childComplexity), true - - case "TranslatedAudit.createdByUserAccount": - if e.complexity.TranslatedAudit.CreatedByUserAccount == nil { - break - } - - return e.complexity.TranslatedAudit.CreatedByUserAccount(childComplexity), true - - case "TranslatedAudit.createdDts": - if e.complexity.TranslatedAudit.CreatedDts == nil { - break - } - - return e.complexity.TranslatedAudit.CreatedDts(childComplexity), true - - case "TranslatedAudit.date": - if e.complexity.TranslatedAudit.Date == nil { - break - } - - return e.complexity.TranslatedAudit.Date(childComplexity), true - - case "TranslatedAudit.id": - if e.complexity.TranslatedAudit.ID == nil { - break - } - - return e.complexity.TranslatedAudit.ID(childComplexity), true - - case "TranslatedAudit.metaData": - if e.complexity.TranslatedAudit.MetaData == nil { - break - } - - return e.complexity.TranslatedAudit.MetaData(childComplexity), true - - case "TranslatedAudit.metaDataType": - if e.complexity.TranslatedAudit.MetaDataType == nil { - break - } - - return e.complexity.TranslatedAudit.MetaDataType(childComplexity), true - - case "TranslatedAudit.modelPlanID": - if e.complexity.TranslatedAudit.ModelPlanID == nil { - break - } - - return e.complexity.TranslatedAudit.ModelPlanID(childComplexity), true - - case "TranslatedAudit.modifiedBy": - if e.complexity.TranslatedAudit.ModifiedBy == nil { - break - } - - return e.complexity.TranslatedAudit.ModifiedBy(childComplexity), true - - case "TranslatedAudit.modifiedByUserAccount": - if e.complexity.TranslatedAudit.ModifiedByUserAccount == nil { - break - } - - return e.complexity.TranslatedAudit.ModifiedByUserAccount(childComplexity), true - - case "TranslatedAudit.modifiedDts": - if e.complexity.TranslatedAudit.ModifiedDts == nil { - break - } - - return e.complexity.TranslatedAudit.ModifiedDts(childComplexity), true - - case "TranslatedAudit.primaryKey": - if e.complexity.TranslatedAudit.PrimaryKey == nil { - break - } - - return e.complexity.TranslatedAudit.PrimaryKey(childComplexity), true - - case "TranslatedAudit.restricted": - if e.complexity.TranslatedAudit.Restricted == nil { - break - } - - return e.complexity.TranslatedAudit.Restricted(childComplexity), true - - case "TranslatedAudit.tableID": - if e.complexity.TranslatedAudit.TableID == nil { - break - } - - return e.complexity.TranslatedAudit.TableID(childComplexity), true - - case "TranslatedAudit.tableName": - if e.complexity.TranslatedAudit.TableName == nil { - break - } - - return e.complexity.TranslatedAudit.TableName(childComplexity), true - - case "TranslatedAudit.translatedFields": - if e.complexity.TranslatedAudit.TranslatedFields == nil { - break - } - - return e.complexity.TranslatedAudit.TranslatedFields(childComplexity), true - - case "TranslatedAuditField.changeType": - if e.complexity.TranslatedAuditField.ChangeType == nil { - break - } - - return e.complexity.TranslatedAuditField.ChangeType(childComplexity), true - - case "TranslatedAuditField.createdBy": - if e.complexity.TranslatedAuditField.CreatedBy == nil { - break - } - - return e.complexity.TranslatedAuditField.CreatedBy(childComplexity), true - - case "TranslatedAuditField.createdByUserAccount": - if e.complexity.TranslatedAuditField.CreatedByUserAccount == nil { - break - } - - return e.complexity.TranslatedAuditField.CreatedByUserAccount(childComplexity), true - - case "TranslatedAuditField.createdDts": - if e.complexity.TranslatedAuditField.CreatedDts == nil { - break - } - - return e.complexity.TranslatedAuditField.CreatedDts(childComplexity), true - - case "TranslatedAuditField.dataType": - if e.complexity.TranslatedAuditField.DataType == nil { - break - } - - return e.complexity.TranslatedAuditField.DataType(childComplexity), true - - case "TranslatedAuditField.fieldName": - if e.complexity.TranslatedAuditField.FieldName == nil { - break - } - - return e.complexity.TranslatedAuditField.FieldName(childComplexity), true - - case "TranslatedAuditField.fieldNameTranslated": - if e.complexity.TranslatedAuditField.FieldNameTranslated == nil { - break - } - - return e.complexity.TranslatedAuditField.FieldNameTranslated(childComplexity), true - - case "TranslatedAuditField.fieldOrder": - if e.complexity.TranslatedAuditField.FieldOrder == nil { - break - } - - return e.complexity.TranslatedAuditField.FieldOrder(childComplexity), true - - case "TranslatedAuditField.formType": - if e.complexity.TranslatedAuditField.FormType == nil { - break - } - - return e.complexity.TranslatedAuditField.FormType(childComplexity), true - - case "TranslatedAuditField.id": - if e.complexity.TranslatedAuditField.ID == nil { - break - } - - return e.complexity.TranslatedAuditField.ID(childComplexity), true - - case "TranslatedAuditField.modifiedBy": - if e.complexity.TranslatedAuditField.ModifiedBy == nil { - break - } - - return e.complexity.TranslatedAuditField.ModifiedBy(childComplexity), true - - case "TranslatedAuditField.modifiedByUserAccount": - if e.complexity.TranslatedAuditField.ModifiedByUserAccount == nil { - break - } - - return e.complexity.TranslatedAuditField.ModifiedByUserAccount(childComplexity), true - - case "TranslatedAuditField.modifiedDts": - if e.complexity.TranslatedAuditField.ModifiedDts == nil { - break - } - - return e.complexity.TranslatedAuditField.ModifiedDts(childComplexity), true - - case "TranslatedAuditField.new": - if e.complexity.TranslatedAuditField.New == nil { - break - } - - return e.complexity.TranslatedAuditField.New(childComplexity), true - - case "TranslatedAuditField.newTranslated": - if e.complexity.TranslatedAuditField.NewTranslated == nil { - break - } - - return e.complexity.TranslatedAuditField.NewTranslated(childComplexity), true - - case "TranslatedAuditField.notApplicableQuestions": - if e.complexity.TranslatedAuditField.NotApplicableQuestions == nil { - break - } - - return e.complexity.TranslatedAuditField.NotApplicableQuestions(childComplexity), true - - case "TranslatedAuditField.old": - if e.complexity.TranslatedAuditField.Old == nil { - break - } - - return e.complexity.TranslatedAuditField.Old(childComplexity), true - - case "TranslatedAuditField.oldTranslated": - if e.complexity.TranslatedAuditField.OldTranslated == nil { - break - } - - return e.complexity.TranslatedAuditField.OldTranslated(childComplexity), true - - case "TranslatedAuditField.questionType": - if e.complexity.TranslatedAuditField.QuestionType == nil { - break - } - - return e.complexity.TranslatedAuditField.QuestionType(childComplexity), true - - case "TranslatedAuditField.referenceLabel": - if e.complexity.TranslatedAuditField.ReferenceLabel == nil { - break - } - - return e.complexity.TranslatedAuditField.ReferenceLabel(childComplexity), true - - case "TranslatedAuditField.translatedAuditID": - if e.complexity.TranslatedAuditField.TranslatedAuditID == nil { - break - } - - return e.complexity.TranslatedAuditField.TranslatedAuditID(childComplexity), true - - case "TranslatedAuditMetaBaseStruct.tableName": - if e.complexity.TranslatedAuditMetaBaseStruct.TableName == nil { - break - } - - return e.complexity.TranslatedAuditMetaBaseStruct.TableName(childComplexity), true - - case "TranslatedAuditMetaBaseStruct.version": - if e.complexity.TranslatedAuditMetaBaseStruct.Version == nil { - break - } - - return e.complexity.TranslatedAuditMetaBaseStruct.Version(childComplexity), true - - case "TranslatedAuditMetaDiscussionReply.discussionContent": - if e.complexity.TranslatedAuditMetaDiscussionReply.DiscussionContent == nil { - break - } - - return e.complexity.TranslatedAuditMetaDiscussionReply.DiscussionContent(childComplexity), true - - case "TranslatedAuditMetaDiscussionReply.discussionID": - if e.complexity.TranslatedAuditMetaDiscussionReply.DiscussionID == nil { - break - } - - return e.complexity.TranslatedAuditMetaDiscussionReply.DiscussionID(childComplexity), true - - case "TranslatedAuditMetaDiscussionReply.numberOfReplies": - if e.complexity.TranslatedAuditMetaDiscussionReply.NumberOfReplies == nil { - break - } - - return e.complexity.TranslatedAuditMetaDiscussionReply.NumberOfReplies(childComplexity), true - - case "TranslatedAuditMetaDiscussionReply.tableName": - if e.complexity.TranslatedAuditMetaDiscussionReply.TableName == nil { - break - } - - return e.complexity.TranslatedAuditMetaDiscussionReply.TableName(childComplexity), true - - case "TranslatedAuditMetaDiscussionReply.version": - if e.complexity.TranslatedAuditMetaDiscussionReply.Version == nil { - break - } - - return e.complexity.TranslatedAuditMetaDiscussionReply.Version(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.documentID": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentID == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentID(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.documentName": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentName == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentName(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.documentNote": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentNote == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentNote(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.documentOtherType": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentOtherType == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentOtherType(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.documentRestricted": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentRestricted == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentRestricted(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.documentType": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentType == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentType(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.documentURL": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentURL == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentURL(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.documentVisibility": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentVisibility == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentVisibility(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.needIsOther": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.NeedIsOther == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.NeedIsOther(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.needName": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.NeedName == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.NeedName(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.solutionIsOther": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionIsOther == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionIsOther(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.solutionName": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionName == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionName(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.solutionOtherHeader": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionOtherHeader == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionOtherHeader(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.tableName": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.TableName == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.TableName(childComplexity), true - - case "TranslatedAuditMetaDocumentSolutionLink.version": - if e.complexity.TranslatedAuditMetaDocumentSolutionLink.Version == nil { - break - } - - return e.complexity.TranslatedAuditMetaDocumentSolutionLink.Version(childComplexity), true - - case "TranslatedAuditMetaGeneric.relation": - if e.complexity.TranslatedAuditMetaGeneric.Relation == nil { - break - } - - return e.complexity.TranslatedAuditMetaGeneric.Relation(childComplexity), true - - case "TranslatedAuditMetaGeneric.relationContent": - if e.complexity.TranslatedAuditMetaGeneric.RelationContent == nil { - break - } - - return e.complexity.TranslatedAuditMetaGeneric.RelationContent(childComplexity), true - - case "TranslatedAuditMetaGeneric.tableName": - if e.complexity.TranslatedAuditMetaGeneric.TableName == nil { - break - } - - return e.complexity.TranslatedAuditMetaGeneric.TableName(childComplexity), true - - case "TranslatedAuditMetaGeneric.version": - if e.complexity.TranslatedAuditMetaGeneric.Version == nil { - break - } - - return e.complexity.TranslatedAuditMetaGeneric.Version(childComplexity), true - - case "TranslatedAuditMetaOperationalNeed.isOther": - if e.complexity.TranslatedAuditMetaOperationalNeed.IsOther == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalNeed.IsOther(childComplexity), true - - case "TranslatedAuditMetaOperationalNeed.needName": - if e.complexity.TranslatedAuditMetaOperationalNeed.NeedName == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalNeed.NeedName(childComplexity), true - - case "TranslatedAuditMetaOperationalNeed.tableName": - if e.complexity.TranslatedAuditMetaOperationalNeed.TableName == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalNeed.TableName(childComplexity), true - - case "TranslatedAuditMetaOperationalNeed.version": - if e.complexity.TranslatedAuditMetaOperationalNeed.Version == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalNeed.Version(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.needIsOther": - if e.complexity.TranslatedAuditMetaOperationalSolution.NeedIsOther == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.NeedIsOther(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.needName": - if e.complexity.TranslatedAuditMetaOperationalSolution.NeedName == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.NeedName(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.numberOfSubtasks": - if e.complexity.TranslatedAuditMetaOperationalSolution.NumberOfSubtasks == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.NumberOfSubtasks(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.solutionIsOther": - if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionIsOther == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionIsOther(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.solutionMustFinish": - if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionMustFinish == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionMustFinish(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.solutionMustStart": - if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionMustStart == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionMustStart(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.solutionName": - if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionName == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionName(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.solutionOtherHeader": - if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionOtherHeader == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionOtherHeader(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.solutionStatus": - if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionStatus == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionStatus(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.tableName": - if e.complexity.TranslatedAuditMetaOperationalSolution.TableName == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.TableName(childComplexity), true - - case "TranslatedAuditMetaOperationalSolution.version": - if e.complexity.TranslatedAuditMetaOperationalSolution.Version == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolution.Version(childComplexity), true - - case "TranslatedAuditMetaOperationalSolutionSubtask.needIsOther": - if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NeedIsOther == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NeedIsOther(childComplexity), true - - case "TranslatedAuditMetaOperationalSolutionSubtask.needName": - if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NeedName == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NeedName(childComplexity), true - - case "TranslatedAuditMetaOperationalSolutionSubtask.numberOfSubtasks": - if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NumberOfSubtasks == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NumberOfSubtasks(childComplexity), true - - case "TranslatedAuditMetaOperationalSolutionSubtask.solutionIsOther": - if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionIsOther == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionIsOther(childComplexity), true - - case "TranslatedAuditMetaOperationalSolutionSubtask.solutionName": - if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionName == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionName(childComplexity), true - - case "TranslatedAuditMetaOperationalSolutionSubtask.solutionOtherHeader": - if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionOtherHeader == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionOtherHeader(childComplexity), true - - case "TranslatedAuditMetaOperationalSolutionSubtask.subtaskName": - if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SubtaskName == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SubtaskName(childComplexity), true - - case "TranslatedAuditMetaOperationalSolutionSubtask.tableName": - if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.TableName == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.TableName(childComplexity), true - - case "TranslatedAuditMetaOperationalSolutionSubtask.version": - if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.Version == nil { - break - } - - return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.Version(childComplexity), true - - case "TranslationField.dbField": - if e.complexity.TranslationField.DBField == nil { - break - } - - return e.complexity.TranslationField.DBField(childComplexity), true - - case "TranslationField.dataType": - if e.complexity.TranslationField.DataType == nil { - break - } - - return e.complexity.TranslationField.DataType(childComplexity), true - - case "TranslationField.exportLabel": - if e.complexity.TranslationField.ExportLabel == nil { - break - } - - return e.complexity.TranslationField.ExportLabel(childComplexity), true - - case "TranslationField.formType": - if e.complexity.TranslationField.FormType == nil { - break - } - - return e.complexity.TranslationField.FormType(childComplexity), true - - case "TranslationField.goField": - if e.complexity.TranslationField.GoField == nil { - break - } - - return e.complexity.TranslationField.GoField(childComplexity), true - - case "TranslationField.gqlField": - if e.complexity.TranslationField.GqlField == nil { - break - } - - return e.complexity.TranslationField.GqlField(childComplexity), true - - case "TranslationField.isArray": - if e.complexity.TranslationField.IsArray == nil { - break - } - - return e.complexity.TranslationField.IsArray(childComplexity), true - - case "TranslationField.isNote": - if e.complexity.TranslationField.IsNote == nil { - break - } - - return e.complexity.TranslationField.IsNote(childComplexity), true - - case "TranslationField.isOtherType": - if e.complexity.TranslationField.IsOtherType == nil { - break - } - - return e.complexity.TranslationField.IsOtherType(childComplexity), true - - case "TranslationField.label": - if e.complexity.TranslationField.Label == nil { - break - } - - return e.complexity.TranslationField.Label(childComplexity), true - - case "TranslationField.multiSelectLabel": - if e.complexity.TranslationField.MultiSelectLabel == nil { - break - } - - return e.complexity.TranslationField.MultiSelectLabel(childComplexity), true - - case "TranslationField.order": - if e.complexity.TranslationField.Order == nil { - break - } - - return e.complexity.TranslationField.Order(childComplexity), true - - case "TranslationField.otherParentField": - if e.complexity.TranslationField.OtherParentField == nil { - break - } - - return e.complexity.TranslationField.OtherParentField(childComplexity), true - - case "TranslationField.parentReferencesLabel": - if e.complexity.TranslationField.ParentReferencesLabel == nil { - break - } - - return e.complexity.TranslationField.ParentReferencesLabel(childComplexity), true - - case "TranslationField.readonlyLabel": - if e.complexity.TranslationField.ReadOnlyLabel == nil { - break - } - - return e.complexity.TranslationField.ReadOnlyLabel(childComplexity), true - - case "TranslationField.sublabel": - if e.complexity.TranslationField.SubLabel == nil { - break - } - - return e.complexity.TranslationField.SubLabel(childComplexity), true - - case "TranslationField.tableReference": - if e.complexity.TranslationField.TableReference == nil { - break - } - - return e.complexity.TranslationField.TableReference(childComplexity), true - - case "TranslationFieldWithOptions.dbField": - if e.complexity.TranslationFieldWithOptions.DBField == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.DBField(childComplexity), true - - case "TranslationFieldWithOptions.dataType": - if e.complexity.TranslationFieldWithOptions.DataType == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.DataType(childComplexity), true - - case "TranslationFieldWithOptions.exportLabel": - if e.complexity.TranslationFieldWithOptions.ExportLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.ExportLabel(childComplexity), true - - case "TranslationFieldWithOptions.exportOptions": - if e.complexity.TranslationFieldWithOptions.ExportOptions == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.ExportOptions(childComplexity), true - - case "TranslationFieldWithOptions.formType": - if e.complexity.TranslationFieldWithOptions.FormType == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.FormType(childComplexity), true - - case "TranslationFieldWithOptions.goField": - if e.complexity.TranslationFieldWithOptions.GoField == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.GoField(childComplexity), true - - case "TranslationFieldWithOptions.gqlField": - if e.complexity.TranslationFieldWithOptions.GqlField == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.GqlField(childComplexity), true - - case "TranslationFieldWithOptions.isArray": - if e.complexity.TranslationFieldWithOptions.IsArray == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.IsArray(childComplexity), true - - case "TranslationFieldWithOptions.isNote": - if e.complexity.TranslationFieldWithOptions.IsNote == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.IsNote(childComplexity), true - - case "TranslationFieldWithOptions.isOtherType": - if e.complexity.TranslationFieldWithOptions.IsOtherType == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.IsOtherType(childComplexity), true - - case "TranslationFieldWithOptions.label": - if e.complexity.TranslationFieldWithOptions.Label == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.Label(childComplexity), true - - case "TranslationFieldWithOptions.multiSelectLabel": - if e.complexity.TranslationFieldWithOptions.MultiSelectLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.MultiSelectLabel(childComplexity), true - - case "TranslationFieldWithOptions.options": - if e.complexity.TranslationFieldWithOptions.Options == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.Options(childComplexity), true - - case "TranslationFieldWithOptions.order": - if e.complexity.TranslationFieldWithOptions.Order == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.Order(childComplexity), true - - case "TranslationFieldWithOptions.otherParentField": - if e.complexity.TranslationFieldWithOptions.OtherParentField == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.OtherParentField(childComplexity), true - - case "TranslationFieldWithOptions.parentReferencesLabel": - if e.complexity.TranslationFieldWithOptions.ParentReferencesLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.ParentReferencesLabel(childComplexity), true - - case "TranslationFieldWithOptions.readonlyLabel": - if e.complexity.TranslationFieldWithOptions.ReadOnlyLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.ReadOnlyLabel(childComplexity), true - - case "TranslationFieldWithOptions.sublabel": - if e.complexity.TranslationFieldWithOptions.SubLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.SubLabel(childComplexity), true - - case "TranslationFieldWithOptions.tableReference": - if e.complexity.TranslationFieldWithOptions.TableReference == nil { - break - } - - return e.complexity.TranslationFieldWithOptions.TableReference(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.childRelation": - if e.complexity.TranslationFieldWithOptionsAndChildren.ChildRelation == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.ChildRelation(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.dbField": - if e.complexity.TranslationFieldWithOptionsAndChildren.DBField == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.DBField(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.dataType": - if e.complexity.TranslationFieldWithOptionsAndChildren.DataType == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.DataType(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.exportLabel": - if e.complexity.TranslationFieldWithOptionsAndChildren.ExportLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.ExportLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.exportOptions": - if e.complexity.TranslationFieldWithOptionsAndChildren.ExportOptions == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.ExportOptions(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.formType": - if e.complexity.TranslationFieldWithOptionsAndChildren.FormType == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.FormType(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.goField": - if e.complexity.TranslationFieldWithOptionsAndChildren.GoField == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.GoField(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.gqlField": - if e.complexity.TranslationFieldWithOptionsAndChildren.GqlField == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.GqlField(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.isArray": - if e.complexity.TranslationFieldWithOptionsAndChildren.IsArray == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.IsArray(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.isNote": - if e.complexity.TranslationFieldWithOptionsAndChildren.IsNote == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.IsNote(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.isOtherType": - if e.complexity.TranslationFieldWithOptionsAndChildren.IsOtherType == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.IsOtherType(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.label": - if e.complexity.TranslationFieldWithOptionsAndChildren.Label == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.Label(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.multiSelectLabel": - if e.complexity.TranslationFieldWithOptionsAndChildren.MultiSelectLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.MultiSelectLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.options": - if e.complexity.TranslationFieldWithOptionsAndChildren.Options == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.Options(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.order": - if e.complexity.TranslationFieldWithOptionsAndChildren.Order == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.Order(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.otherParentField": - if e.complexity.TranslationFieldWithOptionsAndChildren.OtherParentField == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.OtherParentField(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.parentReferencesLabel": - if e.complexity.TranslationFieldWithOptionsAndChildren.ParentReferencesLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.ParentReferencesLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.readonlyLabel": - if e.complexity.TranslationFieldWithOptionsAndChildren.ReadOnlyLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.ReadOnlyLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.sublabel": - if e.complexity.TranslationFieldWithOptionsAndChildren.SubLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.SubLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndChildren.tableReference": - if e.complexity.TranslationFieldWithOptionsAndChildren.TableReference == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndChildren.TableReference(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.dbField": - if e.complexity.TranslationFieldWithOptionsAndParent.DBField == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.DBField(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.dataType": - if e.complexity.TranslationFieldWithOptionsAndParent.DataType == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.DataType(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.exportLabel": - if e.complexity.TranslationFieldWithOptionsAndParent.ExportLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.ExportLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.exportOptions": - if e.complexity.TranslationFieldWithOptionsAndParent.ExportOptions == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.ExportOptions(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.formType": - if e.complexity.TranslationFieldWithOptionsAndParent.FormType == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.FormType(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.goField": - if e.complexity.TranslationFieldWithOptionsAndParent.GoField == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.GoField(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.gqlField": - if e.complexity.TranslationFieldWithOptionsAndParent.GqlField == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.GqlField(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.isArray": - if e.complexity.TranslationFieldWithOptionsAndParent.IsArray == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.IsArray(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.isNote": - if e.complexity.TranslationFieldWithOptionsAndParent.IsNote == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.IsNote(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.isOtherType": - if e.complexity.TranslationFieldWithOptionsAndParent.IsOtherType == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.IsOtherType(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.label": - if e.complexity.TranslationFieldWithOptionsAndParent.Label == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.Label(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.multiSelectLabel": - if e.complexity.TranslationFieldWithOptionsAndParent.MultiSelectLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.MultiSelectLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.options": - if e.complexity.TranslationFieldWithOptionsAndParent.Options == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.Options(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.order": - if e.complexity.TranslationFieldWithOptionsAndParent.Order == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.Order(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.otherParentField": - if e.complexity.TranslationFieldWithOptionsAndParent.OtherParentField == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.OtherParentField(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.parentReferencesLabel": - if e.complexity.TranslationFieldWithOptionsAndParent.ParentReferencesLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.ParentReferencesLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.parentRelation": - if e.complexity.TranslationFieldWithOptionsAndParent.ParentRelation == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.ParentRelation(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.readonlyLabel": - if e.complexity.TranslationFieldWithOptionsAndParent.ReadOnlyLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.ReadOnlyLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.sublabel": - if e.complexity.TranslationFieldWithOptionsAndParent.SubLabel == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.SubLabel(childComplexity), true - - case "TranslationFieldWithOptionsAndParent.tableReference": - if e.complexity.TranslationFieldWithOptionsAndParent.TableReference == nil { - break - } - - return e.complexity.TranslationFieldWithOptionsAndParent.TableReference(childComplexity), true - - case "TranslationFieldWithParent.dbField": - if e.complexity.TranslationFieldWithParent.DBField == nil { - break - } - - return e.complexity.TranslationFieldWithParent.DBField(childComplexity), true - - case "TranslationFieldWithParent.dataType": - if e.complexity.TranslationFieldWithParent.DataType == nil { - break - } - - return e.complexity.TranslationFieldWithParent.DataType(childComplexity), true - - case "TranslationFieldWithParent.exportLabel": - if e.complexity.TranslationFieldWithParent.ExportLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParent.ExportLabel(childComplexity), true - - case "TranslationFieldWithParent.formType": - if e.complexity.TranslationFieldWithParent.FormType == nil { - break - } - - return e.complexity.TranslationFieldWithParent.FormType(childComplexity), true - - case "TranslationFieldWithParent.goField": - if e.complexity.TranslationFieldWithParent.GoField == nil { - break - } - - return e.complexity.TranslationFieldWithParent.GoField(childComplexity), true - - case "TranslationFieldWithParent.gqlField": - if e.complexity.TranslationFieldWithParent.GqlField == nil { - break - } - - return e.complexity.TranslationFieldWithParent.GqlField(childComplexity), true - - case "TranslationFieldWithParent.isArray": - if e.complexity.TranslationFieldWithParent.IsArray == nil { - break - } - - return e.complexity.TranslationFieldWithParent.IsArray(childComplexity), true - - case "TranslationFieldWithParent.isNote": - if e.complexity.TranslationFieldWithParent.IsNote == nil { - break - } - - return e.complexity.TranslationFieldWithParent.IsNote(childComplexity), true - - case "TranslationFieldWithParent.isOtherType": - if e.complexity.TranslationFieldWithParent.IsOtherType == nil { - break - } - - return e.complexity.TranslationFieldWithParent.IsOtherType(childComplexity), true - - case "TranslationFieldWithParent.label": - if e.complexity.TranslationFieldWithParent.Label == nil { - break - } - - return e.complexity.TranslationFieldWithParent.Label(childComplexity), true - - case "TranslationFieldWithParent.multiSelectLabel": - if e.complexity.TranslationFieldWithParent.MultiSelectLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParent.MultiSelectLabel(childComplexity), true - - case "TranslationFieldWithParent.order": - if e.complexity.TranslationFieldWithParent.Order == nil { - break - } - - return e.complexity.TranslationFieldWithParent.Order(childComplexity), true - - case "TranslationFieldWithParent.otherParentField": - if e.complexity.TranslationFieldWithParent.OtherParentField == nil { - break - } - - return e.complexity.TranslationFieldWithParent.OtherParentField(childComplexity), true - - case "TranslationFieldWithParent.parentReferencesLabel": - if e.complexity.TranslationFieldWithParent.ParentReferencesLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParent.ParentReferencesLabel(childComplexity), true - - case "TranslationFieldWithParent.parentRelation": - if e.complexity.TranslationFieldWithParent.ParentRelation == nil { - break - } - - return e.complexity.TranslationFieldWithParent.ParentRelation(childComplexity), true - - case "TranslationFieldWithParent.readonlyLabel": - if e.complexity.TranslationFieldWithParent.ReadOnlyLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParent.ReadOnlyLabel(childComplexity), true - - case "TranslationFieldWithParent.sublabel": - if e.complexity.TranslationFieldWithParent.SubLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParent.SubLabel(childComplexity), true - - case "TranslationFieldWithParent.tableReference": - if e.complexity.TranslationFieldWithParent.TableReference == nil { - break - } - - return e.complexity.TranslationFieldWithParent.TableReference(childComplexity), true - - case "TranslationFieldWithParentAndChildren.childRelation": - if e.complexity.TranslationFieldWithParentAndChildren.ChildRelation == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.ChildRelation(childComplexity), true - - case "TranslationFieldWithParentAndChildren.dbField": - if e.complexity.TranslationFieldWithParentAndChildren.DBField == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.DBField(childComplexity), true - - case "TranslationFieldWithParentAndChildren.dataType": - if e.complexity.TranslationFieldWithParentAndChildren.DataType == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.DataType(childComplexity), true - - case "TranslationFieldWithParentAndChildren.exportLabel": - if e.complexity.TranslationFieldWithParentAndChildren.ExportLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.ExportLabel(childComplexity), true - - case "TranslationFieldWithParentAndChildren.exportOptions": - if e.complexity.TranslationFieldWithParentAndChildren.ExportOptions == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.ExportOptions(childComplexity), true - - case "TranslationFieldWithParentAndChildren.formType": - if e.complexity.TranslationFieldWithParentAndChildren.FormType == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.FormType(childComplexity), true - - case "TranslationFieldWithParentAndChildren.goField": - if e.complexity.TranslationFieldWithParentAndChildren.GoField == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.GoField(childComplexity), true - - case "TranslationFieldWithParentAndChildren.gqlField": - if e.complexity.TranslationFieldWithParentAndChildren.GqlField == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.GqlField(childComplexity), true - - case "TranslationFieldWithParentAndChildren.isArray": - if e.complexity.TranslationFieldWithParentAndChildren.IsArray == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.IsArray(childComplexity), true - - case "TranslationFieldWithParentAndChildren.isNote": - if e.complexity.TranslationFieldWithParentAndChildren.IsNote == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.IsNote(childComplexity), true - - case "TranslationFieldWithParentAndChildren.isOtherType": - if e.complexity.TranslationFieldWithParentAndChildren.IsOtherType == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.IsOtherType(childComplexity), true - - case "TranslationFieldWithParentAndChildren.label": - if e.complexity.TranslationFieldWithParentAndChildren.Label == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.Label(childComplexity), true - - case "TranslationFieldWithParentAndChildren.multiSelectLabel": - if e.complexity.TranslationFieldWithParentAndChildren.MultiSelectLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.MultiSelectLabel(childComplexity), true - - case "TranslationFieldWithParentAndChildren.options": - if e.complexity.TranslationFieldWithParentAndChildren.Options == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.Options(childComplexity), true - - case "TranslationFieldWithParentAndChildren.order": - if e.complexity.TranslationFieldWithParentAndChildren.Order == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.Order(childComplexity), true - - case "TranslationFieldWithParentAndChildren.otherParentField": - if e.complexity.TranslationFieldWithParentAndChildren.OtherParentField == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.OtherParentField(childComplexity), true - - case "TranslationFieldWithParentAndChildren.parentReferencesLabel": - if e.complexity.TranslationFieldWithParentAndChildren.ParentReferencesLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.ParentReferencesLabel(childComplexity), true - - case "TranslationFieldWithParentAndChildren.parentRelation": - if e.complexity.TranslationFieldWithParentAndChildren.ParentRelation == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.ParentRelation(childComplexity), true - - case "TranslationFieldWithParentAndChildren.readonlyLabel": - if e.complexity.TranslationFieldWithParentAndChildren.ReadOnlyLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.ReadOnlyLabel(childComplexity), true - - case "TranslationFieldWithParentAndChildren.sublabel": - if e.complexity.TranslationFieldWithParentAndChildren.SubLabel == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.SubLabel(childComplexity), true - - case "TranslationFieldWithParentAndChildren.tableReference": - if e.complexity.TranslationFieldWithParentAndChildren.TableReference == nil { - break - } - - return e.complexity.TranslationFieldWithParentAndChildren.TableReference(childComplexity), true - - case "UserAccount.commonName": - if e.complexity.UserAccount.CommonName == nil { - break - } - - return e.complexity.UserAccount.CommonName(childComplexity), true - - case "UserAccount.email": - if e.complexity.UserAccount.Email == nil { - break - } - - return e.complexity.UserAccount.Email(childComplexity), true - - case "UserAccount.familyName": - if e.complexity.UserAccount.FamilyName == nil { - break - } - - return e.complexity.UserAccount.FamilyName(childComplexity), true - - case "UserAccount.givenName": - if e.complexity.UserAccount.GivenName == nil { - break - } - - return e.complexity.UserAccount.GivenName(childComplexity), true - - case "UserAccount.hasLoggedIn": - if e.complexity.UserAccount.HasLoggedIn == nil { - break - } - - return e.complexity.UserAccount.HasLoggedIn(childComplexity), true - - case "UserAccount.id": - if e.complexity.UserAccount.ID == nil { - break - } - - return e.complexity.UserAccount.ID(childComplexity), true - - case "UserAccount.isEUAID": - if e.complexity.UserAccount.IsEUAID == nil { - break - } - - return e.complexity.UserAccount.IsEUAID(childComplexity), true - - case "UserAccount.locale": - if e.complexity.UserAccount.Locale == nil { - break - } - - return e.complexity.UserAccount.Locale(childComplexity), true - - case "UserAccount.username": - if e.complexity.UserAccount.Username == nil { - break - } - - return e.complexity.UserAccount.Username(childComplexity), true - - case "UserAccount.zoneInfo": - if e.complexity.UserAccount.ZoneInfo == nil { - break - } - - return e.complexity.UserAccount.ZoneInfo(childComplexity), true - - case "UserInfo.displayName": - if e.complexity.UserInfo.DisplayName == nil { - break - } - - return e.complexity.UserInfo.DisplayName(childComplexity), true - - case "UserInfo.email": - if e.complexity.UserInfo.Email == nil { - break - } - - return e.complexity.UserInfo.Email(childComplexity), true - - case "UserInfo.firstName": - if e.complexity.UserInfo.FirstName == nil { - break - } - - return e.complexity.UserInfo.FirstName(childComplexity), true - - case "UserInfo.lastName": - if e.complexity.UserInfo.LastName == nil { - break - } - - return e.complexity.UserInfo.LastName(childComplexity), true - - case "UserInfo.username": - if e.complexity.UserInfo.Username == nil { - break - } - - return e.complexity.UserInfo.Username(childComplexity), true - - case "UserNotification.activity": - if e.complexity.UserNotification.Activity == nil { - break - } - - return e.complexity.UserNotification.Activity(childComplexity), true - - case "UserNotification.activityID": - if e.complexity.UserNotification.ActivityID == nil { - break - } - - return e.complexity.UserNotification.ActivityID(childComplexity), true - - case "UserNotification.createdBy": - if e.complexity.UserNotification.CreatedBy == nil { - break - } - - return e.complexity.UserNotification.CreatedBy(childComplexity), true - - case "UserNotification.createdByUserAccount": - if e.complexity.UserNotification.CreatedByUserAccount == nil { - break - } - - return e.complexity.UserNotification.CreatedByUserAccount(childComplexity), true - - case "UserNotification.createdDts": - if e.complexity.UserNotification.CreatedDts == nil { - break - } - - return e.complexity.UserNotification.CreatedDts(childComplexity), true - - case "UserNotification.emailSent": - if e.complexity.UserNotification.EmailSent == nil { - break - } - - return e.complexity.UserNotification.EmailSent(childComplexity), true - - case "UserNotification.id": - if e.complexity.UserNotification.ID == nil { - break - } - - return e.complexity.UserNotification.ID(childComplexity), true - - case "UserNotification.inAppSent": - if e.complexity.UserNotification.InAppSent == nil { - break - } - - return e.complexity.UserNotification.InAppSent(childComplexity), true - - case "UserNotification.isRead": - if e.complexity.UserNotification.IsRead == nil { - break - } - - return e.complexity.UserNotification.IsRead(childComplexity), true - - case "UserNotification.modifiedBy": - if e.complexity.UserNotification.ModifiedBy == nil { - break - } - - return e.complexity.UserNotification.ModifiedBy(childComplexity), true - - case "UserNotification.modifiedByUserAccount": - if e.complexity.UserNotification.ModifiedByUserAccount == nil { - break - } - - return e.complexity.UserNotification.ModifiedByUserAccount(childComplexity), true - - case "UserNotification.modifiedDts": - if e.complexity.UserNotification.ModifiedDts == nil { - break - } - - return e.complexity.UserNotification.ModifiedDts(childComplexity), true - - case "UserNotification.userID": - if e.complexity.UserNotification.UserID == nil { - break - } - - return e.complexity.UserNotification.UserID(childComplexity), true - - case "UserNotificationPreferences.addedAsCollaborator": - if e.complexity.UserNotificationPreferences.AddedAsCollaborator == nil { - break - } - - return e.complexity.UserNotificationPreferences.AddedAsCollaborator(childComplexity), true - - case "UserNotificationPreferences.createdBy": - if e.complexity.UserNotificationPreferences.CreatedBy == nil { - break - } - - return e.complexity.UserNotificationPreferences.CreatedBy(childComplexity), true - - case "UserNotificationPreferences.createdByUserAccount": - if e.complexity.UserNotificationPreferences.CreatedByUserAccount == nil { - break - } - - return e.complexity.UserNotificationPreferences.CreatedByUserAccount(childComplexity), true - - case "UserNotificationPreferences.createdDts": - if e.complexity.UserNotificationPreferences.CreatedDts == nil { - break - } - - return e.complexity.UserNotificationPreferences.CreatedDts(childComplexity), true - - case "UserNotificationPreferences.dailyDigestComplete": - if e.complexity.UserNotificationPreferences.DailyDigestComplete == nil { - break - } - - return e.complexity.UserNotificationPreferences.DailyDigestComplete(childComplexity), true - - case "UserNotificationPreferences.dataExchangeApproachMarkedComplete": - if e.complexity.UserNotificationPreferences.DataExchangeApproachMarkedComplete == nil { - break - } - - return e.complexity.UserNotificationPreferences.DataExchangeApproachMarkedComplete(childComplexity), true - - case "UserNotificationPreferences.dataExchangeApproachMarkedCompleteNotificationType": - if e.complexity.UserNotificationPreferences.DataExchangeApproachMarkedCompleteNotificationType == nil { - break - } - - return e.complexity.UserNotificationPreferences.DataExchangeApproachMarkedCompleteNotificationType(childComplexity), true - - case "UserNotificationPreferences.datesChanged": - if e.complexity.UserNotificationPreferences.DatesChanged == nil { - break - } - - return e.complexity.UserNotificationPreferences.DatesChanged(childComplexity), true - - case "UserNotificationPreferences.datesChangedNotificationType": - if e.complexity.UserNotificationPreferences.DatesChangedNotificationType == nil { - break - } - - return e.complexity.UserNotificationPreferences.DatesChangedNotificationType(childComplexity), true - - case "UserNotificationPreferences.id": - if e.complexity.UserNotificationPreferences.ID == nil { - break - } - - return e.complexity.UserNotificationPreferences.ID(childComplexity), true - - case "UserNotificationPreferences.modelPlanShared": - if e.complexity.UserNotificationPreferences.ModelPlanShared == nil { - break - } - - return e.complexity.UserNotificationPreferences.ModelPlanShared(childComplexity), true - - case "UserNotificationPreferences.modifiedBy": - if e.complexity.UserNotificationPreferences.ModifiedBy == nil { - break - } - - return e.complexity.UserNotificationPreferences.ModifiedBy(childComplexity), true - - case "UserNotificationPreferences.modifiedByUserAccount": - if e.complexity.UserNotificationPreferences.ModifiedByUserAccount == nil { - break - } - - return e.complexity.UserNotificationPreferences.ModifiedByUserAccount(childComplexity), true - - case "UserNotificationPreferences.modifiedDts": - if e.complexity.UserNotificationPreferences.ModifiedDts == nil { - break - } - - return e.complexity.UserNotificationPreferences.ModifiedDts(childComplexity), true - - case "UserNotificationPreferences.newDiscussionReply": - if e.complexity.UserNotificationPreferences.NewDiscussionReply == nil { - break - } - - return e.complexity.UserNotificationPreferences.NewDiscussionReply(childComplexity), true - - case "UserNotificationPreferences.newModelPlan": - if e.complexity.UserNotificationPreferences.NewModelPlan == nil { - break - } - - return e.complexity.UserNotificationPreferences.NewModelPlan(childComplexity), true - - case "UserNotificationPreferences.taggedInDiscussion": - if e.complexity.UserNotificationPreferences.TaggedInDiscussion == nil { - break - } - - return e.complexity.UserNotificationPreferences.TaggedInDiscussion(childComplexity), true - - case "UserNotificationPreferences.taggedInDiscussionReply": - if e.complexity.UserNotificationPreferences.TaggedInDiscussionReply == nil { - break - } - - return e.complexity.UserNotificationPreferences.TaggedInDiscussionReply(childComplexity), true - - case "UserNotificationPreferences.userID": - if e.complexity.UserNotificationPreferences.UserID == nil { - break - } - - return e.complexity.UserNotificationPreferences.UserID(childComplexity), true - - case "UserNotifications.notifications": - if e.complexity.UserNotifications.Notifications == nil { - break - } - - return e.complexity.UserNotifications.Notifications(childComplexity), true - - case "UserNotifications.numUnreadNotifications": - if e.complexity.UserNotifications.NumUnreadNotifications == nil { - break - } - - return e.complexity.UserNotifications.NumUnreadNotifications(childComplexity), true - - case "UserNotifications.unreadNotifications": - if e.complexity.UserNotifications.UnreadNotifications == nil { - break - } - - return e.complexity.UserNotifications.UnreadNotifications(childComplexity), true - - case "UserViewCustomization.createdBy": - if e.complexity.UserViewCustomization.CreatedBy == nil { - break - } - - return e.complexity.UserViewCustomization.CreatedBy(childComplexity), true - - case "UserViewCustomization.createdByUserAccount": - if e.complexity.UserViewCustomization.CreatedByUserAccount == nil { - break - } - - return e.complexity.UserViewCustomization.CreatedByUserAccount(childComplexity), true - - case "UserViewCustomization.createdDts": - if e.complexity.UserViewCustomization.CreatedDts == nil { - break - } - - return e.complexity.UserViewCustomization.CreatedDts(childComplexity), true - - case "UserViewCustomization.id": - if e.complexity.UserViewCustomization.ID == nil { - break - } - - return e.complexity.UserViewCustomization.ID(childComplexity), true - - case "UserViewCustomization.modifiedBy": - if e.complexity.UserViewCustomization.ModifiedBy == nil { - break - } - - return e.complexity.UserViewCustomization.ModifiedBy(childComplexity), true - - case "UserViewCustomization.modifiedByUserAccount": - if e.complexity.UserViewCustomization.ModifiedByUserAccount == nil { - break - } - - return e.complexity.UserViewCustomization.ModifiedByUserAccount(childComplexity), true - - case "UserViewCustomization.modifiedDts": - if e.complexity.UserViewCustomization.ModifiedDts == nil { - break - } - - return e.complexity.UserViewCustomization.ModifiedDts(childComplexity), true - - case "UserViewCustomization.possibleOperationalSolutions": - if e.complexity.UserViewCustomization.PossibleOperationalSolutions == nil { - break - } - - return e.complexity.UserViewCustomization.PossibleOperationalSolutions(childComplexity), true - - case "UserViewCustomization.userAccount": - if e.complexity.UserViewCustomization.UserAccount == nil { - break - } - - return e.complexity.UserViewCustomization.UserAccount(childComplexity), true - - case "UserViewCustomization.userId": - if e.complexity.UserViewCustomization.UserID == nil { - break - } - - return e.complexity.UserViewCustomization.UserID(childComplexity), true - - case "UserViewCustomization.viewCustomization": - if e.complexity.UserViewCustomization.ViewCustomization == nil { - break - } - - return e.complexity.UserViewCustomization.ViewCustomization(childComplexity), true - - } - return 0, false -} - -func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} - inputUnmarshalMap := graphql.BuildUnmarshalerMap( - ec.unmarshalInputCreateOperationalSolutionSubtaskInput, - ec.unmarshalInputDiscussionReplyCreateInput, - ec.unmarshalInputPlanCRCreateInput, - ec.unmarshalInputPlanCollaboratorCreateInput, - ec.unmarshalInputPlanDiscussionCreateInput, - ec.unmarshalInputPlanDocumentInput, - ec.unmarshalInputPlanDocumentLinkInput, - ec.unmarshalInputPlanTDLCreateInput, - ec.unmarshalInputReportAProblemInput, - ec.unmarshalInputSendFeedbackEmailInput, - ec.unmarshalInputUpdateOperationalSolutionSubtaskInput, - ) - first := true - - switch rc.Operation.Operation { - case ast.Query: - return func(ctx context.Context) *graphql.Response { - var response graphql.Response - var data graphql.Marshaler - if first { - first = false - ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._Query(ctx, rc.Operation.SelectionSet) - } else { - if atomic.LoadInt32(&ec.pendingDeferred) > 0 { - result := <-ec.deferredResults - atomic.AddInt32(&ec.pendingDeferred, -1) - data = result.Result - response.Path = result.Path - response.Label = result.Label - response.Errors = result.Errors - } else { - return nil - } - } - var buf bytes.Buffer - data.MarshalGQL(&buf) - response.Data = buf.Bytes() - if atomic.LoadInt32(&ec.deferred) > 0 { - hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 - response.HasNext = &hasNext - } - - return &response - } - case ast.Mutation: - return func(ctx context.Context) *graphql.Response { - if !first { - return nil - } - first = false - ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data := ec._Mutation(ctx, rc.Operation.SelectionSet) - var buf bytes.Buffer - data.MarshalGQL(&buf) - - return &graphql.Response{ - Data: buf.Bytes(), - } - } - case ast.Subscription: - next := ec._Subscription(ctx, rc.Operation.SelectionSet) - - var buf bytes.Buffer - return func(ctx context.Context) *graphql.Response { - buf.Reset() - data := next(ctx) - - if data == nil { - return nil - } - data.MarshalGQL(&buf) - - return &graphql.Response{ - Data: buf.Bytes(), - } - } - - default: - return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) - } -} - -type executionContext struct { - *graphql.OperationContext - *executableSchema - deferred int32 - pendingDeferred int32 - deferredResults chan graphql.DeferredResult -} - -func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { - atomic.AddInt32(&ec.pendingDeferred, 1) - go func() { - ctx := graphql.WithFreshResponseContext(dg.Context) - dg.FieldSet.Dispatch(ctx) - ds := graphql.DeferredResult{ - Path: dg.Path, - Label: dg.Label, - Result: dg.FieldSet, - Errors: graphql.GetErrors(ctx), - } - // null fields should bubble up - if dg.FieldSet.Invalids > 0 { - ds.Result = graphql.Null - } - ec.deferredResults <- ds - }() -} - -func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { - if ec.DisableIntrospection { - return nil, errors.New("introspection disabled") - } - return introspection.WrapSchema(parsedSchema), nil -} - -func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { - if ec.DisableIntrospection { - return nil, errors.New("introspection disabled") - } - return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil -} - -var sources = []*ast.Source{ - {Name: "../schema/schema.graphql", Input: `""" -Query definition for the schema -""" -type Query - -""" -Mutations definition for the schema -""" -type Mutation`, BuiltIn: false}, - {Name: "../schema/types/activity.graphql", Input: `""" -ActivityType represents the possible activities that happen in application that might result in a notification -""" -enum ActivityType { - DAILY_DIGEST_COMPLETE - ADDED_AS_COLLABORATOR - TAGGED_IN_DISCUSSION - TAGGED_IN_DISCUSSION_REPLY - NEW_DISCUSSION_REPLY - MODEL_PLAN_SHARED - NEW_MODEL_PLAN - DATES_CHANGED - DATA_EXCHANGE_APPROACH_MARKED_COMPLETE -} - -enum DateChangeFieldType { - COMPLETE_ICIP - CLEARANCE - ANNOUNCED - APPLICATIONS - PERFORMANCE_PERIOD - WRAP_UP_ENDS -} - -""" -ActivityMetaData is a type that represents all the data that can be captured in an Activity -""" -union ActivityMetaData = TaggedInPlanDiscussionActivityMeta | TaggedInDiscussionReplyActivityMeta | DailyDigestCompleteActivityMeta | NewDiscussionRepliedActivityMeta | AddedAsCollaboratorMeta | ModelPlanSharedActivityMeta | NewModelPlanActivityMeta | DatesChangedActivityMeta | PlanDataExchangeApproachMarkedCompleteActivityMeta - -type AddedAsCollaboratorMeta { - version: Int! - type: ActivityType! - modelPlanID: UUID! - modelPlan: ModelPlan! - collaboratorID: UUID! - collaborator: PlanCollaborator! -} - -type TaggedInPlanDiscussionActivityMeta { - version: Int! - type: ActivityType! - modelPlanID: UUID! - modelPlan: ModelPlan! - discussionID: UUID! - discussion: PlanDiscussion! - content: String! -} - -type TaggedInDiscussionReplyActivityMeta { - version: Int! - type: ActivityType! - modelPlanID: UUID! - modelPlan: ModelPlan! - discussionID: UUID! - discussion: PlanDiscussion! - replyID: UUID! - reply: DiscussionReply! - content: String! -} - -type ModelPlanSharedActivityMeta { - version: Int! - type: ActivityType! - modelPlanID: UUID! - modelPlan: ModelPlan! - optionalMessage: String -} - -type NewDiscussionRepliedActivityMeta { - version: Int! - type: ActivityType! - modelPlanID: UUID! - modelPlan: ModelPlan! - discussionID: UUID! - discussion: PlanDiscussion! - replyID: UUID! - reply: DiscussionReply! - content: String! -} - -type DailyDigestCompleteActivityMeta { - version: Int! - type: ActivityType! - modelPlanIDs: [UUID!]! - analyzedAudits: [AnalyzedAudit!]! - userID: UUID! - date: Time! -} - -type NewModelPlanActivityMeta { - version: Int! - type: ActivityType! - modelPlanID: UUID! - modelPlan: ModelPlan! -} - -type DateChange { - isChanged: Boolean! - field: DateChangeFieldType! - isRange: Boolean! - oldDate: Time - newDate: Time - oldRangeStart: Time - oldRangeEnd: Time - newRangeStart: Time - newRangeEnd: Time -} - -type DatesChangedActivityMeta { - version: Int! - type: ActivityType! - modelPlanID: UUID! - modelPlan: ModelPlan! - dateChanges: [DateChange!]! -} - -type PlanDataExchangeApproachMarkedCompleteActivityMeta { - version: Int! - type: ActivityType! - dataExchangeApproachID: UUID! - dataExchangeApproach: PlanDataExchangeApproach! - modelPlan: ModelPlan! - markedCompleteBy: UUID! - markedCompleteByUserAccount: UserAccount! -} - -""" -Activity represents an event that happened in the application that could result in a notification. -""" -type Activity { - id: UUID! - actorID: UUID! - actorUserAccount: UserAccount! - entityID: UUID! - activityType: ActivityType! - metaData: ActivityMetaData! - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} -`, BuiltIn: false}, - {Name: "../schema/types/analyzed_audit.graphql", Input: `""" -Analyzed Audit Represents data about changes that have happened in a model plan, saved in an a -""" - -type AnalyzedAudit { - id: UUID! - modelPlanID: UUID! - - modelName: String! - date: Time! - changes: AnalyzedAuditChange! - - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - - -type AnalyzedAuditChange { - modelPlan: AnalyzedModelPlan - documents: AnalyzedDocuments - crTdls: AnalyzedCrTdls - planSections: AnalyzedPlanSections - modelLeads: AnalyzedModelLeads - planDiscussions: AnalyzedPlanDiscussions - -} -type AnalyzedModelPlan { - """ - This represents the oldName - """ - oldName: String - statusChanges: [String] - -} - -type AnalyzedDocuments { - count: Int - -} - -type AnalyzedCrTdls { - activity: Boolean - -} -type AnalyzedPlanSections { - updated: [TableName!]! - readyForReview: [TableName!]! - readyForClearance: [TableName!]! - dataExchangeApproachMarkedComplete: Boolean -} - -type AnalyzedModelLeads { - added: [AnalyzedModelLeadInfo!]! -} - -type AnalyzedPlanDiscussions { - activity: Boolean -} - -type AnalyzedModelLeadInfo { - id: UUID! - userAccount: UserAccount! - commonName: String! - -} - -extend type Query { - analyzedAudits(dateAnalyzed: Time!): [AnalyzedAudit!]! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} -`, BuiltIn: false}, - {Name: "../schema/types/audit_change.graphql", Input: `type AuditChange { - id: Int! - primaryKey: UUID! - foreignKey: UUID - tableName: TableName! - action: String! - fields: Map! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Query { - auditChanges(tableName: TableName!, primaryKey: UUID!): [AuditChange!]! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/current_user.graphql", Input: `""" -The current user of the application -""" -type CurrentUser { - launchDarkly: LaunchDarklySettings! - account: UserAccount! - notifications: UserNotifications! - notificationPreferences: UserNotificationPreferences! -} - -extend type Query { - currentUser: CurrentUser! -}`, BuiltIn: false}, - {Name: "../schema/types/directives.graphql", Input: `directive @hasRole(role: Role!) on FIELD_DEFINITION - -directive @hasAnyRole(roles: [Role!]!) on FIELD_DEFINITION - -# https://gqlgen.com/config/#inline-config-with-directives -directive @goModel( - model: String - models: [String!] -) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION - -directive @goTag( - key: String! - value: String -) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION`, BuiltIn: false}, - {Name: "../schema/types/discussion_reply.graphql", Input: `""" -DiscussionReply represents a discussion reply -""" -type DiscussionReply { - id: UUID! - discussionID: UUID! - content: TaggedContent - userRole: DiscussionUserRole - userRoleDescription: String - isAssessment: Boolean! - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -""" -DiscussionReplyCreateInput represents the necessary fields to create a discussion reply -""" -input DiscussionReplyCreateInput { - discussionID: UUID! - content: TaggedHTML! - userRole: DiscussionUserRole - userRoleDescription: String -} - -extend type Mutation { - createDiscussionReply(input: DiscussionReplyCreateInput!): DiscussionReply! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/discussion_reply_translation.graphql", Input: `""" -Represents discussion reply translation data -""" - -type DiscussionReplyTranslation { - userRole: TranslationFieldWithOptions! @goTag(key: "db", value: "user_role") - userRoleDescription: TranslationField! @goTag(key: "db", value: "user_role_description") - content: TranslationField! @goTag(key: "db", value: "content") - isAssessment: TranslationFieldWithOptions! @goTag(key: "db", value: "is_assessment") -} -`, BuiltIn: false}, - {Name: "../schema/types/discussion_role_selection.graphql", Input: `type DiscussionRoleSelection { - userRole: DiscussionUserRole! - userRoleDescription: String -} - -extend type Query { - mostRecentDiscussionRoleSelection: DiscussionRoleSelection - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/echimp.graphql", Input: `type EChimpCR { - id: String! # This is "crNumber" under the hood, but it's aliased as "id" here for the sake of GQL/Apollo caching - versionNum: String! - initiator: String - firstName: String - lastName: String - title: String - sensitiveFlag: Boolean - implementationDate: String - """ - CRSummary is rich text in HTML format, in practice, the data is not tagged. - We use the TaggedContent type as we don't have another use for a plain HTML type. - """ - crSummary: TaggedContent - crStatus: String - emergencyCrFlag: Boolean - relatedCrNumbers: String - relatedCrTdlNumbers: String - associatedModelUids: UUID -} - -type EChimpTDL { - id: String! # This is "tdlNumber" under the hood, but it's aliased as "id" here for the sake of GQL/Apollo caching - versionNum: String! - initiator: String - firstName: String - lastName: String - title: String - issuedDate: String # TODO Convert to "Time" type if possible - status: String - associatedModelUids: UUID -} - -# """ -# EChimpCRAndTDLS is a type that represents CRS and TDLS so they can be returned together in graphql -# """ -union EChimpCRAndTDLS = EChimpCR | EChimpTDL -`, BuiltIn: false}, - {Name: "../schema/types/existing_model.graphql", Input: `""" -ExistingModel represents a model that already exists outside of the scope of MINT -""" -type ExistingModel { - id: Int - modelName: String! - stage: String! - numberOfParticipants: String - category: String - authority: String - description: String - numberOfBeneficiariesImpacted: Int - numberOfPhysiciansImpacted: Int - dateBegan: Time - dateEnded: Time - states: String - keywords: String - url: String - displayModelSummary: Boolean - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Query { - existingModelCollection: [ExistingModel!]! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/existing_model_link.graphql", Input: `enum ExisitingModelLinkFieldType { - GEN_CHAR_RESEMBLES_EXISTING_MODEL_WHICH - GEN_CHAR_PARTICIPATION_EXISTING_MODEL_WHICH -} - -""" -LinkedExistingModel is a union type that returns either an Existing Model, or a Model plan from the database -""" -union LinkedExistingModel = ExistingModel | ModelPlan - -type ExistingModelLinks { - links: [ExistingModelLink!]! - fieldName: ExisitingModelLinkFieldType! - modelPlanID: UUID! - names: [String!]! -} - -type ExistingModelLink { - id: UUID - modelPlanID: UUID! - existingModelID: Int - currentModelPlanID: UUID - fieldName: ExisitingModelLinkFieldType! - model: LinkedExistingModel! - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Query { - existingModelLink(id: UUID!): ExistingModelLink! - @hasAnyRole(roles:[MINT_USER, MINT_MAC]) -} - -extend type Mutation { - """ - This will update linked existing models, and relatede model plans for given model plan and fieldName. - The fieldName allows it so you can create links for multiple sections of the model plan - """ - updateExistingModelLinks(modelPlanID: UUID!,fieldName: ExisitingModelLinkFieldType!, existingModelIDs: [Int!],currentModelPlanIDs: [UUID!]): ExistingModelLinks! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/existing_model_link_translation.graphql", Input: `""" -Represents existing model link translation data -""" - -type ExistingModelLinkTranslation { - existingModelID: TranslationField! @goTag(key: "db", value: "existing_model_id") - currentModelPlanID: TranslationField! @goTag(key: "db", value: "current_model_plan_id") - fieldName: TranslationFieldWithOptions! @goTag(key: "db", value: "field_name") -} -`, BuiltIn: false}, - {Name: "../schema/types/launch_darkly_settings.graphql", Input: `""" -The current user's Launch Darkly key -""" -type LaunchDarklySettings { - userKey: String! - signedHash: String! -}`, BuiltIn: false}, - {Name: "../schema/types/lockable_sections.graphql", Input: `enum ChangeType { - ADDED - UPDATED - REMOVED -} - -enum ActionType { - """ - A normal flow action - """ - NORMAL - - """ - An administrative action - """ - ADMIN -} - -# LockableSection represents any section of the application that a user can uniquely hold a lock on. -# It _largely_ (currently) maps to the sections of the Task List, but also includes Data Exchange, which notably isn't part of the Task List. -enum LockableSection { - BASICS, - GENERAL_CHARACTERISTICS, - PARTICIPANTS_AND_PROVIDERS, - BENEFICIARIES, - OPERATIONS_EVALUATION_AND_LEARNING, - PAYMENT, - PREPARE_FOR_CLEARANCE, - DATA_EXCHANGE_APPROACH, - MODELS_TO_OPERATION_MATRIX -} - -type LockableSectionLockStatusChanged { - changeType: ChangeType! - lockStatus: LockableSectionLockStatus! - actionType: ActionType! -} - -type LockableSectionLockStatus { - modelPlanID: UUID! - section: LockableSection! - lockedByUserAccount: UserAccount! - isAssessment: Boolean! -} - -extend type Query { - lockableSectionLocks(modelPlanID: UUID!): [LockableSectionLockStatus!]! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - lockLockableSection(modelPlanID: UUID!, section: LockableSection!): Boolean! - @hasRole(role: MINT_USER) - - unlockLockableSection(modelPlanID: UUID!, section: LockableSection!): Boolean! - @hasRole(role: MINT_USER) - - unlockAllLockableSections(modelPlanID: UUID!): [LockableSectionLockStatus!]! - @hasRole(role: MINT_ASSESSMENT) -} - -type Subscription { - onLockableSectionLocksChanged(modelPlanID: UUID!): LockableSectionLockStatusChanged! - @hasRole(role: MINT_USER) - - onLockLockableSectionContext(modelPlanID: UUID!): LockableSectionLockStatusChanged! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/model_plan.graphql", Input: `enum ModelPlanFilter { - INCLUDE_ALL, - COLLAB_ONLY, - WITH_CR_TDLS, - FAVORITED, - APPROACHING_CLEARANCE, -} - -enum ModelStatus { - PLAN_DRAFT - PLAN_COMPLETE - ICIP_COMPLETE - INTERNAL_CMMI_CLEARANCE - CMS_CLEARANCE - HHS_CLEARANCE - OMB_ASRF_CLEARANCE - CLEARED - ANNOUNCED - PAUSED - CANCELED - ACTIVE - ENDED -} - -enum SortDirection { - ASC - DESC -} - -enum ModelViewFilter { - CCW, # CHRONIC_CONDITIONS_WAREHOUSE - CMMI, # CMMI_COST_ESTIMATE - CBOSC, # CONSOLIDATED_BUSINESS_OPERATIONS_SUPPORT_CENTER - DFSDM, # DIVISION_OF_FINANCIAL_SERVICES_AND_DEBT_MANAGEMENT - IPC, # INNOVATION_PAYMENT_CONTRACTOR - IDDOC, # INNOVATIVE_DESIGN_DEVELOPMENT_AND_OPERATIONS_CONTRACT - MDM, # MASTER_DATA_MANAGEMENT - OACT, # OFFICE_OF_THE_ACTUARY - PBG, # PROVIDER_BILLING_GROUP -} - -enum ModelPhase { - ICIP_COMPLETE, - IN_CLEARANCE, - CLEARED, - ANNOUNCED, - ACTIVE, - ENDED, -} - -""" -PhaseSuggestion is a suggestion response for a potential next phase and corresponding statuses for a model plan -""" -type PhaseSuggestion { - phase: ModelPhase! - suggestedStatuses: [ModelStatus!]! -} - -""" -ModelPlan represent the data point for plans about a model. It is the central data type in the application -""" -type ModelPlan { - id: UUID! - modelName: String! - abbreviation: String - archived: Boolean! - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - basics: PlanBasics! - generalCharacteristics: PlanGeneralCharacteristics! - participantsAndProviders: PlanParticipantsAndProviders! - beneficiaries: PlanBeneficiaries! - opsEvalAndLearning: PlanOpsEvalAndLearning! - collaborators: [PlanCollaborator!]! - documents: [PlanDocument!]! - discussions: [PlanDiscussion!]! - payments: PlanPayments! - dataExchangeApproach: PlanDataExchangeApproach! - status: ModelStatus! - taskListStatus: TaskStatus! - suggestedPhase: PhaseSuggestion - isFavorite: Boolean! - isCollaborator: Boolean! - crs: [PlanCR!]! - tdls: [PlanTDL!]! - echimpCRsAndTDLs: [EChimpCRAndTDLS!]! - prepareForClearance: PrepareForClearance! - nameHistory(sort: SortDirection! = DESC): [String!]! - operationalNeeds: [OperationalNeed!]! - opSolutionLastModifiedDts: Time! - previousSuggestedPhase: ModelPhase - - # MTO Fields (START) - mtoMatrix: ModelsToOperationMatrix! - # MTO Fields (END) -} - -""" -ModelPlanChanges represents the possible changes you can make to a model plan when updating it. -Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. -https://gqlgen.com/reference/changesets/ -""" -input ModelPlanChanges @goModel(model: "map[string]interface{}") { - modelName: String - abbreviation: String - someNumbers: [Int!] - archived: Boolean - status: ModelStatus -} - -extend type Query { - modelPlan(id: UUID!): ModelPlan! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) - - modelPlanCollection(filter: ModelPlanFilter! = COLLAB_ONLY): [ModelPlan!]! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - createModelPlan(modelName: String!): ModelPlan! - @hasRole(role: MINT_USER) - - updateModelPlan(id: UUID!, changes: ModelPlanChanges!): ModelPlan! - @hasRole(role: MINT_USER) - - shareModelPlan(modelPlanID: UUID!, viewFilter: ModelViewFilter, usernames: [String!]!, optionalMessage: String): Boolean! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/model_plan_and_possible_operational_solution.graphql", Input: `enum ModelBySolutionStatus { - PLANNED - ACTIVE - ENDED - OTHER -} - -extend type ModelPlan { - modelBySolutionStatus: ModelBySolutionStatus! -} - -type ModelPlanAndPossibleOperationalSolution { - possibleOperationalSolution: PossibleOperationalSolution! - possibleOperationalSolutionID: Int! - key: OperationalSolutionKey! - modelPlanID: UUID! - modelPlan: ModelPlan! -} - -extend type Query { - modelPlansByOperationalSolutionKey(operationalSolutionKey: OperationalSolutionKey!): [ModelPlanAndPossibleOperationalSolution!]! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/model_plan_translation.graphql", Input: ` -""" -Represents model plan base translation data -""" -type ModelPlanTranslation { - modelName: TranslationField! @goTag(key: "db", value: "model_name") - previousName: TranslationField! # This field does not represent a database field, rather it's generated from a resolver - nameHistory: TranslationField! # This field does not represent a database field, rather it's generated from a resolver - abbreviation: TranslationField! @goTag(key: "db", value: "abbreviation") - archived: TranslationFieldWithOptions! @goTag(key: "db", value: "archived") - - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -} -`, BuiltIn: false}, - {Name: "../schema/types/mto.graphql", Input: `# ModelsToOperationMatrix Notes: -# - There's purposefully no ` + "`" + `Milestones` + "`" + ` query right now, since there's currently no need to query milestones outside the scope of a Category -type ModelsToOperationMatrix { - categories: [MTOCategory!]! # Categories is at the top level because you _can_ have empty categories - commonMilestones: [MTOCommonMilestone!]! - commonSolutions: [MTOCommonSolution!]! - milestones: [MTOMilestone!]! - solutions: [MTOSolution!]! # Need to support solutions that _don't_ have milestones - status: MTOStatus! - recentEdit: RecentModification #Note, this data type could change. We might take an approach to return the most recent translated audit, which would provide this information, plus much more - - - info: MTOInfo! - -} - - -type RecentModification { - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -enum MTOStatus { - READY - IN_PROGRESS - READY_FOR_REVIEW #Note, this is not yet returnable -} - -enum MTOFacilitator { - MODEL_TEAM - MODEL_LEAD - IT_LEAD - SOLUTION_ARCHITECT - IT_SYSTEM_TEAM_OR_PRODUCT_OWNER - PARTICIPANTS - APPLICATION_SUPPORT_CONTRACTOR - IMPLEMENTATION_CONTRACTOR - EVALUATION_CONTRACTOR - QUALITY_MEASURES_DEVELOPMENT_CONTRACTOR - LEARNING_CONTRACTOR - MONITORING_CONTRACTOR - CONTRACTING_OFFICERS_REPRESENTATIVE - LEARNING_AND_DIFFUSION_GROUP - RESEARCH_AND_RAPID_CYCLE_EVALUATION_GROUP - OTHER -} - -enum MTORiskIndicator { - ON_TRACK - OFF_TRACK - AT_RISK -} - -# TODO (mto) should this live in the mto info.graphql file? -extend type Mutation { - markMTOReadyForReview(modelPlanID: UUID!, readyForReview: Boolean!): MTOInfo! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/mto_category.graphql", Input: ` -# TODO: Add a way to determine order of Categories and subcategories -type MTOCategory { - # DB Fields - id: UUID! # TODO: If we handle "Uncategorized" as a real category, maybe it won't actually have an ID? - name: String! - position: Int! - - - # Custom Resolvers - isUncategorized: Boolean! - subCategories: [MTOSubcategory!]! -} - -type MTOSubcategory { - # DB Fields - id: UUID! # TODO: If we handle "Uncategorized" as a real category, maybe it won't actually have an ID? - name: String! - position: Int! - - # Custom Resolvers - isUncategorized: Boolean! - milestones: [MTOMilestone!]! -} - -extend type Mutation { - """ - Allows you to create an MTOCategory or Subcategory if you provide a parent ID. - Note, the parent must belong to the same model plan, or this will return an error - """ - createMTOCategory(modelPlanID: UUID!, name: String!, parentID: UUID): MTOCategory! - @hasRole(role: MINT_USER) - """ - Allows you to rename an MTO category. Notably, name is the only field that can be updated. - You cannot have a duplicate name per model plan and parent. If the change makes a conflict, this will error. - """ - renameMTOCategory(id: UUID!, name: String!): MTOCategory! - @hasRole(role: MINT_USER) - - """ - Allows you to change the position and parent of an MTO category. Other categories will automatically - have their positions changed to adjust to the new position of the new category. - If only the parent is changed, the category will be placed as the last category in order for the group of subcategories - Note, a subcategory can't become a subcategory and vice versa - """ - reorderMTOCategory(id: UUID!, newOrder: Int, parentID: UUID): MTOCategory! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/mto_category_translation.graphql", Input: ` -""" -Represents MTO Category translation data -""" - -type MTOCategoryTranslation { - name: TranslationField! @goTag(key: "db", value: "name") -} -`, BuiltIn: false}, - {Name: "../schema/types/mto_common_milestone.graphql", Input: `""" -These are all the common milestone keys that we expect to for mto common milestones -""" -enum MTOCommonMilestoneKey { - MANAGE_CD - REV_COL_BIDS - UPDATE_CONTRACT - SIGN_PARTICIPATION_AGREEMENTS - RECRUIT_PARTICIPANTS - REV_SCORE_APP - APP_SUPPORT_CON - COMM_W_PART - VET_PROVIDERS_FOR_PROGRAM_INTEGRITY - MANAGE_PROV_OVERLAP - MANAGE_BEN_OVERLAP - HELPDESK_SUPPORT - IDDOC_SUPPORT - ESTABLISH_BENCH - PROCESS_PART_APPEALS - ACQUIRE_AN_EVAL_CONT - DATA_TO_MONITOR - DATA_TO_SUPPORT_EVAL - CLAIMS_BASED_MEASURES - QUALITY_PERFORMANCE_SCORES - SEND_REPDATA_TO_PART - UTILIZE_QUALITY_MEASURES_DEVELOPMENT_CONTRACTOR - ACQUIRE_A_LEARN_CONT - PART_TO_PART_COLLAB - EDUCATE_BENEF - IT_PLATFORM_FOR_LEARNING - ADJUST_FFS_CLAIMS - MANAGE_FFS_EXCL_PAYMENTS - MAKE_NON_CLAIMS_BASED_PAYMENTS - COMPUTE_SHARED_SAVINGS_PAYMENT - RECOVER_PAYMENTS -} - -""" -MTOCommonMilestone represents a Milestone from the "Common Milestones" library -""" -type MTOCommonMilestone { - # DB Fields - name: String! - key: MTOCommonMilestoneKey! - categoryName: String! - subCategoryName: String - facilitatedByRole: [MTOFacilitator!]! - """ - Specifies the Task List Section that corresponds to suggesting this common milestone - """ - section: TaskListSection - - # Custom Resolvers - isAdded: Boolean! # To represent if this Common Milestone is _already_ part of the Model Plan's MTO - isSuggested: Boolean! - commonSolutions: [MTOCommonSolution!]! -} -`, BuiltIn: false}, - {Name: "../schema/types/mto_common_solution.graphql", Input: `enum MTOCommonSolutionKey { - INNOVATION - ACO_OS - APPS - CDX - CCW - CMS_BOX - CMS_QUALTRICS - CBOSC - CPI_VETTING - EFT - EXISTING_CMS_DATA_AND_PROCESS - EDFR - GOVDELIVERY - GS - HDR - HPMS - HIGLAS - IPC - IDR - LDG - LV - MDM_POR - MARX - OUTLOOK_MAILBOX - QV - RMADA - ARS - CONNECT - LOI - POST_PORTAL - RFA - SHARED_SYSTEMS - BCDA - ISP - MIDS - MDM_NCBP - MODEL_SPACE -} - -enum MTOSolutionType { - IT_SYSTEM - CONTRACTOR - CROSS_CUTTING_GROUP - OTHER -} -enum MTOCommonSolutionSubject { - APPLICATIONS_AND_PARTICIPANT_INTERACTION_ACO_AND_KIDNEY_MODELS - APPLICATIONS_AND_PARTICIPANT_INTERACTION_NON_ACO_MODELS - MEDICARE_FEE_FOR_SERVICE - CONTRACT_VEHICLES - LEARNING - QUALITY - COMMUNICATION_TOOLS_AND_HELP_DESK - MEDICARE_ADVANTAGE_AND_PART_D - PAYMENTS_AND_FINANCIALS - DATA - LEGAL -} - -type MTOCommonSolution { - #DB Fields - name: String! - key: MTOCommonSolutionKey! - type: MTOSolutionType! - subjects: [MTOCommonSolutionSubject!]! - filterView: ModelViewFilter - - - #Custom Resolvers - isAdded: Boolean! # To represent if this Common Solution is _already_ added of the Model Plan's MTO (to _any_ Milestone) #TODO, do we need to compare to a need? Or specifically just to a model plan - # isSuggested: Boolean! # TODO (mto) Is this needed? - -} -`, BuiltIn: false}, - {Name: "../schema/types/mto_info.graphql", Input: `""" -This holds information specific to a models to operation matrix -""" -type MTOInfo { - id: UUID! - modelPlanID: UUID! - - readyForReviewBy: UUID - readyForReviewDTS: Time - readyForReviewByUserAccount: UserAccount - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} -`, BuiltIn: false}, - {Name: "../schema/types/mto_info_translation.graphql", Input: `""" -Represents mto info translation data -""" - -type MTOInfoTranslation { - readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") - readyForReviewDTS: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") -} -`, BuiltIn: false}, - {Name: "../schema/types/mto_milestone.graphql", Input: ` -# TODO Determine what these should actually be with Zoë & Natalie. These could change -enum MTOMilestoneStatus { - NOT_STARTED - IN_PROGRESS - COMPLETED -} - - -# MTOMilestone represents a Milestone that has been added to a Model Plan's MTO -type MTOMilestone { - # DB Fields - id: UUID! - name: String! # If sourced from a Common Milestone, this will resolve from the common milestone table (you can't edit this for common milestones!) - key: MTOCommonMilestoneKey - """ - Note: an mtoCategoryID can be null in the database. When that is the case, it will be nested under two uncategorized Categories - This means that ` + "`" + `MTOMilestone.mtoCategoryID` + "`" + ` does _not_ always equal ` + "`" + `MTOMilestone.Category.ID` + "`" + ` - """ - mtoCategoryID: UUID - facilitatedBy: [MTOFacilitator!] - needBy: Time - status: MTOMilestoneStatus! - riskIndicator: MTORiskIndicator! - isDraft: Boolean! - - #Meta Data - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - - # Custom Resolvers - addedFromMilestoneLibrary: Boolean! # Only true when commonMilestone && commonMilestone - commonMilestone: MTOCommonMilestone - solutions: [MTOSolution!]! - # Category: { - # mtoCategoryID: UUID - # subcategoryID: UUID - # Category: MTOCategory - # subCategory: MTOSubcategory - # } - # TODO (mto) do we need to resolve category? Should we need to resolve it here? Also, - # category: UNION MTOCategory | MTOSubcategory ? - category: MTOCategory! - subCategory: MTOSubcategory! -} - -input MTOMilestoneChanges @goModel(model: "map[string]interface{}") { - name: String # If sourced from a Common Milestone, this will resolve from the common milestone table (you can't edit this for common milestones!) - mtoCategoryID: UUID - facilitatedBy: [MTOFacilitator!] - needBy: Time - status: MTOMilestoneStatus - riskIndicator: MTORiskIndicator - isDraft: Boolean -} - -extend type Mutation { - createMTOMilestoneCustom(modelPlanID: UUID!, name: String!, mtoCategoryID: UUID): MTOMilestone! - @hasRole(role: MINT_USER) - createMTOMilestoneCommon(modelPlanID: UUID!, commonMilestoneKey: MTOCommonMilestoneKey!): MTOMilestone! - @hasRole(role: MINT_USER) - updateMTOMilestone(id: UUID!, changes: MTOMilestoneChanges!): MTOMilestone! - @hasRole(role: MINT_USER) - #TODO (mto) will we need any other mutations here? Can we ever delete? -} -`, BuiltIn: false}, - {Name: "../schema/types/mto_milestone_translation.graphql", Input: ` -""" -Represents MTO Custom Milestone translation data -""" - -type MTOMilestoneTranslation { - name: TranslationField! @goTag(key: "db", value: "name") -} -`, BuiltIn: false}, - {Name: "../schema/types/mto_solution.graphql", Input: `# TODO (mto) Verify all these. Zoë said they should match previous solution statuses -enum MTOSolutionStatus { - NOT_STARTED - ONBOARDING - BACKLOG - IN_PROGRESS - COMPLETED -} - - - -# MTOSolution represents a Solution that has been added to a Model Plan's MTO -type MTOSolution { - id: UUID! - name: String # If sourced from a Common Solution, this will resolve from the common solution table (you can't edit this for common solution!) - facilitatedBy: [MTOFacilitator!] - neededBy: Time - status: MTOSolutionStatus! - riskIndicator: MTORiskIndicator - key: MTOCommonSolutionKey - type: MTOSolutionType # If sourced from a Common Solution, this will resolve from the common solution table (you can't edit this for common solution!) - pocName: String #TODO (mto) if there is a default value for ones sourced from common solutions, these can be reverted back to String! Otherwise, we should leave nullable - pocEmail: String - - #Meta Data - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - - # Custom Resolvers - relatedMilestones: [MTOMilestone!]! # Can be empty, since you can have a solution with no milestones - addedFromSolutionLibrary: Boolean! - commonSolution: MTOCommonSolution -} - -input MTOSolutionChanges @goModel(model: "map[string]interface{}") { - name: String # If sourced from a Common Solution, this will resolve from the common solution table (you can't edit this for common solution!) - facilitatedBy: [MTOFacilitator!] - neededBy: Time - status: MTOSolutionStatus - riskIndicator: MTORiskIndicator - pocName: String - pocEmail: String -} - -extend type Mutation { - createMTOSolutionCustom(modelPlanID: UUID!, solutionType: MTOSolutionType!, name: String!, pocName: String!, pocEmail: String!): MTOSolution! - @hasRole(role: MINT_USER) - createMTOSolutionCommon(modelPlanID: UUID!, key: MTOCommonSolutionKey!): MTOSolution! - @hasRole(role: MINT_USER) - updateMTOSolution(id: UUID!, changes: MTOSolutionChanges!): MTOSolution! - @hasRole(role: MINT_USER) -} -`, BuiltIn: false}, - {Name: "../schema/types/nda_info.graphql", Input: `""" -NDAInfo represents whether a user has agreed to an NDA or not. If agreed to previously, there will be a datestamp visible -""" -type NDAInfo { - agreed: Boolean! - agreedDts: Time -} - -extend type Query { - ndaInfo: NDAInfo! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - agreeToNDA(agree: Boolean! = true): NDAInfo! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/operational_need.graphql", Input: `type OperationalNeed { - id: UUID! - modelPlanID: UUID! - - needed: Boolean # if null, it has not been answered - solutions(includeNotNeeded: Boolean! = false): [OperationalSolution!]! - - key: OperationalNeedKey - name: String - nameOther: String - section: TaskListSection - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Query { - operationalNeed(id: UUID!): OperationalNeed! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - addOrUpdateCustomOperationalNeed(modelPlanID: UUID!, customNeedType: String! needed: Boolean!): OperationalNeed! - @hasRole(role: MINT_USER) - - updateCustomOperationalNeedByID(id: UUID!, customNeedType: String needed: Boolean!): OperationalNeed! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/operational_need_translation.graphql", Input: `""" -Represents operational need translation data -""" - -type OperationalNeedTranslation { - """ - Name comes from the possible operational need table. It is not returned in an audit - """ - name: TranslationField! @goTag(key: "db", value: "need_name") - nameOther: TranslationField! @goTag(key: "db", value: "name_other") - """ - Key comes from the possible operational need table. It is not returned in an audit - """ - key: TranslationFieldWithOptions! @goTag(key: "db", value: "need_key") - needed: TranslationFieldWithOptions! @goTag(key: "db", value: "needed") - section: TranslationFieldWithOptions! @goTag(key: "db", value: "section") -} -`, BuiltIn: false}, - {Name: "../schema/types/operational_solution.graphql", Input: `enum OpSolutionStatus { - NOT_STARTED - ONBOARDING - BACKLOG - IN_PROGRESS - COMPLETED - AT_RISK -} - -type OperationalSolution { - id: UUID! - operationalNeedID: UUID! - - solutionType: Int - needed: Boolean # if null, it has not been selectd - name: String - key: OperationalSolutionKey - nameOther: String - - pocName: String - pocEmail: String - mustStartDts: Time - mustFinishDts: Time - isOther: Boolean! - isCommonSolution: Boolean! - otherHeader: String - status: OpSolutionStatus! - - documents: [PlanDocument!]! - operationalSolutionSubtasks: [OperationalSolutionSubtask!]! - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -input OperationalSolutionChanges @goModel(model: "map[string]interface{}"){ - needed: Boolean - nameOther: String # Only valid for when solution type is null - - pocName: String - pocEmail: String - mustStartDts: Time - mustFinishDts: Time - otherHeader: String - status: OpSolutionStatus -} - -extend type Query { - operationalSolutions(operationalNeedID: UUID!, includeNotNeeded: Boolean! = false): [OperationalSolution!]! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) - - operationalSolution(id: UUID!): OperationalSolution! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - createOperationalSolution(operationalNeedID: UUID!, solutionType: OperationalSolutionKey, changes: OperationalSolutionChanges!): OperationalSolution! - @hasRole(role: MINT_USER) - - updateOperationalSolution(id: UUID!, changes: OperationalSolutionChanges!): OperationalSolution! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/operational_solution_subtask.graphql", Input: `enum OperationalSolutionSubtaskStatus { - TODO, - IN_PROGRESS, - DONE -} - -input CreateOperationalSolutionSubtaskInput { - name: String! - status: OperationalSolutionSubtaskStatus! -} - -input UpdateOperationalSolutionSubtaskInput { - id: UUID! - changes: UpdateOperationalSolutionSubtaskChangesInput! -} - -input UpdateOperationalSolutionSubtaskChangesInput @goModel(model: "map[string]interface{}") { - name: String! - status: OperationalSolutionSubtaskStatus! -} - -type OperationalSolutionSubtask { - id: UUID! - solutionID: UUID! - name: String! - status: OperationalSolutionSubtaskStatus! - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Mutation { - createOperationalSolutionSubtasks(solutionID: UUID!, inputs: [CreateOperationalSolutionSubtaskInput!]!): [OperationalSolutionSubtask!] - @hasRole(role: MINT_USER) - - updateOperationalSolutionSubtasks(inputs: [UpdateOperationalSolutionSubtaskInput!]!): [OperationalSolutionSubtask!] - @hasRole(role: MINT_USER) - - deleteOperationalSolutionSubtask(id: UUID!): Int! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/operational_solution_subtask_translation.graphql", Input: `""" -Represents operational solution subtask translation data -""" - -type OperationalSolutionSubtaskTranslation { - name: TranslationField! @goTag(key: "db", value: "name") - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -} -`, BuiltIn: false}, - {Name: "../schema/types/operational_solution_translation.graphql", Input: `""" -Represents operational solution translation data -""" - -type OperationalSolutionTranslation { - """ - Name comes from the possible operational solution table. It is not returned in an audit - """ - name: TranslationField! @goTag(key: "db", value: "sol_name") - nameOther: TranslationField! @goTag(key: "db", value: "name_other") - isOther: TranslationFieldWithOptions! @goTag(key: "db", value: "is_other") - otherHeader: TranslationField! @goTag(key: "db", value: "other_header") - pocName: TranslationField! @goTag(key: "db", value: "poc_name") - pocEmail: TranslationField! @goTag(key: "db", value: "poc_email") - mustStartDts: TranslationField! @goTag(key: "db", value: "must_start_dts") - mustFinishDts: TranslationField! @goTag(key: "db", value: "must_finish_dts") - needed: TranslationFieldWithOptions! @goTag(key: "db", value: "needed") - """ - Key comes from the possible operational solution table. It is not returned in an audit - """ - key: TranslationFieldWithOptions! @goTag(key: "db", value: "sol_key") - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -} -`, BuiltIn: false}, - {Name: "../schema/types/plan_basics.graphql", Input: `""" -Represents plan basics -""" -type PlanBasics { - id: UUID! - modelPlanID: UUID! - - demoCode: String - amsModelID: String - - modelCategory: ModelCategory - additionalModelCategories: [ModelCategory!]! - cmsCenters: [CMSCenter!]! - cmmiGroups: [CMMIGroup!]! - modelType: [ModelType!]! - modelTypeOther: String - problem: String - goal: String - testInterventions: String - note: String - - # Milestones - completeICIP: Time - clearanceStarts: Time - clearanceEnds: Time - announced: Time - applicationsStart: Time - applicationsEnd: Time - performancePeriodStarts: Time - performancePeriodEnds: Time - wrapUpEnds: Time - highLevelNote: String - phasedIn: Boolean - phasedInNote: String - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - - readyForReviewBy: UUID - readyForReviewByUserAccount: UserAccount - readyForReviewDts: Time - readyForClearanceBy: UUID - readyForClearanceByUserAccount: UserAccount - readyForClearanceDts: Time - - status: TaskStatus! -} - -""" -PlanBasicsChanges represents the possible changes you can make to a Plan Basics object when updating it. -Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. -https://gqlgen.com/reference/changesets/ -""" -input PlanBasicsChanges @goModel(model: "map[string]interface{}") { - demoCode: String - amsModelID: String - - modelCategory: ModelCategory - additionalModelCategories: [ModelCategory!] - cmsCenters: [CMSCenter!] - cmmiGroups: [CMMIGroup!] - modelType: [ModelType!] - modelTypeOther: String - problem: String - goal: String - testInterventions: String - note: String - - # Milestones - completeICIP: Time - clearanceStarts: Time - clearanceEnds: Time - announced: Time - applicationsStart: Time - applicationsEnd: Time - performancePeriodStarts: Time - performancePeriodEnds: Time - wrapUpEnds: Time - highLevelNote: String - phasedIn: Boolean - phasedInNote: String - status: TaskStatusInput -} - -enum ModelCategory { - ACCOUNTABLE_CARE - DISEASE_SPECIFIC_AND_EPISODIC - HEALTH_PLAN - PRESCRIPTION_DRUG - STATE_BASED - STATUTORY - TO_BE_DETERMINED -} - -enum CMSCenter { - CMMI - CENTER_FOR_MEDICARE - FEDERAL_COORDINATED_HEALTH_CARE_OFFICE - CENTER_FOR_MEDICAID_AND_CHIP_SERVICES - CENTER_FOR_CLINICAL_STANDARDS_AND_QUALITY - CENTER_FOR_PROGRAM_INTEGRITY -} - -enum CMMIGroup { - PATIENT_CARE_MODELS_GROUP - POLICY_AND_PROGRAMS_GROUP - SEAMLESS_CARE_MODELS_GROUP - STATE_AND_POPULATION_HEALTH_GROUP - TBD -} - -enum ModelType { - VOLUNTARY - MANDATORY_REGIONAL_OR_STATE - MANDATORY_NATIONAL - OTHER -} - -extend type Mutation { - updatePlanBasics(id: UUID!, changes: PlanBasicsChanges!): PlanBasics! - @hasRole(role: MINT_USER) -} -`, BuiltIn: false}, - {Name: "../schema/types/plan_basics_translation.graphql", Input: `""" -Represents plan basics translation data -""" -type PlanBasicsTranslation { - modelCategory: TranslationFieldWithOptions! @goTag(key: "db", value: "model_category") - additionalModelCategories: TranslationFieldWithOptions! @goTag(key: "db", value: "additional_model_categories") - demoCode: TranslationField! @goTag(key: "db", value: "demo_code") - amsModelID: TranslationField! @goTag(key: "db", value: "ams_model_id") - cmsCenters: TranslationFieldWithOptions! @goTag(key: "db", value: "cms_centers") - cmmiGroups: TranslationFieldWithOptions! @goTag(key: "db", value: "cmmi_groups") - modelType: TranslationFieldWithOptions! @goTag(key: "db", value: "model_type") - modelTypeOther: TranslationField! @goTag(key: "db", value: "model_type_other") - problem: TranslationField! @goTag(key: "db", value: "problem") - goal: TranslationField! @goTag(key: "db", value: "goal") - testInterventions: TranslationField! @goTag(key: "db", value: "test_interventions") - note: TranslationField! @goTag(key: "db", value: "note") - - # Milestones - completeICIP: TranslationField! @goTag(key: "db", value: "complete_icip") - clearanceStarts: TranslationField! @goTag(key: "db", value: "clearance_starts") - clearanceEnds: TranslationField! @goTag(key: "db", value: "clearance_ends") - announced: TranslationField! @goTag(key: "db", value: "announced") - applicationsStart: TranslationField! @goTag(key: "db", value: "applications_starts") - applicationsEnd: TranslationField! @goTag(key: "db", value: "applications_ends") - performancePeriodStarts: TranslationField! @goTag(key: "db", value: "performance_period_starts") - performancePeriodEnds: TranslationField! @goTag(key: "db", value: "performance_period_ends") - wrapUpEnds: TranslationField! @goTag(key: "db", value: "wrap_up_ends") - highLevelNote: TranslationField! @goTag(key: "db", value: "high_level_note") - phasedIn: TranslationFieldWithOptions! @goTag(key: "db", value: "phased_in") - phasedInNote: TranslationField! @goTag(key: "db", value: "phased_in_note") - - readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") - readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") - readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") - readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -}`, BuiltIn: false}, - {Name: "../schema/types/plan_beneficiaries.graphql", Input: `enum BeneficiariesType { - MEDICARE_FFS - MEDICARE_ADVANTAGE - MEDICARE_PART_D - MEDICAID - DUALLY_ELIGIBLE - DISEASE_SPECIFIC - UNDERSERVED - OTHER - NA -} - -enum TriStateAnswer { - YES - NO - TBD -} - -enum SelectionMethodType { - HISTORICAL - PROSPECTIVE - RETROSPECTIVE - VOLUNTARY - PROVIDER_SIGN_UP - OTHER - NA -} - -enum YesNoType { - YES, - NO -} - -""" -Plan Beneficiaries represents the the beneficiaries section of the task list -""" - -type PlanBeneficiaries { - id: UUID! - modelPlanID: UUID! - - #Page 1 - beneficiaries: [BeneficiariesType!]! - beneficiariesOther: String - beneficiariesNote: String - diseaseSpecificGroup: String - treatDualElligibleDifferent: TriStateAnswer - treatDualElligibleDifferentHow: String - treatDualElligibleDifferentNote: String - excludeCertainCharacteristics: TriStateAnswer - excludeCertainCharacteristicsCriteria: String - excludeCertainCharacteristicsNote: String - - #Page 2 - numberPeopleImpacted: Int - estimateConfidence: ConfidenceType - confidenceNote: String - beneficiarySelectionMethod: [SelectionMethodType!]! - beneficiarySelectionOther: String - beneficiarySelectionNote: String - - #Page 3 - beneficiarySelectionFrequency: [FrequencyType!]! - beneficiarySelectionFrequencyContinually: String - beneficiarySelectionFrequencyOther: String - beneficiarySelectionFrequencyNote: String - beneficiaryRemovalFrequency: [FrequencyType!]! - beneficiaryRemovalFrequencyContinually: String - beneficiaryRemovalFrequencyOther: String - beneficiaryRemovalFrequencyNote: String - beneficiaryOverlap: OverlapType - beneficiaryOverlapNote: String - precedenceRules: [YesNoType!]! - precedenceRulesYes: String - precedenceRulesNo: String - precedenceRulesNote: String - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - - readyForReviewBy: UUID - readyForReviewByUserAccount: UserAccount - readyForReviewDts: Time - readyForClearanceBy: UUID - readyForClearanceByUserAccount: UserAccount - readyForClearanceDts: Time - - status: TaskStatus! -} - -input PlanBeneficiariesChanges @goModel(model: "map[string]interface{}") { - - #Page 1 - beneficiaries: [BeneficiariesType!] - beneficiariesOther: String - beneficiariesNote: String - diseaseSpecificGroup: String - treatDualElligibleDifferent: TriStateAnswer - treatDualElligibleDifferentHow: String - treatDualElligibleDifferentNote: String - excludeCertainCharacteristics: TriStateAnswer - excludeCertainCharacteristicsCriteria: String - excludeCertainCharacteristicsNote: String - - #Page 2 - numberPeopleImpacted: Int - estimateConfidence: ConfidenceType - confidenceNote: String - beneficiarySelectionMethod: [SelectionMethodType!] - beneficiarySelectionOther: String - beneficiarySelectionNote: String - - #Page 3 - beneficiarySelectionFrequency: [FrequencyType!] - beneficiarySelectionFrequencyContinually: String - beneficiarySelectionFrequencyOther: String - beneficiarySelectionFrequencyNote: String - beneficiaryRemovalFrequency: [FrequencyType!] - beneficiaryRemovalFrequencyContinually: String - beneficiaryRemovalFrequencyOther: String - beneficiaryRemovalFrequencyNote: String - beneficiaryOverlap: OverlapType - beneficiaryOverlapNote: String - precedenceRules: [YesNoType!] - precedenceRulesYes: String - precedenceRulesNo: String - precedenceRulesNote: String - - status: TaskStatusInput -} - -extend type Mutation { - updatePlanBeneficiaries(id: UUID!, changes: PlanBeneficiariesChanges!): PlanBeneficiaries! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_beneficiaries_translation.graphql", Input: `""" -Represents plan beneficiaries translation data -""" - -type PlanBeneficiariesTranslation { - #Page 1 - beneficiaries: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiaries") - beneficiariesOther: TranslationField! @goTag(key: "db", value: "beneficiaries_other") - beneficiariesNote: TranslationField! @goTag(key: "db", value: "beneficiaries_note") - diseaseSpecificGroup: TranslationField! @goTag(key: "db", value: "disease_specific_group") - treatDualElligibleDifferent: TranslationFieldWithOptions! @goTag(key: "db", value: "treat_dual_elligible_different") - treatDualElligibleDifferentHow: TranslationField! @goTag(key: "db", value: "treat_dual_elligible_different_how") - treatDualElligibleDifferentNote: TranslationField! @goTag(key: "db", value: "treat_dual_elligible_different_note") - excludeCertainCharacteristics: TranslationFieldWithOptions! @goTag(key: "db", value: "exclude_certain_characteristics") - excludeCertainCharacteristicsCriteria: TranslationField! @goTag(key: "db", value: "exclude_certain_characteristics_criteria") - excludeCertainCharacteristicsNote: TranslationField! @goTag(key: "db", value: "exclude_certain_characteristics_note") - - #Page 2 - numberPeopleImpacted: TranslationField! @goTag(key: "db", value: "number_people_impacted") - estimateConfidence: TranslationFieldWithOptions! @goTag(key: "db", value: "estimate_confidence") - confidenceNote: TranslationField! @goTag(key: "db", value: "confidence_note") - beneficiarySelectionMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiary_selection_method") - beneficiarySelectionOther: TranslationField! @goTag(key: "db", value: "beneficiary_selection_other") - beneficiarySelectionNote: TranslationField! @goTag(key: "db", value: "beneficiary_selection_note") - - #Page 3 - beneficiarySelectionFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiary_selection_frequency") - beneficiarySelectionFrequencyContinually: TranslationField! @goTag(key: "db", value: "beneficiary_selection_frequency_continually") - beneficiarySelectionFrequencyOther: TranslationField! @goTag(key: "db", value: "beneficiary_selection_frequency_other") - beneficiarySelectionFrequencyNote: TranslationField! @goTag(key: "db", value: "beneficiary_selection_frequency_note") - beneficiaryRemovalFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiary_removal_frequency") - beneficiaryRemovalFrequencyContinually: TranslationField! @goTag(key: "db", value: "beneficiary_removal_frequency_continually") - beneficiaryRemovalFrequencyOther: TranslationField! @goTag(key: "db", value: "beneficiary_removal_frequency_other") - beneficiaryRemovalFrequencyNote: TranslationField! @goTag(key: "db", value: "beneficiary_removal_frequency_note") - beneficiaryOverlap: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiary_overlap") - beneficiaryOverlapNote: TranslationField! @goTag(key: "db", value: "beneficiary_overlap_note") - precedenceRules: TranslationFieldWithOptions! @goTag(key: "db", value: "precedence_rules") - precedenceRulesYes: TranslationField! @goTag(key: "db", value: "precedence_rules_yes") - precedenceRulesNo: TranslationField! @goTag(key: "db", value: "precedence_rules_no") - precedenceRulesNote: TranslationField! @goTag(key: "db", value: "precedence_rules_note") - - readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") - readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") - readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") - readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -} -`, BuiltIn: false}, - {Name: "../schema/types/plan_collaborator.graphql", Input: `enum TeamRole { - MODEL_LEAD - MODEL_TEAM - LEADERSHIP - LEARNING - EVALUATION - IT_LEAD - QUALITY - OACT - PAYMENT - CM_FFS_COUNTERPART - COR - SOLUTION_ARCHITECT -} - -""" -PlanCollaborator represents a collaborator on a plan -""" -type PlanCollaborator { - id: UUID! - modelPlanID: UUID! - userID: UUID! - userAccount: UserAccount! - teamRoles: [TeamRole!]! - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -""" -PlanCollaboratorCreateInput represents the data required to create a collaborator on a plan -""" -input PlanCollaboratorCreateInput { - modelPlanID: UUID! - userName: String! - teamRoles: [TeamRole!]! -} - -extend type Query { - planCollaboratorByID(id: UUID!): PlanCollaborator! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - createPlanCollaborator(input: PlanCollaboratorCreateInput!): PlanCollaborator! - @hasRole(role: MINT_USER) - - updatePlanCollaborator(id: UUID!, newRoles: [TeamRole!]!): PlanCollaborator! - @hasRole(role: MINT_USER) - - deletePlanCollaborator(id: UUID!): PlanCollaborator! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_collaborator_translations.graphql", Input: ` -""" -Represents plan collaborator translation data -""" -type PlanCollaboratorTranslation { - username: TranslationField! @goTag(key: "db", value: "user_account.username") - userID: TranslationField! @goTag(key: "db", value: "user_id") - teamRoles: TranslationFieldWithOptions! @goTag(key: "db", value: "team_roles") -}`, BuiltIn: false}, - {Name: "../schema/types/plan_cr.graphql", Input: `type PlanCR { - id: UUID! - modelPlanID: UUID! - - idNumber: String! - dateInitiated: Time! - dateImplemented: Time # Required in the API, but can be nullable for historical entries before we migrated CRs and TDLs as different types - title: String! - note: String - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -input PlanCRCreateInput { - modelPlanID: UUID! - - idNumber: String! - dateInitiated: Time! - dateImplemented: Time! - title: String! - note: String -} - -input PlanCRChanges @goModel(model: "map[string]interface{}") { - idNumber: String - dateInitiated: Time - dateImplemented: Time - title: String - note: String -} - -extend type Query { - planCR(id: UUID!): PlanCR! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - createPlanCR(input: PlanCRCreateInput!): PlanCR! - @hasRole(role: MINT_USER) - - updatePlanCR(id: UUID!, changes: PlanCRChanges!): PlanCR! - @hasRole(role: MINT_USER) - - deletePlanCR(id: UUID!): PlanCR! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_cr_translation.graphql", Input: `""" -Represents plan cr translation data -""" - -type PlanCRTranslation { - idNumber: TranslationField! @goTag(key: "db", value: "id_number") - title: TranslationField! @goTag(key: "db", value: "title") - dateInitiated: TranslationField! @goTag(key: "db", value: "date_initiated") - dateImplemented: TranslationField! @goTag(key: "db", value: "date_implemented") - note: TranslationField! @goTag(key: "db", value: "note") -} -`, BuiltIn: false}, - {Name: "../schema/types/plan_data_exchange_approach.graphql", Input: `enum DataToCollectFromParticipants { - BANKING_INFORMATION_TO_MAKE_NON_CLAIMS_BASED_PAYMENTS - CLINICAL_DATA - COLLECT_BIDS_AND_PLAN_INFORMATION - COOPERATIVE_AGREEMENT_APPLICATION - DECARBONIZATION_DATA - EXPANDED_DEMOGRAPHICS_DATA - FEE_FOR_SERVICE_CLAIMS_AND_APPLY_MODEL_RULES - LEARNING_SYSTEM_METRICS - PARTICIPANT_AGREEMENT - PARTICIPANT_AGREEMENT_LETTER_OF_INTENT - PARTICIPANT_AGREEMENT_REQUEST_FOR_APPLICATION - PARTICIPANT_REPORTED_DATA - PARTICIPANT_REPORTED_QUALITY_MEASURES - PROVIDER_PARTICIPANT_ROSTER - REPORTS_FROM_PARTICIPANTS - SOCIAL_DETERMINANTS_OF_HEALTH - SURVEY - OTHER -} - -enum DataToSendToParticipants { - DATA_FEEDBACK_DASHBOARD - NON_CLAIMS_BASED_PAYMENTS - OPERATIONS_DATA - PARTIALLY_ADJUSTED_CLAIMS_DATA - RAW_CLAIMS_DATA - DATA_WILL_NOT_BE_SENT_TO_PARTICIPANTS -} - -enum AnticipatedMultiPayerDataAvailabilityUseCase { - MORE_COMPETENT_ALERT_DISCHARGE_TRANSFER_NOTIFICATION - SUPPLY_MULTI_PAYER_CLAIMS_COST_UTIL_AND_QUALITY_REPORTING - FILL_GAPS_IN_CARE_ALERTING_AND_REPORTS -} - -enum MultiSourceDataToCollect { - COMMERCIAL_CLAIMS - LAB_DATA - MANUFACTURER - MEDICAID_CLAIMS - MEDICARE_CLAIMS - PATIENT_REGISTRY - OTHER -} - -enum DataExchangeApproachStatus { - READY - IN_PROGRESS - COMPLETE -} - -type PlanDataExchangeApproach { - id: UUID! - modelPlanID: UUID! - - dataToCollectFromParticipants: [DataToCollectFromParticipants!]! - dataToCollectFromParticipantsReportsDetails: String - dataToCollectFromParticipantsOther: String - dataWillNotBeCollectedFromParticipants: Boolean - dataToCollectFromParticipantsNote: String - - dataToSendToParticipants: [DataToSendToParticipants!]! - dataToSendToParticipantsNote: String - - doesNeedToMakeMultiPayerDataAvailable: Boolean - anticipatedMultiPayerDataAvailabilityUseCase: [AnticipatedMultiPayerDataAvailabilityUseCase!]! - doesNeedToMakeMultiPayerDataAvailableNote: String - - doesNeedToCollectAndAggregateMultiSourceData: Boolean - multiSourceDataToCollect: [MultiSourceDataToCollect!]! - multiSourceDataToCollectOther: String - doesNeedToCollectAndAggregateMultiSourceDataNote: String - - willImplementNewDataExchangeMethods: Boolean - newDataExchangeMethodsDescription: String - newDataExchangeMethodsNote: String - - additionalDataExchangeConsiderationsDescription: String - - # Metadata fields - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - isDataExchangeApproachComplete: Boolean! - markedCompleteBy: UUID - markedCompleteByUserAccount: UserAccount - markedCompleteDts: Time - - status: DataExchangeApproachStatus! -} - -input PlanDataExchangeApproachChanges @goModel(model: "map[string]interface{}") { - dataToCollectFromParticipants: [DataToCollectFromParticipants!] - dataToCollectFromParticipantsReportsDetails: String - dataToCollectFromParticipantsOther: String - dataWillNotBeCollectedFromParticipants: Boolean - dataToCollectFromParticipantsNote: String - - dataToSendToParticipants: [DataToSendToParticipants!] - dataToSendToParticipantsNote: String - - doesNeedToMakeMultiPayerDataAvailable: Boolean - anticipatedMultiPayerDataAvailabilityUseCase: [AnticipatedMultiPayerDataAvailabilityUseCase!] - doesNeedToMakeMultiPayerDataAvailableNote: String - - doesNeedToCollectAndAggregateMultiSourceData: Boolean - multiSourceDataToCollect: [MultiSourceDataToCollect!] - multiSourceDataToCollectOther: String - doesNeedToCollectAndAggregateMultiSourceDataNote: String - - willImplementNewDataExchangeMethods: Boolean - newDataExchangeMethodsDescription: String - newDataExchangeMethodsNote: String - - additionalDataExchangeConsiderationsDescription: String - - isDataExchangeApproachComplete: Boolean -} - -extend type Mutation { - updatePlanDataExchangeApproach(id: UUID!, changes: PlanDataExchangeApproachChanges!): PlanDataExchangeApproach! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_data_exchange_approach_translation.graphql", Input: `""" -Represents plan data exchange approach translation data -""" -type PlanDataExchangeApproachTranslation { - #Page 2 - dataToCollectFromParticipants: TranslationFieldWithOptions! @goTag(key: "db", value: "data_to_collect_from_participants") - dataToCollectFromParticipantsReportsDetails: TranslationField! @goTag(key: "db", value: "data_to_collect_from_participants_reports_details") - dataToCollectFromParticipantsOther: TranslationField! @goTag(key: "db", value: "data_to_collect_from_participants_other") - dataWillNotBeCollectedFromParticipants: TranslationFieldWithOptions! @goTag(key: "db", value: "data_will_not_be_collected_from_participants") - dataToCollectFromParticipantsNote: TranslationField! @goTag(key: "db", value: "data_to_collect_from_participants_note") - dataToSendToParticipants: TranslationFieldWithOptions! @goTag(key: "db", value: "data_to_send_to_participants") - dataToSendToParticipantsNote: TranslationField! @goTag(key: "db", value: "data_to_send_to_participants_note") - - #Page 3 - doesNeedToMakeMultiPayerDataAvailable: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "does_need_to_make_multi_payer_data_available") - anticipatedMultiPayerDataAvailabilityUseCase: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "anticipated_multi_payer_data_availability_use_case") - doesNeedToMakeMultiPayerDataAvailableNote: TranslationField! @goTag(key: "db", value: "does_need_to_make_multi_payer_data_available_note") - doesNeedToCollectAndAggregateMultiSourceData: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "does_need_to_collect_and_aggregate_multi_source_data") - multiSourceDataToCollect: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "multi_source_data_to_collect") - multiSourceDataToCollectOther: TranslationField! @goTag(key: "db", value: "multi_source_data_to_collect_other") - doesNeedToCollectAndAggregateMultiSourceDataNote: TranslationField! @goTag(key: "db", value: "does_need_to_collect_and_aggregate_multi_source_data_note") - - # Page 4 - willImplementNewDataExchangeMethods: TranslationFieldWithOptions! @goTag(key: "db", value: "will_implement_new_data_exchange_methods") - newDataExchangeMethodsDescription: TranslationField! @goTag(key: "db", value: "new_data_exchange_methods_description") - newDataExchangeMethodsNote: TranslationField! @goTag(key: "db", value: "new_data_exchange_methods_note") - additionalDataExchangeConsiderationsDescription: TranslationField! @goTag(key: "db", value: "additional_data_exchange_considerations_description") - isDataExchangeApproachComplete: TranslationFieldWithOptions! @goTag(key: "db", value: "is_data_exchange_approach_complete") - - # Metadata fields - markedCompleteBy: TranslationField! @goTag(key: "db", value: "marked_complete_by") - markedCompleteDts: TranslationField! @goTag(key: "db", value: "marked_complete_dts") - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -} -`, BuiltIn: false}, - {Name: "../schema/types/plan_discussion.graphql", Input: `""" -PlanDiscussion represents plan discussion -""" -type PlanDiscussion { - id: UUID! - modelPlanID: UUID! - content: TaggedContent - userRole: DiscussionUserRole - userRoleDescription: String - replies: [DiscussionReply!]! - isAssessment: Boolean! - - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -""" -PlanDiscussionCreateInput represents the necessary fields to create a plan discussion -""" -input PlanDiscussionCreateInput { - modelPlanID: UUID! - content: TaggedHTML! - userRole: DiscussionUserRole - userRoleDescription: String -} - -extend type Mutation { - createPlanDiscussion(input: PlanDiscussionCreateInput!): PlanDiscussion! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_discussion_translation.graphql", Input: `""" -Represents plan discussion translation data -""" - -type PlanDiscussionTranslation { - userRole: TranslationFieldWithOptions! @goTag(key: "db", value: "user_role") - userRoleDescription: TranslationField! @goTag(key: "db", value: "user_role_description") - content: TranslationField! @goTag(key: "db", value: "content") - isAssessment: TranslationField! @goTag(key: "db", value: "is_assessment") -} -`, BuiltIn: false}, - {Name: "../schema/types/plan_document.graphql", Input: `enum DocumentType { - CONCEPT_PAPER, - POLICY_PAPER, - ICIP_DRAFT, - MARKET_RESEARCH, - DESIGN_PARAMETERS_MEMO, - OFFICE_OF_THE_ADMINISTRATOR_PRESENTATION, - OTHER -} - -""" -PlanDocument represents a document on a plan -""" -type PlanDocument { - id: UUID! - modelPlanID: UUID! - - """ - If isLink = true, then this is a URL to a linked document, not an uploaded document - """ - isLink: Boolean! - """ - URL is the link that must be provided if this is a link instead of an uploaded document - """ - url: String - - fileType: String! - bucket: String! - fileKey: String! - virusScanned: Boolean! - virusClean: Boolean! - restricted: Boolean! - fileName: String! - fileSize: Int! - documentType: DocumentType! - otherType: String - optionalNotes: String - downloadUrl: String - deletedAt: Time - numLinkedSolutions: Int! - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -""" -PlanDocumentInput -""" -input PlanDocumentInput { - modelPlanID: UUID! - fileData: Upload! - documentType: DocumentType! - restricted: Boolean! - otherTypeDescription: String - optionalNotes: String -} - -""" -PlanDocumentLinkInput -""" -input PlanDocumentLinkInput { - modelPlanID: UUID! - url: String! - name: String! - documentType: DocumentType! - restricted: Boolean! - otherTypeDescription: String - optionalNotes: String -} - -extend type Query { - planDocument(id: UUID!): PlanDocument! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - uploadNewPlanDocument(input: PlanDocumentInput!): PlanDocument! - @hasRole(role: MINT_USER) - - linkNewPlanDocument(input: PlanDocumentLinkInput!): PlanDocument! - @hasRole(role: MINT_USER) - - deletePlanDocument(id: UUID!): Int! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_document_solution_link.graphql", Input: `type PlanDocumentSolutionLink { - id: UUID! - solutionID: UUID! - documentID: UUID! - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Mutation { - createPlanDocumentSolutionLinks(solutionID: UUID!, documentIDs: [UUID!]!): [PlanDocumentSolutionLink!] - @hasRole(role: MINT_USER) - - removePlanDocumentSolutionLinks(solutionID: UUID!, documentIDs: [UUID!]!): Boolean! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_document_solution_link_translation.graphql", Input: `""" -Represents document solution link translation data -""" - -type PlanDocumentSolutionLinkTranslation { - solutionID: TranslationField! @goTag(key: "db", value: "solution_id") - documentID: TranslationField! @goTag(key: "db", value: "document_id") -} -`, BuiltIn: false}, - {Name: "../schema/types/plan_document_translation.graphql", Input: `""" -Represents plan document translation data -""" - -type PlanDocumentTranslation { - isLink: TranslationField! @goTag(key: "db", value: "is_link") - url: TranslationField! @goTag(key: "db", value: "url") - fileName: TranslationField! @goTag(key: "db", value: "file_name") - documentType: TranslationFieldWithOptions! @goTag(key: "db", value: "document_type") - otherType: TranslationField! @goTag(key: "db", value: "other_type") - fileType: TranslationField! @goTag(key: "db", value: "file_type") - restricted: TranslationFieldWithOptions! @goTag(key: "db", value: "restricted") - optionalNotes: TranslationField! @goTag(key: "db", value: "optional_notes") -}`, BuiltIn: false}, - {Name: "../schema/types/plan_favorite.graphql", Input: `type PlanFavorite { - id: UUID! - modelPlanID: UUID! - userID: UUID! - userAccount: UserAccount! - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Mutation { - addPlanFavorite(modelPlanID: UUID!): PlanFavorite! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) - - deletePlanFavorite(modelPlanID: UUID!): PlanFavorite! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_general_characteristics.graphql", Input: `enum AgencyOrStateHelpType { - YES_STATE - YES_AGENCY_IDEAS - YES_AGENCY_IAA - NO - OTHER -} - -enum AlternativePaymentModelType { - REGULAR - MIPS - ADVANCED - NOT_APM -} - -enum KeyCharacteristic { - EPISODE_BASED - PART_C - PART_D - PAYMENT - POPULATION_BASED - PREVENTATIVE - SERVICE_DELIVERY - SHARED_SAVINGS - OTHER - MEDICAID_MODEL - MEDICARE_FFS_MODEL -} - -enum GeographyType { - STATE - REGION - OTHER -} - -enum GeographyRegionType { - CBSA, - HRR, - MSA -} - -enum GeographyApplication { - PARTICIPANTS - PROVIDERS - BENEFICIARIES - OTHER -} - -enum StatesAndTerritories { - AL, - AK, - AZ, - AR, - CA, - CO, - CT, - DE, - DC, - FL, - GA, - HI, - ID, - IL, - IN, - IA, - KS, - KY, - LA, - ME, - MD, - MA, - MI, - MN, - MS, - MO, - MT, - NE, - NV, - NH, - NJ, - NM, - NY, - NC, - ND, - OH, - OK, - OR, - PA, - RI, - SC, - SD, - TN, - TX, - UT, - VT, - VA, - WA, - WV, - WI, - WY, - AS, - GU, - MP, - PR, - UM, - VI -} - -enum AgreementType { - PARTICIPATION - COOPERATIVE - OTHER -} - -enum AuthorityAllowance { - ACA - CONGRESSIONALLY_MANDATED - SSA_PART_B - OTHER -} - -enum WaiverType { - FRAUD_ABUSE - PROGRAM_PAYMENT - MEDICAID -} - -""" -PlanGeneralCharacteristics represents a plan general characteristics object -""" -type PlanGeneralCharacteristics { - id: UUID! - modelPlanID: UUID! - - # Page 1 - isNewModel: Boolean - existingModel: String - currentModelPlanID: UUID - currentModelPlan: ModelPlan - existingModelID: Int - existingModelPlan: ExistingModel - resemblesExistingModel: YesNoOtherType - """ - For providing clarifying comments if Yes or No is selected for resemblesExistingModel - """ - resemblesExistingModelWhyHow: String - """ - For providing clarifying comments if Other is selected for resemblesExistingModel - """ - resemblesExistingModelOtherSpecify: String - """ - For denoting if there is an other model that this model resembles if it's true that it resembles existing models. - """ - resemblesExistingModelOtherSelected: Boolean - """ - For denoting the name of the other existing model that this model resembles - """ - resemblesExistingModelOtherOption: String - resemblesExistingModelHow: String - resemblesExistingModelNote: String - resemblesExistingModelWhich: ExistingModelLinks - """ - For answering if participation in other models is a precondition for participating in this model - """ - participationInModelPrecondition: YesNoOtherType - """ - For providing clarifying comments if Yes or No is selected for participationInModelPrecondition - """ - participationInModelPreconditionWhyHow: String - """ - For providing clarifying comments if Other is selected for participationInModelPrecondition - """ - participationInModelPreconditionOtherSpecify: String - """ - For denoting if there is an other model that this model refers to. - """ - participationInModelPreconditionOtherSelected: Boolean - """ - For denoting the name of the other existing model - """ - participationInModelPreconditionOtherOption: String - """ - A note field for participationInModelPrecondition - """ - participationInModelPreconditionNote: String - """ - The collection of existing model links relevant to the participationInModelPrecondition question - """ - participationInModelPreconditionWhich: ExistingModelLinks - hasComponentsOrTracks: Boolean - hasComponentsOrTracksDiffer: String - hasComponentsOrTracksNote: String - - # Page 2 - agencyOrStateHelp: [AgencyOrStateHelpType!]! - agencyOrStateHelpOther: String - agencyOrStateHelpNote: String - alternativePaymentModelTypes: [AlternativePaymentModelType!]! - alternativePaymentModelNote: String - keyCharacteristics: [KeyCharacteristic!]! - keyCharacteristicsOther: String - keyCharacteristicsNote: String - collectPlanBids: Boolean - collectPlanBidsNote: String - managePartCDEnrollment: Boolean - managePartCDEnrollmentNote: String - planContractUpdated: Boolean - planContractUpdatedNote: String - - # Page 3 - careCoordinationInvolved: Boolean - careCoordinationInvolvedDescription: String - careCoordinationInvolvedNote: String - additionalServicesInvolved: Boolean - additionalServicesInvolvedDescription: String - additionalServicesInvolvedNote: String - communityPartnersInvolved: Boolean - communityPartnersInvolvedDescription: String - communityPartnersInvolvedNote: String - - # Page 4 - geographiesTargeted: Boolean - geographiesTargetedTypes: [GeographyType!]! - geographiesStatesAndTerritories: [StatesAndTerritories!]! - geographiesRegionTypes: [GeographyRegionType!]! - geographiesTargetedTypesOther: String - geographiesTargetedAppliedTo: [GeographyApplication!]! - geographiesTargetedAppliedToOther: String - geographiesTargetedNote: String - participationOptions: Boolean - participationOptionsNote: String - agreementTypes: [AgreementType!]! - agreementTypesOther: String - multiplePatricipationAgreementsNeeded: Boolean - multiplePatricipationAgreementsNeededNote: String - - # Page 5 - rulemakingRequired: Boolean - rulemakingRequiredDescription: String - rulemakingRequiredNote: String - authorityAllowances: [AuthorityAllowance!]! - authorityAllowancesOther: String - authorityAllowancesNote: String - waiversRequired: Boolean - waiversRequiredTypes: [WaiverType!]! - waiversRequiredNote: String - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - - readyForReviewBy: UUID - readyForReviewByUserAccount: UserAccount - readyForReviewDts: Time - readyForClearanceBy: UUID - readyForClearanceByUserAccount: UserAccount - readyForClearanceDts: Time - - status: TaskStatus! -} - -""" -PlanGeneralCharacteristicsChanges represents the possible changes you can make to a -general characteristics object when updating it. -Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. -https://gqlgen.com/reference/changesets/ -""" -input PlanGeneralCharacteristicsChanges @goModel(model: "map[string]interface{}") { - # Page 1 - isNewModel: Boolean - currentModelPlanID: UUID - existingModelID: Int - resemblesExistingModel: YesNoOtherType - """ - For providing clarifying comments if Yes or No is selected for resemblesExistingModel - """ - resemblesExistingModelWhyHow: String - """ - For providing clarifying comments if Other is selected for resemblesExistingModel - """ - resemblesExistingModelOtherSpecify: String - """ - For denoting if there is an other model that this model resembles if it's true that it resembles existing models. - """ - resemblesExistingModelOtherSelected: Boolean - """ - For denoting the name of the other existing model that this model resembles - """ - resemblesExistingModelOtherOption: String - resemblesExistingModelHow: String - resemblesExistingModelNote: String - """ - For answering if participation in other models is a precondition for participating in this model - """ - participationInModelPrecondition: YesNoOtherType - """ - For providing clarifying comments if Yes or No is selected for participationInModelPrecondition - """ - participationInModelPreconditionWhyHow: String - """ - For providing clarifying comments if Other is selected for participationInModelPrecondition - """ - participationInModelPreconditionOtherSpecify: String - """ - For denoting if there is an other model that this model refers to. - """ - participationInModelPreconditionOtherSelected: Boolean - """ - For denoting the name of the other existing model - """ - participationInModelPreconditionOtherOption: String - """ - A note field for participationInModelPrecondition - """ - participationInModelPreconditionNote: String - hasComponentsOrTracks: Boolean - hasComponentsOrTracksDiffer: String - hasComponentsOrTracksNote: String - - # Page 2 - agencyOrStateHelp: [AgencyOrStateHelpType!] - agencyOrStateHelpOther: String - agencyOrStateHelpNote: String - alternativePaymentModelTypes: [AlternativePaymentModelType!] - alternativePaymentModelNote: String - keyCharacteristics: [KeyCharacteristic!] - keyCharacteristicsOther: String - keyCharacteristicsNote: String - collectPlanBids: Boolean - collectPlanBidsNote: String - managePartCDEnrollment: Boolean - managePartCDEnrollmentNote: String - planContractUpdated: Boolean - planContractUpdatedNote: String - - # Page 3 - careCoordinationInvolved: Boolean - careCoordinationInvolvedDescription: String - careCoordinationInvolvedNote: String - additionalServicesInvolved: Boolean - additionalServicesInvolvedDescription: String - additionalServicesInvolvedNote: String - communityPartnersInvolved: Boolean - communityPartnersInvolvedDescription: String - communityPartnersInvolvedNote: String - - # Page 4 - geographiesTargeted: Boolean - geographiesTargetedTypes: [GeographyType!] - geographiesStatesAndTerritories: [StatesAndTerritories!] - geographiesRegionTypes: [GeographyRegionType!] - geographiesTargetedTypesOther: String - geographiesTargetedAppliedTo: [GeographyApplication!] - geographiesTargetedAppliedToOther: String - geographiesTargetedNote: String - participationOptions: Boolean - participationOptionsNote: String - agreementTypes: [AgreementType!] - agreementTypesOther: String - multiplePatricipationAgreementsNeeded: Boolean - multiplePatricipationAgreementsNeededNote: String - - # Page 5 - rulemakingRequired: Boolean - rulemakingRequiredDescription: String - rulemakingRequiredNote: String - authorityAllowances: [AuthorityAllowance!] - authorityAllowancesOther: String - authorityAllowancesNote: String - waiversRequired: Boolean - waiversRequiredTypes: [WaiverType!] - waiversRequiredNote: String - - status: TaskStatusInput -} - -extend type Mutation { - updatePlanGeneralCharacteristics(id: UUID!, changes: PlanGeneralCharacteristicsChanges!): PlanGeneralCharacteristics! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_general_characteristics_translation.graphql", Input: `""" -Represents plan general characteristics translation data -""" -type PlanGeneralCharacteristicsTranslation { - # Page 1 - isNewModel: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "is_new_model") - currentModelPlanID:TranslationField! @goTag(key: "db", value: "current_model_plan_id") - existingModelID:TranslationField! @goTag(key: "db", value: "existing_model_id") - """ - Existing model doesn't exist in the database, it is returned based on if there is a current model plan ID or current model plan ID returned - """ - existingModel: TranslationFieldWithParent! @goTag(key: "db", value: "existing_model") - resemblesExistingModel: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "resembles_existing_model") - resemblesExistingModelWhyHow: TranslationField! @goTag(key: "db", value: "resembles_existing_model_why_how") - resemblesExistingModelOtherSpecify: TranslationField! @goTag(key: "db", value: "resembles_existing_model_other_specify") - resemblesExistingModelOtherOption: TranslationField! @goTag(key: "db", value: "resembles_existing_model_other_option") - resemblesExistingModelHow: TranslationFieldWithParent! @goTag(key: "db", value: "resembles_existing_model_how") - resemblesExistingModelNote: TranslationField! @goTag(key: "db", value: "resembles_existing_model_note") - resemblesExistingModelWhich: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "resembles_existing_model_which") - participationInModelPrecondition: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "participation_in_model_precondition") - participationInModelPreconditionWhyHow: TranslationFieldWithParent! @goTag(key: "db", value: "participation_in_model_precondition_why_how") - participationInModelPreconditionOtherSpecify: TranslationField! @goTag(key: "db", value: "participation_in_model_precondition_other_specify") - participationInModelPreconditionOtherOption: TranslationField! @goTag(key: "db", value: "participation_in_model_precondition_other_option") - participationInModelPreconditionNote: TranslationField! @goTag(key: "db", value: "participation_in_model_precondition_note") - participationInModelPreconditionWhich: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "participation_in_model_precondition_which") - hasComponentsOrTracks: TranslationFieldWithOptions! @goTag(key: "db", value: "has_components_or_tracks") - hasComponentsOrTracksDiffer: TranslationField! @goTag(key: "db", value: "has_components_or_tracks_differ") - hasComponentsOrTracksNote: TranslationField! @goTag(key: "db", value: "has_components_or_tracks_note") - - # Page 2 - agencyOrStateHelp: TranslationFieldWithOptions! @goTag(key: "db", value: "agency_or_state_help") - agencyOrStateHelpOther: TranslationField! @goTag(key: "db", value: "agency_or_state_help_other") - agencyOrStateHelpNote: TranslationField! @goTag(key: "db", value: "agency_or_state_help_note") - alternativePaymentModelTypes: TranslationFieldWithOptions! @goTag(key: "db", value: "alternative_payment_model_types") - alternativePaymentModelNote: TranslationField! @goTag(key: "db", value: "alternative_payment_model_note") - keyCharacteristics: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "key_characteristics") - keyCharacteristicsOther: TranslationField! @goTag(key: "db", value: "key_characteristics_other") - keyCharacteristicsNote: TranslationField! @goTag(key: "db", value: "key_characteristics_note") - collectPlanBids: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "collect_plan_bids") - collectPlanBidsNote: TranslationField! @goTag(key: "db", value: "collect_plan_bids_note") - managePartCDEnrollment: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "manage_part_c_d_enrollment") - managePartCDEnrollmentNote: TranslationField! @goTag(key: "db", value: "manage_part_c_d_enrollment_note") - planContractUpdated: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "plan_contract_updated") - planContractUpdatedNote: TranslationField! @goTag(key: "db", value: "plan_contract_updated_note") - - # Page 3 - careCoordinationInvolved: TranslationFieldWithOptions! @goTag(key: "db", value: "care_coordination_involved") - careCoordinationInvolvedDescription: TranslationField! @goTag(key: "db", value: "care_coordination_involved_description") - careCoordinationInvolvedNote: TranslationField! @goTag(key: "db", value: "care_coordination_involved_note") - additionalServicesInvolved: TranslationFieldWithOptions! @goTag(key: "db", value: "additional_services_involved") - additionalServicesInvolvedDescription: TranslationField! @goTag(key: "db", value: "additional_services_involved_description") - additionalServicesInvolvedNote: TranslationField! @goTag(key: "db", value: "additional_services_involved_note") - communityPartnersInvolved: TranslationFieldWithOptions! @goTag(key: "db", value: "community_partners_involved") - communityPartnersInvolvedDescription: TranslationField! @goTag(key: "db", value: "community_partners_involved_description") - communityPartnersInvolvedNote: TranslationField! @goTag(key: "db", value: "community_partners_involved_note") - - # Page 4 - geographiesTargeted: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "geographies_targeted") - geographiesTargetedTypes: TranslationFieldWithParentAndChildren! @goTag(key: "db", value: "geographies_targeted_types") - geographiesStatesAndTerritories: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "geographies_states_and_territories") - geographiesRegionTypes: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "geographies_region_types") - geographiesTargetedTypesOther: TranslationField! @goTag(key: "db", value: "geographies_targeted_types_other") - geographiesTargetedAppliedTo: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "geographies_targeted_applied_to") - geographiesTargetedAppliedToOther: TranslationField! @goTag(key: "db", value: "geographies_targeted_applied_to_other") - geographiesTargetedNote: TranslationField! @goTag(key: "db", value: "geographies_targeted_note") - participationOptions: TranslationFieldWithOptions! @goTag(key: "db", value: "participation_options") - participationOptionsNote: TranslationField! @goTag(key: "db", value: "participation_options_note") - agreementTypes: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "agreement_types") - agreementTypesOther: TranslationField! @goTag(key: "db", value: "agreement_types_other") - multiplePatricipationAgreementsNeeded: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "multiple_patricipation_agreements_needed") - multiplePatricipationAgreementsNeededNote: TranslationField! @goTag(key: "db", value: "multiple_patricipation_agreements_needed_note") - - # Page 5 - rulemakingRequired: TranslationFieldWithOptions! @goTag(key: "db", value: "rulemaking_required") - rulemakingRequiredDescription: TranslationField! @goTag(key: "db", value: "rulemaking_required_description") - rulemakingRequiredNote: TranslationField! @goTag(key: "db", value: "rulemaking_required_note") - authorityAllowances: TranslationFieldWithOptions! @goTag(key: "db", value: "authority_allowances") - authorityAllowancesOther: TranslationField! @goTag(key: "db", value: "authority_allowances_other") - authorityAllowancesNote: TranslationField! @goTag(key: "db", value: "authority_allowances_note") - waiversRequired: TranslationFieldWithOptions! @goTag(key: "db", value: "waivers_required") - waiversRequiredTypes: TranslationFieldWithOptions! @goTag(key: "db", value: "waivers_required_types") - waiversRequiredNote: TranslationField! @goTag(key: "db", value: "waivers_required_note") - - readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") - readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") - readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") - readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -}`, BuiltIn: false}, - {Name: "../schema/types/plan_ops_eval_and_learning.graphql", Input: `enum StakeholdersType { - BENEFICIARIES - COMMUNITY_ORGANIZATIONS - PARTICIPANTS - PROFESSIONAL_ORGANIZATIONS - PROVIDERS - STATES - OTHER -} - -enum ContractorSupportType { - ONE - MULTIPLE - NONE - OTHER -} - -enum MonitoringFileType { - BENEFICIARY - PROVIDER - PART_A - PART_B - OTHER -} - -enum EvaluationApproachType { - CONTROL_INTERVENTION - COMPARISON_MATCH - INTERRUPTED_TIME - NON_MEDICARE_DATA - OTHER -} - -enum CcmInvolvmentType { - YES_EVALUATION - YES__IMPLEMENTATION - NO - OTHER -} - -enum DataForMonitoringType { - SITE_VISITS - MEDICARE_CLAIMS - MEDICAID_CLAIMS - ENCOUNTER_DATA - NO_PAY_CLAIMS - QUALITY_CLAIMS_BASED_MEASURES - QUALITY_REPORTED_MEASURES - CLINICAL_DATA - NON_CLINICAL_DATA - NON_MEDICAL_DATA - OTHER - NOT_PLANNING_TO_COLLECT_DATA -} - -enum DataToSendParticipantsType { - BASELINE_HISTORICAL_DATA - CLAIMS_LEVEL_DATA - BENEFICIARY_LEVEL_DATA - PARTICIPANT_LEVEL_DATA - PROVIDER_LEVEL_DATA - OTHER_MIPS_DATA - NOT_PLANNING_TO_SEND_DATA -} - -enum ModelLearningSystemType { - LEARNING_CONTRACTOR - IT_PLATFORM_CONNECT - PARTICIPANT_COLLABORATION - EDUCATE_BENEFICIARIES - OTHER - NO_LEARNING_SYSTEM -} - -enum DataFullTimeOrIncrementalType { - FULL_TIME - INCREMENTAL -} - -enum BenchmarkForPerformanceType { - YES_RECONCILE - YES_NO_RECONCILE - NO -} - -enum DataStartsType { - DURING_APPLICATION_PERIOD - SHORTLY_BEFORE_THE_START_DATE - EARLY_IN_THE_FIRST_PERFORMANCE_YEAR - LATER_IN_THE_FIRST_PERFORMANCE_YEAR - IN_THE_SUBSEQUENT_PERFORMANCE_YEAR - AT_SOME_OTHER_POINT_IN_TIME - NOT_PLANNING_TO_DO_THIS - OTHER -} - -""" -PlanOpsEvalAndLearning represents the task list section that deals with information regarding the Ops Eval and Learning -""" -type PlanOpsEvalAndLearning { - id: UUID! - modelPlanID: UUID! - - #Page 1 - stakeholders: [StakeholdersType!]! - stakeholdersOther: String - stakeholdersNote: String - helpdeskUse: Boolean - helpdeskUseNote: String - contractorSupport: [ContractorSupportType!]! - contractorSupportOther: String - contractorSupportHow: String - contractorSupportNote: String - iddocSupport: Boolean - iddocSupportNote: String - - #Page 2 - technicalContactsIdentified: Boolean - technicalContactsIdentifiedDetail: String - technicalContactsIdentifiedNote: String - captureParticipantInfo: Boolean - captureParticipantInfoNote: String - icdOwner: String - draftIcdDueDate: Time - icdNote: String - - #Page 3 - uatNeeds: String - stcNeeds: String - testingTimelines: String - testingNote: String - dataMonitoringFileTypes: [MonitoringFileType!]! - dataMonitoringFileOther: String - dataResponseType: String - dataResponseFileFrequency: String - - #Page 4 - dataFullTimeOrIncremental: DataFullTimeOrIncrementalType - eftSetUp: Boolean - unsolicitedAdjustmentsIncluded: Boolean - dataFlowDiagramsNeeded: Boolean - produceBenefitEnhancementFiles: Boolean - fileNamingConventions: String - dataMonitoringNote: String - - #Page 5 - benchmarkForPerformance: BenchmarkForPerformanceType - benchmarkForPerformanceNote: String - computePerformanceScores: Boolean - computePerformanceScoresNote: String - riskAdjustPerformance: Boolean - riskAdjustFeedback: Boolean - riskAdjustPayments: Boolean - riskAdjustOther: Boolean - riskAdjustNote: String - appealPerformance: Boolean - appealFeedback: Boolean - appealPayments: Boolean - appealOther: Boolean - appealNote: String - - #Page 6 - evaluationApproaches: [EvaluationApproachType!]! - evaluationApproachOther: String - evalutaionApproachNote: String - ccmInvolvment: [CcmInvolvmentType!]! - ccmInvolvmentOther: String - ccmInvolvmentNote: String - dataNeededForMonitoring: [DataForMonitoringType!]! - dataNeededForMonitoringOther: String - dataNeededForMonitoringNote: String - dataToSendParticicipants: [DataToSendParticipantsType!]! - dataToSendParticicipantsOther: String - dataToSendParticicipantsNote: String - shareCclfData: Boolean - shareCclfDataNote: String - - #Page 7 - sendFilesBetweenCcw: Boolean - sendFilesBetweenCcwNote: String - appToSendFilesToKnown: Boolean - appToSendFilesToWhich: String - appToSendFilesToNote: String - useCcwForFileDistribiutionToParticipants: Boolean - useCcwForFileDistribiutionToParticipantsNote: String - developNewQualityMeasures: Boolean - developNewQualityMeasuresNote: String - qualityPerformanceImpactsPayment: YesNoOtherType - qualityPerformanceImpactsPaymentOther: String - qualityPerformanceImpactsPaymentNote: String - - #Page 8 - dataSharingStarts: DataStartsType - dataSharingStartsOther: String - dataSharingFrequency: [FrequencyType!]! - dataSharingFrequencyContinually: String - dataSharingFrequencyOther: String - dataSharingStartsNote: String - dataCollectionStarts: DataStartsType - dataCollectionStartsOther: String - dataCollectionFrequency: [FrequencyType!]! - dataCollectionFrequencyContinually: String - dataCollectionFrequencyOther: String - dataCollectionFrequencyNote: String - qualityReportingStarts: DataStartsType - qualityReportingStartsOther: String - qualityReportingStartsNote: String - qualityReportingFrequency: [FrequencyType!]! - qualityReportingFrequencyContinually: String - qualityReportingFrequencyOther: String - - #Page 9 - modelLearningSystems: [ModelLearningSystemType!]! - modelLearningSystemsOther: String - modelLearningSystemsNote: String - anticipatedChallenges: String - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - - readyForReviewBy: UUID - readyForReviewByUserAccount: UserAccount - readyForReviewDts: Time - readyForClearanceBy: UUID - readyForClearanceByUserAccount: UserAccount - readyForClearanceDts: Time - - status: TaskStatus! -} - -""" -PlanOpsEvalAndLearningChanges represents the possible changes you can make to a -ops, eval and learning object when updating it. -Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. -https://gqlgen.com/reference/changesets/ -""" -input PlanOpsEvalAndLearningChanges @goModel(model: "map[string]interface{}") { - - #Page 1 - stakeholders: [StakeholdersType!] - stakeholdersOther: String - stakeholdersNote: String - helpdeskUse: Boolean - helpdeskUseNote: String - contractorSupport: [ContractorSupportType!] - contractorSupportOther: String - contractorSupportHow: String - contractorSupportNote: String - iddocSupport: Boolean - iddocSupportNote: String - #Page 2 - technicalContactsIdentified: Boolean - technicalContactsIdentifiedDetail: String - technicalContactsIdentifiedNote: String - captureParticipantInfo: Boolean - captureParticipantInfoNote: String - icdOwner: String - draftIcdDueDate: Time - icdNote: String - #Page 3 - uatNeeds: String - stcNeeds: String - testingTimelines: String - testingNote: String - dataMonitoringFileTypes: [MonitoringFileType!] - dataMonitoringFileOther: String - dataResponseType: String - dataResponseFileFrequency: String - #Page 4 - dataFullTimeOrIncremental: DataFullTimeOrIncrementalType - eftSetUp: Boolean - unsolicitedAdjustmentsIncluded: Boolean - dataFlowDiagramsNeeded: Boolean - produceBenefitEnhancementFiles: Boolean - fileNamingConventions: String - dataMonitoringNote: String - #Page 5 - benchmarkForPerformance: BenchmarkForPerformanceType - benchmarkForPerformanceNote: String - computePerformanceScores: Boolean - computePerformanceScoresNote: String - riskAdjustPerformance: Boolean - riskAdjustFeedback: Boolean - riskAdjustPayments: Boolean - riskAdjustOther: Boolean - riskAdjustNote: String - appealPerformance: Boolean - appealFeedback: Boolean - appealPayments: Boolean - appealOther: Boolean - appealNote: String - #Page 6 - evaluationApproaches: [EvaluationApproachType!] - evaluationApproachOther: String - evalutaionApproachNote: String - ccmInvolvment: [CcmInvolvmentType!] - ccmInvolvmentOther: String - ccmInvolvmentNote: String - dataNeededForMonitoring: [DataForMonitoringType!] - dataNeededForMonitoringOther: String - dataNeededForMonitoringNote: String - dataToSendParticicipants: [DataToSendParticipantsType!] - dataToSendParticicipantsOther: String - dataToSendParticicipantsNote: String - shareCclfData: Boolean - shareCclfDataNote: String - #Page 7 - sendFilesBetweenCcw: Boolean - sendFilesBetweenCcwNote: String - appToSendFilesToKnown: Boolean - appToSendFilesToWhich: String - appToSendFilesToNote: String - useCcwForFileDistribiutionToParticipants: Boolean - useCcwForFileDistribiutionToParticipantsNote: String - developNewQualityMeasures: Boolean - developNewQualityMeasuresNote: String - qualityPerformanceImpactsPayment: YesNoOtherType - qualityPerformanceImpactsPaymentOther: String - qualityPerformanceImpactsPaymentNote: String - #Page 8 - dataSharingStarts: DataStartsType - dataSharingStartsOther: String - dataSharingFrequency: [FrequencyType!] - dataSharingFrequencyContinually: String - dataSharingFrequencyOther: String - dataSharingStartsNote: String - dataCollectionStarts: DataStartsType - dataCollectionStartsOther: String - dataCollectionFrequency: [FrequencyType!] - dataCollectionFrequencyContinually: String - dataCollectionFrequencyOther: String - dataCollectionFrequencyNote: String - qualityReportingStarts: DataStartsType - qualityReportingStartsOther: String - qualityReportingStartsNote: String - qualityReportingFrequency: [FrequencyType!] - qualityReportingFrequencyContinually: String - qualityReportingFrequencyOther: String - #Page 9 - modelLearningSystems: [ModelLearningSystemType!] - modelLearningSystemsOther: String - modelLearningSystemsNote: String - anticipatedChallenges: String - - status: TaskStatusInput -} - -extend type Mutation { - updatePlanOpsEvalAndLearning(id: UUID!, changes: PlanOpsEvalAndLearningChanges!): PlanOpsEvalAndLearning! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_ops_eval_and_learning_translation.graphql", Input: `""" -Represents plan ops eval and learning translation data -""" -type PlanOpsEvalAndLearningTranslation { - #Page 1 - stakeholders: TranslationFieldWithOptions! @goTag(key: "db", value: "stakeholders") - stakeholdersOther: TranslationField! @goTag(key: "db", value: "stakeholders_other") - stakeholdersNote: TranslationField! @goTag(key: "db", value: "stakeholders_note") - helpdeskUse: TranslationFieldWithOptions! @goTag(key: "db", value: "helpdesk_use") - helpdeskUseNote: TranslationField! @goTag(key: "db", value: "helpdesk_use_note") - contractorSupport: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "contractor_support") - contractorSupportOther: TranslationField! @goTag(key: "db", value: "contractor_support_other") - contractorSupportHow: TranslationFieldWithParent! @goTag(key: "db", value: "contractor_support_how") - contractorSupportNote: TranslationField! @goTag(key: "db", value: "contractor_support_note") - iddocSupport: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "iddoc_support") - iddocSupportNote: TranslationField! @goTag(key: "db", value: "iddoc_support_note") - - #Page 2 - technicalContactsIdentified: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "technical_contacts_identified") - technicalContactsIdentifiedDetail: TranslationField! @goTag(key: "db", value: "technical_contacts_identified_detail") - technicalContactsIdentifiedNote: TranslationField! @goTag(key: "db", value: "technical_contacts_identified_note") - captureParticipantInfo: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "capture_participant_info") - captureParticipantInfoNote: TranslationField! @goTag(key: "db", value: "capture_participant_info_note") - icdOwner: TranslationFieldWithParent! @goTag(key: "db", value: "icd_owner") - draftIcdDueDate: TranslationFieldWithParent! @goTag(key: "db", value: "draft_icd_due_date") - icdNote: TranslationFieldWithParent! @goTag(key: "db", value: "icd_note") - - #Page 3 - uatNeeds: TranslationFieldWithParent! @goTag(key: "db", value: "uat_needs") - stcNeeds: TranslationFieldWithParent! @goTag(key: "db", value: "stc_needs") - testingTimelines: TranslationFieldWithParent! @goTag(key: "db", value: "testing_timelines") - testingNote: TranslationField! @goTag(key: "db", value: "testing_note") - dataMonitoringFileTypes: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "data_monitoring_file_types") - dataMonitoringFileOther: TranslationField! @goTag(key: "db", value: "data_monitoring_file_other") - dataResponseType: TranslationFieldWithParent! @goTag(key: "db", value: "data_response_type") - dataResponseFileFrequency: TranslationFieldWithParent! @goTag(key: "db", value: "data_response_file_frequency") - - #Page 4 - dataFullTimeOrIncremental: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "data_full_time_or_incremental") - eftSetUp: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "eft_set_up") - unsolicitedAdjustmentsIncluded: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "unsolicited_adjustments_included") - dataFlowDiagramsNeeded: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "data_flow_diagrams_needed") - produceBenefitEnhancementFiles: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "produce_benefit_enhancement_files") - fileNamingConventions: TranslationFieldWithParent! @goTag(key: "db", value: "file_naming_conventions") - dataMonitoringNote: TranslationField! @goTag(key: "db", value: "data_monitoring_note") - - #Page 5 - benchmarkForPerformance: TranslationFieldWithOptions! @goTag(key: "db", value: "benchmark_for_performance") - benchmarkForPerformanceNote: TranslationField! @goTag(key: "db", value: "benchmark_for_performance_note") - computePerformanceScores: TranslationFieldWithOptions! @goTag(key: "db", value: "compute_performance_scores") - computePerformanceScoresNote: TranslationField! @goTag(key: "db", value: "compute_performance_scores_note") - riskAdjustPerformance: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_adjust_performance") - riskAdjustFeedback: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_adjust_feedback") - riskAdjustPayments: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_adjust_payments") - riskAdjustOther: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_adjust_other") - riskAdjustNote: TranslationField! @goTag(key: "db", value: "risk_adjust_note") - appealPerformance: TranslationFieldWithOptions! @goTag(key: "db", value: "appeal_performance") - appealFeedback: TranslationFieldWithOptions! @goTag(key: "db", value: "appeal_feedback") - appealPayments: TranslationFieldWithOptions! @goTag(key: "db", value: "appeal_payments") - appealOther: TranslationFieldWithOptions! @goTag(key: "db", value: "appeal_other") - appealNote: TranslationField! @goTag(key: "db", value: "appeal_note") - - #Page 6 - evaluationApproaches: TranslationFieldWithOptions! @goTag(key: "db", value: "evaluation_approaches") - evaluationApproachOther: TranslationField! @goTag(key: "db", value: "evaluation_approach_other") - evalutaionApproachNote: TranslationField! @goTag(key: "db", value: "evalutaion_approach_note") - ccmInvolvment: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "ccm_involvment") - ccmInvolvmentOther: TranslationField! @goTag(key: "db", value: "ccm_involvment_other") - ccmInvolvmentNote: TranslationField! @goTag(key: "db", value: "ccm_involvment_note") - dataNeededForMonitoring: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "data_needed_for_monitoring") - dataNeededForMonitoringOther: TranslationField! @goTag(key: "db", value: "data_needed_for_monitoring_other") - dataNeededForMonitoringNote: TranslationField! @goTag(key: "db", value: "data_needed_for_monitoring_note") - dataToSendParticicipants: TranslationFieldWithOptions! @goTag(key: "db", value: "data_to_send_particicipants") - dataToSendParticicipantsOther: TranslationField! @goTag(key: "db", value: "data_to_send_particicipants_other") - dataToSendParticicipantsNote: TranslationField! @goTag(key: "db", value: "data_to_send_particicipants_note") - shareCclfData: TranslationFieldWithOptions! @goTag(key: "db", value: "share_cclf_data") - shareCclfDataNote: TranslationField! @goTag(key: "db", value: "share_cclf_data_note") - - #Page 7 - sendFilesBetweenCcw: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "send_files_between_ccw") - sendFilesBetweenCcwNote: TranslationField! @goTag(key: "db", value: "send_files_between_ccw_note") - appToSendFilesToKnown: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "app_to_send_files_to_known") - appToSendFilesToWhich: TranslationField! @goTag(key: "db", value: "app_to_send_files_to_which") - appToSendFilesToNote: TranslationField! @goTag(key: "db", value: "app_to_send_files_to_note") - useCcwForFileDistribiutionToParticipants: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "use_ccw_for_file_distribiution_to_participants") - useCcwForFileDistribiutionToParticipantsNote: TranslationField! @goTag(key: "db", value: "use_ccw_for_file_distribiution_to_participants_note") - developNewQualityMeasures: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "develop_new_quality_measures") - developNewQualityMeasuresNote: TranslationField! @goTag(key: "db", value: "develop_new_quality_measures_note") - qualityPerformanceImpactsPayment: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "quality_performance_impacts_payment") - qualityPerformanceImpactsPaymentOther: TranslationField! @goTag(key: "db", value: "quality_performance_impacts_payment_other") - qualityPerformanceImpactsPaymentNote: TranslationField! @goTag(key: "db", value: "quality_performance_impacts_payment_note") - - #Page 8 - dataSharingStarts: TranslationFieldWithOptions! @goTag(key: "db", value: "data_sharing_starts") - dataSharingStartsOther: TranslationField! @goTag(key: "db", value: "data_sharing_starts_other") - dataSharingFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "data_sharing_frequency") - dataSharingFrequencyContinually: TranslationField! @goTag(key: "db", value: "data_sharing_frequency_continually") - dataSharingFrequencyOther: TranslationField! @goTag(key: "db", value: "data_sharing_frequency_other") - dataSharingStartsNote: TranslationField! @goTag(key: "db", value: "data_sharing_starts_note") - dataCollectionStarts: TranslationFieldWithOptions! @goTag(key: "db", value: "data_collection_starts") - dataCollectionStartsOther: TranslationField! @goTag(key: "db", value: "data_collection_starts_other") - dataCollectionFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "data_collection_frequency") - dataCollectionFrequencyContinually: TranslationField! @goTag(key: "db", value: "data_collection_frequency_continually") - dataCollectionFrequencyOther: TranslationField! @goTag(key: "db", value: "data_collection_frequency_other") - dataCollectionFrequencyNote: TranslationField! @goTag(key: "db", value: "data_collection_frequency_note") - qualityReportingStarts: TranslationFieldWithOptions! @goTag(key: "db", value: "quality_reporting_starts") - qualityReportingStartsOther: TranslationField! @goTag(key: "db", value: "quality_reporting_starts_other") - qualityReportingStartsNote: TranslationField! @goTag(key: "db", value: "quality_reporting_starts_note") - qualityReportingFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "quality_reporting_frequency") - qualityReportingFrequencyContinually: TranslationField! @goTag(key: "db", value: "quality_reporting_frequency_continually") - qualityReportingFrequencyOther: TranslationField! @goTag(key: "db", value: "quality_reporting_frequency_other") - - #Page 9 - modelLearningSystems: TranslationFieldWithOptions! @goTag(key: "db", value: "model_learning_systems") - modelLearningSystemsOther: TranslationField! @goTag(key: "db", value: "model_learning_systems_other") - modelLearningSystemsNote: TranslationField! @goTag(key: "db", value: "model_learning_systems_note") - anticipatedChallenges: TranslationField! @goTag(key: "db", value: "anticipated_challenges") - - readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") - readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") - readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") - readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -}`, BuiltIn: false}, - {Name: "../schema/types/plan_participants_and_providers.graphql", Input: `enum ParticipantsType { - MEDICARE_PROVIDERS - ENTITIES - CONVENER - MEDICARE_ADVANTAGE_PLANS - STANDALONE_PART_D_PLANS - MEDICARE_ADVANTAGE_PRESCRIPTION_DRUG_PLANS - STATE_MEDICAID_AGENCIES - MEDICAID_MANAGED_CARE_ORGANIZATIONS - MEDICAID_PROVIDERS - STATES - COMMUNITY_BASED_ORGANIZATIONS - NON_PROFIT_ORGANIZATIONS - COMMERCIAL_PAYERS - ACCOUNTABLE_CARE_ORGANIZATION - OTHER -} - -enum RecruitmentType { - LOI - APPLICATION_COLLECTION_TOOL - NOFO - OTHER - NA -} - -enum ParticipantSelectionType { - MODEL_TEAM_REVIEW_APPLICATIONS - SUPPORT_FROM_CMMI - CMS_COMPONENT_OR_PROCESS - APPLICATION_REVIEW_AND_SCORING_TOOL - APPLICATION_SUPPORT_CONTRACTOR - BASIC_CRITERIA - OTHER - NO_SELECTING_PARTICIPANTS -} - -enum ParticipantCommunicationType { - MASS_EMAIL - IT_TOOL - OTHER - NO_COMMUNICATION -} - -enum ParticipantRiskType { - TWO_SIDED - ONE_SIDED - CAPITATION - NOT_RISK_BASED - OTHER -} - -enum GainshareArrangementEligibility { - ALL_PROVIDERS, - SOME_PROVIDERS, - OTHER, - NO -} - -enum ParticipantsIDType { - TINS - NPIS - CCNS - OTHER - NO_IDENTIFIERS -} - -enum ProviderAddType { - PROSPECTIVELY - RETROSPECTIVELY - VOLUNTARILY - MANDATORILY - ONLINE_TOOLS - OTHER - NA -} - -enum ProviderLeaveType { - VOLUNTARILY_WITHOUT_IMPLICATIONS - AFTER_A_CERTAIN_WITH_IMPLICATIONS - VARIES_BY_TYPE_OF_PROVIDER - NOT_ALLOWED_TO_LEAVE - OTHER - NOT_APPLICABLE -} - -enum ParticipantRequireFinancialGuaranteeType { - SURETY_BOND, - LETTER_OF_CREDIT, - ESCROW, - OTHER -} - -""" -PlanParticipantsAndProviders is the task list section that deals with information regarding all Providers and Participants -""" -type PlanParticipantsAndProviders { - id: UUID! - modelPlanID: UUID! - - #Page 1 - participants: [ParticipantsType!]! - medicareProviderType: String - isNewTypeOfProvidersOrSuppliers: Boolean - statesEngagement: String - participantsOther: String - participantsNote: String - participantsCurrentlyInModels: Boolean - participantsCurrentlyInModelsNote: String - modelApplicationLevel: String - - #Page 2 - expectedNumberOfParticipants: Int - estimateConfidence: ConfidenceType - confidenceNote: String - recruitmentMethod: RecruitmentType - recruitmentOther: String - recruitmentNote: String - selectionMethod: [ParticipantSelectionType!]! - selectionOther: String - selectionNote: String - - #Page 3 - participantAddedFrequency: [FrequencyType!]! - participantAddedFrequencyContinually: String - participantAddedFrequencyOther: String - participantAddedFrequencyNote: String - participantRemovedFrequency: [FrequencyType!]! - participantRemovedFrequencyContinually: String - participantRemovedFrequencyOther: String - participantRemovedFrequencyNote: String - communicationMethod: [ParticipantCommunicationType!]! - communicationMethodOther: String - communicationNote: String - riskType: [ParticipantRiskType!]! - riskOther: String - riskNote: String - willRiskChange: Boolean - willRiskChangeNote: String - - #Page 4 - participantRequireFinancialGuarantee: Boolean - participantRequireFinancialGuaranteeType: [ParticipantRequireFinancialGuaranteeType!]! - participantRequireFinancialGuaranteeOther: String - participantRequireFinancialGuaranteeNote: String - coordinateWork: Boolean - coordinateWorkNote: String - gainsharePayments: Boolean - gainsharePaymentsTrack: Boolean - gainsharePaymentsNote: String - gainsharePaymentsEligibility: [GainshareArrangementEligibility!]! - gainsharePaymentsEligibilityOther: String - participantsIds: [ParticipantsIDType!]! - participantsIdsOther: String - participantsIDSNote: String - - #Page 5 - providerAdditionFrequency: [FrequencyType!]! - providerAdditionFrequencyContinually: String - providerAdditionFrequencyOther: String - providerAdditionFrequencyNote: String - providerAddMethod: [ProviderAddType!]! - providerAddMethodOther: String - providerAddMethodNote: String - providerLeaveMethod: [ProviderLeaveType!]! - providerLeaveMethodOther: String - providerLeaveMethodNote: String - providerRemovalFrequency: [FrequencyType!]! - providerRemovalFrequencyContinually: String - providerRemovalFrequencyOther: String - providerRemovalFrequencyNote: String - providerOverlap: OverlapType - providerOverlapHierarchy: String - providerOverlapNote: String - - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - - readyForReviewBy: UUID - readyForReviewByUserAccount: UserAccount - readyForReviewDts: Time - readyForClearanceBy: UUID - readyForClearanceByUserAccount: UserAccount - readyForClearanceDts: Time - - status: TaskStatus! -} - -""" -PlanParticipantsAndProvidersChanges represents the possible changes you can make to a -providers and participants object when updating it. -Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. -https://gqlgen.com/reference/changesets/ -""" -input PlanParticipantsAndProvidersChanges @goModel(model: "map[string]interface{}") { - #Page 1 - participants: [ParticipantsType!] - medicareProviderType: String - isNewTypeOfProvidersOrSuppliers: Boolean - statesEngagement: String - participantsOther: String - participantsNote: String - participantsCurrentlyInModels: Boolean - participantsCurrentlyInModelsNote: String - modelApplicationLevel: String - - #Page 2 - expectedNumberOfParticipants: Int - estimateConfidence: ConfidenceType - confidenceNote: String - recruitmentMethod: RecruitmentType - recruitmentOther: String - recruitmentNote: String - selectionMethod: [ParticipantSelectionType!] - selectionOther: String - selectionNote: String - - #Page 3 - participantAddedFrequency: [FrequencyType!] - participantAddedFrequencyContinually: String - participantAddedFrequencyOther: String - participantAddedFrequencyNote: String - participantRemovedFrequency: [FrequencyType!] - participantRemovedFrequencyContinually: String - participantRemovedFrequencyOther: String - participantRemovedFrequencyNote: String - communicationMethod: [ParticipantCommunicationType!] - communicationMethodOther: String - communicationNote: String - riskType: [ParticipantRiskType!] - riskOther: String - riskNote: String - willRiskChange: Boolean - willRiskChangeNote: String - - #Page 4 - participantRequireFinancialGuarantee: Boolean - participantRequireFinancialGuaranteeType: [ParticipantRequireFinancialGuaranteeType!] - participantRequireFinancialGuaranteeOther: String - participantRequireFinancialGuaranteeNote: String - coordinateWork: Boolean - coordinateWorkNote: String - gainsharePayments: Boolean - gainsharePaymentsTrack: Boolean - gainsharePaymentsNote: String - gainsharePaymentsEligibility: [GainshareArrangementEligibility!] - gainsharePaymentsEligibilityOther: String - participantsIds: [ParticipantsIDType!] - participantsIdsOther: String - participantsIDSNote: String - - #Page 5 - providerAdditionFrequency: [FrequencyType!] - providerAdditionFrequencyContinually: String - providerAdditionFrequencyOther: String - providerAdditionFrequencyNote: String - providerAddMethod: [ProviderAddType!] - providerAddMethodOther: String - providerAddMethodNote: String - providerLeaveMethod: [ProviderLeaveType!] - providerLeaveMethodOther: String - providerLeaveMethodNote: String - providerRemovalFrequency: [FrequencyType!] - providerRemovalFrequencyContinually: String - providerRemovalFrequencyOther: String - providerRemovalFrequencyNote: String - providerOverlap: OverlapType - providerOverlapHierarchy: String - providerOverlapNote: String - - status: TaskStatusInput -} - -extend type Mutation { - updatePlanParticipantsAndProviders(id: UUID!, changes: PlanParticipantsAndProvidersChanges!): PlanParticipantsAndProviders! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_participants_and_providers_translation.graphql", Input: `""" -Represents plan participants and providers translation data -""" -type PlanParticipantsAndProvidersTranslation { - #Page 1 - participants: TranslationFieldWithOptions! @goTag(key: "db", value: "participants") - medicareProviderType: TranslationField! @goTag(key: "db", value: "medicare_provider_type") - isNewTypeOfProvidersOrSuppliers: TranslationFieldWithOptionsAndParent! @goTag(key: "db" value: "is_new_type_of_providers_or_suppliers") - statesEngagement: TranslationField! @goTag(key: "db", value: "states_engagement") - participantsOther: TranslationField! @goTag(key: "db", value: "participants_other") - participantsNote: TranslationField! @goTag(key: "db", value: "participants_note") - participantsCurrentlyInModels: TranslationFieldWithOptions! @goTag(key: "db", value: "participants_currently_in_models") - participantsCurrentlyInModelsNote: TranslationField! @goTag(key: "db", value: "participants_currently_in_models_note") - modelApplicationLevel: TranslationField! @goTag(key: "db", value: "model_application_level") - - #Page 2 - expectedNumberOfParticipants: TranslationField! @goTag(key: "db", value: "expected_number_of_participants") - estimateConfidence: TranslationFieldWithOptions! @goTag(key: "db", value: "estimate_confidence") - confidenceNote: TranslationField! @goTag(key: "db", value: "confidence_note") - recruitmentMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "recruitment_method") - recruitmentOther: TranslationField! @goTag(key: "db", value: "recruitment_other") - recruitmentNote: TranslationField! @goTag(key: "db", value: "recruitment_note") - selectionMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "selection_method") - selectionOther: TranslationField! @goTag(key: "db", value: "selection_other") - selectionNote: TranslationField! @goTag(key: "db", value: "selection_note") - - #Page 3 - participantAddedFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "participant_added_frequency") - participantAddedFrequencyContinually: TranslationField! @goTag(key: "db", value: "participant_added_frequency_continually") - participantAddedFrequencyOther: TranslationField! @goTag(key: "db", value: "participant_added_frequency_other") - participantAddedFrequencyNote: TranslationField! @goTag(key: "db", value: "participant_added_frequency_note") - participantRemovedFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "participant_removed_frequency") - participantRemovedFrequencyContinually: TranslationField! @goTag(key: "db", value: "participant_removed_frequency_continually") - participantRemovedFrequencyOther: TranslationField! @goTag(key: "db", value: "participant_removed_frequency_other") - participantRemovedFrequencyNote: TranslationField! @goTag(key: "db", value: "participant_removed_frequency_note") - communicationMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "communication_method") - communicationMethodOther: TranslationField! @goTag(key: "db", value: "communication_method_other") - communicationNote: TranslationField! @goTag(key: "db", value: "communication_note") - riskType: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_type") - riskOther: TranslationField! @goTag(key: "db", value: "risk_other") - riskNote: TranslationField! @goTag(key: "db", value: "risk_note") - willRiskChange: TranslationFieldWithOptions! @goTag(key: "db", value: "will_risk_change") - willRiskChangeNote: TranslationField! @goTag(key: "db", value: "will_risk_change_note") - - #Page 4 - participantRequireFinancialGuarantee: TranslationFieldWithOptions! @goTag(key: "db", value: "participant_require_financial_guarantee") - participantRequireFinancialGuaranteeType: TranslationFieldWithOptions! @goTag(key: "db", value: "participant_require_financial_guarantee_type") - participantRequireFinancialGuaranteeOther: TranslationField! @goTag(key: "db", value: "participant_require_financial_guarantee_other") - participantRequireFinancialGuaranteeNote: TranslationField! @goTag(key: "db", value: "participant_require_financial_guarantee_note") - coordinateWork: TranslationFieldWithOptions! @goTag(key: "db", value: "coordinate_work") - coordinateWorkNote: TranslationField! @goTag(key: "db", value: "coordinate_work_note") - gainsharePayments: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "gainshare_payments") - gainsharePaymentsTrack: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "gainshare_payments_track") - gainsharePaymentsNote: TranslationField! @goTag(key: "db", value: "gainshare_payments_note") - gainsharePaymentsEligibility: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "gainshare_payments_eligibility") - gainsharePaymentsEligibilityOther: TranslationField! @goTag(key: "db", value: "gainshare_payments_eligibility_other") - participantsIds: TranslationFieldWithOptions! @goTag(key: "db", value: "participants_ids") - participantsIdsOther: TranslationField! @goTag(key: "db", value: "participants_ids_other") - participantsIDSNote: TranslationField! @goTag(key: "db", value: "participants_ids_note") - - #Page 5 - providerAdditionFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "provider_addition_frequency") - providerAdditionFrequencyContinually: TranslationField! @goTag(key: "db", value: "provider_addition_frequency_continually") - providerAdditionFrequencyOther: TranslationField! @goTag(key: "db", value: "provider_addition_frequency_other") - providerAdditionFrequencyNote: TranslationField! @goTag(key: "db", value: "provider_addition_frequency_note") - providerAddMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "provider_add_method") - providerAddMethodOther: TranslationField! @goTag(key: "db", value: "provider_add_method_other") - providerAddMethodNote: TranslationField! @goTag(key: "db", value: "provider_add_method_note") - providerLeaveMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "provider_leave_method") - providerLeaveMethodOther: TranslationField! @goTag(key: "db", value: "provider_leave_method_other") - providerLeaveMethodNote: TranslationField! @goTag(key: "db", value: "provider_leave_method_note") - providerRemovalFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "provider_removal_frequency") - providerRemovalFrequencyContinually: TranslationField! @goTag(key: "db", value: "provider_removal_frequency_continually") - providerRemovalFrequencyOther: TranslationField! @goTag(key: "db", value: "provider_removal_frequency_other") - providerRemovalFrequencyNote: TranslationField! @goTag(key: "db", value: "provider_removal_frequency_note") - providerOverlap: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "provider_overlap") - providerOverlapHierarchy: TranslationFieldWithParent! @goTag(key: "db", value: "provider_overlap_hierarchy") - providerOverlapNote: TranslationField! @goTag(key: "db", value: "provider_overlap_note") - - readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") - readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") - readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") - readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -} -`, BuiltIn: false}, - {Name: "../schema/types/plan_payments.graphql", Input: `enum FundingSource { - PATIENT_PROTECTION_AFFORDABLE_CARE_ACT - MEDICARE_PART_A_HI_TRUST_FUND - MEDICARE_PART_B_SMI_TRUST_FUND - OTHER -} - -enum PayRecipient { - PROVIDERS - BENEFICIARIES - PARTICIPANTS - STATES - OTHER -} - -enum PayType { - CLAIMS_BASED_PAYMENTS - NON_CLAIMS_BASED_PAYMENTS - GRANTS -} - -enum ClaimsBasedPayType { - ADJUSTMENTS_TO_FFS_PAYMENTS - CARE_MANAGEMENT_HOME_VISITS - REDUCTIONS_TO_BENEFICIARY_COST_SHARING - SNF_CLAIMS_WITHOUT_3DAY_HOSPITAL_ADMISSIONS - TELEHEALTH_SERVICES_NOT_TRADITIONAL_MEDICARE - SERVICES_NOT_COVERED_THROUGH_TRADITIONAL_MEDICARE - PAYMENTS_FOR_POST_DISCHARGE_HOME_VISITS - OTHER -} - -enum NonClaimsBasedPayType { - ADVANCED_PAYMENT - BUNDLED_EPISODE_OF_CARE - CAPITATION_POPULATION_BASED_FULL - CAPITATION_POPULATION_BASED_PARTIAL - CARE_COORDINATION_MANAGEMENT_FEE - GLOBAL_BUDGET - INCENTIVE_PAYMENT - MAPD_SHARED_SAVINGS - SHARED_SAVINGS - OTHER -} - -enum ComplexityCalculationLevelType { - LOW - MIDDLE - HIGH -} - -""" -PlanPayments is the task list section that deals with information regarding Payments -""" -type PlanPayments { - id: UUID! - modelPlanID: UUID! - - # Page 1 - fundingSource: [FundingSource!]! - fundingSourcePatientProtectionInfo: String - fundingSourceMedicareAInfo: String - fundingSourceMedicareBInfo: String - fundingSourceOther: String - fundingSourceNote: String - fundingSourceR: [FundingSource!]! - fundingSourceRPatientProtectionInfo: String - fundingSourceRMedicareAInfo: String - fundingSourceRMedicareBInfo: String - fundingSourceROther: String - fundingSourceRNote: String - payRecipients: [PayRecipient!]! - payRecipientsOtherSpecification: String - payRecipientsNote: String - payType: [PayType!]! - payTypeNote: String - - # Page 2 - payClaims: [ClaimsBasedPayType!]! - payClaimsOther: String - payClaimsNote: String - shouldAnyProvidersExcludedFFSSystems: Boolean - shouldAnyProviderExcludedFFSSystemsNote: String - changesMedicarePhysicianFeeSchedule: Boolean - changesMedicarePhysicianFeeScheduleNote: String - affectsMedicareSecondaryPayerClaims: Boolean - affectsMedicareSecondaryPayerClaimsHow: String - affectsMedicareSecondaryPayerClaimsNote: String - payModelDifferentiation: String - - # Page 3 - willBePaymentAdjustments: Boolean - willBePaymentAdjustmentsNote: String - creatingDependenciesBetweenServices: Boolean - creatingDependenciesBetweenServicesNote: String - needsClaimsDataCollection: Boolean - needsClaimsDataCollectionNote: String - providingThirdPartyFile: Boolean - isContractorAwareTestDataRequirements: Boolean - - # Page 4 - beneficiaryCostSharingLevelAndHandling: String - waiveBeneficiaryCostSharingForAnyServices: Boolean - waiveBeneficiaryCostSharingServiceSpecification: String - waiverOnlyAppliesPartOfPayment: Boolean - waiveBeneficiaryCostSharingNote: String - - # Page 5 - nonClaimsPayments: [NonClaimsBasedPayType!]! - nonClaimsPaymentOther: String - nonClaimsPaymentsNote: String - paymentCalculationOwner: String - numberPaymentsPerPayCycle: String - numberPaymentsPerPayCycleNote: String - sharedSystemsInvolvedAdditionalClaimPayment: Boolean - sharedSystemsInvolvedAdditionalClaimPaymentNote: String - planningToUseInnovationPaymentContractor: Boolean - planningToUseInnovationPaymentContractorNote: String - - # Page 6 - expectedCalculationComplexityLevel: ComplexityCalculationLevelType - expectedCalculationComplexityLevelNote: String - claimsProcessingPrecedence: Boolean - claimsProcessingPrecedenceOther: String - claimsProcessingPrecedenceNote: String - canParticipantsSelectBetweenPaymentMechanisms: Boolean - canParticipantsSelectBetweenPaymentMechanismsHow: String - canParticipantsSelectBetweenPaymentMechanismsNote: String - anticipatedPaymentFrequency: [FrequencyType!]! - anticipatedPaymentFrequencyContinually: String - anticipatedPaymentFrequencyOther: String - anticipatedPaymentFrequencyNote: String - - # Page 7 - willRecoverPayments: Boolean - willRecoverPaymentsNote: String - anticipateReconcilingPaymentsRetrospectively: Boolean - anticipateReconcilingPaymentsRetrospectivelyNote: String - paymentReconciliationFrequency: [FrequencyType!]! - paymentReconciliationFrequencyContinually: String - paymentReconciliationFrequencyOther: String - paymentReconciliationFrequencyNote: String - paymentDemandRecoupmentFrequency: [FrequencyType!]! - paymentDemandRecoupmentFrequencyContinually: String - paymentDemandRecoupmentFrequencyOther: String - paymentDemandRecoupmentFrequencyNote: String - paymentStartDate: Time - paymentStartDateNote: String - - # Meta - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - - readyForReviewBy: UUID - readyForReviewByUserAccount: UserAccount - readyForReviewDts: Time - readyForClearanceBy: UUID - readyForClearanceByUserAccount: UserAccount - readyForClearanceDts: Time - - status: TaskStatus! -} - -input PlanPaymentsChanges @goModel(model: "map[string]interface{}") { - # Page 1 - fundingSource: [FundingSource!] - fundingSourcePatientProtectionInfo: String - fundingSourceMedicareAInfo: String - fundingSourceMedicareBInfo: String - fundingSourceOther: String - fundingSourceNote: String - fundingSourceR: [FundingSource!] - fundingSourceRPatientProtectionInfo: String - fundingSourceRMedicareAInfo: String - fundingSourceRMedicareBInfo: String - fundingSourceROther: String - fundingSourceRNote: String - payRecipients: [PayRecipient!] - payRecipientsOtherSpecification: String - payRecipientsNote: String - payType: [PayType!] - payTypeNote: String - - # Page 2 - payClaims: [ClaimsBasedPayType!] - payClaimsOther: String - payClaimsNote: String - shouldAnyProvidersExcludedFFSSystems: Boolean - shouldAnyProviderExcludedFFSSystemsNote: String - changesMedicarePhysicianFeeSchedule: Boolean - changesMedicarePhysicianFeeScheduleNote: String - affectsMedicareSecondaryPayerClaims: Boolean - affectsMedicareSecondaryPayerClaimsHow: String - affectsMedicareSecondaryPayerClaimsNote: String - payModelDifferentiation: String - - # Page 3 - willBePaymentAdjustments: Boolean - willBePaymentAdjustmentsNote: String - creatingDependenciesBetweenServices: Boolean - creatingDependenciesBetweenServicesNote: String - needsClaimsDataCollection: Boolean - needsClaimsDataCollectionNote: String - providingThirdPartyFile: Boolean - isContractorAwareTestDataRequirements: Boolean - - # Page 4 - beneficiaryCostSharingLevelAndHandling: String - waiveBeneficiaryCostSharingForAnyServices: Boolean - waiveBeneficiaryCostSharingServiceSpecification: String - waiverOnlyAppliesPartOfPayment: Boolean - waiveBeneficiaryCostSharingNote: String - - # Page 5 - nonClaimsPayments: [NonClaimsBasedPayType!] - nonClaimsPaymentOther: String - nonClaimsPaymentsNote: String - paymentCalculationOwner: String - numberPaymentsPerPayCycle: String - numberPaymentsPerPayCycleNote: String - sharedSystemsInvolvedAdditionalClaimPayment: Boolean - sharedSystemsInvolvedAdditionalClaimPaymentNote: String - planningToUseInnovationPaymentContractor: Boolean - planningToUseInnovationPaymentContractorNote: String - - # Page 6 - expectedCalculationComplexityLevel: ComplexityCalculationLevelType - expectedCalculationComplexityLevelNote: String - claimsProcessingPrecedence: Boolean - claimsProcessingPrecedenceOther: String - claimsProcessingPrecedenceNote: String - canParticipantsSelectBetweenPaymentMechanisms: Boolean - canParticipantsSelectBetweenPaymentMechanismsHow: String - canParticipantsSelectBetweenPaymentMechanismsNote: String - anticipatedPaymentFrequency: [FrequencyType!] - anticipatedPaymentFrequencyContinually: String - anticipatedPaymentFrequencyOther: String - anticipatedPaymentFrequencyNote: String - - # Page 7 - willRecoverPayments: Boolean - willRecoverPaymentsNote: String - anticipateReconcilingPaymentsRetrospectively: Boolean - anticipateReconcilingPaymentsRetrospectivelyNote: String - paymentReconciliationFrequency: [FrequencyType!] - paymentReconciliationFrequencyContinually: String - paymentReconciliationFrequencyOther: String - paymentReconciliationFrequencyNote: String - paymentDemandRecoupmentFrequency: [FrequencyType!] - paymentDemandRecoupmentFrequencyContinually: String - paymentDemandRecoupmentFrequencyOther: String - paymentDemandRecoupmentFrequencyNote: String - paymentStartDate: Time - paymentStartDateNote: String - - status: TaskStatusInput -} - -extend type Query { - planPayments(id: UUID!): PlanPayments! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - updatePlanPayments(id: UUID!, changes: PlanPaymentsChanges!): PlanPayments! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_payments_translation.graphql", Input: `""" -Represents payments translation data -""" -type PlanPaymentsTranslation { - # Page 1 - fundingSource: TranslationFieldWithOptions! @goTag(key: "db", value: "funding_source") - fundingSourcePatientProtectionInfo: TranslationField! @goTag(key: "db", value: "funding_source_patient_protection_info") - fundingSourceMedicareAInfo: TranslationField! @goTag(key: "db", value: "funding_source_medicare_a_info") - fundingSourceMedicareBInfo: TranslationField! @goTag(key: "db", value: "funding_source_medicare_b_info") - fundingSourceOther: TranslationField! @goTag(key: "db", value: "funding_source_other") - fundingSourceNote: TranslationField! @goTag(key: "db", value: "funding_source_note") - fundingSourceR: TranslationFieldWithOptions! @goTag(key: "db", value: "funding_source_r") - fundingSourceRPatientProtectionInfo: TranslationField! @goTag(key: "db", value: "funding_source_r_patient_protection_info") - fundingSourceRMedicareAInfo: TranslationField! @goTag(key: "db", value: "funding_source_r_medicare_a_info") - fundingSourceRMedicareBInfo: TranslationField! @goTag(key: "db", value: "funding_source_r_medicare_b_info") - fundingSourceROther: TranslationField! @goTag(key: "db", value: "funding_source_r_other") - fundingSourceRNote: TranslationField! @goTag(key: "db", value: "funding_source_r_note") - payRecipients: TranslationFieldWithOptions! @goTag(key: "db", value: "pay_recipients") - payRecipientsOtherSpecification: TranslationField! @goTag(key: "db", value: "pay_recipients_other_specification") - payRecipientsNote: TranslationField! @goTag(key: "db", value: "pay_recipients_note") - payType: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "pay_type") - payTypeNote: TranslationField! @goTag(key: "db", value: "pay_type_note") - - # Page 2 - payClaims: TranslationFieldWithOptions! @goTag(key: "db", value: "pay_claims") - payClaimsOther: TranslationField! @goTag(key: "db", value: "pay_claims_other") - payClaimsNote: TranslationField! @goTag(key: "db", value: "pay_claims_note") - shouldAnyProvidersExcludedFFSSystems: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "should_any_providers_excluded_ffs_systems") - shouldAnyProviderExcludedFFSSystemsNote: TranslationField! @goTag(key: "db", value: "should_any_providers_excluded_ffs_systems_note") - changesMedicarePhysicianFeeSchedule: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "changes_medicare_physician_fee_schedule") - changesMedicarePhysicianFeeScheduleNote: TranslationField! @goTag(key: "db", value: "changes_medicare_physician_fee_schedule_note") - affectsMedicareSecondaryPayerClaims: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "affects_medicare_secondary_payer_claims") - affectsMedicareSecondaryPayerClaimsHow: TranslationField! @goTag(key: "db", value: "affects_medicare_secondary_payer_claims_how") - affectsMedicareSecondaryPayerClaimsNote: TranslationField! @goTag(key: "db", value: "affects_medicare_secondary_payer_claims_note") - payModelDifferentiation: TranslationFieldWithParent! @goTag(key: "db", value: "pay_model_differentiation") - - # Page 3 - willBePaymentAdjustments:TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "will_be_payment_adjustments") - willBePaymentAdjustmentsNote: TranslationField! @goTag(key: "db", value: "will_be_payment_adjustments_note") - creatingDependenciesBetweenServices: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "creating_dependencies_between_services") - creatingDependenciesBetweenServicesNote: TranslationField! @goTag(key: "db", value: "creating_dependencies_between_services_note") - needsClaimsDataCollection: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "needs_claims_data_collection") - needsClaimsDataCollectionNote: TranslationField! @goTag(key: "db", value: "needs_claims_data_collection_note") - providingThirdPartyFile: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "providing_third_party_file") - isContractorAwareTestDataRequirements: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "is_contractor_aware_test_data_requirements") - - # Page 4 - beneficiaryCostSharingLevelAndHandling: TranslationFieldWithParent! @goTag(key: "db", value: "beneficiary_cost_sharing_level_and_handling") - waiveBeneficiaryCostSharingForAnyServices: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "waive_beneficiary_cost_sharing_for_any_services") - waiveBeneficiaryCostSharingServiceSpecification: TranslationField! @goTag(key: "db", value: "waive_beneficiary_cost_sharing_service_specification") - waiverOnlyAppliesPartOfPayment: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "waiver_only_applies_part_of_payment") - waiveBeneficiaryCostSharingNote: TranslationField! @goTag(key: "db", value: "waive_beneficiary_cost_sharing_note") - - # Page 5 - nonClaimsPayments: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "non_claims_payments") - nonClaimsPaymentOther: TranslationField! @goTag(key: "db", value: "non_claims_payments_other") - nonClaimsPaymentsNote: TranslationField! @goTag(key: "db", value: "non_claims_payments_note") - paymentCalculationOwner: TranslationFieldWithParent! @goTag(key: "db", value: "payment_calculation_owner") - numberPaymentsPerPayCycle: TranslationFieldWithParent! @goTag(key: "db", value: "number_payments_per_pay_cycle") - numberPaymentsPerPayCycleNote: TranslationField! @goTag(key: "db", value: "number_payments_per_pay_cycle_note") - sharedSystemsInvolvedAdditionalClaimPayment: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "shared_systems_involved_additional_claim_payment") - sharedSystemsInvolvedAdditionalClaimPaymentNote: TranslationField! @goTag(key: "db", value: "shared_systems_involved_additional_claim_payment_note") - planningToUseInnovationPaymentContractor: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "planning_to_use_innovation_payment_contractor") - planningToUseInnovationPaymentContractorNote: TranslationField! @goTag(key: "db", value: "planning_to_use_innovation_payment_contractor_note") - - # Page 6 - expectedCalculationComplexityLevel: TranslationFieldWithOptions! @goTag(key: "db", value: "expected_calculation_complexity_level") - expectedCalculationComplexityLevelNote: TranslationField! @goTag(key: "db", value: "expected_calculation_complexity_level_note") - claimsProcessingPrecedence: TranslationFieldWithOptions! @goTag(key: "db", value: "claims_processing_precedence") - claimsProcessingPrecedenceOther: TranslationField! @goTag(key: "db", value: "claims_processing_precedence_other") - claimsProcessingPrecedenceNote: TranslationField! @goTag(key: "db", value: "claims_processing_precedence_note") - canParticipantsSelectBetweenPaymentMechanisms: TranslationFieldWithOptions! @goTag(key: "db", value: "can_participants_select_between_payment_mechanisms") - canParticipantsSelectBetweenPaymentMechanismsHow: TranslationField! @goTag(key: "db", value: "can_participants_select_between_payment_mechanisms_how") - canParticipantsSelectBetweenPaymentMechanismsNote: TranslationField! @goTag(key: "db", value: "can_participants_select_between_payment_mechanisms_note") - anticipatedPaymentFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "anticipated_payment_frequency") - anticipatedPaymentFrequencyContinually: TranslationField! @goTag(key: "db", value: "anticipated_payment_frequency_continually") - anticipatedPaymentFrequencyOther: TranslationField! @goTag(key: "db", value: "anticipated_payment_frequency_other") - anticipatedPaymentFrequencyNote: TranslationField! @goTag(key: "db", value: "anticipated_payment_frequency_note") - - # Page 7 - willRecoverPayments: TranslationFieldWithOptions! @goTag(key: "db", value: "will_recover_payments") - willRecoverPaymentsNote: TranslationField! @goTag(key: "db", value: "will_recover_payments_note") - anticipateReconcilingPaymentsRetrospectively: TranslationFieldWithOptions! @goTag(key: "db", value: "anticipate_reconciling_payments_retrospectively") - anticipateReconcilingPaymentsRetrospectivelyNote: TranslationField! @goTag(key: "db", value: "anticipate_reconciling_payments_retrospectively_note") - paymentReconciliationFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "payment_reconciliation_frequency") - paymentReconciliationFrequencyContinually: TranslationField! @goTag(key: "db", value: "payment_reconciliation_frequency_continually") - paymentReconciliationFrequencyOther: TranslationField! @goTag(key: "db", value: "payment_reconciliation_frequency_other") - paymentReconciliationFrequencyNote: TranslationField! @goTag(key: "db", value: "payment_reconciliation_frequency_note") - paymentDemandRecoupmentFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "payment_demand_recoupment_frequency") - paymentDemandRecoupmentFrequencyContinually: TranslationField! @goTag(key: "db", value: "payment_demand_recoupment_frequency_continually") - paymentDemandRecoupmentFrequencyOther: TranslationField! @goTag(key: "db", value: "payment_demand_recoupment_frequency_other") - paymentDemandRecoupmentFrequencyNote: TranslationField! @goTag(key: "db", value: "payment_demand_recoupment_frequency_note") - paymentStartDate: TranslationField! @goTag(key: "db", value: "payment_start_date") - paymentStartDateNote: TranslationField! @goTag(key: "db", value: "payment_start_date_note") - - readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") - readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") - readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") - readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") - status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") -}`, BuiltIn: false}, - {Name: "../schema/types/plan_tdl.graphql", Input: `type PlanTDL { - id: UUID! - modelPlanID: UUID! - - idNumber: String! - dateInitiated: Time! - title: String! - note: String - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -input PlanTDLCreateInput { - modelPlanID: UUID! - - idNumber: String! - dateInitiated: Time! - title: String! - note: String -} - -input PlanTDLChanges @goModel(model: "map[string]interface{}") { - idNumber: String - dateInitiated: Time - title: String - note: String -} - -extend type Query { - planTDL(id: UUID!): PlanTDL! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - createPlanTDL(input: PlanTDLCreateInput!): PlanTDL! - @hasRole(role: MINT_USER) - - updatePlanTDL(id: UUID!, changes: PlanTDLChanges!): PlanTDL! - @hasRole(role: MINT_USER) - - deletePlanTDL(id: UUID!): PlanTDL! - @hasRole(role: MINT_USER) -}`, BuiltIn: false}, - {Name: "../schema/types/plan_tdl_translation.graphql", Input: `""" -Represents plan tdl translation data -""" - -type PlanTDLTranslation { - idNumber: TranslationField! @goTag(key: "db", value: "id_number") - title: TranslationField! @goTag(key: "db", value: "title") - dateInitiated: TranslationField! @goTag(key: "db", value: "date_initiated") - note: TranslationField! @goTag(key: "db", value: "note") -} -`, BuiltIn: false}, - {Name: "../schema/types/possible_operational_need.graphql", Input: `type PossibleOperationalNeed { - id: Int! - possibleSolutions: [PossibleOperationalSolution!]! - name: String! - key: OperationalNeedKey! - section: TaskListSection - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Query { - possibleOperationalNeeds: [PossibleOperationalNeed!]! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/possible_operational_solution.graphql", Input: `type PossibleOperationalSolution { - id: Int! - name: String! - key: OperationalSolutionKey! - treatAsOther: Boolean! - pointsOfContact: [PossibleOperationalSolutionContact!]! - primaryContact: PossibleOperationalSolutionContact - filterView: ModelViewFilter - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Query { - possibleOperationalSolutions: [PossibleOperationalSolution!]! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/possible_operational_solution_contact.graphql", Input: `""" -PossibleOperationalSolutionContact represents a contact for a possible operational solution -""" -type PossibleOperationalSolutionContact { - id: UUID! - possibleOperationalSolutionID: Int! - - name: String! - email: String! - isTeam: Boolean! - role: String - isPrimary: Boolean! - - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -}`, BuiltIn: false}, - {Name: "../schema/types/prepare_for_clearance.graphql", Input: `enum PrepareForClearanceStatus { - CANNOT_START - READY - IN_PROGRESS - READY_FOR_CLEARANCE -} - -type PrepareForClearance { - status: PrepareForClearanceStatus! - latestClearanceDts: Time -}`, BuiltIn: false}, - {Name: "../schema/types/report_a_problem.graphql", Input: `enum ReportAProblemSection { - READ_VIEW - TASK_LIST - IT_SOLUTIONS - HELP_CENTER - OTHER -} - -enum ReportAProblemSeverity { - PREVENTED_TASK - DELAYED_TASK - MINOR - OTHER -} - -input ReportAProblemInput { - isAnonymousSubmission: Boolean! - allowContact: Boolean - section: ReportAProblemSection - sectionOther: String - whatDoing: String - whatWentWrong: String - severity: ReportAProblemSeverity - severityOther: String -} - -extend type Mutation { - reportAProblem(input: ReportAProblemInput!): Boolean! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/scalars.graphql", Input: `""" -UUIDs are represented using 36 ASCII characters, for example B0511859-ADE6-4A67-8969-16EC280C0E1A -""" -scalar UUID - -""" -Time values are represented as strings using RFC3339 format, for example 2019-10-12T07:20:50G.52Z -""" -scalar Time - -""" -Maps an arbitrary GraphQL value to a map[string]interface{} Go type. -""" -scalar Map - -""" -TaggedHTML represents an input type for HTML that could also include tags that reference another entity -""" -scalar TaggedHTML - -""" -https://gqlgen.com/reference/file-upload/ -Represents a multipart file upload -""" -scalar Upload - -""" -https://gqlgen.com/reference/scalars/#any -Maps an arbitrary GraphQL value to a interface{} Go type. -""" -scalar Any -`, BuiltIn: false}, - {Name: "../schema/types/send_feedback_email.graphql", Input: `enum MintUses { - VIEW_MODEL - EDIT_MODEL - SHARE_MODEL - TRACK_SOLUTIONS - CONTRIBUTE_DISCUSSIONS - VIEW_HELP - OTHER -} - -enum EaseOfUse { - AGREE - DISAGREE - UNSURE -} - -enum SatisfactionLevel { - VERY_SATISFIED - SATISFIED - NEUTRAL - DISSATISFIED - VERY_DISSATISFIED -} - -""" -The inputs to the user feedback form -""" -input SendFeedbackEmailInput { - isAnonymousSubmission: Boolean! - allowContact: Boolean - cmsRole: String - mintUsedFor: [MintUses!] - mintUsedForOther: String - systemEasyToUse: EaseOfUse - systemEasyToUseOther: String - howSatisfied: SatisfactionLevel - howCanWeImprove: String -} - -extend type Mutation { - """ - This mutation sends feedback about the MINT product to the MINT team - """ - sendFeedbackEmail(input: SendFeedbackEmailInput!): Boolean! -}`, BuiltIn: false}, - {Name: "../schema/types/shared_enums.graphql", Input: `enum FrequencyType { - ANNUALLY - SEMIANNUALLY - QUARTERLY - MONTHLY - CONTINUALLY - OTHER -} - -enum YesNoOtherType { - YES - NO - OTHER -} - -enum OverlapType { - YES_NEED_POLICIES - YES_NO_ISSUES - NO -} - -enum TaskStatus { - READY - IN_PROGRESS - READY_FOR_REVIEW - READY_FOR_CLEARANCE -} - -enum ConfidenceType { - NOT_AT_ALL - SLIGHTLY - FAIRLY - COMPLETELY -} - -enum TaskStatusInput { - IN_PROGRESS - READY_FOR_REVIEW - READY_FOR_CLEARANCE -} - -enum TaskListSection { - BASICS, - GENERAL_CHARACTERISTICS, - PARTICIPANTS_AND_PROVIDERS, - BENEFICIARIES, - OPERATIONS_EVALUATION_AND_LEARNING, - PAYMENT, - PREPARE_FOR_CLEARANCE -} - -enum OperationalNeedKey{ - MANAGE_CD - REV_COL_BIDS - UPDATE_CONTRACT - RECRUIT_PARTICIPANTS - REV_SCORE_APP - APP_SUPPORT_CON - COMM_W_PART - MANAGE_PROV_OVERLAP - MANAGE_BEN_OVERLAP - HELPDESK_SUPPORT - IDDOC_SUPPORT - ESTABLISH_BENCH - PROCESS_PART_APPEALS - ACQUIRE_AN_EVAL_CONT - DATA_TO_MONITOR - DATA_TO_SUPPORT_EVAL - CLAIMS_BASED_MEASURES - QUALITY_PERFORMANCE_SCORES - SEND_REPDATA_TO_PART - ACQUIRE_A_LEARN_CONT - PART_TO_PART_COLLAB - EDUCATE_BENEF - ADJUST_FFS_CLAIMS - MANAGE_FFS_EXCL_PAYMENTS - MAKE_NON_CLAIMS_BASED_PAYMENTS - COMPUTE_SHARED_SAVINGS_PAYMENT - RECOVER_PAYMENTS - SIGN_PARTICIPATION_AGREEMENTS - VET_PROVIDERS_FOR_PROGRAM_INTEGRITY - UTILIZE_QUALITY_MEASURES_DEVELOPMENT_CONTRACTOR - IT_PLATFORM_FOR_LEARNING -} - -enum DiscussionUserRole { - CMS_SYSTEM_SERVICE_TEAM, - LEADERSHIP, - MEDICARE_ADMINISTRATIVE_CONTRACTOR, - MINT_TEAM, - IT_LEAD, - MODEL_LEAD, - MODEL_TEAM, - SHARED_SYSTEM_MAINTAINER, - SOLUTION_ARCHITECT, - NONE_OF_THE_ABOVE, -} - -enum OperationalSolutionKey{ - INNOVATION - ACO_OS - APPS - CDX - CCW - CMS_BOX - CMS_QUALTRICS - CBOSC - CONTRACTOR - CPI_VETTING - CROSS_MODEL_CONTRACT - EFT - EXISTING_CMS_DATA_AND_PROCESS - EDFR - GOVDELIVERY - GS - HDR - HPMS - HIGLAS - IPC - IDR - INTERNAL_STAFF - LDG - LV - MDM_POR - MDM_NCBP - MARX - OTHER_NEW_PROCESS - OUTLOOK_MAILBOX - QV - RMADA - ARS - CONNECT - LOI - POST_PORTAL - RFA - SHARED_SYSTEMS - BCDA - ISP - MIDS - MODEL_SPACE -} - -""" -A user role associated with a job code -""" -enum Role { - """ - A basic MINT user - """ - MINT_USER - - """ - A MINT assessment team user - """ - MINT_ASSESSMENT - - """ - A MINT MAC user - """ - MINT_MAC -} - - -""" -These represent all the possible tables in the database, in the public schema. -""" -enum TableName { - activity - analyzed_audit - discussion_reply - existing_model - existing_model_link - model_plan - nda_agreement - operational_need - operational_solution - operational_solution_subtask - plan_basics - plan_beneficiaries - plan_collaborator - plan_cr - plan_data_exchange_approach - plan_discussion - plan_document - plan_document_solution_link - plan_favorite - plan_general_characteristics - plan_ops_eval_and_learning - plan_participants_and_providers - plan_payments - plan_tdl - possible_need_solution_link - possible_operational_need - possible_operational_solution - possible_operational_solution_contact - tag - translated_audit - translated_audit_field - translated_audit_queue - user_account - user_notification - user_notification_preferences - user_view_customization -}`, BuiltIn: false}, - {Name: "../schema/types/tag.graphql", Input: `enum TagType { - USER_ACCOUNT - POSSIBLE_SOLUTION -} - -""" -TaggedEntity is the actual object represented by a tag in the data base. -""" -union TaggedEntity = UserAccount | PossibleOperationalSolution - -""" -TaggedContent represents content that has a tag in it. It is composed of the raw tag text, as well as the array of possible tags -""" -type TaggedContent { - """ - RawContent is HTML. It is sanitized on the backend - """ - rawContent: String! - tags: [Tag!]! -} - -""" -Tag represents an entity tagged in the database -""" -type Tag { - id: UUID! - tagType: TagType! - taggedField: String! - taggedContentTable: String! - taggedContentID: UUID! - entityUUID: UUID - entityIntID: Int - - entity: TaggedEntity - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -}`, BuiltIn: false}, - {Name: "../schema/types/translated_audit.graphql", Input: `""" -TranslatedAuditMetaData is a type that represents all the data that can be captured in a Translated audit -""" -union TranslatedAuditMetaData = TranslatedAuditMetaBaseStruct | TranslatedAuditMetaGeneric | TranslatedAuditMetaDiscussionReply -| TranslatedAuditMetaOperationalNeed | TranslatedAuditMetaOperationalSolution | TranslatedAuditMetaOperationalSolutionSubtask -| TranslatedAuditMetaDocumentSolutionLink - - -type TranslatedAuditMetaBaseStruct { - version: Int! - tableName: TableName! -} -type TranslatedAuditMetaGeneric { - version: Int! - tableName: TableName! - relation: String! - """ - Relation content can be nil under certain situations, for example if a record was deleted before the audit was translated - """ - relationContent: String -} - -""" -TranslatedAuditMetaDiscussionReply is the meta data type that is provided when a translated audit is for a discussion reply -""" -type TranslatedAuditMetaDiscussionReply { - version: Int! - tableName: TableName! - discussionID: UUID! - discussionContent: String! - numberOfReplies: Int! -} - -""" -TranslatedAuditMetaDiscussionReply is the meta data type that is provided when a translated audit is for an operational need -""" -type TranslatedAuditMetaOperationalNeed { - version: Int! - tableName: TableName! - needName: String! - isOther: Boolean! -} -""" -TranslatedAuditMetaOperationalSolution is the meta data type that is provided when a translated audit is for an operational solution -""" -type TranslatedAuditMetaOperationalSolution { - version: Int! - tableName: TableName! - solutionName: String! - solutionOtherHeader: String - solutionIsOther: Boolean! - numberOfSubtasks: Int! - needName: String! - needIsOther: Boolean! - """ - SolutionStatus is the translated value for the type of solution - """ - solutionStatus: String! - solutionMustStart: Time - solutionMustFinish: Time -} -""" -TranslatedAuditMetaOperationalSolutionSubtask is the meta data type that is provided when a translated audit is for an operational solution subtask -""" -type TranslatedAuditMetaOperationalSolutionSubtask { - version: Int! - tableName: TableName! - solutionName: String! - solutionOtherHeader: String - solutionIsOther: Boolean! - numberOfSubtasks: Int! - needName: String! - needIsOther: Boolean! - """ - The name of the subtask. If a subtask is updated, and then deleted before being translated, it is possible for this field to be nil. - """ - subtaskName: String -} - -""" -TranslatedAuditMetaDocumentSolutionLink is the meta data type for a document solution link - -""" -type TranslatedAuditMetaDocumentSolutionLink { - version: Int! - tableName: TableName! - solutionName: String! - solutionOtherHeader: String - solutionIsOther: Boolean! - needName: String! - needIsOther: Boolean! - - # These fields are only present if the document wasn't deleted - - """ - Document Name will be present if the document is still present and not deleted - """ - documentName: String - """ - Document type is the translated value of the document type enum - """ - documentType: String - documentOtherType: String - documentNote: String - """ - Document URL will only be visible if the user is a collaborator, or has assessment permission - """ - documentURL: String - """ - Document Visibility is the translated value of the restricted bool for a document - """ - documentVisibility: String - documentRestricted: Boolean - - - """ - Document ID will always be present, regardless of if a document was deleted or not - """ - documentID: UUID! -} - - -enum TranslatedAuditMetaDataType { - GENERIC - BASE - DISCUSSION_REPLY - OPERATIONAL_NEED - OPERATIONAL_SOLUTION - OPERATIONAL_SOLUTION_SUBTASK - DOCUMENT_SOLUTION_LINK -} - -enum DatabaseOperation { - INSERT - UPDATE - DELETE - TRUNCATE -} - -""" -TranslatedAudit represent a point in time change made to part of application. -""" -type TranslatedAudit { - id: UUID! - modelPlanID: UUID! - - tableID: Int! - tableName: TableName! - primaryKey: UUID! - - date: Time! - action: DatabaseOperation! - - """ - Restricted denotes if this audit should only be visible to users with specific permissions. Currently, that means they are a collaborator or an assessment user - """ - restricted: Boolean! - - - actorID: UUID! - """ - The Common name of the actor who made the changes. This comes from the user account table. - """ - actorName: String! - """ - The id of the audit.Change record that was translated. - """ - changeID: Int! # This points to a specific audit change. - """ - The type of meta data that is stored for this record - """ - metaDataType: TranslatedAuditMetaDataType - """ - The actual meta data stored for this record - """ - metaData: TranslatedAuditMetaData - - """ - The specific fields that were changed by the transaction - """ - translatedFields: [TranslatedAuditField!]! - - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} -enum AuditFieldChangeType { - ANSWERED - UPDATED - REMOVED - """ - This type should not appear for all intents and purposes. It shows up if a value changes from null to empty array or vice versa. - """ - UNCHANGED -} - -enum TranslationQuestionType { - OTHER - NOTE -} - - -type TranslatedAuditField { - id: UUID! - translatedAuditID: UUID! - - """ - This represents whether a field was answered, updated, or had the answer removed - """ - changeType: AuditFieldChangeType! - - dataType: TranslationDataType! - formType: TranslationFormType! - - fieldName: String! - fieldNameTranslated: String! - """ - Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 - """ - fieldOrder: Float! - """ - The label for the parent question that this question refers to - """ - referenceLabel: String - """ - Specifies if this is a specific category of question. Needed for conditionally rendering note details etc - """ - questionType: TranslationQuestionType - """ - Translated Label for questions that are no longer applicable - """ - notApplicableQuestions: [String!] - - - - old: Any - oldTranslated: Any - new: Any - newTranslated: Any - - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -extend type Query { - """ - TranslatedAuditCollection returns a collection of translated audits, with access dependant on who is viewing the audits. - if a user has privileged access, they will see audit changes that are restricted, otherwise only unrestricted - Optional Params - limit: this controls how many records will be returned at once. A null entry will return all records - offset: how many records to skip before returning results. If null, no records will be skipped. - """ - translatedAuditCollection(modelPlanID: UUID!, limit: Int, offset: Int): [TranslatedAudit!] - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} `, BuiltIn: false}, - {Name: "../schema/types/translation.graphql", Input: `# Base types that represents FE translation structure -# Translations are exported from FE for change history, and mapped to these types on the BE - - -""" -Represents the data type of the translation field -""" -enum TranslationDataType { - STRING - NUMBER - BOOLEAN - DATE - ENUM - OBJECT - UUID -} - -""" -Represents the FORM type of the translation field -""" -enum TranslationFormType { - TEXT - TEXTAREA - NUMBER - BOOLEAN - RADIO - CHECKBOX - SELECT - MULTISELECT - DATEPICKER - RANGEINPUT -} - -""" -Represents a translation question with no options -""" -type TranslationField { - gqlField: String! - goField: String! - dbField: String! - label: String! - readonlyLabel: String - sublabel: String - multiSelectLabel: String - isArray: Boolean - dataType: TranslationDataType! - formType: TranslationFormType! - isNote: Boolean - """ - Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 - """ - order: Float! - """ - Is a question a followup to another that doesn't designate it's own readonly question/line - """ - isOtherType: Boolean - """ - Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context - """ - otherParentField: String - """ - Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' - """ - parentReferencesLabel: String - """ - Labels specifically for export/change history. Takes priority over all other labels - """ - exportLabel: String - """ - Table reference for fields that are of dataType UUID and reference a table in the database - """ - tableReference: TableName -} - -""" -Represents a translation question with options -""" -type TranslationFieldWithOptions { - gqlField: String! - goField: String! - dbField: String! - label: String! - readonlyLabel: String - sublabel: String - multiSelectLabel: String - isArray: Boolean - dataType: TranslationDataType! - formType: TranslationFormType! - isNote: Boolean - """ - Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 - """ - order: Float! - """ - Is a question a followup to another that doesn't designate it's own readonly question/line - """ - isOtherType: Boolean - """ - Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context - """ - otherParentField: String - """ - Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' - """ - parentReferencesLabel: String - """ - Labels specifically for export/change history. Takes priority over all other labels - """ - exportLabel: String - """ - Table reference for fields that are of dataType UUID and reference a table in the database - """ - tableReference: TableName - options: Map! - exportOptions: Map -} - -""" -Represents a translation question with no options and a parent -""" -type TranslationFieldWithParent { - gqlField: String! - goField: String! - dbField: String! - label: String! - readonlyLabel: String - sublabel: String - multiSelectLabel: String - isArray: Boolean - dataType: TranslationDataType! - formType: TranslationFormType! - isNote: Boolean - """ - Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 - """ - order: Float! - """ - Is a question a followup to another that doesn't designate it's own readonly question/line - """ - isOtherType: Boolean - """ - Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context - """ - otherParentField: String - """ - Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' - """ - parentReferencesLabel: String - """ - Labels specifically for export/change history. Takes priority over all other labels - """ - exportLabel: String - """ - Table reference for fields that are of dataType UUID and reference a table in the database - """ - tableReference: TableName - parentRelation: TranslationField! -} - -""" -Represents a translation question with options and child/children -""" -type TranslationFieldWithOptionsAndChildren { - gqlField: String! - goField: String! - dbField: String! - label: String! - readonlyLabel: String - sublabel: String - multiSelectLabel: String - isArray: Boolean - dataType: TranslationDataType! - formType: TranslationFormType! - isNote: Boolean - """ - Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 - """ - order: Float! - """ - Is a question a followup to another that doesn't designate it's own readonly question/line - """ - isOtherType: Boolean - """ - Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context - """ - otherParentField: String - """ - Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' - """ - parentReferencesLabel: String - """ - Labels specifically for export/change history. Takes priority over all other labels - """ - exportLabel: String - """ - Table reference for fields that are of dataType UUID and reference a table in the database - """ - tableReference: TableName - options: Map! - exportOptions: Map - childRelation: Map! -} - -""" -Represents a translation question with options and parent -""" -type TranslationFieldWithOptionsAndParent { - gqlField: String! - goField: String! - dbField: String! - label: String! - readonlyLabel: String - sublabel: String - multiSelectLabel: String - isArray: Boolean - dataType: TranslationDataType! - formType: TranslationFormType! - isNote: Boolean - """ - Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 - """ - order: Float! - """ - Is a question a followup to another that doesn't designate it's own readonly question/line - """ - isOtherType: Boolean - """ - Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context - """ - otherParentField: String - """ - Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' - """ - parentReferencesLabel: String - """ - Labels specifically for export/change history. Takes priority over all other labels - """ - exportLabel: String - """ - Table reference for fields that are of dataType UUID and reference a table in the database - """ - tableReference: TableName - options: Map! - exportOptions: Map - parentRelation: TranslationFieldWithOptionsAndChildren! -} - -""" -Represents a translation question with options and parent and children -""" -type TranslationFieldWithParentAndChildren { - gqlField: String! - goField: String! - dbField: String! - label: String! - readonlyLabel: String - sublabel: String - multiSelectLabel: String - isArray: Boolean - dataType: TranslationDataType! - formType: TranslationFormType! - isNote: Boolean - """ - Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 - """ - order: Float! - """ - Is a question a followup to another that doesn't designate it's own readonly question/line - """ - isOtherType: Boolean - """ - Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context - """ - otherParentField: String - """ - Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' - """ - parentReferencesLabel: String - """ - Labels specifically for export/change history. Takes priority over all other labels - """ - exportLabel: String - """ - Table reference for fields that are of dataType UUID and reference a table in the database - """ - tableReference: TableName - options: Map! - exportOptions: Map - parentRelation: TranslationFieldWithOptionsAndChildren! - childRelation: Map! -} - -""" - Represents a translation of enum values. generalName is the human readable name of the enum value, groupedName is an optional field if usually referenced by a difference table/name -""" -type EnumTranslation { - generalName: String! - groupedName: String -} - - -`, BuiltIn: false}, - {Name: "../schema/types/user_account.graphql", Input: `type UserAccount { - id: UUID! - username: String! - isEUAID: Boolean - commonName: String! - locale: String! - email: String! - givenName: String! - familyName: String! - zoneInfo: String! - hasLoggedIn: Boolean -} - -extend type Query { - userAccount(username: String!): UserAccount! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/user_info.graphql", Input: `""" -Represents a person response from the Okta API -""" -type UserInfo { - firstName: String! - lastName: String! - displayName: String! - email: String! - username: String! -} - -extend type Query { - searchOktaUsers(searchTerm: String!): [UserInfo!]! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, - {Name: "../schema/types/user_notification.graphql", Input: ` -""" -UserNotification represents a notification about a specific Activity -""" -type UserNotification { - id: UUID! - activityID: UUID! - userID: UUID! - isRead: Boolean! - inAppSent: Boolean! - emailSent: Boolean! - activity: Activity! - - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time - -} - -""" -This is a wrapper for all information for a user -""" -type UserNotifications { -""" -This returns the number of unread notifications -""" -numUnreadNotifications: Int! -""" -This includes all notifications -""" -notifications: [UserNotification!]! -""" -This renders only the unread notifications -""" -unreadNotifications: [UserNotification!]! -} - - -extend type Mutation { -""" -Marks a single notification as read. It requires that the notification be owned by the context of the user sending this request, or it will fail -""" -markNotificationAsRead(notificationID: UUID!): UserNotification! -""" -Marks all notifications for the current user as read, and returns the updated notifications -""" -markAllNotificationsAsRead: [UserNotification!]! - - -} -`, BuiltIn: false}, - {Name: "../schema/types/user_notification_preferences.graphql", Input: `enum UserNotificationPreferenceFlag { - IN_APP, - EMAIL -} - -enum DatesChangedNotificationType { - ALL_MODELS, - FOLLOWED_MODELS, - MY_MODELS, -} - -enum DataExchangeApproachMarkedCompleteNotificationType { - ALL_MODELS, - FOLLOWED_MODELS, - MY_MODELS, -} - - -""" -UserNotificationPreferences represents a users preferences about what type and where to receive a notification -""" -type UserNotificationPreferences { - id: UUID! - userID: UUID! - - dailyDigestComplete: [UserNotificationPreferenceFlag!]! - - addedAsCollaborator: [UserNotificationPreferenceFlag!]! - - taggedInDiscussion: [UserNotificationPreferenceFlag!]! - - taggedInDiscussionReply: [UserNotificationPreferenceFlag!]! - - newDiscussionReply: [UserNotificationPreferenceFlag!]! - - modelPlanShared: [UserNotificationPreferenceFlag!]! - - newModelPlan: [UserNotificationPreferenceFlag!]! - - datesChanged: [UserNotificationPreferenceFlag!]! - datesChangedNotificationType: DatesChangedNotificationType - - dataExchangeApproachMarkedComplete: [UserNotificationPreferenceFlag!]! - dataExchangeApproachMarkedCompleteNotificationType: DataExchangeApproachMarkedCompleteNotificationType - - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - - -""" -UserNotificationPreferencesChanges represents the ways that a UserNotifications Preferences object can be updated -""" -input UserNotificationPreferencesChanges @goModel(model: "map[string]interface{}") { - - dailyDigestComplete: [UserNotificationPreferenceFlag!] - - addedAsCollaborator: [UserNotificationPreferenceFlag!] - - taggedInDiscussion: [UserNotificationPreferenceFlag!] - - taggedInDiscussionReply: [UserNotificationPreferenceFlag!] - - newDiscussionReply: [UserNotificationPreferenceFlag!] - - modelPlanShared: [UserNotificationPreferenceFlag!] - - newModelPlan: [UserNotificationPreferenceFlag!] - - datesChanged: [UserNotificationPreferenceFlag!] - datesChangedNotificationType: DatesChangedNotificationType - - dataExchangeApproachMarkedComplete: [UserNotificationPreferenceFlag!] - dataExchangeApproachMarkedCompleteNotificationType: DataExchangeApproachMarkedCompleteNotificationType -} - -extend type Mutation { - -""" -Sets the notification preferences of a user. -""" -updateUserNotificationPreferences(changes: UserNotificationPreferencesChanges!): UserNotificationPreferences! -}`, BuiltIn: false}, - {Name: "../schema/types/user_view_customization.graphql", Input: `enum ViewCustomizationType { - MY_MODEL_PLANS - ALL_MODEL_PLANS - FOLLOWED_MODELS - MODELS_WITH_CR_TDL - MODELS_BY_OPERATIONAL_SOLUTION - MODELS_APPROACHING_CLEARANCE -} - -type UserViewCustomization { - id: UUID! - userId: UUID! - userAccount: UserAccount! - viewCustomization: [ViewCustomizationType!]! - possibleOperationalSolutions: [OperationalSolutionKey!]! - createdBy: UUID! - createdByUserAccount: UserAccount! - createdDts: Time! - modifiedBy: UUID - modifiedByUserAccount: UserAccount - modifiedDts: Time -} - -input UserViewCustomizationChanges @goModel(model: "map[string]interface{}") { - viewCustomization: [ViewCustomizationType!] - possibleOperationalSolutions: [OperationalSolutionKey!] -} - -extend type Query { - userViewCustomization: UserViewCustomization! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -} - -extend type Mutation { - updateUserViewCustomization(changes: UserViewCustomizationChanges!): UserViewCustomization! - @hasAnyRole(roles: [MINT_USER, MINT_MAC]) -}`, BuiltIn: false}, -} -var parsedSchema = gqlparser.MustLoadSchema(sources...) - -// endregion ************************** generated!.gotpl ************************** - -// region ***************************** args.gotpl ***************************** - -func (ec *executionContext) dir_hasAnyRole_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 []model.Role - if tmp, ok := rawArgs["roles"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roles")) - arg0, err = ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, tmp) - if err != nil { - return nil, err - } - } - args["roles"] = arg0 - return args, nil -} - -func (ec *executionContext) dir_hasRole_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.Role - if tmp, ok := rawArgs["role"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - arg0, err = ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, tmp) - if err != nil { - return nil, err - } - } - args["role"] = arg0 - return args, nil -} - -func (ec *executionContext) field_ModelPlan_nameHistory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 models.SortDirection - if tmp, ok := rawArgs["sort"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) - arg0, err = ec.unmarshalNSortDirection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐSortDirection(ctx, tmp) - if err != nil { - return nil, err - } - } - args["sort"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_addOrUpdateCustomOperationalNeed_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 string - if tmp, ok := rawArgs["customNeedType"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("customNeedType")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["customNeedType"] = arg1 - var arg2 bool - if tmp, ok := rawArgs["needed"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("needed")) - arg2, err = ec.unmarshalNBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["needed"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Mutation_addPlanFavorite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_agreeToNDA_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["agree"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agree")) - arg0, err = ec.unmarshalNBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["agree"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createDiscussionReply_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.DiscussionReplyCreateInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNDiscussionReplyCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDiscussionReplyCreateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createMTOCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 string - if tmp, ok := rawArgs["name"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["name"] = arg1 - var arg2 *uuid.UUID - if tmp, ok := rawArgs["parentID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentID")) - arg2, err = ec.unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["parentID"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Mutation_createMTOMilestoneCommon_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 models.MTOCommonMilestoneKey - if tmp, ok := rawArgs["commonMilestoneKey"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("commonMilestoneKey")) - arg1, err = ec.unmarshalNMTOCommonMilestoneKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx, tmp) - if err != nil { - return nil, err - } - } - args["commonMilestoneKey"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_createMTOMilestoneCustom_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 string - if tmp, ok := rawArgs["name"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["name"] = arg1 - var arg2 *uuid.UUID - if tmp, ok := rawArgs["mtoCategoryID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mtoCategoryID")) - arg2, err = ec.unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["mtoCategoryID"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Mutation_createMTOSolutionCommon_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 models.MTOCommonSolutionKey - if tmp, ok := rawArgs["key"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) - arg1, err = ec.unmarshalNMTOCommonSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx, tmp) - if err != nil { - return nil, err - } - } - args["key"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_createMTOSolutionCustom_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 models.MTOSolutionType - if tmp, ok := rawArgs["solutionType"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionType")) - arg1, err = ec.unmarshalNMTOSolutionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["solutionType"] = arg1 - var arg2 string - if tmp, ok := rawArgs["name"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - arg2, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["name"] = arg2 - var arg3 string - if tmp, ok := rawArgs["pocName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pocName")) - arg3, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["pocName"] = arg3 - var arg4 string - if tmp, ok := rawArgs["pocEmail"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pocEmail")) - arg4, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["pocEmail"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Mutation_createModelPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["modelName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelName"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createOperationalSolutionSubtasks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["solutionID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["solutionID"] = arg0 - var arg1 []*model.CreateOperationalSolutionSubtaskInput - if tmp, ok := rawArgs["inputs"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inputs")) - arg1, err = ec.unmarshalNCreateOperationalSolutionSubtaskInput2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCreateOperationalSolutionSubtaskInputᚄ(ctx, tmp) - if err != nil { - return nil, err - } - } - args["inputs"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_createOperationalSolution_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["operationalNeedID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationalNeedID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["operationalNeedID"] = arg0 - var arg1 *models.OperationalSolutionKey - if tmp, ok := rawArgs["solutionType"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionType")) - arg1, err = ec.unmarshalOOperationalSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, tmp) - if err != nil { - return nil, err - } - } - args["solutionType"] = arg1 - var arg2 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg2, err = ec.unmarshalNOperationalSolutionChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Mutation_createPlanCR_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.PlanCRCreateInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNPlanCRCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanCRCreateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createPlanCollaborator_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.PlanCollaboratorCreateInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNPlanCollaboratorCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanCollaboratorCreateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createPlanDiscussion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.PlanDiscussionCreateInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNPlanDiscussionCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDiscussionCreateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createPlanDocumentSolutionLinks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["solutionID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["solutionID"] = arg0 - var arg1 []uuid.UUID - if tmp, ok := rawArgs["documentIDs"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIDs")) - arg1, err = ec.unmarshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, tmp) - if err != nil { - return nil, err - } - } - args["documentIDs"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_createPlanTDL_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.PlanTDLCreateInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNPlanTDLCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanTDLCreateInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteOperationalSolutionSubtask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deletePlanCR_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deletePlanCollaborator_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deletePlanDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deletePlanFavorite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deletePlanTDL_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_linkNewPlanDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.PlanDocumentLinkInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNPlanDocumentLinkInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDocumentLinkInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_lockLockableSection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 models.LockableSection - if tmp, ok := rawArgs["section"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("section")) - arg1, err = ec.unmarshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx, tmp) - if err != nil { - return nil, err - } - } - args["section"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_markMTOReadyForReview_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 bool - if tmp, ok := rawArgs["readyForReview"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("readyForReview")) - arg1, err = ec.unmarshalNBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["readyForReview"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_markNotificationAsRead_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["notificationID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notificationID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["notificationID"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_removePlanDocumentSolutionLinks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["solutionID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["solutionID"] = arg0 - var arg1 []uuid.UUID - if tmp, ok := rawArgs["documentIDs"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIDs")) - arg1, err = ec.unmarshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, tmp) - if err != nil { - return nil, err - } - } - args["documentIDs"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_renameMTOCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 string - if tmp, ok := rawArgs["name"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["name"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_reorderMTOCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["newOrder"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("newOrder")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } - } - args["newOrder"] = arg1 - var arg2 *uuid.UUID - if tmp, ok := rawArgs["parentID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentID")) - arg2, err = ec.unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["parentID"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Mutation_reportAProblem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.ReportAProblemInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNReportAProblemInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_sendFeedbackEmail_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.SendFeedbackEmailInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNSendFeedbackEmailInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSendFeedbackEmailInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_shareModelPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 *models.ModelViewFilter - if tmp, ok := rawArgs["viewFilter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("viewFilter")) - arg1, err = ec.unmarshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx, tmp) - if err != nil { - return nil, err - } - } - args["viewFilter"] = arg1 - var arg2 []string - if tmp, ok := rawArgs["usernames"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("usernames")) - arg2, err = ec.unmarshalNString2ᚕstringᚄ(ctx, tmp) - if err != nil { - return nil, err - } - } - args["usernames"] = arg2 - var arg3 *string - if tmp, ok := rawArgs["optionalMessage"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("optionalMessage")) - arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["optionalMessage"] = arg3 - return args, nil -} - -func (ec *executionContext) field_Mutation_unlockAllLockableSections_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_unlockLockableSection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 models.LockableSection - if tmp, ok := rawArgs["section"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("section")) - arg1, err = ec.unmarshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx, tmp) - if err != nil { - return nil, err - } - } - args["section"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateCustomOperationalNeedByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["customNeedType"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("customNeedType")) - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } - } - args["customNeedType"] = arg1 - var arg2 bool - if tmp, ok := rawArgs["needed"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("needed")) - arg2, err = ec.unmarshalNBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["needed"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateExistingModelLinks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 models.ExisitingModelLinkFieldType - if tmp, ok := rawArgs["fieldName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldName")) - arg1, err = ec.unmarshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx, tmp) - if err != nil { - return nil, err - } - } - args["fieldName"] = arg1 - var arg2 []int - if tmp, ok := rawArgs["existingModelIDs"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("existingModelIDs")) - arg2, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) - if err != nil { - return nil, err - } - } - args["existingModelIDs"] = arg2 - var arg3 []uuid.UUID - if tmp, ok := rawArgs["currentModelPlanIDs"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("currentModelPlanIDs")) - arg3, err = ec.unmarshalOUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, tmp) - if err != nil { - return nil, err - } - } - args["currentModelPlanIDs"] = arg3 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateMTOMilestone_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNMTOMilestoneChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateMTOSolution_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNMTOSolutionChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateModelPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNModelPlanChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateOperationalSolutionSubtasks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 []*model.UpdateOperationalSolutionSubtaskInput - if tmp, ok := rawArgs["inputs"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inputs")) - arg0, err = ec.unmarshalNUpdateOperationalSolutionSubtaskInput2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐUpdateOperationalSolutionSubtaskInputᚄ(ctx, tmp) - if err != nil { - return nil, err - } - } - args["inputs"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateOperationalSolution_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNOperationalSolutionChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanBasics_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNPlanBasicsChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanBeneficiaries_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNPlanBeneficiariesChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanCR_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNPlanCRChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanCollaborator_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 []models.TeamRole - if tmp, ok := rawArgs["newRoles"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("newRoles")) - arg1, err = ec.unmarshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx, tmp) - if err != nil { - return nil, err - } - } - args["newRoles"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanDataExchangeApproach_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNPlanDataExchangeApproachChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanGeneralCharacteristics_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNPlanGeneralCharacteristicsChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanOpsEvalAndLearning_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNPlanOpsEvalAndLearningChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanParticipantsAndProviders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNPlanParticipantsAndProvidersChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanPayments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNPlanPaymentsChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updatePlanTDL_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg1, err = ec.unmarshalNPlanTDLChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateUserNotificationPreferences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg0, err = ec.unmarshalNUserNotificationPreferencesChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateUserViewCustomization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 map[string]interface{} - if tmp, ok := rawArgs["changes"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - arg0, err = ec.unmarshalNUserViewCustomizationChanges2map(ctx, tmp) - if err != nil { - return nil, err - } - } - args["changes"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_uploadNewPlanDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.PlanDocumentInput - if tmp, ok := rawArgs["input"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - arg0, err = ec.unmarshalNPlanDocumentInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDocumentInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_OperationalNeed_solutions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeNotNeeded"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeNotNeeded")) - arg0, err = ec.unmarshalNBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["includeNotNeeded"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["name"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["name"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_analyzedAudits_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 time.Time - if tmp, ok := rawArgs["dateAnalyzed"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateAnalyzed")) - arg0, err = ec.unmarshalNTime2timeᚐTime(ctx, tmp) - if err != nil { - return nil, err - } - } - args["dateAnalyzed"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_auditChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 models.TableName - if tmp, ok := rawArgs["tableName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tableName")) - arg0, err = ec.unmarshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, tmp) - if err != nil { - return nil, err - } - } - args["tableName"] = arg0 - var arg1 uuid.UUID - if tmp, ok := rawArgs["primaryKey"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("primaryKey")) - arg1, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["primaryKey"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Query_existingModelLink_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_lockableSectionLocks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_modelPlanCollection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 model.ModelPlanFilter - if tmp, ok := rawArgs["filter"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - arg0, err = ec.unmarshalNModelPlanFilter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelPlanFilter(ctx, tmp) - if err != nil { - return nil, err - } - } - args["filter"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_modelPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_modelPlansByOperationalSolutionKey_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 models.OperationalSolutionKey - if tmp, ok := rawArgs["operationalSolutionKey"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationalSolutionKey")) - arg0, err = ec.unmarshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, tmp) - if err != nil { - return nil, err - } - } - args["operationalSolutionKey"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_operationalNeed_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_operationalSolution_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_operationalSolutions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["operationalNeedID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationalNeedID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["operationalNeedID"] = arg0 - var arg1 bool - if tmp, ok := rawArgs["includeNotNeeded"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeNotNeeded")) - arg1, err = ec.unmarshalNBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["includeNotNeeded"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Query_planCR_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_planCollaboratorByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_planDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_planPayments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_planTDL_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_searchOktaUsers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["searchTerm"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("searchTerm")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["searchTerm"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_translatedAuditCollection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } - } - args["limit"] = arg1 - var arg2 *int - if tmp, ok := rawArgs["offset"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) - arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } - } - args["offset"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Query_userAccount_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["username"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("username")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["username"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Subscription_onLockLockableSectionContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Subscription_onLockableSectionLocksChanged_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 uuid.UUID - if tmp, ok := rawArgs["modelPlanID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["modelPlanID"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["includeDeprecated"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["includeDeprecated"] = arg0 - return args, nil -} - -// endregion ***************************** args.gotpl ***************************** - -// region ************************** directives.gotpl ************************** - -// endregion ************************** directives.gotpl ************************** - -// region **************************** field.gotpl ***************************** - -func (ec *executionContext) _Activity_id(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_actorID(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_actorID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActorID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_actorID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_actorUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_actorUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Activity().ActorUserAccount(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_actorUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_entityID(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_entityID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EntityID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_entityID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_activityType(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_activityType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActivityType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_activityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_metaData(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_metaData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MetaData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityMetaData) - fc.Result = res - return ec.marshalNActivityMetaData2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityMetaData(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_metaData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityMetaData does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AddedAsCollaboratorMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AddedAsCollaboratorMeta_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AddedAsCollaboratorMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AddedAsCollaboratorMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AddedAsCollaboratorMeta_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AddedAsCollaboratorMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AddedAsCollaboratorMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AddedAsCollaboratorMeta_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AddedAsCollaboratorMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AddedAsCollaboratorMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AddedAsCollaboratorMeta_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.AddedAsCollaboratorMeta().ModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AddedAsCollaboratorMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AddedAsCollaboratorMeta_collaboratorID(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AddedAsCollaboratorMeta_collaboratorID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CollaboratorID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_collaboratorID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AddedAsCollaboratorMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AddedAsCollaboratorMeta_collaborator(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AddedAsCollaboratorMeta_collaborator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.AddedAsCollaboratorMeta().Collaborator(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanCollaborator) - fc.Result = res - return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_collaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AddedAsCollaboratorMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCollaborator_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) - case "userID": - return ec.fieldContext_PlanCollaborator_userID(ctx, field) - case "userAccount": - return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) - case "teamRoles": - return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_id(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_modelName(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_modelName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_modelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_date(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_date(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Date, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_changes(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_changes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Changes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.AnalyzedAuditChange) - fc.Result = res - return ec.marshalNAnalyzedAuditChange2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditChange(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_changes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "modelPlan": - return ec.fieldContext_AnalyzedAuditChange_modelPlan(ctx, field) - case "documents": - return ec.fieldContext_AnalyzedAuditChange_documents(ctx, field) - case "crTdls": - return ec.fieldContext_AnalyzedAuditChange_crTdls(ctx, field) - case "planSections": - return ec.fieldContext_AnalyzedAuditChange_planSections(ctx, field) - case "modelLeads": - return ec.fieldContext_AnalyzedAuditChange_modelLeads(ctx, field) - case "planDiscussions": - return ec.fieldContext_AnalyzedAuditChange_planDiscussions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedAuditChange", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAudit_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAudit_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAudit_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAuditChange_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAuditChange_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlan, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.AnalyzedModelPlan) - fc.Result = res - return ec.marshalOAnalyzedModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAuditChange_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "oldName": - return ec.fieldContext_AnalyzedModelPlan_oldName(ctx, field) - case "statusChanges": - return ec.fieldContext_AnalyzedModelPlan_statusChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAuditChange_documents(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAuditChange_documents(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Documents, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.AnalyzedDocuments) - fc.Result = res - return ec.marshalOAnalyzedDocuments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedDocuments(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAuditChange_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "count": - return ec.fieldContext_AnalyzedDocuments_count(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedDocuments", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAuditChange_crTdls(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAuditChange_crTdls(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CrTdls, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.AnalyzedCrTdls) - fc.Result = res - return ec.marshalOAnalyzedCrTdls2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedCrTdls(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAuditChange_crTdls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "activity": - return ec.fieldContext_AnalyzedCrTdls_activity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedCrTdls", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAuditChange_planSections(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAuditChange_planSections(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanSections, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.AnalyzedPlanSections) - fc.Result = res - return ec.marshalOAnalyzedPlanSections2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedPlanSections(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAuditChange_planSections(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "updated": - return ec.fieldContext_AnalyzedPlanSections_updated(ctx, field) - case "readyForReview": - return ec.fieldContext_AnalyzedPlanSections_readyForReview(ctx, field) - case "readyForClearance": - return ec.fieldContext_AnalyzedPlanSections_readyForClearance(ctx, field) - case "dataExchangeApproachMarkedComplete": - return ec.fieldContext_AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedPlanSections", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAuditChange_modelLeads(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAuditChange_modelLeads(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelLeads, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.AnalyzedModelLeads) - fc.Result = res - return ec.marshalOAnalyzedModelLeads2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeads(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAuditChange_modelLeads(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "added": - return ec.fieldContext_AnalyzedModelLeads_added(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedModelLeads", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedAuditChange_planDiscussions(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedAuditChange_planDiscussions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanDiscussions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.AnalyzedPlanDiscussions) - fc.Result = res - return ec.marshalOAnalyzedPlanDiscussions2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedPlanDiscussions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedAuditChange_planDiscussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedAuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "activity": - return ec.fieldContext_AnalyzedPlanDiscussions_activity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedPlanDiscussions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedCrTdls_activity(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedCrTdls) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedCrTdls_activity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Activity, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedCrTdls_activity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedCrTdls", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedDocuments_count(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedDocuments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedDocuments_count(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Count, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalOInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedDocuments_count(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedDocuments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedModelLeadInfo_id(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelLeadInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedModelLeadInfo_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedModelLeadInfo_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedModelLeadInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedModelLeadInfo_userAccount(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelLeadInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedModelLeadInfo_userAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.AnalyzedModelLeadInfo().UserAccount(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedModelLeadInfo_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedModelLeadInfo", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedModelLeadInfo_commonName(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelLeadInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedModelLeadInfo_commonName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommonName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedModelLeadInfo_commonName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedModelLeadInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedModelLeads_added(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelLeads) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedModelLeads_added(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Added, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.AnalyzedModelLeadInfo) - fc.Result = res - return ec.marshalNAnalyzedModelLeadInfo2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeadInfoᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedModelLeads_added(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedModelLeads", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_AnalyzedModelLeadInfo_id(ctx, field) - case "userAccount": - return ec.fieldContext_AnalyzedModelLeadInfo_userAccount(ctx, field) - case "commonName": - return ec.fieldContext_AnalyzedModelLeadInfo_commonName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedModelLeadInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedModelPlan_oldName(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedModelPlan_oldName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OldName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedModelPlan_oldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedModelPlan_statusChanges(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedModelPlan_statusChanges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StatusChanges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedModelPlan_statusChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedPlanDiscussions_activity(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanDiscussions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedPlanDiscussions_activity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Activity, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedPlanDiscussions_activity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedPlanDiscussions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedPlanSections_updated(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanSections) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedPlanSections_updated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Updated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.TableName) - fc.Result = res - return ec.marshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedPlanSections_updated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedPlanSections", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedPlanSections_readyForReview(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanSections) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedPlanSections_readyForReview(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReview, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.TableName) - fc.Result = res - return ec.marshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedPlanSections_readyForReview(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedPlanSections", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedPlanSections_readyForClearance(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanSections) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedPlanSections_readyForClearance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearance, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.TableName) - fc.Result = res - return ec.marshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedPlanSections_readyForClearance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedPlanSections", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanSections) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataExchangeApproachMarkedComplete, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AnalyzedPlanSections", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditChange_id(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditChange_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditChange_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditChange_primaryKey(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditChange_primaryKey(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrimaryKey, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditChange_primaryKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditChange_foreignKey(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditChange_foreignKey(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ForeignKey, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditChange_foreignKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditChange_tableName(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditChange_tableName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TableName) - fc.Result = res - return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditChange_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditChange_action(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditChange_action(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Action, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditChange_action(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditChange_fields(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditChange_fields(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.AuditChange().Fields(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalNMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditChange_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditChange", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditChange_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditChange_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditChange_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditChange_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditChange_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditChange_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditChange", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditChange_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditChange_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditChange_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CurrentUser_launchDarkly(ctx context.Context, field graphql.CollectedField, obj *models.CurrentUser) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CurrentUser_launchDarkly(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.CurrentUser().LaunchDarkly(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.LaunchDarklySettings) - fc.Result = res - return ec.marshalNLaunchDarklySettings2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLaunchDarklySettings(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CurrentUser_launchDarkly(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CurrentUser", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userKey": - return ec.fieldContext_LaunchDarklySettings_userKey(ctx, field) - case "signedHash": - return ec.fieldContext_LaunchDarklySettings_signedHash(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type LaunchDarklySettings", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CurrentUser_account(ctx context.Context, field graphql.CollectedField, obj *models.CurrentUser) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CurrentUser_account(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.CurrentUser().Account(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CurrentUser_account(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CurrentUser", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CurrentUser_notifications(ctx context.Context, field graphql.CollectedField, obj *models.CurrentUser) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CurrentUser_notifications(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.CurrentUser().Notifications(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.UserNotifications) - fc.Result = res - return ec.marshalNUserNotifications2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotifications(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CurrentUser_notifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CurrentUser", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "numUnreadNotifications": - return ec.fieldContext_UserNotifications_numUnreadNotifications(ctx, field) - case "notifications": - return ec.fieldContext_UserNotifications_notifications(ctx, field) - case "unreadNotifications": - return ec.fieldContext_UserNotifications_unreadNotifications(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserNotifications", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CurrentUser_notificationPreferences(ctx context.Context, field graphql.CollectedField, obj *models.CurrentUser) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CurrentUser_notificationPreferences(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.CurrentUser().NotificationPreferences(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.UserNotificationPreferences) - fc.Result = res - return ec.marshalNUserNotificationPreferences2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferences(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CurrentUser_notificationPreferences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CurrentUser", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserNotificationPreferences_id(ctx, field) - case "userID": - return ec.fieldContext_UserNotificationPreferences_userID(ctx, field) - case "dailyDigestComplete": - return ec.fieldContext_UserNotificationPreferences_dailyDigestComplete(ctx, field) - case "addedAsCollaborator": - return ec.fieldContext_UserNotificationPreferences_addedAsCollaborator(ctx, field) - case "taggedInDiscussion": - return ec.fieldContext_UserNotificationPreferences_taggedInDiscussion(ctx, field) - case "taggedInDiscussionReply": - return ec.fieldContext_UserNotificationPreferences_taggedInDiscussionReply(ctx, field) - case "newDiscussionReply": - return ec.fieldContext_UserNotificationPreferences_newDiscussionReply(ctx, field) - case "modelPlanShared": - return ec.fieldContext_UserNotificationPreferences_modelPlanShared(ctx, field) - case "newModelPlan": - return ec.fieldContext_UserNotificationPreferences_newModelPlan(ctx, field) - case "datesChanged": - return ec.fieldContext_UserNotificationPreferences_datesChanged(ctx, field) - case "datesChangedNotificationType": - return ec.fieldContext_UserNotificationPreferences_datesChangedNotificationType(ctx, field) - case "dataExchangeApproachMarkedComplete": - return ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx, field) - case "dataExchangeApproachMarkedCompleteNotificationType": - return ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx, field) - case "createdBy": - return ec.fieldContext_UserNotificationPreferences_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_UserNotificationPreferences_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_UserNotificationPreferences_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_UserNotificationPreferences_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_UserNotificationPreferences_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_UserNotificationPreferences_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserNotificationPreferences", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DailyDigestCompleteActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DailyDigestCompleteActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DailyDigestCompleteActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DailyDigestCompleteActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DailyDigestCompleteActivityMeta_modelPlanIDs(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_modelPlanIDs(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanIDs, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]uuid.UUID) - fc.Result = res - return ec.marshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_modelPlanIDs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DailyDigestCompleteActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DailyDigestCompleteActivityMeta_analyzedAudits(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_analyzedAudits(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.DailyDigestCompleteActivityMeta().AnalyzedAudits(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.AnalyzedAudit) - fc.Result = res - return ec.marshalNAnalyzedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_analyzedAudits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DailyDigestCompleteActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_AnalyzedAudit_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_AnalyzedAudit_modelPlanID(ctx, field) - case "modelName": - return ec.fieldContext_AnalyzedAudit_modelName(ctx, field) - case "date": - return ec.fieldContext_AnalyzedAudit_date(ctx, field) - case "changes": - return ec.fieldContext_AnalyzedAudit_changes(ctx, field) - case "createdBy": - return ec.fieldContext_AnalyzedAudit_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_AnalyzedAudit_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_AnalyzedAudit_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_AnalyzedAudit_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_AnalyzedAudit_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_AnalyzedAudit_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedAudit", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DailyDigestCompleteActivityMeta_userID(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_userID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DailyDigestCompleteActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DailyDigestCompleteActivityMeta_date(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_date(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Date, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DailyDigestCompleteActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DateChange_isChanged(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DateChange_isChanged(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsChanged, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DateChange_isChanged(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DateChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DateChange_field(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DateChange_field(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Field, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.DateChangeFieldType) - fc.Result = res - return ec.marshalNDateChangeFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeFieldType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DateChange_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DateChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateChangeFieldType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DateChange_isRange(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DateChange_isRange(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsRange, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DateChange_isRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DateChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DateChange_oldDate(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DateChange_oldDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OldDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DateChange_oldDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DateChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DateChange_newDate(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DateChange_newDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NewDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DateChange_newDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DateChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DateChange_oldRangeStart(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DateChange_oldRangeStart(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OldRangeStart, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DateChange_oldRangeStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DateChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DateChange_oldRangeEnd(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DateChange_oldRangeEnd(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OldRangeEnd, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DateChange_oldRangeEnd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DateChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DateChange_newRangeStart(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DateChange_newRangeStart(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NewRangeStart, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DateChange_newRangeStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DateChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DateChange_newRangeEnd(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DateChange_newRangeEnd(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NewRangeEnd, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DateChange_newRangeEnd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DateChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DatesChangedActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DatesChangedActivityMeta_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DatesChangedActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatesChangedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DatesChangedActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DatesChangedActivityMeta_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DatesChangedActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatesChangedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DatesChangedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DatesChangedActivityMeta_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DatesChangedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatesChangedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DatesChangedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DatesChangedActivityMeta_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.DatesChangedActivityMeta().ModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DatesChangedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatesChangedActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DatesChangedActivityMeta_dateChanges(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DatesChangedActivityMeta_dateChanges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateChanges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.DateChange) - fc.Result = res - return ec.marshalNDateChange2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DatesChangedActivityMeta_dateChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatesChangedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "isChanged": - return ec.fieldContext_DateChange_isChanged(ctx, field) - case "field": - return ec.fieldContext_DateChange_field(ctx, field) - case "isRange": - return ec.fieldContext_DateChange_isRange(ctx, field) - case "oldDate": - return ec.fieldContext_DateChange_oldDate(ctx, field) - case "newDate": - return ec.fieldContext_DateChange_newDate(ctx, field) - case "oldRangeStart": - return ec.fieldContext_DateChange_oldRangeStart(ctx, field) - case "oldRangeEnd": - return ec.fieldContext_DateChange_oldRangeEnd(ctx, field) - case "newRangeStart": - return ec.fieldContext_DateChange_newRangeStart(ctx, field) - case "newRangeEnd": - return ec.fieldContext_DateChange_newRangeEnd(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DateChange", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_id(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_discussionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DiscussionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_content(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_content(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.DiscussionReply().Content(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TaggedContent) - fc.Result = res - return ec.marshalOTaggedContent2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedContent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "rawContent": - return ec.fieldContext_TaggedContent_rawContent(ctx, field) - case "tags": - return ec.fieldContext_TaggedContent_tags(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaggedContent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_userRole(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_userRole(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRole, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.DiscussionUserRole) - fc.Result = res - return ec.marshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiscussionUserRole does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRoleDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_isAssessment(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_isAssessment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsAssessment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReply_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReply_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReplyTranslation_userRole(ctx context.Context, field graphql.CollectedField, obj *model.DiscussionReplyTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReplyTranslation_userRole(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRole, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReplyTranslation_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReplyTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReplyTranslation_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *model.DiscussionReplyTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReplyTranslation_userRoleDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRoleDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReplyTranslation_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReplyTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReplyTranslation_content(ctx context.Context, field graphql.CollectedField, obj *model.DiscussionReplyTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReplyTranslation_content(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Content, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReplyTranslation_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReplyTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionReplyTranslation_isAssessment(ctx context.Context, field graphql.CollectedField, obj *model.DiscussionReplyTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionReplyTranslation_isAssessment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsAssessment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionReplyTranslation_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionReplyTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionRoleSelection_userRole(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionRoleSelection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionRoleSelection_userRole(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRole, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.DiscussionUserRole) - fc.Result = res - return ec.marshalNDiscussionUserRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionRoleSelection_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionRoleSelection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiscussionUserRole does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DiscussionRoleSelection_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionRoleSelection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DiscussionRoleSelection_userRoleDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRoleDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DiscussionRoleSelection_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionRoleSelection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_id(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CrNumber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_versionNum(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_versionNum(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.VersionNum, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_versionNum(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_initiator(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_initiator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Initiator, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_initiator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_firstName(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_firstName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FirstName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_lastName(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_lastName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_title(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_title(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Title, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_sensitiveFlag(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_sensitiveFlag(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SensitiveFlag, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_sensitiveFlag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_implementationDate(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_implementationDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ImplementationDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_implementationDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_crSummary(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_crSummary(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CrSummary, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TaggedContent) - fc.Result = res - return ec.marshalOTaggedContent2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedContent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_crSummary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "rawContent": - return ec.fieldContext_TaggedContent_rawContent(ctx, field) - case "tags": - return ec.fieldContext_TaggedContent_tags(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaggedContent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_crStatus(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_crStatus(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CrStatus, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_crStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_emergencyCrFlag(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_emergencyCrFlag(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EmergencyCrFlag, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_emergencyCrFlag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_relatedCrNumbers(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_relatedCrNumbers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RelatedCrNumbers, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_relatedCrNumbers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_relatedCrTdlNumbers(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_relatedCrTdlNumbers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RelatedCrTdlNumbers, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_relatedCrTdlNumbers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpCR_associatedModelUids(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpCR_associatedModelUids(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AssociatedModelUids, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpCR_associatedModelUids(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpTDL_id(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpTDL_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TdlNumber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpTDL_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpTDL_versionNum(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpTDL_versionNum(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.VersionNum, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpTDL_versionNum(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpTDL_initiator(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpTDL_initiator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Initiator, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpTDL_initiator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpTDL_firstName(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpTDL_firstName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FirstName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpTDL_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpTDL_lastName(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpTDL_lastName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpTDL_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpTDL_title(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpTDL_title(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Title, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpTDL_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpTDL_issuedDate(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpTDL_issuedDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IssuedDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpTDL_issuedDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpTDL_status(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpTDL_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpTDL_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EChimpTDL_associatedModelUids(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EChimpTDL_associatedModelUids(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AssociatedModelUids, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EChimpTDL_associatedModelUids(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EChimpTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EnumTranslation_generalName(ctx context.Context, field graphql.CollectedField, obj *models.EnumTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EnumTranslation_generalName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeneralName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EnumTranslation_generalName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EnumTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EnumTranslation_groupedName(ctx context.Context, field graphql.CollectedField, obj *models.EnumTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EnumTranslation_groupedName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GroupedName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EnumTranslation_groupedName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EnumTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_id(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalOInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_modelName(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_modelName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_modelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_stage(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_stage(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Stage, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_stage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_numberOfParticipants(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_numberOfParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberOfParticipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_numberOfParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_category(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_category(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Category, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_category(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_authority(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_authority(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Authority, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_authority(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_description(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_numberOfBeneficiariesImpacted(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_numberOfBeneficiariesImpacted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberOfBeneficiariesImpacted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_numberOfBeneficiariesImpacted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_numberOfPhysiciansImpacted(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_numberOfPhysiciansImpacted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberOfPhysiciansImpacted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_numberOfPhysiciansImpacted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_dateBegan(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_dateBegan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateBegan, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_dateBegan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_dateEnded(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_dateEnded(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateEnded, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_dateEnded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_states(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_states(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.States, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_states(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_keywords(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_keywords(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Keywords, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_keywords(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_url(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_url(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.URL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_displayModelSummary(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_displayModelSummary(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DisplayModelSummary, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_displayModelSummary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModel_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModel_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModel_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModel", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_id(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_existingModelID(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_existingModelID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExistingModelID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_existingModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_currentModelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_currentModelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CurrentModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_currentModelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_fieldName(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_fieldName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FieldName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ExisitingModelLinkFieldType) - fc.Result = res - return ec.marshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_fieldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ExisitingModelLinkFieldType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_model(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_model(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ExistingModelLink().Model(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.LinkedExistingModel) - fc.Result = res - return ec.marshalNLinkedExistingModel2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLinkedExistingModel(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_model(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type LinkedExistingModel does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLink_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLink_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLink_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLinkTranslation_existingModelID(ctx context.Context, field graphql.CollectedField, obj *model.ExistingModelLinkTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLinkTranslation_existingModelID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExistingModelID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLinkTranslation_existingModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLinkTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLinkTranslation_currentModelPlanID(ctx context.Context, field graphql.CollectedField, obj *model.ExistingModelLinkTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLinkTranslation_currentModelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CurrentModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLinkTranslation_currentModelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLinkTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLinkTranslation_fieldName(ctx context.Context, field graphql.CollectedField, obj *model.ExistingModelLinkTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLinkTranslation_fieldName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FieldName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLinkTranslation_fieldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLinkTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLinks_links(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLinks) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLinks_links(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Links, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.ExistingModelLink) - fc.Result = res - return ec.marshalNExistingModelLink2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinkᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLinks_links(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLinks", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ExistingModelLink_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_ExistingModelLink_modelPlanID(ctx, field) - case "existingModelID": - return ec.fieldContext_ExistingModelLink_existingModelID(ctx, field) - case "currentModelPlanID": - return ec.fieldContext_ExistingModelLink_currentModelPlanID(ctx, field) - case "fieldName": - return ec.fieldContext_ExistingModelLink_fieldName(ctx, field) - case "model": - return ec.fieldContext_ExistingModelLink_model(ctx, field) - case "createdBy": - return ec.fieldContext_ExistingModelLink_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ExistingModelLink_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ExistingModelLink_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ExistingModelLink_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ExistingModelLink_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ExistingModelLink_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExistingModelLink", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLinks_fieldName(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLinks) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLinks_fieldName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FieldName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ExisitingModelLinkFieldType) - fc.Result = res - return ec.marshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLinks_fieldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLinks", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ExisitingModelLinkFieldType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLinks_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLinks) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLinks_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLinks_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLinks", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExistingModelLinks_names(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLinks) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ExistingModelLinks_names(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ExistingModelLinks().Names(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ExistingModelLinks_names(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExistingModelLinks", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _LaunchDarklySettings_userKey(ctx context.Context, field graphql.CollectedField, obj *model.LaunchDarklySettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LaunchDarklySettings_userKey(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserKey, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LaunchDarklySettings_userKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LaunchDarklySettings", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _LaunchDarklySettings_signedHash(ctx context.Context, field graphql.CollectedField, obj *model.LaunchDarklySettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LaunchDarklySettings_signedHash(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SignedHash, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LaunchDarklySettings_signedHash(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LaunchDarklySettings", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _LockableSectionLockStatus_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LockableSectionLockStatus_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LockableSectionLockStatus_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LockableSectionLockStatus", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _LockableSectionLockStatus_section(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LockableSectionLockStatus_section(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Section, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.LockableSection) - fc.Result = res - return ec.marshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LockableSectionLockStatus_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LockableSectionLockStatus", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type LockableSection does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _LockableSectionLockStatus_lockedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LockedByUserAccount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LockableSectionLockStatus", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _LockableSectionLockStatus_isAssessment(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LockableSectionLockStatus_isAssessment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsAssessment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LockableSectionLockStatus_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LockableSectionLockStatus", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _LockableSectionLockStatusChanged_changeType(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatusChanged) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LockableSectionLockStatusChanged_changeType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ChangeType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(model.ChangeType) - fc.Result = res - return ec.marshalNChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐChangeType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LockableSectionLockStatusChanged_changeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LockableSectionLockStatusChanged", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ChangeType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _LockableSectionLockStatusChanged_lockStatus(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatusChanged) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LockableSectionLockStatusChanged_lockStatus(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LockStatus, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(model.LockableSectionLockStatus) - fc.Result = res - return ec.marshalNLockableSectionLockStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LockableSectionLockStatusChanged_lockStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LockableSectionLockStatusChanged", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "modelPlanID": - return ec.fieldContext_LockableSectionLockStatus_modelPlanID(ctx, field) - case "section": - return ec.fieldContext_LockableSectionLockStatus_section(ctx, field) - case "lockedByUserAccount": - return ec.fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx, field) - case "isAssessment": - return ec.fieldContext_LockableSectionLockStatus_isAssessment(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatus", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _LockableSectionLockStatusChanged_actionType(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatusChanged) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_LockableSectionLockStatusChanged_actionType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActionType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(model.ActionType) - fc.Result = res - return ec.marshalNActionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐActionType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_LockableSectionLockStatusChanged_actionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "LockableSectionLockStatusChanged", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActionType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCategory_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCategory_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCategory_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCategory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCategory_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCategory_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCategory_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCategory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCategory_position(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCategory_position(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Position, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCategory_position(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCategory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCategory_isUncategorized(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCategory_isUncategorized(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsUncategorized(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCategory_isUncategorized(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCategory", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCategory_subCategories(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCategory_subCategories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOCategory().SubCategories(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOSubcategory) - fc.Result = res - return ec.marshalNMTOSubcategory2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategoryᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCategory_subCategories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCategory", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOSubcategory_id(ctx, field) - case "name": - return ec.fieldContext_MTOSubcategory_name(ctx, field) - case "position": - return ec.fieldContext_MTOSubcategory_position(ctx, field) - case "isUncategorized": - return ec.fieldContext_MTOSubcategory_isUncategorized(ctx, field) - case "milestones": - return ec.fieldContext_MTOSubcategory_milestones(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOSubcategory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCategoryTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.MTOCategoryTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCategoryTranslation_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCategoryTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCategoryTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonMilestone_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonMilestone_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonMilestone_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonMilestone_key(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonMilestone_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.MTOCommonMilestoneKey) - fc.Result = res - return ec.marshalNMTOCommonMilestoneKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonMilestone_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOCommonMilestoneKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonMilestone_categoryName(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonMilestone_categoryName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CategoryName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonMilestone_categoryName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonMilestone_subCategoryName(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonMilestone_subCategoryName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubCategoryName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonMilestone_subCategoryName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonMilestone_facilitatedByRole(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonMilestone_facilitatedByRole(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOCommonMilestone().FacilitatedByRole(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.MTOFacilitator) - fc.Result = res - return ec.marshalNMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonMilestone_facilitatedByRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonMilestone", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOFacilitator does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonMilestone_section(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonMilestone_section(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Section, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(models.TaskListSection) - fc.Result = res - return ec.marshalOTaskListSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonMilestone_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskListSection does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonMilestone_isAdded(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonMilestone_isAdded(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsAdded, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonMilestone_isAdded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonMilestone_isSuggested(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonMilestone_isSuggested(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOCommonMilestone().IsSuggested(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonMilestone_isSuggested(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonMilestone", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonMilestone_commonSolutions(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonMilestone_commonSolutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOCommonMilestone().CommonSolutions(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOCommonSolution) - fc.Result = res - return ec.marshalNMTOCommonSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonMilestone_commonSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonMilestone", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_MTOCommonSolution_name(ctx, field) - case "key": - return ec.fieldContext_MTOCommonSolution_key(ctx, field) - case "type": - return ec.fieldContext_MTOCommonSolution_type(ctx, field) - case "subjects": - return ec.fieldContext_MTOCommonSolution_subjects(ctx, field) - case "filterView": - return ec.fieldContext_MTOCommonSolution_filterView(ctx, field) - case "isAdded": - return ec.fieldContext_MTOCommonSolution_isAdded(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCommonSolution", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonSolution_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonSolution_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonSolution_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonSolution_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.MTOCommonSolutionKey) - fc.Result = res - return ec.marshalNMTOCommonSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOCommonSolutionKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonSolution_type(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonSolution_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.MTOSolutionType) - fc.Result = res - return ec.marshalNMTOSolutionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonSolution_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOSolutionType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonSolution_subjects(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonSolution_subjects(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOCommonSolution().Subjects(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.MTOCommonSolutionSubject) - fc.Result = res - return ec.marshalNMTOCommonSolutionSubject2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubjectᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonSolution_subjects(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOCommonSolutionSubject does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonSolution_filterView(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonSolution_filterView(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FilterView, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ModelViewFilter) - fc.Result = res - return ec.marshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonSolution_filterView(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelViewFilter does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOCommonSolution_isAdded(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOCommonSolution_isAdded(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsAdded, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOCommonSolution_isAdded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOCommonSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_readyForReviewDTS(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_readyForReviewDTS(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_readyForReviewDTS(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_readyForReviewByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOInfo().ReadyForReviewByUserAccount(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfo_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfo_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfo_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfoTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.MTOInfoTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfoTranslation_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfoTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfoTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOInfoTranslation_readyForReviewDTS(ctx context.Context, field graphql.CollectedField, obj *model.MTOInfoTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOInfoTranslation_readyForReviewDTS(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOInfoTranslation_readyForReviewDTS(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOInfoTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalNString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_key(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.MTOCommonMilestoneKey) - fc.Result = res - return ec.marshalOMTOCommonMilestoneKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOCommonMilestoneKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_mtoCategoryID(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MTOCategoryID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_mtoCategoryID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_facilitatedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOMilestone().FacilitatedBy(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]models.MTOFacilitator) - fc.Result = res - return ec.marshalOMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_facilitatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOFacilitator does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_needBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_needBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_needBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_status(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.MTOMilestoneStatus) - fc.Result = res - return ec.marshalNMTOMilestoneStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOMilestoneStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_riskIndicator(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskIndicator, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.MTORiskIndicator) - fc.Result = res - return ec.marshalNMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_riskIndicator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTORiskIndicator does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_isDraft(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_isDraft(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDraft, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_isDraft(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_addedFromMilestoneLibrary(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AddedFromMilestoneLibrary(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_commonMilestone(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOMilestone().CommonMilestone(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.MTOCommonMilestone) - fc.Result = res - return ec.marshalOMTOCommonMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestone(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_commonMilestone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_MTOCommonMilestone_name(ctx, field) - case "key": - return ec.fieldContext_MTOCommonMilestone_key(ctx, field) - case "categoryName": - return ec.fieldContext_MTOCommonMilestone_categoryName(ctx, field) - case "subCategoryName": - return ec.fieldContext_MTOCommonMilestone_subCategoryName(ctx, field) - case "facilitatedByRole": - return ec.fieldContext_MTOCommonMilestone_facilitatedByRole(ctx, field) - case "section": - return ec.fieldContext_MTOCommonMilestone_section(ctx, field) - case "isAdded": - return ec.fieldContext_MTOCommonMilestone_isAdded(ctx, field) - case "isSuggested": - return ec.fieldContext_MTOCommonMilestone_isSuggested(ctx, field) - case "commonSolutions": - return ec.fieldContext_MTOCommonMilestone_commonSolutions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCommonMilestone", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_solutions(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_solutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOMilestone().Solutions(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOSolution) - fc.Result = res - return ec.marshalNMTOSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_solutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOSolution_id(ctx, field) - case "name": - return ec.fieldContext_MTOSolution_name(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) - case "neededBy": - return ec.fieldContext_MTOSolution_neededBy(ctx, field) - case "status": - return ec.fieldContext_MTOSolution_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) - case "key": - return ec.fieldContext_MTOSolution_key(ctx, field) - case "type": - return ec.fieldContext_MTOSolution_type(ctx, field) - case "pocName": - return ec.fieldContext_MTOSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_MTOSolution_pocEmail(ctx, field) - case "createdBy": - return ec.fieldContext_MTOSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) - case "relatedMilestones": - return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) - case "addedFromSolutionLibrary": - return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) - case "commonSolution": - return ec.fieldContext_MTOSolution_commonSolution(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_category(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_category(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOMilestone().Category(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOCategory) - fc.Result = res - return ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_category(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOCategory_id(ctx, field) - case "name": - return ec.fieldContext_MTOCategory_name(ctx, field) - case "position": - return ec.fieldContext_MTOCategory_position(ctx, field) - case "isUncategorized": - return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) - case "subCategories": - return ec.fieldContext_MTOCategory_subCategories(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestone_subCategory(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestone_subCategory(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOMilestone().SubCategory(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOSubcategory) - fc.Result = res - return ec.marshalNMTOSubcategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestone_subCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestone", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOSubcategory_id(ctx, field) - case "name": - return ec.fieldContext_MTOSubcategory_name(ctx, field) - case "position": - return ec.fieldContext_MTOSubcategory_position(ctx, field) - case "isUncategorized": - return ec.fieldContext_MTOSubcategory_isUncategorized(ctx, field) - case "milestones": - return ec.fieldContext_MTOSubcategory_milestones(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOSubcategory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOMilestoneTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.MTOMilestoneTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOMilestoneTranslation_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOMilestoneTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOMilestoneTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_facilitatedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOSolution().FacilitatedBy(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]models.MTOFacilitator) - fc.Result = res - return ec.marshalOMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_facilitatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOFacilitator does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_neededBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_neededBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeededBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_neededBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_status(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.MTOSolutionStatus) - fc.Result = res - return ec.marshalNMTOSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOSolutionStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_riskIndicator(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_riskIndicator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskIndicator, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(models.MTORiskIndicator) - fc.Result = res - return ec.marshalOMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_riskIndicator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTORiskIndicator does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.MTOCommonSolutionKey) - fc.Result = res - return ec.marshalOMTOCommonSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOCommonSolutionKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_type(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.MTOSolutionType) - fc.Result = res - return ec.marshalOMTOSolutionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOSolutionType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_pocName(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_pocName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PocName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_pocName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_pocEmail(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_pocEmail(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PocEmail, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_pocEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_relatedMilestones(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOSolution().RelatedMilestones(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOMilestone) - fc.Result = res - return ec.marshalNMTOMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_relatedMilestones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOMilestone_id(ctx, field) - case "name": - return ec.fieldContext_MTOMilestone_name(ctx, field) - case "key": - return ec.fieldContext_MTOMilestone_key(ctx, field) - case "mtoCategoryID": - return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) - case "needBy": - return ec.fieldContext_MTOMilestone_needBy(ctx, field) - case "status": - return ec.fieldContext_MTOMilestone_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) - case "isDraft": - return ec.fieldContext_MTOMilestone_isDraft(ctx, field) - case "createdBy": - return ec.fieldContext_MTOMilestone_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOMilestone_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) - case "addedFromMilestoneLibrary": - return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) - case "commonMilestone": - return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) - case "solutions": - return ec.fieldContext_MTOMilestone_solutions(ctx, field) - case "category": - return ec.fieldContext_MTOMilestone_category(ctx, field) - case "subCategory": - return ec.fieldContext_MTOMilestone_subCategory(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_addedFromSolutionLibrary(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AddedFromSolutionLibrary(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_addedFromSolutionLibrary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSolution_commonSolution(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSolution_commonSolution(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOSolution().CommonSolution(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.MTOCommonSolution) - fc.Result = res - return ec.marshalOMTOCommonSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolution(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSolution_commonSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_MTOCommonSolution_name(ctx, field) - case "key": - return ec.fieldContext_MTOCommonSolution_key(ctx, field) - case "type": - return ec.fieldContext_MTOCommonSolution_type(ctx, field) - case "subjects": - return ec.fieldContext_MTOCommonSolution_subjects(ctx, field) - case "filterView": - return ec.fieldContext_MTOCommonSolution_filterView(ctx, field) - case "isAdded": - return ec.fieldContext_MTOCommonSolution_isAdded(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCommonSolution", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSubcategory_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSubcategory_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSubcategory_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSubcategory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSubcategory_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSubcategory_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSubcategory_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSubcategory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSubcategory_position(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSubcategory_position(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Position, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSubcategory_position(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSubcategory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSubcategory_isUncategorized(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSubcategory_isUncategorized(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsUncategorized(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSubcategory_isUncategorized(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSubcategory", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MTOSubcategory_milestones(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MTOSubcategory_milestones(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.MTOSubcategory().Milestones(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOMilestone) - fc.Result = res - return ec.marshalNMTOMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MTOSubcategory_milestones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MTOSubcategory", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOMilestone_id(ctx, field) - case "name": - return ec.fieldContext_MTOMilestone_name(ctx, field) - case "key": - return ec.fieldContext_MTOMilestone_key(ctx, field) - case "mtoCategoryID": - return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) - case "needBy": - return ec.fieldContext_MTOMilestone_needBy(ctx, field) - case "status": - return ec.fieldContext_MTOMilestone_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) - case "isDraft": - return ec.fieldContext_MTOMilestone_isDraft(ctx, field) - case "createdBy": - return ec.fieldContext_MTOMilestone_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOMilestone_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) - case "addedFromMilestoneLibrary": - return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) - case "commonMilestone": - return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) - case "solutions": - return ec.fieldContext_MTOMilestone_solutions(ctx, field) - case "category": - return ec.fieldContext_MTOMilestone_category(ctx, field) - case "subCategory": - return ec.fieldContext_MTOMilestone_subCategory(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_id(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_modelName(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_modelName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_modelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_abbreviation(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_abbreviation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Abbreviation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_abbreviation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_archived(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_archived(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Archived, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_archived(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_basics(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_basics(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().Basics(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanBasics) - fc.Result = res - return ec.marshalNPlanBasics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBasics(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_basics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanBasics_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanBasics_modelPlanID(ctx, field) - case "demoCode": - return ec.fieldContext_PlanBasics_demoCode(ctx, field) - case "amsModelID": - return ec.fieldContext_PlanBasics_amsModelID(ctx, field) - case "modelCategory": - return ec.fieldContext_PlanBasics_modelCategory(ctx, field) - case "additionalModelCategories": - return ec.fieldContext_PlanBasics_additionalModelCategories(ctx, field) - case "cmsCenters": - return ec.fieldContext_PlanBasics_cmsCenters(ctx, field) - case "cmmiGroups": - return ec.fieldContext_PlanBasics_cmmiGroups(ctx, field) - case "modelType": - return ec.fieldContext_PlanBasics_modelType(ctx, field) - case "modelTypeOther": - return ec.fieldContext_PlanBasics_modelTypeOther(ctx, field) - case "problem": - return ec.fieldContext_PlanBasics_problem(ctx, field) - case "goal": - return ec.fieldContext_PlanBasics_goal(ctx, field) - case "testInterventions": - return ec.fieldContext_PlanBasics_testInterventions(ctx, field) - case "note": - return ec.fieldContext_PlanBasics_note(ctx, field) - case "completeICIP": - return ec.fieldContext_PlanBasics_completeICIP(ctx, field) - case "clearanceStarts": - return ec.fieldContext_PlanBasics_clearanceStarts(ctx, field) - case "clearanceEnds": - return ec.fieldContext_PlanBasics_clearanceEnds(ctx, field) - case "announced": - return ec.fieldContext_PlanBasics_announced(ctx, field) - case "applicationsStart": - return ec.fieldContext_PlanBasics_applicationsStart(ctx, field) - case "applicationsEnd": - return ec.fieldContext_PlanBasics_applicationsEnd(ctx, field) - case "performancePeriodStarts": - return ec.fieldContext_PlanBasics_performancePeriodStarts(ctx, field) - case "performancePeriodEnds": - return ec.fieldContext_PlanBasics_performancePeriodEnds(ctx, field) - case "wrapUpEnds": - return ec.fieldContext_PlanBasics_wrapUpEnds(ctx, field) - case "highLevelNote": - return ec.fieldContext_PlanBasics_highLevelNote(ctx, field) - case "phasedIn": - return ec.fieldContext_PlanBasics_phasedIn(ctx, field) - case "phasedInNote": - return ec.fieldContext_PlanBasics_phasedInNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanBasics_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanBasics_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanBasics_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanBasics_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanBasics_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanBasics_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanBasics_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanBasics_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanBasics_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanBasics_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanBasics_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanBasics_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanBasics_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanBasics", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_generalCharacteristics(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().GeneralCharacteristics(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanGeneralCharacteristics) - fc.Result = res - return ec.marshalNPlanGeneralCharacteristics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanGeneralCharacteristics(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_generalCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanGeneralCharacteristics_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanGeneralCharacteristics_modelPlanID(ctx, field) - case "isNewModel": - return ec.fieldContext_PlanGeneralCharacteristics_isNewModel(ctx, field) - case "existingModel": - return ec.fieldContext_PlanGeneralCharacteristics_existingModel(ctx, field) - case "currentModelPlanID": - return ec.fieldContext_PlanGeneralCharacteristics_currentModelPlanID(ctx, field) - case "currentModelPlan": - return ec.fieldContext_PlanGeneralCharacteristics_currentModelPlan(ctx, field) - case "existingModelID": - return ec.fieldContext_PlanGeneralCharacteristics_existingModelID(ctx, field) - case "existingModelPlan": - return ec.fieldContext_PlanGeneralCharacteristics_existingModelPlan(ctx, field) - case "resemblesExistingModel": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModel(ctx, field) - case "resemblesExistingModelWhyHow": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx, field) - case "resemblesExistingModelOtherSpecify": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx, field) - case "resemblesExistingModelOtherSelected": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx, field) - case "resemblesExistingModelOtherOption": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx, field) - case "resemblesExistingModelHow": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelHow(ctx, field) - case "resemblesExistingModelNote": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelNote(ctx, field) - case "resemblesExistingModelWhich": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx, field) - case "participationInModelPrecondition": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPrecondition(ctx, field) - case "participationInModelPreconditionWhyHow": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx, field) - case "participationInModelPreconditionOtherSpecify": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx, field) - case "participationInModelPreconditionOtherSelected": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx, field) - case "participationInModelPreconditionOtherOption": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx, field) - case "participationInModelPreconditionNote": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx, field) - case "participationInModelPreconditionWhich": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx, field) - case "hasComponentsOrTracks": - return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracks(ctx, field) - case "hasComponentsOrTracksDiffer": - return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx, field) - case "hasComponentsOrTracksNote": - return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx, field) - case "agencyOrStateHelp": - return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelp(ctx, field) - case "agencyOrStateHelpOther": - return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx, field) - case "agencyOrStateHelpNote": - return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx, field) - case "alternativePaymentModelTypes": - return ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx, field) - case "alternativePaymentModelNote": - return ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelNote(ctx, field) - case "keyCharacteristics": - return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristics(ctx, field) - case "keyCharacteristicsOther": - return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsOther(ctx, field) - case "keyCharacteristicsNote": - return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsNote(ctx, field) - case "collectPlanBids": - return ec.fieldContext_PlanGeneralCharacteristics_collectPlanBids(ctx, field) - case "collectPlanBidsNote": - return ec.fieldContext_PlanGeneralCharacteristics_collectPlanBidsNote(ctx, field) - case "managePartCDEnrollment": - return ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollment(ctx, field) - case "managePartCDEnrollmentNote": - return ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx, field) - case "planContractUpdated": - return ec.fieldContext_PlanGeneralCharacteristics_planContractUpdated(ctx, field) - case "planContractUpdatedNote": - return ec.fieldContext_PlanGeneralCharacteristics_planContractUpdatedNote(ctx, field) - case "careCoordinationInvolved": - return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolved(ctx, field) - case "careCoordinationInvolvedDescription": - return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx, field) - case "careCoordinationInvolvedNote": - return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx, field) - case "additionalServicesInvolved": - return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolved(ctx, field) - case "additionalServicesInvolvedDescription": - return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx, field) - case "additionalServicesInvolvedNote": - return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx, field) - case "communityPartnersInvolved": - return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolved(ctx, field) - case "communityPartnersInvolvedDescription": - return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx, field) - case "communityPartnersInvolvedNote": - return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx, field) - case "geographiesTargeted": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargeted(ctx, field) - case "geographiesTargetedTypes": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypes(ctx, field) - case "geographiesStatesAndTerritories": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx, field) - case "geographiesRegionTypes": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesRegionTypes(ctx, field) - case "geographiesTargetedTypesOther": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx, field) - case "geographiesTargetedAppliedTo": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx, field) - case "geographiesTargetedAppliedToOther": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx, field) - case "geographiesTargetedNote": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedNote(ctx, field) - case "participationOptions": - return ec.fieldContext_PlanGeneralCharacteristics_participationOptions(ctx, field) - case "participationOptionsNote": - return ec.fieldContext_PlanGeneralCharacteristics_participationOptionsNote(ctx, field) - case "agreementTypes": - return ec.fieldContext_PlanGeneralCharacteristics_agreementTypes(ctx, field) - case "agreementTypesOther": - return ec.fieldContext_PlanGeneralCharacteristics_agreementTypesOther(ctx, field) - case "multiplePatricipationAgreementsNeeded": - return ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx, field) - case "multiplePatricipationAgreementsNeededNote": - return ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx, field) - case "rulemakingRequired": - return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequired(ctx, field) - case "rulemakingRequiredDescription": - return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx, field) - case "rulemakingRequiredNote": - return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredNote(ctx, field) - case "authorityAllowances": - return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowances(ctx, field) - case "authorityAllowancesOther": - return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesOther(ctx, field) - case "authorityAllowancesNote": - return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesNote(ctx, field) - case "waiversRequired": - return ec.fieldContext_PlanGeneralCharacteristics_waiversRequired(ctx, field) - case "waiversRequiredTypes": - return ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredTypes(ctx, field) - case "waiversRequiredNote": - return ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanGeneralCharacteristics_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanGeneralCharacteristics_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanGeneralCharacteristics_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanGeneralCharacteristics_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanGeneralCharacteristics_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanGeneralCharacteristics_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanGeneralCharacteristics_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanGeneralCharacteristics", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_participantsAndProviders(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().ParticipantsAndProviders(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanParticipantsAndProviders) - fc.Result = res - return ec.marshalNPlanParticipantsAndProviders2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanParticipantsAndProviders(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_participantsAndProviders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanParticipantsAndProviders_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanParticipantsAndProviders_modelPlanID(ctx, field) - case "participants": - return ec.fieldContext_PlanParticipantsAndProviders_participants(ctx, field) - case "medicareProviderType": - return ec.fieldContext_PlanParticipantsAndProviders_medicareProviderType(ctx, field) - case "isNewTypeOfProvidersOrSuppliers": - return ec.fieldContext_PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx, field) - case "statesEngagement": - return ec.fieldContext_PlanParticipantsAndProviders_statesEngagement(ctx, field) - case "participantsOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantsOther(ctx, field) - case "participantsNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantsNote(ctx, field) - case "participantsCurrentlyInModels": - return ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx, field) - case "participantsCurrentlyInModelsNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx, field) - case "modelApplicationLevel": - return ec.fieldContext_PlanParticipantsAndProviders_modelApplicationLevel(ctx, field) - case "expectedNumberOfParticipants": - return ec.fieldContext_PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx, field) - case "estimateConfidence": - return ec.fieldContext_PlanParticipantsAndProviders_estimateConfidence(ctx, field) - case "confidenceNote": - return ec.fieldContext_PlanParticipantsAndProviders_confidenceNote(ctx, field) - case "recruitmentMethod": - return ec.fieldContext_PlanParticipantsAndProviders_recruitmentMethod(ctx, field) - case "recruitmentOther": - return ec.fieldContext_PlanParticipantsAndProviders_recruitmentOther(ctx, field) - case "recruitmentNote": - return ec.fieldContext_PlanParticipantsAndProviders_recruitmentNote(ctx, field) - case "selectionMethod": - return ec.fieldContext_PlanParticipantsAndProviders_selectionMethod(ctx, field) - case "selectionOther": - return ec.fieldContext_PlanParticipantsAndProviders_selectionOther(ctx, field) - case "selectionNote": - return ec.fieldContext_PlanParticipantsAndProviders_selectionNote(ctx, field) - case "participantAddedFrequency": - return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequency(ctx, field) - case "participantAddedFrequencyContinually": - return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx, field) - case "participantAddedFrequencyOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx, field) - case "participantAddedFrequencyNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx, field) - case "participantRemovedFrequency": - return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequency(ctx, field) - case "participantRemovedFrequencyContinually": - return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx, field) - case "participantRemovedFrequencyOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx, field) - case "participantRemovedFrequencyNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx, field) - case "communicationMethod": - return ec.fieldContext_PlanParticipantsAndProviders_communicationMethod(ctx, field) - case "communicationMethodOther": - return ec.fieldContext_PlanParticipantsAndProviders_communicationMethodOther(ctx, field) - case "communicationNote": - return ec.fieldContext_PlanParticipantsAndProviders_communicationNote(ctx, field) - case "riskType": - return ec.fieldContext_PlanParticipantsAndProviders_riskType(ctx, field) - case "riskOther": - return ec.fieldContext_PlanParticipantsAndProviders_riskOther(ctx, field) - case "riskNote": - return ec.fieldContext_PlanParticipantsAndProviders_riskNote(ctx, field) - case "willRiskChange": - return ec.fieldContext_PlanParticipantsAndProviders_willRiskChange(ctx, field) - case "willRiskChangeNote": - return ec.fieldContext_PlanParticipantsAndProviders_willRiskChangeNote(ctx, field) - case "participantRequireFinancialGuarantee": - return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx, field) - case "participantRequireFinancialGuaranteeType": - return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx, field) - case "participantRequireFinancialGuaranteeOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx, field) - case "participantRequireFinancialGuaranteeNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx, field) - case "coordinateWork": - return ec.fieldContext_PlanParticipantsAndProviders_coordinateWork(ctx, field) - case "coordinateWorkNote": - return ec.fieldContext_PlanParticipantsAndProviders_coordinateWorkNote(ctx, field) - case "gainsharePayments": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePayments(ctx, field) - case "gainsharePaymentsTrack": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx, field) - case "gainsharePaymentsNote": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsNote(ctx, field) - case "gainsharePaymentsEligibility": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx, field) - case "gainsharePaymentsEligibilityOther": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx, field) - case "participantsIds": - return ec.fieldContext_PlanParticipantsAndProviders_participantsIds(ctx, field) - case "participantsIdsOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantsIdsOther(ctx, field) - case "participantsIDSNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantsIDSNote(ctx, field) - case "providerAdditionFrequency": - return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequency(ctx, field) - case "providerAdditionFrequencyContinually": - return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx, field) - case "providerAdditionFrequencyOther": - return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx, field) - case "providerAdditionFrequencyNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx, field) - case "providerAddMethod": - return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethod(ctx, field) - case "providerAddMethodOther": - return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodOther(ctx, field) - case "providerAddMethodNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodNote(ctx, field) - case "providerLeaveMethod": - return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethod(ctx, field) - case "providerLeaveMethodOther": - return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodOther(ctx, field) - case "providerLeaveMethodNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodNote(ctx, field) - case "providerRemovalFrequency": - return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequency(ctx, field) - case "providerRemovalFrequencyContinually": - return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx, field) - case "providerRemovalFrequencyOther": - return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx, field) - case "providerRemovalFrequencyNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx, field) - case "providerOverlap": - return ec.fieldContext_PlanParticipantsAndProviders_providerOverlap(ctx, field) - case "providerOverlapHierarchy": - return ec.fieldContext_PlanParticipantsAndProviders_providerOverlapHierarchy(ctx, field) - case "providerOverlapNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerOverlapNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanParticipantsAndProviders_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanParticipantsAndProviders_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanParticipantsAndProviders_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanParticipantsAndProviders_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanParticipantsAndProviders_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanParticipantsAndProviders_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanParticipantsAndProviders_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanParticipantsAndProviders", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_beneficiaries(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().Beneficiaries(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanBeneficiaries) - fc.Result = res - return ec.marshalNPlanBeneficiaries2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBeneficiaries(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_beneficiaries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanBeneficiaries_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanBeneficiaries_modelPlanID(ctx, field) - case "beneficiaries": - return ec.fieldContext_PlanBeneficiaries_beneficiaries(ctx, field) - case "beneficiariesOther": - return ec.fieldContext_PlanBeneficiaries_beneficiariesOther(ctx, field) - case "beneficiariesNote": - return ec.fieldContext_PlanBeneficiaries_beneficiariesNote(ctx, field) - case "diseaseSpecificGroup": - return ec.fieldContext_PlanBeneficiaries_diseaseSpecificGroup(ctx, field) - case "treatDualElligibleDifferent": - return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferent(ctx, field) - case "treatDualElligibleDifferentHow": - return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentHow(ctx, field) - case "treatDualElligibleDifferentNote": - return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentNote(ctx, field) - case "excludeCertainCharacteristics": - return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristics(ctx, field) - case "excludeCertainCharacteristicsCriteria": - return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx, field) - case "excludeCertainCharacteristicsNote": - return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx, field) - case "numberPeopleImpacted": - return ec.fieldContext_PlanBeneficiaries_numberPeopleImpacted(ctx, field) - case "estimateConfidence": - return ec.fieldContext_PlanBeneficiaries_estimateConfidence(ctx, field) - case "confidenceNote": - return ec.fieldContext_PlanBeneficiaries_confidenceNote(ctx, field) - case "beneficiarySelectionMethod": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionMethod(ctx, field) - case "beneficiarySelectionOther": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionOther(ctx, field) - case "beneficiarySelectionNote": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionNote(ctx, field) - case "beneficiarySelectionFrequency": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequency(ctx, field) - case "beneficiarySelectionFrequencyContinually": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx, field) - case "beneficiarySelectionFrequencyOther": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx, field) - case "beneficiarySelectionFrequencyNote": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx, field) - case "beneficiaryRemovalFrequency": - return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequency(ctx, field) - case "beneficiaryRemovalFrequencyContinually": - return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx, field) - case "beneficiaryRemovalFrequencyOther": - return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx, field) - case "beneficiaryRemovalFrequencyNote": - return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx, field) - case "beneficiaryOverlap": - return ec.fieldContext_PlanBeneficiaries_beneficiaryOverlap(ctx, field) - case "beneficiaryOverlapNote": - return ec.fieldContext_PlanBeneficiaries_beneficiaryOverlapNote(ctx, field) - case "precedenceRules": - return ec.fieldContext_PlanBeneficiaries_precedenceRules(ctx, field) - case "precedenceRulesYes": - return ec.fieldContext_PlanBeneficiaries_precedenceRulesYes(ctx, field) - case "precedenceRulesNo": - return ec.fieldContext_PlanBeneficiaries_precedenceRulesNo(ctx, field) - case "precedenceRulesNote": - return ec.fieldContext_PlanBeneficiaries_precedenceRulesNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanBeneficiaries_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanBeneficiaries_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanBeneficiaries_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanBeneficiaries_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanBeneficiaries_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanBeneficiaries_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanBeneficiaries_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanBeneficiaries_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanBeneficiaries_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanBeneficiaries_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanBeneficiaries_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanBeneficiaries_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanBeneficiaries_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanBeneficiaries", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_opsEvalAndLearning(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().OpsEvalAndLearning(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanOpsEvalAndLearning) - fc.Result = res - return ec.marshalNPlanOpsEvalAndLearning2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanOpsEvalAndLearning(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_opsEvalAndLearning(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanOpsEvalAndLearning_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanOpsEvalAndLearning_modelPlanID(ctx, field) - case "stakeholders": - return ec.fieldContext_PlanOpsEvalAndLearning_stakeholders(ctx, field) - case "stakeholdersOther": - return ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersOther(ctx, field) - case "stakeholdersNote": - return ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersNote(ctx, field) - case "helpdeskUse": - return ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUse(ctx, field) - case "helpdeskUseNote": - return ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUseNote(ctx, field) - case "contractorSupport": - return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupport(ctx, field) - case "contractorSupportOther": - return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportOther(ctx, field) - case "contractorSupportHow": - return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportHow(ctx, field) - case "contractorSupportNote": - return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportNote(ctx, field) - case "iddocSupport": - return ec.fieldContext_PlanOpsEvalAndLearning_iddocSupport(ctx, field) - case "iddocSupportNote": - return ec.fieldContext_PlanOpsEvalAndLearning_iddocSupportNote(ctx, field) - case "technicalContactsIdentified": - return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentified(ctx, field) - case "technicalContactsIdentifiedDetail": - return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx, field) - case "technicalContactsIdentifiedNote": - return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx, field) - case "captureParticipantInfo": - return ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfo(ctx, field) - case "captureParticipantInfoNote": - return ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx, field) - case "icdOwner": - return ec.fieldContext_PlanOpsEvalAndLearning_icdOwner(ctx, field) - case "draftIcdDueDate": - return ec.fieldContext_PlanOpsEvalAndLearning_draftIcdDueDate(ctx, field) - case "icdNote": - return ec.fieldContext_PlanOpsEvalAndLearning_icdNote(ctx, field) - case "uatNeeds": - return ec.fieldContext_PlanOpsEvalAndLearning_uatNeeds(ctx, field) - case "stcNeeds": - return ec.fieldContext_PlanOpsEvalAndLearning_stcNeeds(ctx, field) - case "testingTimelines": - return ec.fieldContext_PlanOpsEvalAndLearning_testingTimelines(ctx, field) - case "testingNote": - return ec.fieldContext_PlanOpsEvalAndLearning_testingNote(ctx, field) - case "dataMonitoringFileTypes": - return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx, field) - case "dataMonitoringFileOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx, field) - case "dataResponseType": - return ec.fieldContext_PlanOpsEvalAndLearning_dataResponseType(ctx, field) - case "dataResponseFileFrequency": - return ec.fieldContext_PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx, field) - case "dataFullTimeOrIncremental": - return ec.fieldContext_PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx, field) - case "eftSetUp": - return ec.fieldContext_PlanOpsEvalAndLearning_eftSetUp(ctx, field) - case "unsolicitedAdjustmentsIncluded": - return ec.fieldContext_PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx, field) - case "dataFlowDiagramsNeeded": - return ec.fieldContext_PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx, field) - case "produceBenefitEnhancementFiles": - return ec.fieldContext_PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx, field) - case "fileNamingConventions": - return ec.fieldContext_PlanOpsEvalAndLearning_fileNamingConventions(ctx, field) - case "dataMonitoringNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringNote(ctx, field) - case "benchmarkForPerformance": - return ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformance(ctx, field) - case "benchmarkForPerformanceNote": - return ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx, field) - case "computePerformanceScores": - return ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScores(ctx, field) - case "computePerformanceScoresNote": - return ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx, field) - case "riskAdjustPerformance": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPerformance(ctx, field) - case "riskAdjustFeedback": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustFeedback(ctx, field) - case "riskAdjustPayments": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPayments(ctx, field) - case "riskAdjustOther": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustOther(ctx, field) - case "riskAdjustNote": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustNote(ctx, field) - case "appealPerformance": - return ec.fieldContext_PlanOpsEvalAndLearning_appealPerformance(ctx, field) - case "appealFeedback": - return ec.fieldContext_PlanOpsEvalAndLearning_appealFeedback(ctx, field) - case "appealPayments": - return ec.fieldContext_PlanOpsEvalAndLearning_appealPayments(ctx, field) - case "appealOther": - return ec.fieldContext_PlanOpsEvalAndLearning_appealOther(ctx, field) - case "appealNote": - return ec.fieldContext_PlanOpsEvalAndLearning_appealNote(ctx, field) - case "evaluationApproaches": - return ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproaches(ctx, field) - case "evaluationApproachOther": - return ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproachOther(ctx, field) - case "evalutaionApproachNote": - return ec.fieldContext_PlanOpsEvalAndLearning_evalutaionApproachNote(ctx, field) - case "ccmInvolvment": - return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvment(ctx, field) - case "ccmInvolvmentOther": - return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx, field) - case "ccmInvolvmentNote": - return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx, field) - case "dataNeededForMonitoring": - return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx, field) - case "dataNeededForMonitoringOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx, field) - case "dataNeededForMonitoringNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx, field) - case "dataToSendParticicipants": - return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipants(ctx, field) - case "dataToSendParticicipantsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx, field) - case "dataToSendParticicipantsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx, field) - case "shareCclfData": - return ec.fieldContext_PlanOpsEvalAndLearning_shareCclfData(ctx, field) - case "shareCclfDataNote": - return ec.fieldContext_PlanOpsEvalAndLearning_shareCclfDataNote(ctx, field) - case "sendFilesBetweenCcw": - return ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx, field) - case "sendFilesBetweenCcwNote": - return ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx, field) - case "appToSendFilesToKnown": - return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx, field) - case "appToSendFilesToWhich": - return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx, field) - case "appToSendFilesToNote": - return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToNote(ctx, field) - case "useCcwForFileDistribiutionToParticipants": - return ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx, field) - case "useCcwForFileDistribiutionToParticipantsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx, field) - case "developNewQualityMeasures": - return ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasures(ctx, field) - case "developNewQualityMeasuresNote": - return ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx, field) - case "qualityPerformanceImpactsPayment": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx, field) - case "qualityPerformanceImpactsPaymentOther": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx, field) - case "qualityPerformanceImpactsPaymentNote": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx, field) - case "dataSharingStarts": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStarts(ctx, field) - case "dataSharingStartsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsOther(ctx, field) - case "dataSharingFrequency": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequency(ctx, field) - case "dataSharingFrequencyContinually": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx, field) - case "dataSharingFrequencyOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx, field) - case "dataSharingStartsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsNote(ctx, field) - case "dataCollectionStarts": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStarts(ctx, field) - case "dataCollectionStartsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx, field) - case "dataCollectionFrequency": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequency(ctx, field) - case "dataCollectionFrequencyContinually": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx, field) - case "dataCollectionFrequencyOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx, field) - case "dataCollectionFrequencyNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx, field) - case "qualityReportingStarts": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStarts(ctx, field) - case "qualityReportingStartsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx, field) - case "qualityReportingStartsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx, field) - case "qualityReportingFrequency": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequency(ctx, field) - case "qualityReportingFrequencyContinually": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx, field) - case "qualityReportingFrequencyOther": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx, field) - case "modelLearningSystems": - return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystems(ctx, field) - case "modelLearningSystemsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx, field) - case "modelLearningSystemsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx, field) - case "anticipatedChallenges": - return ec.fieldContext_PlanOpsEvalAndLearning_anticipatedChallenges(ctx, field) - case "createdBy": - return ec.fieldContext_PlanOpsEvalAndLearning_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanOpsEvalAndLearning_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanOpsEvalAndLearning_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanOpsEvalAndLearning_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanOpsEvalAndLearning_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanOpsEvalAndLearning_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanOpsEvalAndLearning_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanOpsEvalAndLearning", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_collaborators(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_collaborators(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().Collaborators(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PlanCollaborator) - fc.Result = res - return ec.marshalNPlanCollaborator2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaboratorᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_collaborators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCollaborator_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) - case "userID": - return ec.fieldContext_PlanCollaborator_userID(ctx, field) - case "userAccount": - return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) - case "teamRoles": - return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_documents(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_documents(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().Documents(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PlanDocument) - fc.Result = res - return ec.marshalNPlanDocument2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDocument_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) - case "isLink": - return ec.fieldContext_PlanDocument_isLink(ctx, field) - case "url": - return ec.fieldContext_PlanDocument_url(ctx, field) - case "fileType": - return ec.fieldContext_PlanDocument_fileType(ctx, field) - case "bucket": - return ec.fieldContext_PlanDocument_bucket(ctx, field) - case "fileKey": - return ec.fieldContext_PlanDocument_fileKey(ctx, field) - case "virusScanned": - return ec.fieldContext_PlanDocument_virusScanned(ctx, field) - case "virusClean": - return ec.fieldContext_PlanDocument_virusClean(ctx, field) - case "restricted": - return ec.fieldContext_PlanDocument_restricted(ctx, field) - case "fileName": - return ec.fieldContext_PlanDocument_fileName(ctx, field) - case "fileSize": - return ec.fieldContext_PlanDocument_fileSize(ctx, field) - case "documentType": - return ec.fieldContext_PlanDocument_documentType(ctx, field) - case "otherType": - return ec.fieldContext_PlanDocument_otherType(ctx, field) - case "optionalNotes": - return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) - case "downloadUrl": - return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) - case "deletedAt": - return ec.fieldContext_PlanDocument_deletedAt(ctx, field) - case "numLinkedSolutions": - return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDocument_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDocument_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_discussions(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_discussions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().Discussions(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PlanDiscussion) - fc.Result = res - return ec.marshalNPlanDiscussion2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDiscussion_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) - case "content": - return ec.fieldContext_PlanDiscussion_content(ctx, field) - case "userRole": - return ec.fieldContext_PlanDiscussion_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) - case "replies": - return ec.fieldContext_PlanDiscussion_replies(ctx, field) - case "isAssessment": - return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_payments(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_payments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().Payments(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanPayments) - fc.Result = res - return ec.marshalNPlanPayments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_payments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanPayments_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanPayments_modelPlanID(ctx, field) - case "fundingSource": - return ec.fieldContext_PlanPayments_fundingSource(ctx, field) - case "fundingSourcePatientProtectionInfo": - return ec.fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx, field) - case "fundingSourceMedicareAInfo": - return ec.fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx, field) - case "fundingSourceMedicareBInfo": - return ec.fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx, field) - case "fundingSourceOther": - return ec.fieldContext_PlanPayments_fundingSourceOther(ctx, field) - case "fundingSourceNote": - return ec.fieldContext_PlanPayments_fundingSourceNote(ctx, field) - case "fundingSourceR": - return ec.fieldContext_PlanPayments_fundingSourceR(ctx, field) - case "fundingSourceRPatientProtectionInfo": - return ec.fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field) - case "fundingSourceRMedicareAInfo": - return ec.fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx, field) - case "fundingSourceRMedicareBInfo": - return ec.fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx, field) - case "fundingSourceROther": - return ec.fieldContext_PlanPayments_fundingSourceROther(ctx, field) - case "fundingSourceRNote": - return ec.fieldContext_PlanPayments_fundingSourceRNote(ctx, field) - case "payRecipients": - return ec.fieldContext_PlanPayments_payRecipients(ctx, field) - case "payRecipientsOtherSpecification": - return ec.fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx, field) - case "payRecipientsNote": - return ec.fieldContext_PlanPayments_payRecipientsNote(ctx, field) - case "payType": - return ec.fieldContext_PlanPayments_payType(ctx, field) - case "payTypeNote": - return ec.fieldContext_PlanPayments_payTypeNote(ctx, field) - case "payClaims": - return ec.fieldContext_PlanPayments_payClaims(ctx, field) - case "payClaimsOther": - return ec.fieldContext_PlanPayments_payClaimsOther(ctx, field) - case "payClaimsNote": - return ec.fieldContext_PlanPayments_payClaimsNote(ctx, field) - case "shouldAnyProvidersExcludedFFSSystems": - return ec.fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field) - case "shouldAnyProviderExcludedFFSSystemsNote": - return ec.fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) - case "changesMedicarePhysicianFeeSchedule": - return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field) - case "changesMedicarePhysicianFeeScheduleNote": - return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field) - case "affectsMedicareSecondaryPayerClaims": - return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field) - case "affectsMedicareSecondaryPayerClaimsHow": - return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field) - case "affectsMedicareSecondaryPayerClaimsNote": - return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field) - case "payModelDifferentiation": - return ec.fieldContext_PlanPayments_payModelDifferentiation(ctx, field) - case "willBePaymentAdjustments": - return ec.fieldContext_PlanPayments_willBePaymentAdjustments(ctx, field) - case "willBePaymentAdjustmentsNote": - return ec.fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx, field) - case "creatingDependenciesBetweenServices": - return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx, field) - case "creatingDependenciesBetweenServicesNote": - return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field) - case "needsClaimsDataCollection": - return ec.fieldContext_PlanPayments_needsClaimsDataCollection(ctx, field) - case "needsClaimsDataCollectionNote": - return ec.fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx, field) - case "providingThirdPartyFile": - return ec.fieldContext_PlanPayments_providingThirdPartyFile(ctx, field) - case "isContractorAwareTestDataRequirements": - return ec.fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx, field) - case "beneficiaryCostSharingLevelAndHandling": - return ec.fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field) - case "waiveBeneficiaryCostSharingForAnyServices": - return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field) - case "waiveBeneficiaryCostSharingServiceSpecification": - return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) - case "waiverOnlyAppliesPartOfPayment": - return ec.fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field) - case "waiveBeneficiaryCostSharingNote": - return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field) - case "nonClaimsPayments": - return ec.fieldContext_PlanPayments_nonClaimsPayments(ctx, field) - case "nonClaimsPaymentOther": - return ec.fieldContext_PlanPayments_nonClaimsPaymentOther(ctx, field) - case "nonClaimsPaymentsNote": - return ec.fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx, field) - case "paymentCalculationOwner": - return ec.fieldContext_PlanPayments_paymentCalculationOwner(ctx, field) - case "numberPaymentsPerPayCycle": - return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx, field) - case "numberPaymentsPerPayCycleNote": - return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx, field) - case "sharedSystemsInvolvedAdditionalClaimPayment": - return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) - case "sharedSystemsInvolvedAdditionalClaimPaymentNote": - return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) - case "planningToUseInnovationPaymentContractor": - return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx, field) - case "planningToUseInnovationPaymentContractorNote": - return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field) - case "expectedCalculationComplexityLevel": - return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx, field) - case "expectedCalculationComplexityLevelNote": - return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx, field) - case "claimsProcessingPrecedence": - return ec.fieldContext_PlanPayments_claimsProcessingPrecedence(ctx, field) - case "claimsProcessingPrecedenceOther": - return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx, field) - case "claimsProcessingPrecedenceNote": - return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx, field) - case "canParticipantsSelectBetweenPaymentMechanisms": - return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) - case "canParticipantsSelectBetweenPaymentMechanismsHow": - return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) - case "canParticipantsSelectBetweenPaymentMechanismsNote": - return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) - case "anticipatedPaymentFrequency": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx, field) - case "anticipatedPaymentFrequencyContinually": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field) - case "anticipatedPaymentFrequencyOther": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx, field) - case "anticipatedPaymentFrequencyNote": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx, field) - case "willRecoverPayments": - return ec.fieldContext_PlanPayments_willRecoverPayments(ctx, field) - case "willRecoverPaymentsNote": - return ec.fieldContext_PlanPayments_willRecoverPaymentsNote(ctx, field) - case "anticipateReconcilingPaymentsRetrospectively": - return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field) - case "anticipateReconcilingPaymentsRetrospectivelyNote": - return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) - case "paymentReconciliationFrequency": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequency(ctx, field) - case "paymentReconciliationFrequencyContinually": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx, field) - case "paymentReconciliationFrequencyOther": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx, field) - case "paymentReconciliationFrequencyNote": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx, field) - case "paymentDemandRecoupmentFrequency": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx, field) - case "paymentDemandRecoupmentFrequencyContinually": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field) - case "paymentDemandRecoupmentFrequencyOther": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field) - case "paymentDemandRecoupmentFrequencyNote": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field) - case "paymentStartDate": - return ec.fieldContext_PlanPayments_paymentStartDate(ctx, field) - case "paymentStartDateNote": - return ec.fieldContext_PlanPayments_paymentStartDateNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanPayments_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanPayments_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanPayments_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanPayments_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanPayments_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanPayments_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanPayments_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanPayments_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanPayments_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanPayments_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanPayments_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanPayments_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanPayments", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_dataExchangeApproach(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().DataExchangeApproach(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDataExchangeApproach) - fc.Result = res - return ec.marshalNPlanDataExchangeApproach2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_dataExchangeApproach(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDataExchangeApproach_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDataExchangeApproach_modelPlanID(ctx, field) - case "dataToCollectFromParticipants": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field) - case "dataToCollectFromParticipantsReportsDetails": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field) - case "dataToCollectFromParticipantsOther": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field) - case "dataWillNotBeCollectedFromParticipants": - return ec.fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field) - case "dataToCollectFromParticipantsNote": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field) - case "dataToSendToParticipants": - return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx, field) - case "dataToSendToParticipantsNote": - return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field) - case "doesNeedToMakeMultiPayerDataAvailable": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field) - case "anticipatedMultiPayerDataAvailabilityUseCase": - return ec.fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) - case "doesNeedToMakeMultiPayerDataAvailableNote": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) - case "doesNeedToCollectAndAggregateMultiSourceData": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) - case "multiSourceDataToCollect": - return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field) - case "multiSourceDataToCollectOther": - return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field) - case "doesNeedToCollectAndAggregateMultiSourceDataNote": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) - case "willImplementNewDataExchangeMethods": - return ec.fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field) - case "newDataExchangeMethodsDescription": - return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field) - case "newDataExchangeMethodsNote": - return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field) - case "additionalDataExchangeConsiderationsDescription": - return ec.fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDataExchangeApproach_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDataExchangeApproach_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDataExchangeApproach_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDataExchangeApproach_modifiedDts(ctx, field) - case "isDataExchangeApproachComplete": - return ec.fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field) - case "markedCompleteBy": - return ec.fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx, field) - case "markedCompleteByUserAccount": - return ec.fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field) - case "markedCompleteDts": - return ec.fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx, field) - case "status": - return ec.fieldContext_PlanDataExchangeApproach_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDataExchangeApproach", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_status(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ModelStatus) - fc.Result = res - return ec.marshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_taskListStatus(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().TaskListStatus(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TaskStatus) - fc.Result = res - return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_taskListStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_suggestedPhase(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().SuggestedPhase(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PhaseSuggestion) - fc.Result = res - return ec.marshalOPhaseSuggestion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPhaseSuggestion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_suggestedPhase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "phase": - return ec.fieldContext_PhaseSuggestion_phase(ctx, field) - case "suggestedStatuses": - return ec.fieldContext_PhaseSuggestion_suggestedStatuses(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PhaseSuggestion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_isFavorite(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_isFavorite(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().IsFavorite(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_isFavorite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_isCollaborator(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().IsCollaborator(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_isCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_crs(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_crs(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().Crs(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PlanCR) - fc.Result = res - return ec.marshalNPlanCR2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCRᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_crs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCR_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCR_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanCR_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanCR_dateInitiated(ctx, field) - case "dateImplemented": - return ec.fieldContext_PlanCR_dateImplemented(ctx, field) - case "title": - return ec.fieldContext_PlanCR_title(ctx, field) - case "note": - return ec.fieldContext_PlanCR_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCR_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCR_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCR_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCR_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_tdls(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_tdls(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().Tdls(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PlanTDL) - fc.Result = res - return ec.marshalNPlanTDL2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDLᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_tdls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanTDL_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanTDL_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) - case "title": - return ec.fieldContext_PlanTDL_title(ctx, field) - case "note": - return ec.fieldContext_PlanTDL_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanTDL_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanTDL_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_echimpCRsAndTDLs(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().EchimpCRsAndTDLs(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.EChimpCRAndTDLS) - fc.Result = res - return ec.marshalNEChimpCRAndTDLS2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐEChimpCRAndTDLSᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_echimpCRsAndTDLs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EChimpCRAndTDLS does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_prepareForClearance(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().PrepareForClearance(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.PrepareForClearance) - fc.Result = res - return ec.marshalNPrepareForClearance2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearance(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_prepareForClearance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "status": - return ec.fieldContext_PrepareForClearance_status(ctx, field) - case "latestClearanceDts": - return ec.fieldContext_PrepareForClearance_latestClearanceDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PrepareForClearance", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_nameHistory(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_nameHistory(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().NameHistory(rctx, obj, fc.Args["sort"].(models.SortDirection)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_nameHistory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ModelPlan_nameHistory_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_operationalNeeds(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().OperationalNeeds(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.OperationalNeed) - fc.Result = res - return ec.marshalNOperationalNeed2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_operationalNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalNeed_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) - case "needed": - return ec.fieldContext_OperationalNeed_needed(ctx, field) - case "solutions": - return ec.fieldContext_OperationalNeed_solutions(ctx, field) - case "key": - return ec.fieldContext_OperationalNeed_key(ctx, field) - case "name": - return ec.fieldContext_OperationalNeed_name(ctx, field) - case "nameOther": - return ec.fieldContext_OperationalNeed_nameOther(ctx, field) - case "section": - return ec.fieldContext_OperationalNeed_section(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalNeed_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalNeed_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalNeed", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_opSolutionLastModifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().OpSolutionLastModifiedDts(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_previousSuggestedPhase(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PreviousSuggestedPhase, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ModelPhase) - fc.Result = res - return ec.marshalOModelPhase2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_previousSuggestedPhase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelPhase does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_mtoMatrix(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().MtoMatrix(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelsToOperationMatrix) - fc.Result = res - return ec.marshalNModelsToOperationMatrix2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelsToOperationMatrix(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_mtoMatrix(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "categories": - return ec.fieldContext_ModelsToOperationMatrix_categories(ctx, field) - case "commonMilestones": - return ec.fieldContext_ModelsToOperationMatrix_commonMilestones(ctx, field) - case "commonSolutions": - return ec.fieldContext_ModelsToOperationMatrix_commonSolutions(ctx, field) - case "milestones": - return ec.fieldContext_ModelsToOperationMatrix_milestones(ctx, field) - case "solutions": - return ec.fieldContext_ModelsToOperationMatrix_solutions(ctx, field) - case "status": - return ec.fieldContext_ModelsToOperationMatrix_status(ctx, field) - case "recentEdit": - return ec.fieldContext_ModelsToOperationMatrix_recentEdit(ctx, field) - case "info": - return ec.fieldContext_ModelsToOperationMatrix_info(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelsToOperationMatrix", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlan_modelBySolutionStatus(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlan().ModelBySolutionStatus(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ModelBySolutionStatus) - fc.Result = res - return ec.marshalNModelBySolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelBySolutionStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlan_modelBySolutionStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlan", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelBySolutionStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlanAndPossibleOperationalSolution().PossibleOperationalSolution(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PossibleOperationalSolution) - fc.Result = res - return ec.marshalNPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolution(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanAndPossibleOperationalSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PossibleOperationalSolution_id(ctx, field) - case "name": - return ec.fieldContext_PossibleOperationalSolution_name(ctx, field) - case "key": - return ec.fieldContext_PossibleOperationalSolution_key(ctx, field) - case "treatAsOther": - return ec.fieldContext_PossibleOperationalSolution_treatAsOther(ctx, field) - case "pointsOfContact": - return ec.fieldContext_PossibleOperationalSolution_pointsOfContact(ctx, field) - case "primaryContact": - return ec.fieldContext_PossibleOperationalSolution_primaryContact(ctx, field) - case "filterView": - return ec.fieldContext_PossibleOperationalSolution_filterView(ctx, field) - case "createdBy": - return ec.fieldContext_PossibleOperationalSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PossibleOperationalSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PossibleOperationalSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PossibleOperationalSolution_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolution", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PossibleOperationalSolutionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanAndPossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.OperationalSolutionKey) - fc.Result = res - return ec.marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanAndPossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OperationalSolutionKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanAndPossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlanAndPossibleOperationalSolution().ModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanAndPossibleOperationalSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanSharedActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanSharedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanSharedActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanSharedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanSharedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanSharedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanSharedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelPlanSharedActivityMeta().ModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanSharedActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanSharedActivityMeta_optionalMessage(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_optionalMessage(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OptionalMessage, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_optionalMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanSharedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanTranslation_modelName(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanTranslation_modelName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanTranslation_modelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanTranslation_previousName(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanTranslation_previousName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PreviousName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanTranslation_previousName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanTranslation_nameHistory(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanTranslation_nameHistory(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NameHistory, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanTranslation_nameHistory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanTranslation_abbreviation(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanTranslation_abbreviation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Abbreviation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanTranslation_abbreviation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanTranslation_archived(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanTranslation_archived(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Archived, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanTranslation_archived(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelPlanTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelPlanTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelPlanTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelPlanTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelsToOperationMatrix_categories(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelsToOperationMatrix_categories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelsToOperationMatrix().Categories(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOCategory) - fc.Result = res - return ec.marshalNMTOCategory2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategoryᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelsToOperationMatrix_categories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelsToOperationMatrix", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOCategory_id(ctx, field) - case "name": - return ec.fieldContext_MTOCategory_name(ctx, field) - case "position": - return ec.fieldContext_MTOCategory_position(ctx, field) - case "isUncategorized": - return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) - case "subCategories": - return ec.fieldContext_MTOCategory_subCategories(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelsToOperationMatrix_commonMilestones(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelsToOperationMatrix_commonMilestones(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelsToOperationMatrix().CommonMilestones(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOCommonMilestone) - fc.Result = res - return ec.marshalNMTOCommonMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelsToOperationMatrix_commonMilestones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelsToOperationMatrix", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_MTOCommonMilestone_name(ctx, field) - case "key": - return ec.fieldContext_MTOCommonMilestone_key(ctx, field) - case "categoryName": - return ec.fieldContext_MTOCommonMilestone_categoryName(ctx, field) - case "subCategoryName": - return ec.fieldContext_MTOCommonMilestone_subCategoryName(ctx, field) - case "facilitatedByRole": - return ec.fieldContext_MTOCommonMilestone_facilitatedByRole(ctx, field) - case "section": - return ec.fieldContext_MTOCommonMilestone_section(ctx, field) - case "isAdded": - return ec.fieldContext_MTOCommonMilestone_isAdded(ctx, field) - case "isSuggested": - return ec.fieldContext_MTOCommonMilestone_isSuggested(ctx, field) - case "commonSolutions": - return ec.fieldContext_MTOCommonMilestone_commonSolutions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCommonMilestone", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelsToOperationMatrix_commonSolutions(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelsToOperationMatrix_commonSolutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelsToOperationMatrix().CommonSolutions(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOCommonSolution) - fc.Result = res - return ec.marshalNMTOCommonSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelsToOperationMatrix_commonSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelsToOperationMatrix", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_MTOCommonSolution_name(ctx, field) - case "key": - return ec.fieldContext_MTOCommonSolution_key(ctx, field) - case "type": - return ec.fieldContext_MTOCommonSolution_type(ctx, field) - case "subjects": - return ec.fieldContext_MTOCommonSolution_subjects(ctx, field) - case "filterView": - return ec.fieldContext_MTOCommonSolution_filterView(ctx, field) - case "isAdded": - return ec.fieldContext_MTOCommonSolution_isAdded(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCommonSolution", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelsToOperationMatrix_milestones(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelsToOperationMatrix_milestones(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelsToOperationMatrix().Milestones(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOMilestone) - fc.Result = res - return ec.marshalNMTOMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelsToOperationMatrix_milestones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelsToOperationMatrix", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOMilestone_id(ctx, field) - case "name": - return ec.fieldContext_MTOMilestone_name(ctx, field) - case "key": - return ec.fieldContext_MTOMilestone_key(ctx, field) - case "mtoCategoryID": - return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) - case "needBy": - return ec.fieldContext_MTOMilestone_needBy(ctx, field) - case "status": - return ec.fieldContext_MTOMilestone_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) - case "isDraft": - return ec.fieldContext_MTOMilestone_isDraft(ctx, field) - case "createdBy": - return ec.fieldContext_MTOMilestone_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOMilestone_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) - case "addedFromMilestoneLibrary": - return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) - case "commonMilestone": - return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) - case "solutions": - return ec.fieldContext_MTOMilestone_solutions(ctx, field) - case "category": - return ec.fieldContext_MTOMilestone_category(ctx, field) - case "subCategory": - return ec.fieldContext_MTOMilestone_subCategory(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelsToOperationMatrix_solutions(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelsToOperationMatrix_solutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelsToOperationMatrix().Solutions(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.MTOSolution) - fc.Result = res - return ec.marshalNMTOSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelsToOperationMatrix_solutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelsToOperationMatrix", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOSolution_id(ctx, field) - case "name": - return ec.fieldContext_MTOSolution_name(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) - case "neededBy": - return ec.fieldContext_MTOSolution_neededBy(ctx, field) - case "status": - return ec.fieldContext_MTOSolution_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) - case "key": - return ec.fieldContext_MTOSolution_key(ctx, field) - case "type": - return ec.fieldContext_MTOSolution_type(ctx, field) - case "pocName": - return ec.fieldContext_MTOSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_MTOSolution_pocEmail(ctx, field) - case "createdBy": - return ec.fieldContext_MTOSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) - case "relatedMilestones": - return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) - case "addedFromSolutionLibrary": - return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) - case "commonSolution": - return ec.fieldContext_MTOSolution_commonSolution(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelsToOperationMatrix_status(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelsToOperationMatrix_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelsToOperationMatrix().Status(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.MTOStatus) - fc.Result = res - return ec.marshalNMTOStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelsToOperationMatrix_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelsToOperationMatrix", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MTOStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelsToOperationMatrix_recentEdit(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelsToOperationMatrix_recentEdit(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelsToOperationMatrix().RecentEdit(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.RecentModification) - fc.Result = res - return ec.marshalORecentModification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecentModification(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelsToOperationMatrix_recentEdit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelsToOperationMatrix", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "modifiedBy": - return ec.fieldContext_RecentModification_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_RecentModification_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_RecentModification_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RecentModification", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ModelsToOperationMatrix_info(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ModelsToOperationMatrix_info(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ModelsToOperationMatrix().Info(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOInfo) - fc.Result = res - return ec.marshalNMTOInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ModelsToOperationMatrix_info(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ModelsToOperationMatrix", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOInfo_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_MTOInfo_modelPlanID(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_MTOInfo_readyForReviewBy(ctx, field) - case "readyForReviewDTS": - return ec.fieldContext_MTOInfo_readyForReviewDTS(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_MTOInfo_readyForReviewByUserAccount(ctx, field) - case "createdBy": - return ec.fieldContext_MTOInfo_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOInfo_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOInfo_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOInfo_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOInfo_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOInfo_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createDiscussionReply(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createDiscussionReply(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateDiscussionReply(rctx, fc.Args["input"].(model.DiscussionReplyCreateInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.DiscussionReply); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.DiscussionReply`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.DiscussionReply) - fc.Result = res - return ec.marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createDiscussionReply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DiscussionReply_id(ctx, field) - case "discussionID": - return ec.fieldContext_DiscussionReply_discussionID(ctx, field) - case "content": - return ec.fieldContext_DiscussionReply_content(ctx, field) - case "userRole": - return ec.fieldContext_DiscussionReply_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) - case "isAssessment": - return ec.fieldContext_DiscussionReply_isAssessment(ctx, field) - case "createdBy": - return ec.fieldContext_DiscussionReply_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_DiscussionReply_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DiscussionReply", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createDiscussionReply_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateExistingModelLinks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateExistingModelLinks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateExistingModelLinks(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["fieldName"].(models.ExisitingModelLinkFieldType), fc.Args["existingModelIDs"].([]int), fc.Args["currentModelPlanIDs"].([]uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.ExistingModelLinks); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ExistingModelLinks`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ExistingModelLinks) - fc.Result = res - return ec.marshalNExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateExistingModelLinks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "links": - return ec.fieldContext_ExistingModelLinks_links(ctx, field) - case "fieldName": - return ec.fieldContext_ExistingModelLinks_fieldName(ctx, field) - case "modelPlanID": - return ec.fieldContext_ExistingModelLinks_modelPlanID(ctx, field) - case "names": - return ec.fieldContext_ExistingModelLinks_names(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExistingModelLinks", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateExistingModelLinks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_lockLockableSection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_lockLockableSection(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().LockLockableSection(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["section"].(models.LockableSection)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(bool); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_lockLockableSection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_lockLockableSection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_unlockLockableSection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_unlockLockableSection(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UnlockLockableSection(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["section"].(models.LockableSection)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(bool); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_unlockLockableSection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_unlockLockableSection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_unlockAllLockableSections(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_unlockAllLockableSections(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UnlockAllLockableSections(rctx, fc.Args["modelPlanID"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_ASSESSMENT") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*model.LockableSectionLockStatus); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/graph/model.LockableSectionLockStatus`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*model.LockableSectionLockStatus) - fc.Result = res - return ec.marshalNLockableSectionLockStatus2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_unlockAllLockableSections(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "modelPlanID": - return ec.fieldContext_LockableSectionLockStatus_modelPlanID(ctx, field) - case "section": - return ec.fieldContext_LockableSectionLockStatus_section(ctx, field) - case "lockedByUserAccount": - return ec.fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx, field) - case "isAssessment": - return ec.fieldContext_LockableSectionLockStatus_isAssessment(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatus", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_unlockAllLockableSections_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createModelPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createModelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateModelPlan(rctx, fc.Args["modelName"].(string)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.ModelPlan); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ModelPlan`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createModelPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateModelPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateModelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateModelPlan(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.ModelPlan); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ModelPlan`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateModelPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_shareModelPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_shareModelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().ShareModelPlan(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["viewFilter"].(*models.ModelViewFilter), fc.Args["usernames"].([]string), fc.Args["optionalMessage"].(*string)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(bool); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_shareModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_shareModelPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_markMTOReadyForReview(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_markMTOReadyForReview(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().MarkMTOReadyForReview(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["readyForReview"].(bool)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOInfo); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOInfo`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOInfo) - fc.Result = res - return ec.marshalNMTOInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_markMTOReadyForReview(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOInfo_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_MTOInfo_modelPlanID(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_MTOInfo_readyForReviewBy(ctx, field) - case "readyForReviewDTS": - return ec.fieldContext_MTOInfo_readyForReviewDTS(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_MTOInfo_readyForReviewByUserAccount(ctx, field) - case "createdBy": - return ec.fieldContext_MTOInfo_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOInfo_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOInfo_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOInfo_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOInfo_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOInfo_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOInfo", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_markMTOReadyForReview_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createMTOCategory(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createMTOCategory(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateMTOCategory(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["name"].(string), fc.Args["parentID"].(*uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOCategory); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOCategory`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOCategory) - fc.Result = res - return ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createMTOCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOCategory_id(ctx, field) - case "name": - return ec.fieldContext_MTOCategory_name(ctx, field) - case "position": - return ec.fieldContext_MTOCategory_position(ctx, field) - case "isUncategorized": - return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) - case "subCategories": - return ec.fieldContext_MTOCategory_subCategories(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createMTOCategory_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_renameMTOCategory(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_renameMTOCategory(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RenameMTOCategory(rctx, fc.Args["id"].(uuid.UUID), fc.Args["name"].(string)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOCategory); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOCategory`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOCategory) - fc.Result = res - return ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_renameMTOCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOCategory_id(ctx, field) - case "name": - return ec.fieldContext_MTOCategory_name(ctx, field) - case "position": - return ec.fieldContext_MTOCategory_position(ctx, field) - case "isUncategorized": - return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) - case "subCategories": - return ec.fieldContext_MTOCategory_subCategories(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_renameMTOCategory_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_reorderMTOCategory(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_reorderMTOCategory(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().ReorderMTOCategory(rctx, fc.Args["id"].(uuid.UUID), fc.Args["newOrder"].(*int), fc.Args["parentID"].(*uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOCategory); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOCategory`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOCategory) - fc.Result = res - return ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_reorderMTOCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOCategory_id(ctx, field) - case "name": - return ec.fieldContext_MTOCategory_name(ctx, field) - case "position": - return ec.fieldContext_MTOCategory_position(ctx, field) - case "isUncategorized": - return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) - case "subCategories": - return ec.fieldContext_MTOCategory_subCategories(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_reorderMTOCategory_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createMTOMilestoneCustom(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createMTOMilestoneCustom(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateMTOMilestoneCustom(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["name"].(string), fc.Args["mtoCategoryID"].(*uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOMilestone); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOMilestone`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOMilestone) - fc.Result = res - return ec.marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createMTOMilestoneCustom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOMilestone_id(ctx, field) - case "name": - return ec.fieldContext_MTOMilestone_name(ctx, field) - case "key": - return ec.fieldContext_MTOMilestone_key(ctx, field) - case "mtoCategoryID": - return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) - case "needBy": - return ec.fieldContext_MTOMilestone_needBy(ctx, field) - case "status": - return ec.fieldContext_MTOMilestone_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) - case "isDraft": - return ec.fieldContext_MTOMilestone_isDraft(ctx, field) - case "createdBy": - return ec.fieldContext_MTOMilestone_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOMilestone_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) - case "addedFromMilestoneLibrary": - return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) - case "commonMilestone": - return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) - case "solutions": - return ec.fieldContext_MTOMilestone_solutions(ctx, field) - case "category": - return ec.fieldContext_MTOMilestone_category(ctx, field) - case "subCategory": - return ec.fieldContext_MTOMilestone_subCategory(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createMTOMilestoneCustom_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createMTOMilestoneCommon(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createMTOMilestoneCommon(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateMTOMilestoneCommon(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["commonMilestoneKey"].(models.MTOCommonMilestoneKey)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOMilestone); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOMilestone`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOMilestone) - fc.Result = res - return ec.marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createMTOMilestoneCommon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOMilestone_id(ctx, field) - case "name": - return ec.fieldContext_MTOMilestone_name(ctx, field) - case "key": - return ec.fieldContext_MTOMilestone_key(ctx, field) - case "mtoCategoryID": - return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) - case "needBy": - return ec.fieldContext_MTOMilestone_needBy(ctx, field) - case "status": - return ec.fieldContext_MTOMilestone_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) - case "isDraft": - return ec.fieldContext_MTOMilestone_isDraft(ctx, field) - case "createdBy": - return ec.fieldContext_MTOMilestone_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOMilestone_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) - case "addedFromMilestoneLibrary": - return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) - case "commonMilestone": - return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) - case "solutions": - return ec.fieldContext_MTOMilestone_solutions(ctx, field) - case "category": - return ec.fieldContext_MTOMilestone_category(ctx, field) - case "subCategory": - return ec.fieldContext_MTOMilestone_subCategory(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createMTOMilestoneCommon_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateMTOMilestone(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateMTOMilestone(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateMTOMilestone(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOMilestone); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOMilestone`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOMilestone) - fc.Result = res - return ec.marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateMTOMilestone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOMilestone_id(ctx, field) - case "name": - return ec.fieldContext_MTOMilestone_name(ctx, field) - case "key": - return ec.fieldContext_MTOMilestone_key(ctx, field) - case "mtoCategoryID": - return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) - case "needBy": - return ec.fieldContext_MTOMilestone_needBy(ctx, field) - case "status": - return ec.fieldContext_MTOMilestone_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) - case "isDraft": - return ec.fieldContext_MTOMilestone_isDraft(ctx, field) - case "createdBy": - return ec.fieldContext_MTOMilestone_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOMilestone_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) - case "addedFromMilestoneLibrary": - return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) - case "commonMilestone": - return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) - case "solutions": - return ec.fieldContext_MTOMilestone_solutions(ctx, field) - case "category": - return ec.fieldContext_MTOMilestone_category(ctx, field) - case "subCategory": - return ec.fieldContext_MTOMilestone_subCategory(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateMTOMilestone_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createMTOSolutionCustom(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createMTOSolutionCustom(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateMTOSolutionCustom(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["solutionType"].(models.MTOSolutionType), fc.Args["name"].(string), fc.Args["pocName"].(string), fc.Args["pocEmail"].(string)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOSolution); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOSolution`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOSolution) - fc.Result = res - return ec.marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createMTOSolutionCustom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOSolution_id(ctx, field) - case "name": - return ec.fieldContext_MTOSolution_name(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) - case "neededBy": - return ec.fieldContext_MTOSolution_neededBy(ctx, field) - case "status": - return ec.fieldContext_MTOSolution_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) - case "key": - return ec.fieldContext_MTOSolution_key(ctx, field) - case "type": - return ec.fieldContext_MTOSolution_type(ctx, field) - case "pocName": - return ec.fieldContext_MTOSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_MTOSolution_pocEmail(ctx, field) - case "createdBy": - return ec.fieldContext_MTOSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) - case "relatedMilestones": - return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) - case "addedFromSolutionLibrary": - return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) - case "commonSolution": - return ec.fieldContext_MTOSolution_commonSolution(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createMTOSolutionCustom_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createMTOSolutionCommon(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createMTOSolutionCommon(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateMTOSolutionCommon(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["key"].(models.MTOCommonSolutionKey)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOSolution); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOSolution`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOSolution) - fc.Result = res - return ec.marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createMTOSolutionCommon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOSolution_id(ctx, field) - case "name": - return ec.fieldContext_MTOSolution_name(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) - case "neededBy": - return ec.fieldContext_MTOSolution_neededBy(ctx, field) - case "status": - return ec.fieldContext_MTOSolution_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) - case "key": - return ec.fieldContext_MTOSolution_key(ctx, field) - case "type": - return ec.fieldContext_MTOSolution_type(ctx, field) - case "pocName": - return ec.fieldContext_MTOSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_MTOSolution_pocEmail(ctx, field) - case "createdBy": - return ec.fieldContext_MTOSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) - case "relatedMilestones": - return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) - case "addedFromSolutionLibrary": - return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) - case "commonSolution": - return ec.fieldContext_MTOSolution_commonSolution(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createMTOSolutionCommon_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateMTOSolution(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateMTOSolution(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateMTOSolution(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.MTOSolution); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOSolution`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.MTOSolution) - fc.Result = res - return ec.marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateMTOSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_MTOSolution_id(ctx, field) - case "name": - return ec.fieldContext_MTOSolution_name(ctx, field) - case "facilitatedBy": - return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) - case "neededBy": - return ec.fieldContext_MTOSolution_neededBy(ctx, field) - case "status": - return ec.fieldContext_MTOSolution_status(ctx, field) - case "riskIndicator": - return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) - case "key": - return ec.fieldContext_MTOSolution_key(ctx, field) - case "type": - return ec.fieldContext_MTOSolution_type(ctx, field) - case "pocName": - return ec.fieldContext_MTOSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_MTOSolution_pocEmail(ctx, field) - case "createdBy": - return ec.fieldContext_MTOSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_MTOSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) - case "relatedMilestones": - return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) - case "addedFromSolutionLibrary": - return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) - case "commonSolution": - return ec.fieldContext_MTOSolution_commonSolution(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateMTOSolution_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_agreeToNDA(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_agreeToNDA(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AgreeToNda(rctx, fc.Args["agree"].(bool)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*model.NDAInfo); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/graph/model.NDAInfo`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.NDAInfo) - fc.Result = res - return ec.marshalNNDAInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNDAInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_agreeToNDA(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "agreed": - return ec.fieldContext_NDAInfo_agreed(ctx, field) - case "agreedDts": - return ec.fieldContext_NDAInfo_agreedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NDAInfo", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_agreeToNDA_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addOrUpdateCustomOperationalNeed(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addOrUpdateCustomOperationalNeed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddOrUpdateCustomOperationalNeed(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["customNeedType"].(string), fc.Args["needed"].(bool)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.OperationalNeed); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalNeed`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.OperationalNeed) - fc.Result = res - return ec.marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addOrUpdateCustomOperationalNeed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalNeed_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) - case "needed": - return ec.fieldContext_OperationalNeed_needed(ctx, field) - case "solutions": - return ec.fieldContext_OperationalNeed_solutions(ctx, field) - case "key": - return ec.fieldContext_OperationalNeed_key(ctx, field) - case "name": - return ec.fieldContext_OperationalNeed_name(ctx, field) - case "nameOther": - return ec.fieldContext_OperationalNeed_nameOther(ctx, field) - case "section": - return ec.fieldContext_OperationalNeed_section(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalNeed_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalNeed_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalNeed", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addOrUpdateCustomOperationalNeed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateCustomOperationalNeedByID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateCustomOperationalNeedByID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateCustomOperationalNeedByID(rctx, fc.Args["id"].(uuid.UUID), fc.Args["customNeedType"].(*string), fc.Args["needed"].(bool)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.OperationalNeed); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalNeed`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.OperationalNeed) - fc.Result = res - return ec.marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateCustomOperationalNeedByID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalNeed_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) - case "needed": - return ec.fieldContext_OperationalNeed_needed(ctx, field) - case "solutions": - return ec.fieldContext_OperationalNeed_solutions(ctx, field) - case "key": - return ec.fieldContext_OperationalNeed_key(ctx, field) - case "name": - return ec.fieldContext_OperationalNeed_name(ctx, field) - case "nameOther": - return ec.fieldContext_OperationalNeed_nameOther(ctx, field) - case "section": - return ec.fieldContext_OperationalNeed_section(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalNeed_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalNeed_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalNeed", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateCustomOperationalNeedByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createOperationalSolution(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOperationalSolution(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOperationalSolution(rctx, fc.Args["operationalNeedID"].(uuid.UUID), fc.Args["solutionType"].(*models.OperationalSolutionKey), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.OperationalSolution); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalSolution`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.OperationalSolution) - fc.Result = res - return ec.marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createOperationalSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalSolution_id(ctx, field) - case "operationalNeedID": - return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) - case "solutionType": - return ec.fieldContext_OperationalSolution_solutionType(ctx, field) - case "needed": - return ec.fieldContext_OperationalSolution_needed(ctx, field) - case "name": - return ec.fieldContext_OperationalSolution_name(ctx, field) - case "key": - return ec.fieldContext_OperationalSolution_key(ctx, field) - case "nameOther": - return ec.fieldContext_OperationalSolution_nameOther(ctx, field) - case "pocName": - return ec.fieldContext_OperationalSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) - case "mustStartDts": - return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) - case "mustFinishDts": - return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) - case "isOther": - return ec.fieldContext_OperationalSolution_isOther(ctx, field) - case "isCommonSolution": - return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) - case "otherHeader": - return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) - case "status": - return ec.fieldContext_OperationalSolution_status(ctx, field) - case "documents": - return ec.fieldContext_OperationalSolution_documents(ctx, field) - case "operationalSolutionSubtasks": - return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOperationalSolution_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateOperationalSolution(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOperationalSolution(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOperationalSolution(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.OperationalSolution); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalSolution`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.OperationalSolution) - fc.Result = res - return ec.marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateOperationalSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalSolution_id(ctx, field) - case "operationalNeedID": - return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) - case "solutionType": - return ec.fieldContext_OperationalSolution_solutionType(ctx, field) - case "needed": - return ec.fieldContext_OperationalSolution_needed(ctx, field) - case "name": - return ec.fieldContext_OperationalSolution_name(ctx, field) - case "key": - return ec.fieldContext_OperationalSolution_key(ctx, field) - case "nameOther": - return ec.fieldContext_OperationalSolution_nameOther(ctx, field) - case "pocName": - return ec.fieldContext_OperationalSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) - case "mustStartDts": - return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) - case "mustFinishDts": - return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) - case "isOther": - return ec.fieldContext_OperationalSolution_isOther(ctx, field) - case "isCommonSolution": - return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) - case "otherHeader": - return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) - case "status": - return ec.fieldContext_OperationalSolution_status(ctx, field) - case "documents": - return ec.fieldContext_OperationalSolution_documents(ctx, field) - case "operationalSolutionSubtasks": - return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateOperationalSolution_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createOperationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOperationalSolutionSubtasks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOperationalSolutionSubtasks(rctx, fc.Args["solutionID"].(uuid.UUID), fc.Args["inputs"].([]*model.CreateOperationalSolutionSubtaskInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.OperationalSolutionSubtask); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.OperationalSolutionSubtask`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*models.OperationalSolutionSubtask) - fc.Result = res - return ec.marshalOOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createOperationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalSolutionSubtask_id(ctx, field) - case "solutionID": - return ec.fieldContext_OperationalSolutionSubtask_solutionID(ctx, field) - case "name": - return ec.fieldContext_OperationalSolutionSubtask_name(ctx, field) - case "status": - return ec.fieldContext_OperationalSolutionSubtask_status(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalSolutionSubtask_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalSolutionSubtask_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalSolutionSubtask_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalSolutionSubtask_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalSolutionSubtask", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOperationalSolutionSubtasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateOperationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOperationalSolutionSubtasks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOperationalSolutionSubtasks(rctx, fc.Args["inputs"].([]*model.UpdateOperationalSolutionSubtaskInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.OperationalSolutionSubtask); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.OperationalSolutionSubtask`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*models.OperationalSolutionSubtask) - fc.Result = res - return ec.marshalOOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateOperationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalSolutionSubtask_id(ctx, field) - case "solutionID": - return ec.fieldContext_OperationalSolutionSubtask_solutionID(ctx, field) - case "name": - return ec.fieldContext_OperationalSolutionSubtask_name(ctx, field) - case "status": - return ec.fieldContext_OperationalSolutionSubtask_status(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalSolutionSubtask_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalSolutionSubtask_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalSolutionSubtask_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalSolutionSubtask_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalSolutionSubtask", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateOperationalSolutionSubtasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteOperationalSolutionSubtask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteOperationalSolutionSubtask(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOperationalSolutionSubtask(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(int); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be int`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteOperationalSolutionSubtask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteOperationalSolutionSubtask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanBasics(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanBasics(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanBasics(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanBasics); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanBasics`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanBasics) - fc.Result = res - return ec.marshalNPlanBasics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBasics(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanBasics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanBasics_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanBasics_modelPlanID(ctx, field) - case "demoCode": - return ec.fieldContext_PlanBasics_demoCode(ctx, field) - case "amsModelID": - return ec.fieldContext_PlanBasics_amsModelID(ctx, field) - case "modelCategory": - return ec.fieldContext_PlanBasics_modelCategory(ctx, field) - case "additionalModelCategories": - return ec.fieldContext_PlanBasics_additionalModelCategories(ctx, field) - case "cmsCenters": - return ec.fieldContext_PlanBasics_cmsCenters(ctx, field) - case "cmmiGroups": - return ec.fieldContext_PlanBasics_cmmiGroups(ctx, field) - case "modelType": - return ec.fieldContext_PlanBasics_modelType(ctx, field) - case "modelTypeOther": - return ec.fieldContext_PlanBasics_modelTypeOther(ctx, field) - case "problem": - return ec.fieldContext_PlanBasics_problem(ctx, field) - case "goal": - return ec.fieldContext_PlanBasics_goal(ctx, field) - case "testInterventions": - return ec.fieldContext_PlanBasics_testInterventions(ctx, field) - case "note": - return ec.fieldContext_PlanBasics_note(ctx, field) - case "completeICIP": - return ec.fieldContext_PlanBasics_completeICIP(ctx, field) - case "clearanceStarts": - return ec.fieldContext_PlanBasics_clearanceStarts(ctx, field) - case "clearanceEnds": - return ec.fieldContext_PlanBasics_clearanceEnds(ctx, field) - case "announced": - return ec.fieldContext_PlanBasics_announced(ctx, field) - case "applicationsStart": - return ec.fieldContext_PlanBasics_applicationsStart(ctx, field) - case "applicationsEnd": - return ec.fieldContext_PlanBasics_applicationsEnd(ctx, field) - case "performancePeriodStarts": - return ec.fieldContext_PlanBasics_performancePeriodStarts(ctx, field) - case "performancePeriodEnds": - return ec.fieldContext_PlanBasics_performancePeriodEnds(ctx, field) - case "wrapUpEnds": - return ec.fieldContext_PlanBasics_wrapUpEnds(ctx, field) - case "highLevelNote": - return ec.fieldContext_PlanBasics_highLevelNote(ctx, field) - case "phasedIn": - return ec.fieldContext_PlanBasics_phasedIn(ctx, field) - case "phasedInNote": - return ec.fieldContext_PlanBasics_phasedInNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanBasics_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanBasics_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanBasics_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanBasics_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanBasics_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanBasics_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanBasics_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanBasics_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanBasics_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanBasics_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanBasics_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanBasics_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanBasics_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanBasics", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanBasics_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanBeneficiaries(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanBeneficiaries(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanBeneficiaries(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanBeneficiaries); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanBeneficiaries`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanBeneficiaries) - fc.Result = res - return ec.marshalNPlanBeneficiaries2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBeneficiaries(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanBeneficiaries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanBeneficiaries_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanBeneficiaries_modelPlanID(ctx, field) - case "beneficiaries": - return ec.fieldContext_PlanBeneficiaries_beneficiaries(ctx, field) - case "beneficiariesOther": - return ec.fieldContext_PlanBeneficiaries_beneficiariesOther(ctx, field) - case "beneficiariesNote": - return ec.fieldContext_PlanBeneficiaries_beneficiariesNote(ctx, field) - case "diseaseSpecificGroup": - return ec.fieldContext_PlanBeneficiaries_diseaseSpecificGroup(ctx, field) - case "treatDualElligibleDifferent": - return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferent(ctx, field) - case "treatDualElligibleDifferentHow": - return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentHow(ctx, field) - case "treatDualElligibleDifferentNote": - return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentNote(ctx, field) - case "excludeCertainCharacteristics": - return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristics(ctx, field) - case "excludeCertainCharacteristicsCriteria": - return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx, field) - case "excludeCertainCharacteristicsNote": - return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx, field) - case "numberPeopleImpacted": - return ec.fieldContext_PlanBeneficiaries_numberPeopleImpacted(ctx, field) - case "estimateConfidence": - return ec.fieldContext_PlanBeneficiaries_estimateConfidence(ctx, field) - case "confidenceNote": - return ec.fieldContext_PlanBeneficiaries_confidenceNote(ctx, field) - case "beneficiarySelectionMethod": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionMethod(ctx, field) - case "beneficiarySelectionOther": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionOther(ctx, field) - case "beneficiarySelectionNote": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionNote(ctx, field) - case "beneficiarySelectionFrequency": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequency(ctx, field) - case "beneficiarySelectionFrequencyContinually": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx, field) - case "beneficiarySelectionFrequencyOther": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx, field) - case "beneficiarySelectionFrequencyNote": - return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx, field) - case "beneficiaryRemovalFrequency": - return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequency(ctx, field) - case "beneficiaryRemovalFrequencyContinually": - return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx, field) - case "beneficiaryRemovalFrequencyOther": - return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx, field) - case "beneficiaryRemovalFrequencyNote": - return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx, field) - case "beneficiaryOverlap": - return ec.fieldContext_PlanBeneficiaries_beneficiaryOverlap(ctx, field) - case "beneficiaryOverlapNote": - return ec.fieldContext_PlanBeneficiaries_beneficiaryOverlapNote(ctx, field) - case "precedenceRules": - return ec.fieldContext_PlanBeneficiaries_precedenceRules(ctx, field) - case "precedenceRulesYes": - return ec.fieldContext_PlanBeneficiaries_precedenceRulesYes(ctx, field) - case "precedenceRulesNo": - return ec.fieldContext_PlanBeneficiaries_precedenceRulesNo(ctx, field) - case "precedenceRulesNote": - return ec.fieldContext_PlanBeneficiaries_precedenceRulesNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanBeneficiaries_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanBeneficiaries_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanBeneficiaries_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanBeneficiaries_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanBeneficiaries_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanBeneficiaries_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanBeneficiaries_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanBeneficiaries_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanBeneficiaries_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanBeneficiaries_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanBeneficiaries_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanBeneficiaries_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanBeneficiaries_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanBeneficiaries", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanBeneficiaries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createPlanCollaborator(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createPlanCollaborator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreatePlanCollaborator(rctx, fc.Args["input"].(model.PlanCollaboratorCreateInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanCollaborator); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCollaborator`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanCollaborator) - fc.Result = res - return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createPlanCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCollaborator_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) - case "userID": - return ec.fieldContext_PlanCollaborator_userID(ctx, field) - case "userAccount": - return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) - case "teamRoles": - return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createPlanCollaborator_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanCollaborator(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanCollaborator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanCollaborator(rctx, fc.Args["id"].(uuid.UUID), fc.Args["newRoles"].([]models.TeamRole)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanCollaborator); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCollaborator`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanCollaborator) - fc.Result = res - return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCollaborator_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) - case "userID": - return ec.fieldContext_PlanCollaborator_userID(ctx, field) - case "userAccount": - return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) - case "teamRoles": - return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanCollaborator_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deletePlanCollaborator(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deletePlanCollaborator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeletePlanCollaborator(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanCollaborator); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCollaborator`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanCollaborator) - fc.Result = res - return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deletePlanCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCollaborator_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) - case "userID": - return ec.fieldContext_PlanCollaborator_userID(ctx, field) - case "userAccount": - return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) - case "teamRoles": - return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deletePlanCollaborator_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createPlanCR(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createPlanCR(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreatePlanCr(rctx, fc.Args["input"].(model.PlanCRCreateInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanCR); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCR`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanCR) - fc.Result = res - return ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createPlanCR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCR_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCR_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanCR_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanCR_dateInitiated(ctx, field) - case "dateImplemented": - return ec.fieldContext_PlanCR_dateImplemented(ctx, field) - case "title": - return ec.fieldContext_PlanCR_title(ctx, field) - case "note": - return ec.fieldContext_PlanCR_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCR_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCR_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCR_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCR_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createPlanCR_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanCR(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanCR(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanCr(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanCR); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCR`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanCR) - fc.Result = res - return ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanCR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCR_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCR_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanCR_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanCR_dateInitiated(ctx, field) - case "dateImplemented": - return ec.fieldContext_PlanCR_dateImplemented(ctx, field) - case "title": - return ec.fieldContext_PlanCR_title(ctx, field) - case "note": - return ec.fieldContext_PlanCR_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCR_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCR_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCR_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCR_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanCR_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deletePlanCR(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deletePlanCR(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeletePlanCr(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanCR); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCR`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanCR) - fc.Result = res - return ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deletePlanCR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCR_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCR_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanCR_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanCR_dateInitiated(ctx, field) - case "dateImplemented": - return ec.fieldContext_PlanCR_dateImplemented(ctx, field) - case "title": - return ec.fieldContext_PlanCR_title(ctx, field) - case "note": - return ec.fieldContext_PlanCR_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCR_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCR_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCR_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCR_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deletePlanCR_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanDataExchangeApproach(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanDataExchangeApproach(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanDataExchangeApproach(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanDataExchangeApproach); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDataExchangeApproach`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDataExchangeApproach) - fc.Result = res - return ec.marshalNPlanDataExchangeApproach2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanDataExchangeApproach(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDataExchangeApproach_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDataExchangeApproach_modelPlanID(ctx, field) - case "dataToCollectFromParticipants": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field) - case "dataToCollectFromParticipantsReportsDetails": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field) - case "dataToCollectFromParticipantsOther": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field) - case "dataWillNotBeCollectedFromParticipants": - return ec.fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field) - case "dataToCollectFromParticipantsNote": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field) - case "dataToSendToParticipants": - return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx, field) - case "dataToSendToParticipantsNote": - return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field) - case "doesNeedToMakeMultiPayerDataAvailable": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field) - case "anticipatedMultiPayerDataAvailabilityUseCase": - return ec.fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) - case "doesNeedToMakeMultiPayerDataAvailableNote": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) - case "doesNeedToCollectAndAggregateMultiSourceData": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) - case "multiSourceDataToCollect": - return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field) - case "multiSourceDataToCollectOther": - return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field) - case "doesNeedToCollectAndAggregateMultiSourceDataNote": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) - case "willImplementNewDataExchangeMethods": - return ec.fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field) - case "newDataExchangeMethodsDescription": - return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field) - case "newDataExchangeMethodsNote": - return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field) - case "additionalDataExchangeConsiderationsDescription": - return ec.fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDataExchangeApproach_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDataExchangeApproach_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDataExchangeApproach_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDataExchangeApproach_modifiedDts(ctx, field) - case "isDataExchangeApproachComplete": - return ec.fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field) - case "markedCompleteBy": - return ec.fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx, field) - case "markedCompleteByUserAccount": - return ec.fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field) - case "markedCompleteDts": - return ec.fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx, field) - case "status": - return ec.fieldContext_PlanDataExchangeApproach_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDataExchangeApproach", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanDataExchangeApproach_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createPlanDiscussion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createPlanDiscussion(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreatePlanDiscussion(rctx, fc.Args["input"].(model.PlanDiscussionCreateInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanDiscussion); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDiscussion`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDiscussion) - fc.Result = res - return ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createPlanDiscussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDiscussion_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) - case "content": - return ec.fieldContext_PlanDiscussion_content(ctx, field) - case "userRole": - return ec.fieldContext_PlanDiscussion_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) - case "replies": - return ec.fieldContext_PlanDiscussion_replies(ctx, field) - case "isAssessment": - return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createPlanDiscussion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_uploadNewPlanDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_uploadNewPlanDocument(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UploadNewPlanDocument(rctx, fc.Args["input"].(model.PlanDocumentInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanDocument); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDocument`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDocument) - fc.Result = res - return ec.marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_uploadNewPlanDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDocument_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) - case "isLink": - return ec.fieldContext_PlanDocument_isLink(ctx, field) - case "url": - return ec.fieldContext_PlanDocument_url(ctx, field) - case "fileType": - return ec.fieldContext_PlanDocument_fileType(ctx, field) - case "bucket": - return ec.fieldContext_PlanDocument_bucket(ctx, field) - case "fileKey": - return ec.fieldContext_PlanDocument_fileKey(ctx, field) - case "virusScanned": - return ec.fieldContext_PlanDocument_virusScanned(ctx, field) - case "virusClean": - return ec.fieldContext_PlanDocument_virusClean(ctx, field) - case "restricted": - return ec.fieldContext_PlanDocument_restricted(ctx, field) - case "fileName": - return ec.fieldContext_PlanDocument_fileName(ctx, field) - case "fileSize": - return ec.fieldContext_PlanDocument_fileSize(ctx, field) - case "documentType": - return ec.fieldContext_PlanDocument_documentType(ctx, field) - case "otherType": - return ec.fieldContext_PlanDocument_otherType(ctx, field) - case "optionalNotes": - return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) - case "downloadUrl": - return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) - case "deletedAt": - return ec.fieldContext_PlanDocument_deletedAt(ctx, field) - case "numLinkedSolutions": - return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDocument_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDocument_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_uploadNewPlanDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_linkNewPlanDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_linkNewPlanDocument(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().LinkNewPlanDocument(rctx, fc.Args["input"].(model.PlanDocumentLinkInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanDocument); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDocument`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDocument) - fc.Result = res - return ec.marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_linkNewPlanDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDocument_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) - case "isLink": - return ec.fieldContext_PlanDocument_isLink(ctx, field) - case "url": - return ec.fieldContext_PlanDocument_url(ctx, field) - case "fileType": - return ec.fieldContext_PlanDocument_fileType(ctx, field) - case "bucket": - return ec.fieldContext_PlanDocument_bucket(ctx, field) - case "fileKey": - return ec.fieldContext_PlanDocument_fileKey(ctx, field) - case "virusScanned": - return ec.fieldContext_PlanDocument_virusScanned(ctx, field) - case "virusClean": - return ec.fieldContext_PlanDocument_virusClean(ctx, field) - case "restricted": - return ec.fieldContext_PlanDocument_restricted(ctx, field) - case "fileName": - return ec.fieldContext_PlanDocument_fileName(ctx, field) - case "fileSize": - return ec.fieldContext_PlanDocument_fileSize(ctx, field) - case "documentType": - return ec.fieldContext_PlanDocument_documentType(ctx, field) - case "otherType": - return ec.fieldContext_PlanDocument_otherType(ctx, field) - case "optionalNotes": - return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) - case "downloadUrl": - return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) - case "deletedAt": - return ec.fieldContext_PlanDocument_deletedAt(ctx, field) - case "numLinkedSolutions": - return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDocument_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDocument_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_linkNewPlanDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deletePlanDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deletePlanDocument(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeletePlanDocument(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(int); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be int`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deletePlanDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deletePlanDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createPlanDocumentSolutionLinks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createPlanDocumentSolutionLinks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreatePlanDocumentSolutionLinks(rctx, fc.Args["solutionID"].(uuid.UUID), fc.Args["documentIDs"].([]uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.PlanDocumentSolutionLink); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.PlanDocumentSolutionLink`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*models.PlanDocumentSolutionLink) - fc.Result = res - return ec.marshalOPlanDocumentSolutionLink2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentSolutionLinkᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createPlanDocumentSolutionLinks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDocumentSolutionLink_id(ctx, field) - case "solutionID": - return ec.fieldContext_PlanDocumentSolutionLink_solutionID(ctx, field) - case "documentID": - return ec.fieldContext_PlanDocumentSolutionLink_documentID(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDocumentSolutionLink_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDocumentSolutionLink_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDocumentSolutionLink_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDocumentSolutionLink_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDocumentSolutionLink_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDocumentSolutionLink_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDocumentSolutionLink", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createPlanDocumentSolutionLinks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removePlanDocumentSolutionLinks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removePlanDocumentSolutionLinks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemovePlanDocumentSolutionLinks(rctx, fc.Args["solutionID"].(uuid.UUID), fc.Args["documentIDs"].([]uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(bool); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_removePlanDocumentSolutionLinks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_removePlanDocumentSolutionLinks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addPlanFavorite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addPlanFavorite(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddPlanFavorite(rctx, fc.Args["modelPlanID"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanFavorite); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanFavorite`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanFavorite) - fc.Result = res - return ec.marshalNPlanFavorite2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanFavorite(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addPlanFavorite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanFavorite_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanFavorite_modelPlanID(ctx, field) - case "userID": - return ec.fieldContext_PlanFavorite_userID(ctx, field) - case "userAccount": - return ec.fieldContext_PlanFavorite_userAccount(ctx, field) - case "createdBy": - return ec.fieldContext_PlanFavorite_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanFavorite_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanFavorite_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanFavorite_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanFavorite_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanFavorite_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanFavorite", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addPlanFavorite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deletePlanFavorite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deletePlanFavorite(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeletePlanFavorite(rctx, fc.Args["modelPlanID"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanFavorite); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanFavorite`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanFavorite) - fc.Result = res - return ec.marshalNPlanFavorite2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanFavorite(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deletePlanFavorite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanFavorite_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanFavorite_modelPlanID(ctx, field) - case "userID": - return ec.fieldContext_PlanFavorite_userID(ctx, field) - case "userAccount": - return ec.fieldContext_PlanFavorite_userAccount(ctx, field) - case "createdBy": - return ec.fieldContext_PlanFavorite_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanFavorite_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanFavorite_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanFavorite_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanFavorite_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanFavorite_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanFavorite", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deletePlanFavorite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanGeneralCharacteristics(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanGeneralCharacteristics(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanGeneralCharacteristics(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanGeneralCharacteristics); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanGeneralCharacteristics`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanGeneralCharacteristics) - fc.Result = res - return ec.marshalNPlanGeneralCharacteristics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanGeneralCharacteristics(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanGeneralCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanGeneralCharacteristics_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanGeneralCharacteristics_modelPlanID(ctx, field) - case "isNewModel": - return ec.fieldContext_PlanGeneralCharacteristics_isNewModel(ctx, field) - case "existingModel": - return ec.fieldContext_PlanGeneralCharacteristics_existingModel(ctx, field) - case "currentModelPlanID": - return ec.fieldContext_PlanGeneralCharacteristics_currentModelPlanID(ctx, field) - case "currentModelPlan": - return ec.fieldContext_PlanGeneralCharacteristics_currentModelPlan(ctx, field) - case "existingModelID": - return ec.fieldContext_PlanGeneralCharacteristics_existingModelID(ctx, field) - case "existingModelPlan": - return ec.fieldContext_PlanGeneralCharacteristics_existingModelPlan(ctx, field) - case "resemblesExistingModel": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModel(ctx, field) - case "resemblesExistingModelWhyHow": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx, field) - case "resemblesExistingModelOtherSpecify": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx, field) - case "resemblesExistingModelOtherSelected": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx, field) - case "resemblesExistingModelOtherOption": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx, field) - case "resemblesExistingModelHow": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelHow(ctx, field) - case "resemblesExistingModelNote": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelNote(ctx, field) - case "resemblesExistingModelWhich": - return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx, field) - case "participationInModelPrecondition": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPrecondition(ctx, field) - case "participationInModelPreconditionWhyHow": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx, field) - case "participationInModelPreconditionOtherSpecify": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx, field) - case "participationInModelPreconditionOtherSelected": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx, field) - case "participationInModelPreconditionOtherOption": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx, field) - case "participationInModelPreconditionNote": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx, field) - case "participationInModelPreconditionWhich": - return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx, field) - case "hasComponentsOrTracks": - return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracks(ctx, field) - case "hasComponentsOrTracksDiffer": - return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx, field) - case "hasComponentsOrTracksNote": - return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx, field) - case "agencyOrStateHelp": - return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelp(ctx, field) - case "agencyOrStateHelpOther": - return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx, field) - case "agencyOrStateHelpNote": - return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx, field) - case "alternativePaymentModelTypes": - return ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx, field) - case "alternativePaymentModelNote": - return ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelNote(ctx, field) - case "keyCharacteristics": - return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristics(ctx, field) - case "keyCharacteristicsOther": - return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsOther(ctx, field) - case "keyCharacteristicsNote": - return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsNote(ctx, field) - case "collectPlanBids": - return ec.fieldContext_PlanGeneralCharacteristics_collectPlanBids(ctx, field) - case "collectPlanBidsNote": - return ec.fieldContext_PlanGeneralCharacteristics_collectPlanBidsNote(ctx, field) - case "managePartCDEnrollment": - return ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollment(ctx, field) - case "managePartCDEnrollmentNote": - return ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx, field) - case "planContractUpdated": - return ec.fieldContext_PlanGeneralCharacteristics_planContractUpdated(ctx, field) - case "planContractUpdatedNote": - return ec.fieldContext_PlanGeneralCharacteristics_planContractUpdatedNote(ctx, field) - case "careCoordinationInvolved": - return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolved(ctx, field) - case "careCoordinationInvolvedDescription": - return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx, field) - case "careCoordinationInvolvedNote": - return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx, field) - case "additionalServicesInvolved": - return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolved(ctx, field) - case "additionalServicesInvolvedDescription": - return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx, field) - case "additionalServicesInvolvedNote": - return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx, field) - case "communityPartnersInvolved": - return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolved(ctx, field) - case "communityPartnersInvolvedDescription": - return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx, field) - case "communityPartnersInvolvedNote": - return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx, field) - case "geographiesTargeted": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargeted(ctx, field) - case "geographiesTargetedTypes": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypes(ctx, field) - case "geographiesStatesAndTerritories": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx, field) - case "geographiesRegionTypes": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesRegionTypes(ctx, field) - case "geographiesTargetedTypesOther": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx, field) - case "geographiesTargetedAppliedTo": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx, field) - case "geographiesTargetedAppliedToOther": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx, field) - case "geographiesTargetedNote": - return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedNote(ctx, field) - case "participationOptions": - return ec.fieldContext_PlanGeneralCharacteristics_participationOptions(ctx, field) - case "participationOptionsNote": - return ec.fieldContext_PlanGeneralCharacteristics_participationOptionsNote(ctx, field) - case "agreementTypes": - return ec.fieldContext_PlanGeneralCharacteristics_agreementTypes(ctx, field) - case "agreementTypesOther": - return ec.fieldContext_PlanGeneralCharacteristics_agreementTypesOther(ctx, field) - case "multiplePatricipationAgreementsNeeded": - return ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx, field) - case "multiplePatricipationAgreementsNeededNote": - return ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx, field) - case "rulemakingRequired": - return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequired(ctx, field) - case "rulemakingRequiredDescription": - return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx, field) - case "rulemakingRequiredNote": - return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredNote(ctx, field) - case "authorityAllowances": - return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowances(ctx, field) - case "authorityAllowancesOther": - return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesOther(ctx, field) - case "authorityAllowancesNote": - return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesNote(ctx, field) - case "waiversRequired": - return ec.fieldContext_PlanGeneralCharacteristics_waiversRequired(ctx, field) - case "waiversRequiredTypes": - return ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredTypes(ctx, field) - case "waiversRequiredNote": - return ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanGeneralCharacteristics_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanGeneralCharacteristics_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanGeneralCharacteristics_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanGeneralCharacteristics_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanGeneralCharacteristics_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanGeneralCharacteristics_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanGeneralCharacteristics_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanGeneralCharacteristics", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanGeneralCharacteristics_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanOpsEvalAndLearning(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanOpsEvalAndLearning(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanOpsEvalAndLearning(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanOpsEvalAndLearning); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanOpsEvalAndLearning`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanOpsEvalAndLearning) - fc.Result = res - return ec.marshalNPlanOpsEvalAndLearning2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanOpsEvalAndLearning(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanOpsEvalAndLearning(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanOpsEvalAndLearning_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanOpsEvalAndLearning_modelPlanID(ctx, field) - case "stakeholders": - return ec.fieldContext_PlanOpsEvalAndLearning_stakeholders(ctx, field) - case "stakeholdersOther": - return ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersOther(ctx, field) - case "stakeholdersNote": - return ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersNote(ctx, field) - case "helpdeskUse": - return ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUse(ctx, field) - case "helpdeskUseNote": - return ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUseNote(ctx, field) - case "contractorSupport": - return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupport(ctx, field) - case "contractorSupportOther": - return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportOther(ctx, field) - case "contractorSupportHow": - return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportHow(ctx, field) - case "contractorSupportNote": - return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportNote(ctx, field) - case "iddocSupport": - return ec.fieldContext_PlanOpsEvalAndLearning_iddocSupport(ctx, field) - case "iddocSupportNote": - return ec.fieldContext_PlanOpsEvalAndLearning_iddocSupportNote(ctx, field) - case "technicalContactsIdentified": - return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentified(ctx, field) - case "technicalContactsIdentifiedDetail": - return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx, field) - case "technicalContactsIdentifiedNote": - return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx, field) - case "captureParticipantInfo": - return ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfo(ctx, field) - case "captureParticipantInfoNote": - return ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx, field) - case "icdOwner": - return ec.fieldContext_PlanOpsEvalAndLearning_icdOwner(ctx, field) - case "draftIcdDueDate": - return ec.fieldContext_PlanOpsEvalAndLearning_draftIcdDueDate(ctx, field) - case "icdNote": - return ec.fieldContext_PlanOpsEvalAndLearning_icdNote(ctx, field) - case "uatNeeds": - return ec.fieldContext_PlanOpsEvalAndLearning_uatNeeds(ctx, field) - case "stcNeeds": - return ec.fieldContext_PlanOpsEvalAndLearning_stcNeeds(ctx, field) - case "testingTimelines": - return ec.fieldContext_PlanOpsEvalAndLearning_testingTimelines(ctx, field) - case "testingNote": - return ec.fieldContext_PlanOpsEvalAndLearning_testingNote(ctx, field) - case "dataMonitoringFileTypes": - return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx, field) - case "dataMonitoringFileOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx, field) - case "dataResponseType": - return ec.fieldContext_PlanOpsEvalAndLearning_dataResponseType(ctx, field) - case "dataResponseFileFrequency": - return ec.fieldContext_PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx, field) - case "dataFullTimeOrIncremental": - return ec.fieldContext_PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx, field) - case "eftSetUp": - return ec.fieldContext_PlanOpsEvalAndLearning_eftSetUp(ctx, field) - case "unsolicitedAdjustmentsIncluded": - return ec.fieldContext_PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx, field) - case "dataFlowDiagramsNeeded": - return ec.fieldContext_PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx, field) - case "produceBenefitEnhancementFiles": - return ec.fieldContext_PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx, field) - case "fileNamingConventions": - return ec.fieldContext_PlanOpsEvalAndLearning_fileNamingConventions(ctx, field) - case "dataMonitoringNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringNote(ctx, field) - case "benchmarkForPerformance": - return ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformance(ctx, field) - case "benchmarkForPerformanceNote": - return ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx, field) - case "computePerformanceScores": - return ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScores(ctx, field) - case "computePerformanceScoresNote": - return ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx, field) - case "riskAdjustPerformance": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPerformance(ctx, field) - case "riskAdjustFeedback": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustFeedback(ctx, field) - case "riskAdjustPayments": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPayments(ctx, field) - case "riskAdjustOther": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustOther(ctx, field) - case "riskAdjustNote": - return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustNote(ctx, field) - case "appealPerformance": - return ec.fieldContext_PlanOpsEvalAndLearning_appealPerformance(ctx, field) - case "appealFeedback": - return ec.fieldContext_PlanOpsEvalAndLearning_appealFeedback(ctx, field) - case "appealPayments": - return ec.fieldContext_PlanOpsEvalAndLearning_appealPayments(ctx, field) - case "appealOther": - return ec.fieldContext_PlanOpsEvalAndLearning_appealOther(ctx, field) - case "appealNote": - return ec.fieldContext_PlanOpsEvalAndLearning_appealNote(ctx, field) - case "evaluationApproaches": - return ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproaches(ctx, field) - case "evaluationApproachOther": - return ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproachOther(ctx, field) - case "evalutaionApproachNote": - return ec.fieldContext_PlanOpsEvalAndLearning_evalutaionApproachNote(ctx, field) - case "ccmInvolvment": - return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvment(ctx, field) - case "ccmInvolvmentOther": - return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx, field) - case "ccmInvolvmentNote": - return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx, field) - case "dataNeededForMonitoring": - return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx, field) - case "dataNeededForMonitoringOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx, field) - case "dataNeededForMonitoringNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx, field) - case "dataToSendParticicipants": - return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipants(ctx, field) - case "dataToSendParticicipantsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx, field) - case "dataToSendParticicipantsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx, field) - case "shareCclfData": - return ec.fieldContext_PlanOpsEvalAndLearning_shareCclfData(ctx, field) - case "shareCclfDataNote": - return ec.fieldContext_PlanOpsEvalAndLearning_shareCclfDataNote(ctx, field) - case "sendFilesBetweenCcw": - return ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx, field) - case "sendFilesBetweenCcwNote": - return ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx, field) - case "appToSendFilesToKnown": - return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx, field) - case "appToSendFilesToWhich": - return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx, field) - case "appToSendFilesToNote": - return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToNote(ctx, field) - case "useCcwForFileDistribiutionToParticipants": - return ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx, field) - case "useCcwForFileDistribiutionToParticipantsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx, field) - case "developNewQualityMeasures": - return ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasures(ctx, field) - case "developNewQualityMeasuresNote": - return ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx, field) - case "qualityPerformanceImpactsPayment": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx, field) - case "qualityPerformanceImpactsPaymentOther": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx, field) - case "qualityPerformanceImpactsPaymentNote": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx, field) - case "dataSharingStarts": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStarts(ctx, field) - case "dataSharingStartsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsOther(ctx, field) - case "dataSharingFrequency": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequency(ctx, field) - case "dataSharingFrequencyContinually": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx, field) - case "dataSharingFrequencyOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx, field) - case "dataSharingStartsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsNote(ctx, field) - case "dataCollectionStarts": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStarts(ctx, field) - case "dataCollectionStartsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx, field) - case "dataCollectionFrequency": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequency(ctx, field) - case "dataCollectionFrequencyContinually": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx, field) - case "dataCollectionFrequencyOther": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx, field) - case "dataCollectionFrequencyNote": - return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx, field) - case "qualityReportingStarts": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStarts(ctx, field) - case "qualityReportingStartsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx, field) - case "qualityReportingStartsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx, field) - case "qualityReportingFrequency": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequency(ctx, field) - case "qualityReportingFrequencyContinually": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx, field) - case "qualityReportingFrequencyOther": - return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx, field) - case "modelLearningSystems": - return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystems(ctx, field) - case "modelLearningSystemsOther": - return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx, field) - case "modelLearningSystemsNote": - return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx, field) - case "anticipatedChallenges": - return ec.fieldContext_PlanOpsEvalAndLearning_anticipatedChallenges(ctx, field) - case "createdBy": - return ec.fieldContext_PlanOpsEvalAndLearning_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanOpsEvalAndLearning_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanOpsEvalAndLearning_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanOpsEvalAndLearning_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanOpsEvalAndLearning_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanOpsEvalAndLearning_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanOpsEvalAndLearning_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanOpsEvalAndLearning", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanOpsEvalAndLearning_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanParticipantsAndProviders(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanParticipantsAndProviders(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanParticipantsAndProviders(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanParticipantsAndProviders); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanParticipantsAndProviders`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanParticipantsAndProviders) - fc.Result = res - return ec.marshalNPlanParticipantsAndProviders2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanParticipantsAndProviders(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanParticipantsAndProviders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanParticipantsAndProviders_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanParticipantsAndProviders_modelPlanID(ctx, field) - case "participants": - return ec.fieldContext_PlanParticipantsAndProviders_participants(ctx, field) - case "medicareProviderType": - return ec.fieldContext_PlanParticipantsAndProviders_medicareProviderType(ctx, field) - case "isNewTypeOfProvidersOrSuppliers": - return ec.fieldContext_PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx, field) - case "statesEngagement": - return ec.fieldContext_PlanParticipantsAndProviders_statesEngagement(ctx, field) - case "participantsOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantsOther(ctx, field) - case "participantsNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantsNote(ctx, field) - case "participantsCurrentlyInModels": - return ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx, field) - case "participantsCurrentlyInModelsNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx, field) - case "modelApplicationLevel": - return ec.fieldContext_PlanParticipantsAndProviders_modelApplicationLevel(ctx, field) - case "expectedNumberOfParticipants": - return ec.fieldContext_PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx, field) - case "estimateConfidence": - return ec.fieldContext_PlanParticipantsAndProviders_estimateConfidence(ctx, field) - case "confidenceNote": - return ec.fieldContext_PlanParticipantsAndProviders_confidenceNote(ctx, field) - case "recruitmentMethod": - return ec.fieldContext_PlanParticipantsAndProviders_recruitmentMethod(ctx, field) - case "recruitmentOther": - return ec.fieldContext_PlanParticipantsAndProviders_recruitmentOther(ctx, field) - case "recruitmentNote": - return ec.fieldContext_PlanParticipantsAndProviders_recruitmentNote(ctx, field) - case "selectionMethod": - return ec.fieldContext_PlanParticipantsAndProviders_selectionMethod(ctx, field) - case "selectionOther": - return ec.fieldContext_PlanParticipantsAndProviders_selectionOther(ctx, field) - case "selectionNote": - return ec.fieldContext_PlanParticipantsAndProviders_selectionNote(ctx, field) - case "participantAddedFrequency": - return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequency(ctx, field) - case "participantAddedFrequencyContinually": - return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx, field) - case "participantAddedFrequencyOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx, field) - case "participantAddedFrequencyNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx, field) - case "participantRemovedFrequency": - return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequency(ctx, field) - case "participantRemovedFrequencyContinually": - return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx, field) - case "participantRemovedFrequencyOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx, field) - case "participantRemovedFrequencyNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx, field) - case "communicationMethod": - return ec.fieldContext_PlanParticipantsAndProviders_communicationMethod(ctx, field) - case "communicationMethodOther": - return ec.fieldContext_PlanParticipantsAndProviders_communicationMethodOther(ctx, field) - case "communicationNote": - return ec.fieldContext_PlanParticipantsAndProviders_communicationNote(ctx, field) - case "riskType": - return ec.fieldContext_PlanParticipantsAndProviders_riskType(ctx, field) - case "riskOther": - return ec.fieldContext_PlanParticipantsAndProviders_riskOther(ctx, field) - case "riskNote": - return ec.fieldContext_PlanParticipantsAndProviders_riskNote(ctx, field) - case "willRiskChange": - return ec.fieldContext_PlanParticipantsAndProviders_willRiskChange(ctx, field) - case "willRiskChangeNote": - return ec.fieldContext_PlanParticipantsAndProviders_willRiskChangeNote(ctx, field) - case "participantRequireFinancialGuarantee": - return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx, field) - case "participantRequireFinancialGuaranteeType": - return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx, field) - case "participantRequireFinancialGuaranteeOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx, field) - case "participantRequireFinancialGuaranteeNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx, field) - case "coordinateWork": - return ec.fieldContext_PlanParticipantsAndProviders_coordinateWork(ctx, field) - case "coordinateWorkNote": - return ec.fieldContext_PlanParticipantsAndProviders_coordinateWorkNote(ctx, field) - case "gainsharePayments": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePayments(ctx, field) - case "gainsharePaymentsTrack": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx, field) - case "gainsharePaymentsNote": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsNote(ctx, field) - case "gainsharePaymentsEligibility": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx, field) - case "gainsharePaymentsEligibilityOther": - return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx, field) - case "participantsIds": - return ec.fieldContext_PlanParticipantsAndProviders_participantsIds(ctx, field) - case "participantsIdsOther": - return ec.fieldContext_PlanParticipantsAndProviders_participantsIdsOther(ctx, field) - case "participantsIDSNote": - return ec.fieldContext_PlanParticipantsAndProviders_participantsIDSNote(ctx, field) - case "providerAdditionFrequency": - return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequency(ctx, field) - case "providerAdditionFrequencyContinually": - return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx, field) - case "providerAdditionFrequencyOther": - return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx, field) - case "providerAdditionFrequencyNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx, field) - case "providerAddMethod": - return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethod(ctx, field) - case "providerAddMethodOther": - return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodOther(ctx, field) - case "providerAddMethodNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodNote(ctx, field) - case "providerLeaveMethod": - return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethod(ctx, field) - case "providerLeaveMethodOther": - return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodOther(ctx, field) - case "providerLeaveMethodNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodNote(ctx, field) - case "providerRemovalFrequency": - return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequency(ctx, field) - case "providerRemovalFrequencyContinually": - return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx, field) - case "providerRemovalFrequencyOther": - return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx, field) - case "providerRemovalFrequencyNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx, field) - case "providerOverlap": - return ec.fieldContext_PlanParticipantsAndProviders_providerOverlap(ctx, field) - case "providerOverlapHierarchy": - return ec.fieldContext_PlanParticipantsAndProviders_providerOverlapHierarchy(ctx, field) - case "providerOverlapNote": - return ec.fieldContext_PlanParticipantsAndProviders_providerOverlapNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanParticipantsAndProviders_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanParticipantsAndProviders_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanParticipantsAndProviders_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanParticipantsAndProviders_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanParticipantsAndProviders_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanParticipantsAndProviders_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanParticipantsAndProviders_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanParticipantsAndProviders", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanParticipantsAndProviders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanPayments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanPayments(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanPayments); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanPayments`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanPayments) - fc.Result = res - return ec.marshalNPlanPayments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanPayments_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanPayments_modelPlanID(ctx, field) - case "fundingSource": - return ec.fieldContext_PlanPayments_fundingSource(ctx, field) - case "fundingSourcePatientProtectionInfo": - return ec.fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx, field) - case "fundingSourceMedicareAInfo": - return ec.fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx, field) - case "fundingSourceMedicareBInfo": - return ec.fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx, field) - case "fundingSourceOther": - return ec.fieldContext_PlanPayments_fundingSourceOther(ctx, field) - case "fundingSourceNote": - return ec.fieldContext_PlanPayments_fundingSourceNote(ctx, field) - case "fundingSourceR": - return ec.fieldContext_PlanPayments_fundingSourceR(ctx, field) - case "fundingSourceRPatientProtectionInfo": - return ec.fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field) - case "fundingSourceRMedicareAInfo": - return ec.fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx, field) - case "fundingSourceRMedicareBInfo": - return ec.fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx, field) - case "fundingSourceROther": - return ec.fieldContext_PlanPayments_fundingSourceROther(ctx, field) - case "fundingSourceRNote": - return ec.fieldContext_PlanPayments_fundingSourceRNote(ctx, field) - case "payRecipients": - return ec.fieldContext_PlanPayments_payRecipients(ctx, field) - case "payRecipientsOtherSpecification": - return ec.fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx, field) - case "payRecipientsNote": - return ec.fieldContext_PlanPayments_payRecipientsNote(ctx, field) - case "payType": - return ec.fieldContext_PlanPayments_payType(ctx, field) - case "payTypeNote": - return ec.fieldContext_PlanPayments_payTypeNote(ctx, field) - case "payClaims": - return ec.fieldContext_PlanPayments_payClaims(ctx, field) - case "payClaimsOther": - return ec.fieldContext_PlanPayments_payClaimsOther(ctx, field) - case "payClaimsNote": - return ec.fieldContext_PlanPayments_payClaimsNote(ctx, field) - case "shouldAnyProvidersExcludedFFSSystems": - return ec.fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field) - case "shouldAnyProviderExcludedFFSSystemsNote": - return ec.fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) - case "changesMedicarePhysicianFeeSchedule": - return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field) - case "changesMedicarePhysicianFeeScheduleNote": - return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field) - case "affectsMedicareSecondaryPayerClaims": - return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field) - case "affectsMedicareSecondaryPayerClaimsHow": - return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field) - case "affectsMedicareSecondaryPayerClaimsNote": - return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field) - case "payModelDifferentiation": - return ec.fieldContext_PlanPayments_payModelDifferentiation(ctx, field) - case "willBePaymentAdjustments": - return ec.fieldContext_PlanPayments_willBePaymentAdjustments(ctx, field) - case "willBePaymentAdjustmentsNote": - return ec.fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx, field) - case "creatingDependenciesBetweenServices": - return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx, field) - case "creatingDependenciesBetweenServicesNote": - return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field) - case "needsClaimsDataCollection": - return ec.fieldContext_PlanPayments_needsClaimsDataCollection(ctx, field) - case "needsClaimsDataCollectionNote": - return ec.fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx, field) - case "providingThirdPartyFile": - return ec.fieldContext_PlanPayments_providingThirdPartyFile(ctx, field) - case "isContractorAwareTestDataRequirements": - return ec.fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx, field) - case "beneficiaryCostSharingLevelAndHandling": - return ec.fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field) - case "waiveBeneficiaryCostSharingForAnyServices": - return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field) - case "waiveBeneficiaryCostSharingServiceSpecification": - return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) - case "waiverOnlyAppliesPartOfPayment": - return ec.fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field) - case "waiveBeneficiaryCostSharingNote": - return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field) - case "nonClaimsPayments": - return ec.fieldContext_PlanPayments_nonClaimsPayments(ctx, field) - case "nonClaimsPaymentOther": - return ec.fieldContext_PlanPayments_nonClaimsPaymentOther(ctx, field) - case "nonClaimsPaymentsNote": - return ec.fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx, field) - case "paymentCalculationOwner": - return ec.fieldContext_PlanPayments_paymentCalculationOwner(ctx, field) - case "numberPaymentsPerPayCycle": - return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx, field) - case "numberPaymentsPerPayCycleNote": - return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx, field) - case "sharedSystemsInvolvedAdditionalClaimPayment": - return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) - case "sharedSystemsInvolvedAdditionalClaimPaymentNote": - return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) - case "planningToUseInnovationPaymentContractor": - return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx, field) - case "planningToUseInnovationPaymentContractorNote": - return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field) - case "expectedCalculationComplexityLevel": - return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx, field) - case "expectedCalculationComplexityLevelNote": - return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx, field) - case "claimsProcessingPrecedence": - return ec.fieldContext_PlanPayments_claimsProcessingPrecedence(ctx, field) - case "claimsProcessingPrecedenceOther": - return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx, field) - case "claimsProcessingPrecedenceNote": - return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx, field) - case "canParticipantsSelectBetweenPaymentMechanisms": - return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) - case "canParticipantsSelectBetweenPaymentMechanismsHow": - return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) - case "canParticipantsSelectBetweenPaymentMechanismsNote": - return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) - case "anticipatedPaymentFrequency": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx, field) - case "anticipatedPaymentFrequencyContinually": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field) - case "anticipatedPaymentFrequencyOther": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx, field) - case "anticipatedPaymentFrequencyNote": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx, field) - case "willRecoverPayments": - return ec.fieldContext_PlanPayments_willRecoverPayments(ctx, field) - case "willRecoverPaymentsNote": - return ec.fieldContext_PlanPayments_willRecoverPaymentsNote(ctx, field) - case "anticipateReconcilingPaymentsRetrospectively": - return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field) - case "anticipateReconcilingPaymentsRetrospectivelyNote": - return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) - case "paymentReconciliationFrequency": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequency(ctx, field) - case "paymentReconciliationFrequencyContinually": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx, field) - case "paymentReconciliationFrequencyOther": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx, field) - case "paymentReconciliationFrequencyNote": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx, field) - case "paymentDemandRecoupmentFrequency": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx, field) - case "paymentDemandRecoupmentFrequencyContinually": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field) - case "paymentDemandRecoupmentFrequencyOther": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field) - case "paymentDemandRecoupmentFrequencyNote": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field) - case "paymentStartDate": - return ec.fieldContext_PlanPayments_paymentStartDate(ctx, field) - case "paymentStartDateNote": - return ec.fieldContext_PlanPayments_paymentStartDateNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanPayments_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanPayments_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanPayments_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanPayments_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanPayments_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanPayments_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanPayments_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanPayments_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanPayments_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanPayments_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanPayments_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanPayments_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanPayments", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanPayments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createPlanTDL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createPlanTDL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreatePlanTdl(rctx, fc.Args["input"].(model.PlanTDLCreateInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanTDL); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanTDL`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanTDL) - fc.Result = res - return ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createPlanTDL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanTDL_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanTDL_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) - case "title": - return ec.fieldContext_PlanTDL_title(ctx, field) - case "note": - return ec.fieldContext_PlanTDL_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanTDL_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanTDL_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createPlanTDL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updatePlanTDL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePlanTDL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePlanTdl(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanTDL); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanTDL`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanTDL) - fc.Result = res - return ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updatePlanTDL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanTDL_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanTDL_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) - case "title": - return ec.fieldContext_PlanTDL_title(ctx, field) - case "note": - return ec.fieldContext_PlanTDL_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanTDL_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanTDL_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePlanTDL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deletePlanTDL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deletePlanTDL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeletePlanTdl(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanTDL); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanTDL`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanTDL) - fc.Result = res - return ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deletePlanTDL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanTDL_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanTDL_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) - case "title": - return ec.fieldContext_PlanTDL_title(ctx, field) - case "note": - return ec.fieldContext_PlanTDL_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanTDL_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanTDL_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deletePlanTDL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_reportAProblem(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_reportAProblem(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().ReportAProblem(rctx, fc.Args["input"].(model.ReportAProblemInput)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(bool); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_reportAProblem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_reportAProblem_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_sendFeedbackEmail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_sendFeedbackEmail(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().SendFeedbackEmail(rctx, fc.Args["input"].(model.SendFeedbackEmailInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_sendFeedbackEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_sendFeedbackEmail_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_markNotificationAsRead(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_markNotificationAsRead(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().MarkNotificationAsRead(rctx, fc.Args["notificationID"].(uuid.UUID)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.UserNotification) - fc.Result = res - return ec.marshalNUserNotification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotification(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_markNotificationAsRead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserNotification_id(ctx, field) - case "activityID": - return ec.fieldContext_UserNotification_activityID(ctx, field) - case "userID": - return ec.fieldContext_UserNotification_userID(ctx, field) - case "isRead": - return ec.fieldContext_UserNotification_isRead(ctx, field) - case "inAppSent": - return ec.fieldContext_UserNotification_inAppSent(ctx, field) - case "emailSent": - return ec.fieldContext_UserNotification_emailSent(ctx, field) - case "activity": - return ec.fieldContext_UserNotification_activity(ctx, field) - case "createdBy": - return ec.fieldContext_UserNotification_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_UserNotification_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_UserNotification_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_UserNotification_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserNotification", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_markNotificationAsRead_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_markAllNotificationsAsRead(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_markAllNotificationsAsRead(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().MarkAllNotificationsAsRead(rctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.UserNotification) - fc.Result = res - return ec.marshalNUserNotification2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_markAllNotificationsAsRead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserNotification_id(ctx, field) - case "activityID": - return ec.fieldContext_UserNotification_activityID(ctx, field) - case "userID": - return ec.fieldContext_UserNotification_userID(ctx, field) - case "isRead": - return ec.fieldContext_UserNotification_isRead(ctx, field) - case "inAppSent": - return ec.fieldContext_UserNotification_inAppSent(ctx, field) - case "emailSent": - return ec.fieldContext_UserNotification_emailSent(ctx, field) - case "activity": - return ec.fieldContext_UserNotification_activity(ctx, field) - case "createdBy": - return ec.fieldContext_UserNotification_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_UserNotification_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_UserNotification_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_UserNotification_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserNotification", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateUserNotificationPreferences(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateUserNotificationPreferences(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateUserNotificationPreferences(rctx, fc.Args["changes"].(map[string]interface{})) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.UserNotificationPreferences) - fc.Result = res - return ec.marshalNUserNotificationPreferences2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferences(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateUserNotificationPreferences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserNotificationPreferences_id(ctx, field) - case "userID": - return ec.fieldContext_UserNotificationPreferences_userID(ctx, field) - case "dailyDigestComplete": - return ec.fieldContext_UserNotificationPreferences_dailyDigestComplete(ctx, field) - case "addedAsCollaborator": - return ec.fieldContext_UserNotificationPreferences_addedAsCollaborator(ctx, field) - case "taggedInDiscussion": - return ec.fieldContext_UserNotificationPreferences_taggedInDiscussion(ctx, field) - case "taggedInDiscussionReply": - return ec.fieldContext_UserNotificationPreferences_taggedInDiscussionReply(ctx, field) - case "newDiscussionReply": - return ec.fieldContext_UserNotificationPreferences_newDiscussionReply(ctx, field) - case "modelPlanShared": - return ec.fieldContext_UserNotificationPreferences_modelPlanShared(ctx, field) - case "newModelPlan": - return ec.fieldContext_UserNotificationPreferences_newModelPlan(ctx, field) - case "datesChanged": - return ec.fieldContext_UserNotificationPreferences_datesChanged(ctx, field) - case "datesChangedNotificationType": - return ec.fieldContext_UserNotificationPreferences_datesChangedNotificationType(ctx, field) - case "dataExchangeApproachMarkedComplete": - return ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx, field) - case "dataExchangeApproachMarkedCompleteNotificationType": - return ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx, field) - case "createdBy": - return ec.fieldContext_UserNotificationPreferences_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_UserNotificationPreferences_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_UserNotificationPreferences_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_UserNotificationPreferences_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_UserNotificationPreferences_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_UserNotificationPreferences_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserNotificationPreferences", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateUserNotificationPreferences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateUserViewCustomization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateUserViewCustomization(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateUserViewCustomization(rctx, fc.Args["changes"].(map[string]interface{})) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.UserViewCustomization); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.UserViewCustomization`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.UserViewCustomization) - fc.Result = res - return ec.marshalNUserViewCustomization2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserViewCustomization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateUserViewCustomization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserViewCustomization_id(ctx, field) - case "userId": - return ec.fieldContext_UserViewCustomization_userId(ctx, field) - case "userAccount": - return ec.fieldContext_UserViewCustomization_userAccount(ctx, field) - case "viewCustomization": - return ec.fieldContext_UserViewCustomization_viewCustomization(ctx, field) - case "possibleOperationalSolutions": - return ec.fieldContext_UserViewCustomization_possibleOperationalSolutions(ctx, field) - case "createdBy": - return ec.fieldContext_UserViewCustomization_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_UserViewCustomization_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_UserViewCustomization_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_UserViewCustomization_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_UserViewCustomization_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_UserViewCustomization_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserViewCustomization", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateUserViewCustomization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _NDAInfo_agreed(ctx context.Context, field graphql.CollectedField, obj *model.NDAInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NDAInfo_agreed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Agreed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NDAInfo_agreed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NDAInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NDAInfo_agreedDts(ctx context.Context, field graphql.CollectedField, obj *model.NDAInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NDAInfo_agreedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AgreedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NDAInfo_agreedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NDAInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewDiscussionRepliedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewDiscussionRepliedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewDiscussionRepliedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.NewDiscussionRepliedActivityMeta().ModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewDiscussionRepliedActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_discussionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DiscussionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewDiscussionRepliedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta_discussion(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_discussion(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.NewDiscussionRepliedActivityMeta().Discussion(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDiscussion) - fc.Result = res - return ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_discussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewDiscussionRepliedActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDiscussion_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) - case "content": - return ec.fieldContext_PlanDiscussion_content(ctx, field) - case "userRole": - return ec.fieldContext_PlanDiscussion_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) - case "replies": - return ec.fieldContext_PlanDiscussion_replies(ctx, field) - case "isAssessment": - return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta_replyID(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_replyID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReplyID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_replyID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewDiscussionRepliedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta_reply(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_reply(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.NewDiscussionRepliedActivityMeta().Reply(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.DiscussionReply) - fc.Result = res - return ec.marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_reply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewDiscussionRepliedActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DiscussionReply_id(ctx, field) - case "discussionID": - return ec.fieldContext_DiscussionReply_discussionID(ctx, field) - case "content": - return ec.fieldContext_DiscussionReply_content(ctx, field) - case "userRole": - return ec.fieldContext_DiscussionReply_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) - case "isAssessment": - return ec.fieldContext_DiscussionReply_isAssessment(ctx, field) - case "createdBy": - return ec.fieldContext_DiscussionReply_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_DiscussionReply_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DiscussionReply", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta_content(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_content(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Content, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewDiscussionRepliedActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewModelPlanActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.NewModelPlanActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewModelPlanActivityMeta_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewModelPlanActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewModelPlanActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewModelPlanActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.NewModelPlanActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewModelPlanActivityMeta_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewModelPlanActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewModelPlanActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewModelPlanActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.NewModelPlanActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewModelPlanActivityMeta_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewModelPlanActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewModelPlanActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NewModelPlanActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.NewModelPlanActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NewModelPlanActivityMeta_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.NewModelPlanActivityMeta().ModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_NewModelPlanActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NewModelPlanActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_id(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_needed(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_needed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Needed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_needed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_solutions(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_solutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.OperationalNeed().Solutions(rctx, obj, fc.Args["includeNotNeeded"].(bool)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.OperationalSolution) - fc.Result = res - return ec.marshalNOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_solutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalSolution_id(ctx, field) - case "operationalNeedID": - return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) - case "solutionType": - return ec.fieldContext_OperationalSolution_solutionType(ctx, field) - case "needed": - return ec.fieldContext_OperationalSolution_needed(ctx, field) - case "name": - return ec.fieldContext_OperationalSolution_name(ctx, field) - case "key": - return ec.fieldContext_OperationalSolution_key(ctx, field) - case "nameOther": - return ec.fieldContext_OperationalSolution_nameOther(ctx, field) - case "pocName": - return ec.fieldContext_OperationalSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) - case "mustStartDts": - return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) - case "mustFinishDts": - return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) - case "isOther": - return ec.fieldContext_OperationalSolution_isOther(ctx, field) - case "isCommonSolution": - return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) - case "otherHeader": - return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) - case "status": - return ec.fieldContext_OperationalSolution_status(ctx, field) - case "documents": - return ec.fieldContext_OperationalSolution_documents(ctx, field) - case "operationalSolutionSubtasks": - return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_OperationalNeed_solutions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_key(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.OperationalNeedKey) - fc.Result = res - return ec.marshalOOperationalNeedKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OperationalNeedKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_name(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_nameOther(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_nameOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NameOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_nameOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_section(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_section(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Section, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TaskListSection) - fc.Result = res - return ec.marshalOTaskListSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskListSection does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeed_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeed_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeedTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeedTranslation_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeedTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeedTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeedTranslation_nameOther(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeedTranslation_nameOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NameOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeedTranslation_nameOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeedTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeedTranslation_key(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeedTranslation_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeedTranslation_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeedTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeedTranslation_needed(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeedTranslation_needed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Needed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeedTranslation_needed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeedTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalNeedTranslation_section(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalNeedTranslation_section(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Section, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalNeedTranslation_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalNeedTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_id(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_operationalNeedID(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OperationalNeedID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_operationalNeedID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_solutionType(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_solutionType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_solutionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_needed(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_needed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Needed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_needed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_name(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.OperationalSolutionKey) - fc.Result = res - return ec.marshalOOperationalSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OperationalSolutionKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_nameOther(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_nameOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NameOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_nameOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_pocName(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_pocName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PocName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_pocName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_pocEmail(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_pocEmail(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PocEmail, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_pocEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_mustStartDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MustStartDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_mustStartDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_mustFinishDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MustFinishDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_mustFinishDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_isOther(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_isOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalNBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_isOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_isCommonSolution(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsCommonSolution, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalNBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_isCommonSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_otherHeader(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_otherHeader(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OtherHeader, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_otherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_status(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.OpSolutionStatus) - fc.Result = res - return ec.marshalNOpSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OpSolutionStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_documents(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_documents(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.OperationalSolution().Documents(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PlanDocument) - fc.Result = res - return ec.marshalNPlanDocument2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDocument_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) - case "isLink": - return ec.fieldContext_PlanDocument_isLink(ctx, field) - case "url": - return ec.fieldContext_PlanDocument_url(ctx, field) - case "fileType": - return ec.fieldContext_PlanDocument_fileType(ctx, field) - case "bucket": - return ec.fieldContext_PlanDocument_bucket(ctx, field) - case "fileKey": - return ec.fieldContext_PlanDocument_fileKey(ctx, field) - case "virusScanned": - return ec.fieldContext_PlanDocument_virusScanned(ctx, field) - case "virusClean": - return ec.fieldContext_PlanDocument_virusClean(ctx, field) - case "restricted": - return ec.fieldContext_PlanDocument_restricted(ctx, field) - case "fileName": - return ec.fieldContext_PlanDocument_fileName(ctx, field) - case "fileSize": - return ec.fieldContext_PlanDocument_fileSize(ctx, field) - case "documentType": - return ec.fieldContext_PlanDocument_documentType(ctx, field) - case "otherType": - return ec.fieldContext_PlanDocument_otherType(ctx, field) - case "optionalNotes": - return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) - case "downloadUrl": - return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) - case "deletedAt": - return ec.fieldContext_PlanDocument_deletedAt(ctx, field) - case "numLinkedSolutions": - return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDocument_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDocument_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_operationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.OperationalSolution().OperationalSolutionSubtasks(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.OperationalSolutionSubtask) - fc.Result = res - return ec.marshalNOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalSolutionSubtask_id(ctx, field) - case "solutionID": - return ec.fieldContext_OperationalSolutionSubtask_solutionID(ctx, field) - case "name": - return ec.fieldContext_OperationalSolutionSubtask_name(ctx, field) - case "status": - return ec.fieldContext_OperationalSolutionSubtask_status(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalSolutionSubtask_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalSolutionSubtask_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalSolutionSubtask_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalSolutionSubtask_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalSolutionSubtask", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolution_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolution_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_id(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_solutionID(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_solutionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_solutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_name(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_status(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.OperationalSolutionSubtaskStatus) - fc.Result = res - return ec.marshalNOperationalSolutionSubtaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OperationalSolutionSubtaskStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtask_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtask_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtask_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtaskTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionSubtaskTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtaskTranslation_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtaskTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtaskTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionSubtaskTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionSubtaskTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionSubtaskTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionSubtaskTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionSubtaskTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_nameOther(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_nameOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NameOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_nameOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_isOther(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_isOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_isOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_otherHeader(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_otherHeader(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OtherHeader, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_otherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_pocName(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_pocName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PocName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_pocName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_pocEmail(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_pocEmail(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PocEmail, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_pocEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_mustStartDts(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_mustStartDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MustStartDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_mustStartDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_mustFinishDts(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_mustFinishDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MustFinishDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_mustFinishDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_needed(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_needed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Needed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_needed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_key(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OperationalSolutionTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OperationalSolutionTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OperationalSolutionTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OperationalSolutionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PhaseSuggestion_phase(ctx context.Context, field graphql.CollectedField, obj *model.PhaseSuggestion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PhaseSuggestion_phase(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Phase, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ModelPhase) - fc.Result = res - return ec.marshalNModelPhase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PhaseSuggestion_phase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PhaseSuggestion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelPhase does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PhaseSuggestion_suggestedStatuses(ctx context.Context, field graphql.CollectedField, obj *model.PhaseSuggestion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PhaseSuggestion_suggestedStatuses(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SuggestedStatuses, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.ModelStatus) - fc.Result = res - return ec.marshalNModelStatus2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatusᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PhaseSuggestion_suggestedStatuses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PhaseSuggestion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_demoCode(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_demoCode(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DemoCode, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_demoCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_amsModelID(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_amsModelID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AmsModelID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_amsModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_modelCategory(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_modelCategory(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelCategory, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ModelCategory) - fc.Result = res - return ec.marshalOModelCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_modelCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelCategory does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_additionalModelCategories(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_additionalModelCategories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanBasics().AdditionalModelCategories(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.ModelCategory) - fc.Result = res - return ec.marshalNModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_additionalModelCategories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelCategory does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_cmsCenters(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_cmsCenters(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanBasics().CmsCenters(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.CMSCenter) - fc.Result = res - return ec.marshalNCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_cmsCenters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CMSCenter does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_cmmiGroups(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_cmmiGroups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanBasics().CmmiGroups(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.CMMIGroup) - fc.Result = res - return ec.marshalNCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_cmmiGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CMMIGroup does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_modelType(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_modelType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanBasics().ModelType(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.ModelType) - fc.Result = res - return ec.marshalNModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_modelType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_modelTypeOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_modelTypeOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelTypeOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_modelTypeOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_problem(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_problem(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Problem, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_problem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_goal(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_goal(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Goal, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_goal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_testInterventions(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_testInterventions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TestInterventions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_testInterventions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_note(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_note(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Note, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_completeICIP(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_completeICIP(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CompleteICIP, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_completeICIP(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_clearanceStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_clearanceStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClearanceStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_clearanceStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_clearanceEnds(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_clearanceEnds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClearanceEnds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_clearanceEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_announced(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_announced(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Announced, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_announced(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_applicationsStart(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_applicationsStart(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ApplicationsStart, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_applicationsStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_applicationsEnd(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_applicationsEnd(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ApplicationsEnd, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_applicationsEnd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_performancePeriodStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_performancePeriodStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PerformancePeriodStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_performancePeriodStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_performancePeriodEnds(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_performancePeriodEnds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PerformancePeriodEnds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_performancePeriodEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_wrapUpEnds(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_wrapUpEnds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WrapUpEnds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_wrapUpEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_highLevelNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_highLevelNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HighLevelNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_highLevelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_phasedIn(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_phasedIn(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PhasedIn, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_phasedIn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_phasedInNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_phasedInNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PhasedInNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_phasedInNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_readyForReviewByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_readyForClearanceByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasics_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasics_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TaskStatus) - fc.Result = res - return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasics_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_modelCategory(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_modelCategory(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelCategory, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_modelCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_additionalModelCategories(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_additionalModelCategories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AdditionalModelCategories, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_additionalModelCategories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_demoCode(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_demoCode(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DemoCode, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_demoCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_amsModelID(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_amsModelID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AmsModelID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_amsModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_cmsCenters(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_cmsCenters(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CmsCenters, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_cmsCenters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_cmmiGroups(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_cmmiGroups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CmmiGroups, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_cmmiGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_modelType(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_modelType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_modelType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_modelTypeOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_modelTypeOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelTypeOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_modelTypeOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_problem(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_problem(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Problem, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_problem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_goal(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_goal(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Goal, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_goal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_testInterventions(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_testInterventions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TestInterventions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_testInterventions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_note(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_note(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Note, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_completeICIP(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_completeICIP(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CompleteIcip, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_completeICIP(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_clearanceStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_clearanceStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClearanceStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_clearanceStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_clearanceEnds(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_clearanceEnds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClearanceEnds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_clearanceEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_announced(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_announced(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Announced, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_announced(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_applicationsStart(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_applicationsStart(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ApplicationsStart, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_applicationsStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_applicationsEnd(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_applicationsEnd(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ApplicationsEnd, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_applicationsEnd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_performancePeriodStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_performancePeriodStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PerformancePeriodStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_performancePeriodStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_performancePeriodEnds(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_performancePeriodEnds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PerformancePeriodEnds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_performancePeriodEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_wrapUpEnds(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_wrapUpEnds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WrapUpEnds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_wrapUpEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_highLevelNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_highLevelNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HighLevelNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_highLevelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_phasedIn(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_phasedIn(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PhasedIn, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_phasedIn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_phasedInNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_phasedInNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PhasedInNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_phasedInNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBasicsTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBasicsTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBasicsTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBasicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiaries(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaries(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanBeneficiaries().Beneficiaries(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.BeneficiariesType) - fc.Result = res - return ec.marshalNBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type BeneficiariesType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiariesOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiariesOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiariesOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiariesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiariesNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiariesNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiariesNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiariesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_diseaseSpecificGroup(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_diseaseSpecificGroup(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DiseaseSpecificGroup, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_diseaseSpecificGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_treatDualElligibleDifferent(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TreatDualElligibleDifferent, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TriStateAnswer) - fc.Result = res - return ec.marshalOTriStateAnswer2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTriStateAnswer(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_treatDualElligibleDifferent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TriStateAnswer does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_treatDualElligibleDifferentHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TreatDualElligibleDifferentHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_treatDualElligibleDifferentHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_treatDualElligibleDifferentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TreatDualElligibleDifferentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_treatDualElligibleDifferentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_excludeCertainCharacteristics(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristics(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExcludeCertainCharacteristics, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TriStateAnswer) - fc.Result = res - return ec.marshalOTriStateAnswer2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTriStateAnswer(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_excludeCertainCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TriStateAnswer does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExcludeCertainCharacteristicsCriteria, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExcludeCertainCharacteristicsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_numberPeopleImpacted(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_numberPeopleImpacted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberPeopleImpacted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_numberPeopleImpacted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_estimateConfidence(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_estimateConfidence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EstimateConfidence, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ConfidenceType) - fc.Result = res - return ec.marshalOConfidenceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐConfidenceType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_estimateConfidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfidenceType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_confidenceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_confidenceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ConfidenceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_confidenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanBeneficiaries().BeneficiarySelectionMethod(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.SelectionMethodType) - fc.Result = res - return ec.marshalNSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SelectionMethodType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanBeneficiaries().BeneficiarySelectionFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiaryRemovalFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanBeneficiaries().BeneficiaryRemovalFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryRemovalFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryRemovalFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryRemovalFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiaryOverlap(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryOverlap(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryOverlap, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.OverlapType) - fc.Result = res - return ec.marshalOOverlapType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOverlapType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryOverlap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OverlapType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_beneficiaryOverlapNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryOverlapNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryOverlapNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryOverlapNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_precedenceRules(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_precedenceRules(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanBeneficiaries().PrecedenceRules(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.YesNoType) - fc.Result = res - return ec.marshalNYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_precedenceRules(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type YesNoType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_precedenceRulesYes(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_precedenceRulesYes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrecedenceRulesYes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_precedenceRulesYes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_precedenceRulesNo(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_precedenceRulesNo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrecedenceRulesNo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_precedenceRulesNo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_precedenceRulesNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_precedenceRulesNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrecedenceRulesNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_precedenceRulesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_readyForReviewByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_readyForClearanceByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiaries_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiaries_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TaskStatus) - fc.Result = res - return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiaries_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiaries", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaries(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaries(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Beneficiaries, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiariesOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiariesOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiariesOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiariesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiariesNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiariesNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiariesNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiariesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_diseaseSpecificGroup(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_diseaseSpecificGroup(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DiseaseSpecificGroup, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_diseaseSpecificGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_treatDualElligibleDifferent(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TreatDualElligibleDifferent, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_treatDualElligibleDifferentHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferentHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TreatDualElligibleDifferentHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferentHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_treatDualElligibleDifferentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TreatDualElligibleDifferentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_excludeCertainCharacteristics(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristics(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExcludeCertainCharacteristics, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_excludeCertainCharacteristicsCriteria(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristicsCriteria(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExcludeCertainCharacteristicsCriteria, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristicsCriteria(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_excludeCertainCharacteristicsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristicsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExcludeCertainCharacteristicsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristicsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_numberPeopleImpacted(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_numberPeopleImpacted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberPeopleImpacted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_numberPeopleImpacted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_estimateConfidence(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_estimateConfidence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EstimateConfidence, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_estimateConfidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_confidenceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_confidenceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ConfidenceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_confidenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionMethod, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiarySelectionFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryRemovalFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryRemovalFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryRemovalFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryRemovalFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryRemovalFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryOverlap(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryOverlap(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryOverlap, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryOverlap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryOverlapNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryOverlapNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryOverlapNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryOverlapNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_precedenceRules(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_precedenceRules(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrecedenceRules, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_precedenceRules(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_precedenceRulesYes(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_precedenceRulesYes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrecedenceRulesYes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_precedenceRulesYes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_precedenceRulesNo(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_precedenceRulesNo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrecedenceRulesNo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_precedenceRulesNo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_precedenceRulesNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_precedenceRulesNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrecedenceRulesNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_precedenceRulesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanBeneficiariesTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanBeneficiariesTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanBeneficiariesTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_idNumber(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_idNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IDNumber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_idNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_dateInitiated(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_dateInitiated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateInitiated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_dateInitiated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_dateImplemented(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_dateImplemented(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateImplemented, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_dateImplemented(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_title(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_title(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Title, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_note(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_note(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Note, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCR_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCR_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCR_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCR", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCRTranslation_idNumber(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCRTranslation_idNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IDNumber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCRTranslation_idNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCRTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCRTranslation_title(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCRTranslation_title(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Title, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCRTranslation_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCRTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCRTranslation_dateInitiated(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCRTranslation_dateInitiated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateInitiated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCRTranslation_dateInitiated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCRTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCRTranslation_dateImplemented(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCRTranslation_dateImplemented(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateImplemented, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCRTranslation_dateImplemented(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCRTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCRTranslation_note(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCRTranslation_note(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Note, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCRTranslation_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCRTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_userID(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_userID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_userAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_userAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_teamRoles(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanCollaborator().TeamRoles(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.TeamRole) - fc.Result = res - return ec.marshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_teamRoles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TeamRole does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaborator_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaborator_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaborator", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaboratorTranslation_username(ctx context.Context, field graphql.CollectedField, obj *model.PlanCollaboratorTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaboratorTranslation_username(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Username, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaboratorTranslation_username(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaboratorTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaboratorTranslation_userID(ctx context.Context, field graphql.CollectedField, obj *model.PlanCollaboratorTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaboratorTranslation_userID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaboratorTranslation_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaboratorTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanCollaboratorTranslation_teamRoles(ctx context.Context, field graphql.CollectedField, obj *model.PlanCollaboratorTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanCollaboratorTranslation_teamRoles(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TeamRoles, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanCollaboratorTranslation_teamRoles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanCollaboratorTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_dataToCollectFromParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDataExchangeApproach().DataToCollectFromParticipants(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.DataToCollectFromParticipants) - fc.Result = res - return ec.marshalNDataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataToCollectFromParticipants does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToCollectFromParticipantsReportsDetails, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToCollectFromParticipantsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataWillNotBeCollectedFromParticipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToCollectFromParticipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_dataToSendToParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDataExchangeApproach().DataToSendToParticipants(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.DataToSendToParticipants) - fc.Result = res - return ec.marshalNDataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataToSendToParticipants does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToSendToParticipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DoesNeedToMakeMultiPayerDataAvailable, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDataExchangeApproach().AnticipatedMultiPayerDataAvailabilityUseCase(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.AnticipatedMultiPayerDataAvailabilityUseCase) - fc.Result = res - return ec.marshalNAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AnticipatedMultiPayerDataAvailabilityUseCase does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DoesNeedToMakeMultiPayerDataAvailableNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DoesNeedToCollectAndAggregateMultiSourceData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_multiSourceDataToCollect(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDataExchangeApproach().MultiSourceDataToCollect(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.MultiSourceDataToCollect) - fc.Result = res - return ec.marshalNMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MultiSourceDataToCollect does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiSourceDataToCollectOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DoesNeedToCollectAndAggregateMultiSourceDataNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillImplementNewDataExchangeMethods, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NewDataExchangeMethodsDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NewDataExchangeMethodsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AdditionalDataExchangeConsiderationsDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDataExchangeApproachComplete(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_markedCompleteBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MarkedCompleteBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_markedCompleteByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MarkedCompleteByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_markedCompleteDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MarkedCompleteDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproach_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproach_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.DataExchangeApproachStatus) - fc.Result = res - return ec.marshalNDataExchangeApproachStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproach_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproach", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataExchangeApproachStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproachID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproachID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataExchangeApproachID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproachID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproach(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproach(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDataExchangeApproachMarkedCompleteActivityMeta().DataExchangeApproach(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDataExchangeApproach) - fc.Result = res - return ec.marshalNPlanDataExchangeApproach2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproach(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDataExchangeApproach_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDataExchangeApproach_modelPlanID(ctx, field) - case "dataToCollectFromParticipants": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field) - case "dataToCollectFromParticipantsReportsDetails": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field) - case "dataToCollectFromParticipantsOther": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field) - case "dataWillNotBeCollectedFromParticipants": - return ec.fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field) - case "dataToCollectFromParticipantsNote": - return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field) - case "dataToSendToParticipants": - return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx, field) - case "dataToSendToParticipantsNote": - return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field) - case "doesNeedToMakeMultiPayerDataAvailable": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field) - case "anticipatedMultiPayerDataAvailabilityUseCase": - return ec.fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) - case "doesNeedToMakeMultiPayerDataAvailableNote": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) - case "doesNeedToCollectAndAggregateMultiSourceData": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) - case "multiSourceDataToCollect": - return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field) - case "multiSourceDataToCollectOther": - return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field) - case "doesNeedToCollectAndAggregateMultiSourceDataNote": - return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) - case "willImplementNewDataExchangeMethods": - return ec.fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field) - case "newDataExchangeMethodsDescription": - return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field) - case "newDataExchangeMethodsNote": - return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field) - case "additionalDataExchangeConsiderationsDescription": - return ec.fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDataExchangeApproach_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDataExchangeApproach_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDataExchangeApproach_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDataExchangeApproach_modifiedDts(ctx, field) - case "isDataExchangeApproachComplete": - return ec.fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field) - case "markedCompleteBy": - return ec.fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx, field) - case "markedCompleteByUserAccount": - return ec.fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field) - case "markedCompleteDts": - return ec.fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx, field) - case "status": - return ec.fieldContext_PlanDataExchangeApproach_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDataExchangeApproach", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDataExchangeApproachMarkedCompleteActivityMeta().ModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MarkedCompleteBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDataExchangeApproachMarkedCompleteActivityMeta().MarkedCompleteByUserAccount(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToCollectFromParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToCollectFromParticipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsReportsDetails(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsReportsDetails(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToCollectFromParticipantsReportsDetails, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsReportsDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToCollectFromParticipantsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataWillNotBeCollectedFromParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataWillNotBeCollectedFromParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataWillNotBeCollectedFromParticipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataWillNotBeCollectedFromParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToCollectFromParticipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToSendToParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToSendToParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToSendToParticipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToSendToParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToSendToParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToSendToParticipantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToSendToParticipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToSendToParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailable(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailable(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DoesNeedToMakeMultiPayerDataAvailable, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_anticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedMultiPayerDataAvailabilityUseCase, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_anticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailableNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DoesNeedToMakeMultiPayerDataAvailableNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailableNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceData(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DoesNeedToCollectAndAggregateMultiSourceData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_multiSourceDataToCollect(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_multiSourceDataToCollect(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiSourceDataToCollect, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_multiSourceDataToCollect(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_multiSourceDataToCollectOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_multiSourceDataToCollectOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiSourceDataToCollectOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_multiSourceDataToCollectOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DoesNeedToCollectAndAggregateMultiSourceDataNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_willImplementNewDataExchangeMethods(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_willImplementNewDataExchangeMethods(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillImplementNewDataExchangeMethods, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_willImplementNewDataExchangeMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_newDataExchangeMethodsDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_newDataExchangeMethodsDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NewDataExchangeMethodsDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_newDataExchangeMethodsDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_newDataExchangeMethodsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_newDataExchangeMethodsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NewDataExchangeMethodsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_newDataExchangeMethodsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_additionalDataExchangeConsiderationsDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_additionalDataExchangeConsiderationsDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AdditionalDataExchangeConsiderationsDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_additionalDataExchangeConsiderationsDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_isDataExchangeApproachComplete(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_isDataExchangeApproachComplete(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDataExchangeApproachComplete, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_isDataExchangeApproachComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_markedCompleteBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_markedCompleteBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MarkedCompleteBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_markedCompleteBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_markedCompleteDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_markedCompleteDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MarkedCompleteDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_markedCompleteDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDataExchangeApproachTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_content(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_content(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDiscussion().Content(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TaggedContent) - fc.Result = res - return ec.marshalOTaggedContent2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedContent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "rawContent": - return ec.fieldContext_TaggedContent_rawContent(ctx, field) - case "tags": - return ec.fieldContext_TaggedContent_tags(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaggedContent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_userRole(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_userRole(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRole, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.DiscussionUserRole) - fc.Result = res - return ec.marshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DiscussionUserRole does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRoleDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_replies(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_replies(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDiscussion().Replies(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.DiscussionReply) - fc.Result = res - return ec.marshalNDiscussionReply2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReplyᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_replies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DiscussionReply_id(ctx, field) - case "discussionID": - return ec.fieldContext_DiscussionReply_discussionID(ctx, field) - case "content": - return ec.fieldContext_DiscussionReply_content(ctx, field) - case "userRole": - return ec.fieldContext_DiscussionReply_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) - case "isAssessment": - return ec.fieldContext_DiscussionReply_isAssessment(ctx, field) - case "createdBy": - return ec.fieldContext_DiscussionReply_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_DiscussionReply_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DiscussionReply", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_isAssessment(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsAssessment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussion_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussion_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussionTranslation_userRole(ctx context.Context, field graphql.CollectedField, obj *model.PlanDiscussionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussionTranslation_userRole(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRole, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussionTranslation_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussionTranslation_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanDiscussionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussionTranslation_userRoleDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserRoleDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussionTranslation_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussionTranslation_content(ctx context.Context, field graphql.CollectedField, obj *model.PlanDiscussionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussionTranslation_content(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Content, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussionTranslation_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDiscussionTranslation_isAssessment(ctx context.Context, field graphql.CollectedField, obj *model.PlanDiscussionTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDiscussionTranslation_isAssessment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsAssessment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDiscussionTranslation_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDiscussionTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_isLink(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_isLink(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsLink, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_isLink(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_url(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_url(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDocument().URL(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_fileType(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_fileType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FileType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_fileType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_bucket(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_bucket(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Bucket, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_bucket(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_fileKey(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_fileKey(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FileKey, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_fileKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_virusScanned(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_virusScanned(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.VirusScanned, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_virusScanned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_virusClean(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_virusClean(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.VirusClean, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_virusClean(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_restricted(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_restricted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Restricted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_restricted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_fileName(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_fileName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FileName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_fileName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_fileSize(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_fileSize(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FileSize, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_fileSize(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_documentType(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_documentType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.DocumentType) - fc.Result = res - return ec.marshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_documentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_otherType(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_otherType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDocument().OtherType(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_otherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_optionalNotes(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_optionalNotes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDocument().OptionalNotes(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_optionalNotes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_downloadUrl(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_downloadUrl(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDocument().DownloadURL(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_downloadUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_deletedAt(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_deletedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_numLinkedSolutions(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanDocument().NumLinkedSolutions(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_numLinkedSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocument_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocument_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocument_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLink_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLink_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLink_solutionID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLink_solutionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_solutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLink_documentID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLink_documentID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_documentID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLink_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLink_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLink_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLink_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLink", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLink_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLink_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLink_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLink_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLink_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLink_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLink", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLink_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLink_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLinkTranslation_solutionID(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentSolutionLinkTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLinkTranslation_solutionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLinkTranslation_solutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLinkTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentSolutionLinkTranslation_documentID(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentSolutionLinkTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentSolutionLinkTranslation_documentID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentSolutionLinkTranslation_documentID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentSolutionLinkTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentTranslation_isLink(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentTranslation_isLink(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsLink, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentTranslation_isLink(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentTranslation_url(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentTranslation_url(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.URL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentTranslation_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentTranslation_fileName(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentTranslation_fileName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FileName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentTranslation_fileName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentTranslation_documentType(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentTranslation_documentType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentTranslation_documentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentTranslation_otherType(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentTranslation_otherType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OtherType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentTranslation_otherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentTranslation_fileType(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentTranslation_fileType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FileType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentTranslation_fileType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentTranslation_restricted(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentTranslation_restricted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Restricted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentTranslation_restricted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanDocumentTranslation_optionalNotes(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanDocumentTranslation_optionalNotes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OptionalNotes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanDocumentTranslation_optionalNotes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanDocumentTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_userID(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_userID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_userAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_userAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanFavorite_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanFavorite_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanFavorite_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanFavorite", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_isNewModel(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_isNewModel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNewModel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_isNewModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_existingModel(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_existingModel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().ExistingModel(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_existingModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_currentModelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_currentModelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CurrentModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_currentModelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_currentModelPlan(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_currentModelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().CurrentModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalOModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_currentModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_existingModelID(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_existingModelID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExistingModelID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_existingModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_existingModelPlan(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_existingModelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().ExistingModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ExistingModel) - fc.Result = res - return ec.marshalOExistingModel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModel(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_existingModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ExistingModel_id(ctx, field) - case "modelName": - return ec.fieldContext_ExistingModel_modelName(ctx, field) - case "stage": - return ec.fieldContext_ExistingModel_stage(ctx, field) - case "numberOfParticipants": - return ec.fieldContext_ExistingModel_numberOfParticipants(ctx, field) - case "category": - return ec.fieldContext_ExistingModel_category(ctx, field) - case "authority": - return ec.fieldContext_ExistingModel_authority(ctx, field) - case "description": - return ec.fieldContext_ExistingModel_description(ctx, field) - case "numberOfBeneficiariesImpacted": - return ec.fieldContext_ExistingModel_numberOfBeneficiariesImpacted(ctx, field) - case "numberOfPhysiciansImpacted": - return ec.fieldContext_ExistingModel_numberOfPhysiciansImpacted(ctx, field) - case "dateBegan": - return ec.fieldContext_ExistingModel_dateBegan(ctx, field) - case "dateEnded": - return ec.fieldContext_ExistingModel_dateEnded(ctx, field) - case "states": - return ec.fieldContext_ExistingModel_states(ctx, field) - case "keywords": - return ec.fieldContext_ExistingModel_keywords(ctx, field) - case "url": - return ec.fieldContext_ExistingModel_url(ctx, field) - case "displayModelSummary": - return ec.fieldContext_ExistingModel_displayModelSummary(ctx, field) - case "createdBy": - return ec.fieldContext_ExistingModel_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ExistingModel_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ExistingModel_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ExistingModel_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ExistingModel_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ExistingModel_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExistingModel", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModel(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.YesNoOtherType) - fc.Result = res - return ec.marshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type YesNoOtherType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelWhyHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelOtherSpecify, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelOtherSelected, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelOtherOption, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().ResemblesExistingModelWhich(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ExistingModelLinks) - fc.Result = res - return ec.marshalOExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "links": - return ec.fieldContext_ExistingModelLinks_links(ctx, field) - case "fieldName": - return ec.fieldContext_ExistingModelLinks_fieldName(ctx, field) - case "modelPlanID": - return ec.fieldContext_ExistingModelLinks_modelPlanID(ctx, field) - case "names": - return ec.fieldContext_ExistingModelLinks_names(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExistingModelLinks", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPrecondition(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPrecondition(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPrecondition, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.YesNoOtherType) - fc.Result = res - return ec.marshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPrecondition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type YesNoOtherType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionWhyHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionOtherSpecify, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionOtherSelected, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionOtherOption, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().ParticipationInModelPreconditionWhich(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ExistingModelLinks) - fc.Result = res - return ec.marshalOExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "links": - return ec.fieldContext_ExistingModelLinks_links(ctx, field) - case "fieldName": - return ec.fieldContext_ExistingModelLinks_fieldName(ctx, field) - case "modelPlanID": - return ec.fieldContext_ExistingModelLinks_modelPlanID(ctx, field) - case "names": - return ec.fieldContext_ExistingModelLinks_names(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExistingModelLinks", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_hasComponentsOrTracks(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasComponentsOrTracks, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasComponentsOrTracksDiffer, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasComponentsOrTracksNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_agencyOrStateHelp(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelp(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().AgencyOrStateHelp(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.AgencyOrStateHelpType) - fc.Result = res - return ec.marshalNAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agencyOrStateHelp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AgencyOrStateHelpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AgencyOrStateHelpOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AgencyOrStateHelpNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().AlternativePaymentModelTypes(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.AlternativePaymentModelType) - fc.Result = res - return ec.marshalNAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AlternativePaymentModelType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_alternativePaymentModelNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AlternativePaymentModelNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_alternativePaymentModelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_keyCharacteristics(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristics(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().KeyCharacteristics(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.KeyCharacteristic) - fc.Result = res - return ec.marshalNKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_keyCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type KeyCharacteristic does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_keyCharacteristicsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.KeyCharacteristicsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_keyCharacteristicsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_keyCharacteristicsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.KeyCharacteristicsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_keyCharacteristicsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_collectPlanBids(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_collectPlanBids(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CollectPlanBids, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_collectPlanBids(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_collectPlanBidsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_collectPlanBidsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CollectPlanBidsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_collectPlanBidsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_managePartCDEnrollment(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ManagePartCDEnrollment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_managePartCDEnrollment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ManagePartCDEnrollmentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_planContractUpdated(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_planContractUpdated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanContractUpdated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_planContractUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_planContractUpdatedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_planContractUpdatedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanContractUpdatedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_planContractUpdatedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_careCoordinationInvolved(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolved(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CareCoordinationInvolved, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_careCoordinationInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CareCoordinationInvolvedDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CareCoordinationInvolvedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_additionalServicesInvolved(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolved(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AdditionalServicesInvolved, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_additionalServicesInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AdditionalServicesInvolvedDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AdditionalServicesInvolvedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_communityPartnersInvolved(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolved(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunityPartnersInvolved, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_communityPartnersInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunityPartnersInvolvedDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunityPartnersInvolvedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargeted(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargeted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargeted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargeted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().GeographiesTargetedTypes(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.GeographyType) - fc.Result = res - return ec.marshalNGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GeographyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().GeographiesStatesAndTerritories(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.StatesAndTerritories) - fc.Result = res - return ec.marshalNStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type StatesAndTerritories does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_geographiesRegionTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesRegionTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().GeographiesRegionTypes(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.GeographyRegionType) - fc.Result = res - return ec.marshalNGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesRegionTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GeographyRegionType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargetedTypesOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().GeographiesTargetedAppliedTo(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.GeographyApplication) - fc.Result = res - return ec.marshalNGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GeographyApplication does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargetedAppliedToOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargetedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_participationOptions(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationOptions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationOptions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_participationOptionsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationOptionsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationOptionsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationOptionsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_agreementTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_agreementTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().AgreementTypes(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.AgreementType) - fc.Result = res - return ec.marshalNAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agreementTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AgreementType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_agreementTypesOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_agreementTypesOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AgreementTypesOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agreementTypesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiplePatricipationAgreementsNeeded, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiplePatricipationAgreementsNeededNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_rulemakingRequired(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequired(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RulemakingRequired, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_rulemakingRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RulemakingRequiredDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_rulemakingRequiredNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RulemakingRequiredNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_rulemakingRequiredNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_authorityAllowances(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_authorityAllowances(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().AuthorityAllowances(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.AuthorityAllowance) - fc.Result = res - return ec.marshalNAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_authorityAllowances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AuthorityAllowance does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_authorityAllowancesOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AuthorityAllowancesOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_authorityAllowancesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_authorityAllowancesNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AuthorityAllowancesNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_authorityAllowancesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_waiversRequired(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_waiversRequired(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiversRequired, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_waiversRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_waiversRequiredTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanGeneralCharacteristics().WaiversRequiredTypes(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.WaiverType) - fc.Result = res - return ec.marshalNWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_waiversRequiredTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type WaiverType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_waiversRequiredNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiversRequiredNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_waiversRequiredNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristics_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristics_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TaskStatus) - fc.Result = res - return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristics", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_isNewModel(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_isNewModel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNewModel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_isNewModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_currentModelPlanID(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_currentModelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CurrentModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_currentModelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_existingModelID(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_existingModelID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExistingModelID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_existingModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_existingModel(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_existingModel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExistingModel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_existingModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModel(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhyHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhyHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelWhyHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhyHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherSpecify(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherSpecify(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelOtherSpecify, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherSpecify(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherOption(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherOption(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelOtherOption, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhich(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhich(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ResemblesExistingModelWhich, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPrecondition(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPrecondition(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPrecondition, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPrecondition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhyHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhyHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionWhyHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhyHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherSpecify(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherSpecify(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionOtherSpecify, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherSpecify(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherOption(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherOption(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionOtherOption, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhich(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhich(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationInModelPreconditionWhich, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_hasComponentsOrTracks(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasComponentsOrTracks, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksDiffer(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksDiffer(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasComponentsOrTracksDiffer, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksDiffer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasComponentsOrTracksNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agencyOrStateHelp(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelp(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AgencyOrStateHelp, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agencyOrStateHelpOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelpOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AgencyOrStateHelpOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelpOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agencyOrStateHelpNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelpNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AgencyOrStateHelpNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelpNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_alternativePaymentModelTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_alternativePaymentModelTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AlternativePaymentModelTypes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_alternativePaymentModelTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_alternativePaymentModelNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_alternativePaymentModelNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AlternativePaymentModelNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_alternativePaymentModelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_keyCharacteristics(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristics(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.KeyCharacteristics, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_keyCharacteristicsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristicsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.KeyCharacteristicsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristicsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_keyCharacteristicsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristicsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.KeyCharacteristicsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristicsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_collectPlanBids(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_collectPlanBids(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CollectPlanBids, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_collectPlanBids(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_collectPlanBidsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_collectPlanBidsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CollectPlanBidsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_collectPlanBidsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_managePartCDEnrollment(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_managePartCDEnrollment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ManagePartCDEnrollment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_managePartCDEnrollment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_managePartCDEnrollmentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_managePartCDEnrollmentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ManagePartCDEnrollmentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_managePartCDEnrollmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_planContractUpdated(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_planContractUpdated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanContractUpdated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_planContractUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_planContractUpdatedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_planContractUpdatedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanContractUpdatedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_planContractUpdatedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_careCoordinationInvolved(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolved(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CareCoordinationInvolved, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CareCoordinationInvolvedDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CareCoordinationInvolvedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_additionalServicesInvolved(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolved(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AdditionalServicesInvolved, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AdditionalServicesInvolvedDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AdditionalServicesInvolvedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_communityPartnersInvolved(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolved(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunityPartnersInvolved, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunityPartnersInvolvedDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunityPartnersInvolvedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargeted(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargeted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargeted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargeted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargetedTypes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParentAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithParentAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParentAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParentAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParentAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParentAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParentAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParentAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParentAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParentAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParentAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParentAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParentAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParentAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParentAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParentAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParentAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParentAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParentAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithParentAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithParentAndChildren_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParentAndChildren_parentRelation(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithParentAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParentAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesStatesAndTerritories(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesStatesAndTerritories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesStatesAndTerritories, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesStatesAndTerritories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesRegionTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesRegionTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesRegionTypes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesRegionTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedTypesOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedTypesOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargetedTypesOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedTypesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedTo(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedTo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargetedAppliedTo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedTo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedToOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedToOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargetedAppliedToOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedToOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeographiesTargetedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationOptions(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationOptions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationOptions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationOptionsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationOptionsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipationOptionsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationOptionsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agreementTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agreementTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AgreementTypes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agreementTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agreementTypesOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agreementTypesOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AgreementTypesOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agreementTypesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeeded(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeeded(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiplePatricipationAgreementsNeeded, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeeded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeededNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeededNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiplePatricipationAgreementsNeededNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeededNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_rulemakingRequired(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequired(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RulemakingRequired, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_rulemakingRequiredDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequiredDescription(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RulemakingRequiredDescription, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequiredDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_rulemakingRequiredNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequiredNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RulemakingRequiredNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequiredNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_authorityAllowances(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowances(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AuthorityAllowances, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_authorityAllowancesOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowancesOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AuthorityAllowancesOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowancesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_authorityAllowancesNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowancesNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AuthorityAllowancesNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowancesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_waiversRequired(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequired(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiversRequired, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_waiversRequiredTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequiredTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiversRequiredTypes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequiredTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_waiversRequiredNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequiredNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiversRequiredNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequiredNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanGeneralCharacteristicsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_stakeholders(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_stakeholders(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().Stakeholders(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.StakeholdersType) - fc.Result = res - return ec.marshalNStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_stakeholders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type StakeholdersType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_stakeholdersOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StakeholdersOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_stakeholdersOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_stakeholdersNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StakeholdersNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_stakeholdersNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_helpdeskUse(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUse(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HelpdeskUse, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_helpdeskUse(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_helpdeskUseNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUseNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HelpdeskUseNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_helpdeskUseNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_contractorSupport(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_contractorSupport(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().ContractorSupport(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.ContractorSupportType) - fc.Result = res - return ec.marshalNContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_contractorSupport(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ContractorSupportType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_contractorSupportOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ContractorSupportOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_contractorSupportOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_contractorSupportHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ContractorSupportHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_contractorSupportHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_contractorSupportNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ContractorSupportNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_contractorSupportNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_iddocSupport(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_iddocSupport(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IddocSupport, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_iddocSupport(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_iddocSupportNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_iddocSupportNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IddocSupportNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_iddocSupportNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_technicalContactsIdentified(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentified(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TechnicalContactsIdentified, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentified(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TechnicalContactsIdentifiedDetail, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TechnicalContactsIdentifiedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_captureParticipantInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CaptureParticipantInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_captureParticipantInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CaptureParticipantInfoNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_icdOwner(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_icdOwner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IcdOwner, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_icdOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_draftIcdDueDate(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_draftIcdDueDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DraftIcdDueDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_draftIcdDueDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_icdNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_icdNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IcdNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_icdNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_uatNeeds(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_uatNeeds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UatNeeds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_uatNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_stcNeeds(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_stcNeeds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StcNeeds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_stcNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_testingTimelines(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_testingTimelines(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TestingTimelines, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_testingTimelines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_testingNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_testingNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TestingNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_testingNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().DataMonitoringFileTypes(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.MonitoringFileType) - fc.Result = res - return ec.marshalNMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MonitoringFileType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataMonitoringFileOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataResponseType(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataResponseType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataResponseType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataResponseType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataResponseFileFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataFullTimeOrIncremental, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.DataFullTimeOrIncrementalType) - fc.Result = res - return ec.marshalODataFullTimeOrIncrementalType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataFullTimeOrIncrementalType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataFullTimeOrIncrementalType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_eftSetUp(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_eftSetUp(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EftSetUp, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_eftSetUp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UnsolicitedAdjustmentsIncluded, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataFlowDiagramsNeeded, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProduceBenefitEnhancementFiles, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_fileNamingConventions(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_fileNamingConventions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FileNamingConventions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_fileNamingConventions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataMonitoringNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataMonitoringNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataMonitoringNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_benchmarkForPerformance(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BenchmarkForPerformance, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.BenchmarkForPerformanceType) - fc.Result = res - return ec.marshalOBenchmarkForPerformanceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐBenchmarkForPerformanceType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type BenchmarkForPerformanceType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BenchmarkForPerformanceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_computePerformanceScores(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScores(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComputePerformanceScores, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_computePerformanceScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComputePerformanceScoresNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustPerformance(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPerformance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustPerformance, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustFeedback(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustFeedback(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustFeedback, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustFeedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustPayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustPayments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_appealPerformance(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealPerformance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealPerformance, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_appealFeedback(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealFeedback(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealFeedback, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealFeedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_appealPayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealPayments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_appealOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_appealNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_evaluationApproaches(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproaches(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().EvaluationApproaches(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.EvaluationApproachType) - fc.Result = res - return ec.marshalNEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_evaluationApproaches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EvaluationApproachType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_evaluationApproachOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproachOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EvaluationApproachOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_evaluationApproachOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_evalutaionApproachNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_evalutaionApproachNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EvalutaionApproachNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_evalutaionApproachNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_ccmInvolvment(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().CcmInvolvment(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.CcmInvolvmentType) - fc.Result = res - return ec.marshalNCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_ccmInvolvment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CcmInvolvmentType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CcmInvolvmentOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CcmInvolvmentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().DataNeededForMonitoring(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.DataForMonitoringType) - fc.Result = res - return ec.marshalNDataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataForMonitoringType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataNeededForMonitoringOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataNeededForMonitoringNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataToSendParticicipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().DataToSendParticicipants(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.DataToSendParticipantsType) - fc.Result = res - return ec.marshalNDataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataToSendParticipantsType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToSendParticicipantsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToSendParticicipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_shareCclfData(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_shareCclfData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ShareCclfData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_shareCclfData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_shareCclfDataNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_shareCclfDataNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ShareCclfDataNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_shareCclfDataNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SendFilesBetweenCcw, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SendFilesBetweenCcwNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppToSendFilesToKnown, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppToSendFilesToWhich, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_appToSendFilesToNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppToSendFilesToNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appToSendFilesToNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UseCcwForFileDistribiutionToParticipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UseCcwForFileDistribiutionToParticipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_developNewQualityMeasures(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DevelopNewQualityMeasures, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DevelopNewQualityMeasuresNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityPerformanceImpactsPayment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.YesNoOtherType) - fc.Result = res - return ec.marshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type YesNoOtherType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityPerformanceImpactsPaymentOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityPerformanceImpactsPaymentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.DataStartsType) - fc.Result = res - return ec.marshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataStartsType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingStartsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingStartsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().DataSharingFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingStartsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingStartsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingStartsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.DataStartsType) - fc.Result = res - return ec.marshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataStartsType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionStartsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().DataCollectionFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.DataStartsType) - fc.Result = res - return ec.marshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataStartsType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingStartsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingStartsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().QualityReportingFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_modelLearningSystems(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystems(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanOpsEvalAndLearning().ModelLearningSystems(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.ModelLearningSystemType) - fc.Result = res - return ec.marshalNModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modelLearningSystems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelLearningSystemType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelLearningSystemsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelLearningSystemsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_anticipatedChallenges(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_anticipatedChallenges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedChallenges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_anticipatedChallenges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearning_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearning_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TaskStatus) - fc.Result = res - return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearning", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_stakeholders(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_stakeholders(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Stakeholders, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_stakeholders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_stakeholdersOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_stakeholdersOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StakeholdersOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_stakeholdersOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_stakeholdersNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_stakeholdersNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StakeholdersNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_stakeholdersNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_helpdeskUse(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_helpdeskUse(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HelpdeskUse, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_helpdeskUse(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_helpdeskUseNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_helpdeskUseNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HelpdeskUseNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_helpdeskUseNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_contractorSupport(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupport(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ContractorSupport, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupport(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_contractorSupportOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ContractorSupportOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_contractorSupportHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ContractorSupportHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_contractorSupportNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ContractorSupportNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_iddocSupport(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_iddocSupport(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IddocSupport, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_iddocSupport(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_iddocSupportNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_iddocSupportNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IddocSupportNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_iddocSupportNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_technicalContactsIdentified(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentified(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TechnicalContactsIdentified, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentified(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedDetail(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedDetail(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TechnicalContactsIdentifiedDetail, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedDetail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TechnicalContactsIdentifiedNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_captureParticipantInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_captureParticipantInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CaptureParticipantInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_captureParticipantInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_captureParticipantInfoNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_captureParticipantInfoNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CaptureParticipantInfoNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_captureParticipantInfoNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_icdOwner(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_icdOwner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IcdOwner, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_icdOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_draftIcdDueDate(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_draftIcdDueDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DraftIcdDueDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_draftIcdDueDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_icdNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_icdNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IcdNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_icdNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_uatNeeds(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_uatNeeds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UatNeeds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_uatNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_stcNeeds(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_stcNeeds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StcNeeds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_stcNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_testingTimelines(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_testingTimelines(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TestingTimelines, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_testingTimelines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_testingNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_testingNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TestingNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_testingNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataMonitoringFileTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringFileTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataMonitoringFileTypes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringFileTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataMonitoringFileOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringFileOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataMonitoringFileOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringFileOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataResponseType(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataResponseType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataResponseType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataResponseType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataResponseFileFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataResponseFileFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataResponseFileFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataResponseFileFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataFullTimeOrIncremental(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataFullTimeOrIncremental(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataFullTimeOrIncremental, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataFullTimeOrIncremental(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_eftSetUp(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_eftSetUp(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EftSetUp, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_eftSetUp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_unsolicitedAdjustmentsIncluded(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_unsolicitedAdjustmentsIncluded(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UnsolicitedAdjustmentsIncluded, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_unsolicitedAdjustmentsIncluded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataFlowDiagramsNeeded(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataFlowDiagramsNeeded(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataFlowDiagramsNeeded, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataFlowDiagramsNeeded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_produceBenefitEnhancementFiles(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_produceBenefitEnhancementFiles(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProduceBenefitEnhancementFiles, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_produceBenefitEnhancementFiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_fileNamingConventions(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_fileNamingConventions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FileNamingConventions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_fileNamingConventions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataMonitoringNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataMonitoringNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_benchmarkForPerformance(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_benchmarkForPerformance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BenchmarkForPerformance, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_benchmarkForPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_benchmarkForPerformanceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_benchmarkForPerformanceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BenchmarkForPerformanceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_benchmarkForPerformanceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_computePerformanceScores(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_computePerformanceScores(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComputePerformanceScores, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_computePerformanceScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_computePerformanceScoresNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_computePerformanceScoresNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComputePerformanceScoresNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_computePerformanceScoresNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustPerformance(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustPerformance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustPerformance, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustFeedback(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustFeedback(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustFeedback, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustFeedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustPayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustPayments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskAdjustNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealPerformance(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealPerformance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealPerformance, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealFeedback(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealFeedback(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealFeedback, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealFeedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealPayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealPayments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppealNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_evaluationApproaches(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_evaluationApproaches(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EvaluationApproaches, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_evaluationApproaches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_evaluationApproachOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_evaluationApproachOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EvaluationApproachOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_evaluationApproachOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_evalutaionApproachNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_evalutaionApproachNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EvalutaionApproachNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_evalutaionApproachNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_ccmInvolvment(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CcmInvolvment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_ccmInvolvmentOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvmentOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CcmInvolvmentOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvmentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_ccmInvolvmentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvmentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CcmInvolvmentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataNeededForMonitoring(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoring(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataNeededForMonitoring, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoring(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataNeededForMonitoringOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataNeededForMonitoringNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataToSendParticicipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToSendParticicipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToSendParticicipantsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataToSendParticicipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_shareCclfData(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_shareCclfData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ShareCclfData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_shareCclfData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_shareCclfDataNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_shareCclfDataNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ShareCclfDataNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_shareCclfDataNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcw(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcw(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SendFilesBetweenCcw, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcw(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcwNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcwNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SendFilesBetweenCcwNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcwNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appToSendFilesToKnown(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToKnown(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppToSendFilesToKnown, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToKnown(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appToSendFilesToWhich(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToWhich(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppToSendFilesToWhich, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appToSendFilesToNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AppToSendFilesToNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UseCcwForFileDistribiutionToParticipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UseCcwForFileDistribiutionToParticipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_developNewQualityMeasures(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_developNewQualityMeasures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DevelopNewQualityMeasures, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_developNewQualityMeasures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_developNewQualityMeasuresNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_developNewQualityMeasuresNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DevelopNewQualityMeasuresNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_developNewQualityMeasuresNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPayment(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPayment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityPerformanceImpactsPayment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityPerformanceImpactsPaymentOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityPerformanceImpactsPaymentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingStartsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStartsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingStartsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingStartsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStartsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataSharingStartsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStartsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionStartsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionStartsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionStartsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataCollectionFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStarts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingStarts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingStartsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStartsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingStartsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingStartsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStartsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingStartsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStartsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QualityReportingFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_modelLearningSystems(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystems(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelLearningSystems, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_modelLearningSystemsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystemsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelLearningSystemsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystemsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_modelLearningSystemsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystemsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelLearningSystemsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystemsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_anticipatedChallenges(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_anticipatedChallenges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedChallenges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_anticipatedChallenges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanOpsEvalAndLearningTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participants(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().Participants(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.ParticipantsType) - fc.Result = res - return ec.marshalNParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ParticipantsType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_medicareProviderType(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_medicareProviderType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MedicareProviderType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_medicareProviderType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNewTypeOfProvidersOrSuppliers, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_statesEngagement(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_statesEngagement(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StatesEngagement, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_statesEngagement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsCurrentlyInModels, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsCurrentlyInModelsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_modelApplicationLevel(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_modelApplicationLevel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelApplicationLevel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modelApplicationLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExpectedNumberOfParticipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_estimateConfidence(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_estimateConfidence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EstimateConfidence, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ConfidenceType) - fc.Result = res - return ec.marshalOConfidenceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐConfidenceType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_estimateConfidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfidenceType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_confidenceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_confidenceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ConfidenceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_confidenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_recruitmentMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_recruitmentMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RecruitmentMethod, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.RecruitmentType) - fc.Result = res - return ec.marshalORecruitmentType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecruitmentType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_recruitmentMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type RecruitmentType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_recruitmentOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_recruitmentOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RecruitmentOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_recruitmentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_recruitmentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_recruitmentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RecruitmentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_recruitmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_selectionMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_selectionMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().SelectionMethod(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.ParticipantSelectionType) - fc.Result = res - return ec.marshalNParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_selectionMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ParticipantSelectionType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_selectionOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_selectionOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SelectionOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_selectionOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_selectionNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_selectionNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SelectionNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_selectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantAddedFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().ParticipantAddedFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantAddedFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantAddedFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantAddedFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantAddedFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantRemovedFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().ParticipantRemovedFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRemovedFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRemovedFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRemovedFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRemovedFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_communicationMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_communicationMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().CommunicationMethod(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.ParticipantCommunicationType) - fc.Result = res - return ec.marshalNParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_communicationMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ParticipantCommunicationType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_communicationMethodOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_communicationMethodOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunicationMethodOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_communicationMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_communicationNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_communicationNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunicationNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_communicationNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_riskType(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_riskType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().RiskType(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.ParticipantRiskType) - fc.Result = res - return ec.marshalNParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_riskType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ParticipantRiskType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_riskOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_riskOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_riskOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_riskNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_riskNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_riskNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_willRiskChange(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_willRiskChange(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillRiskChange, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_willRiskChange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_willRiskChangeNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_willRiskChangeNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillRiskChangeNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_willRiskChangeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRequireFinancialGuarantee, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().ParticipantRequireFinancialGuaranteeType(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.ParticipantRequireFinancialGuaranteeType) - fc.Result = res - return ec.marshalNParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ParticipantRequireFinancialGuaranteeType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRequireFinancialGuaranteeOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRequireFinancialGuaranteeNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_coordinateWork(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_coordinateWork(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CoordinateWork, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_coordinateWork(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_coordinateWorkNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_coordinateWorkNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CoordinateWorkNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_coordinateWorkNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GainsharePayments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GainsharePaymentsTrack, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePaymentsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GainsharePaymentsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().GainsharePaymentsEligibility(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.GainshareArrangementEligibility) - fc.Result = res - return ec.marshalNGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GainshareArrangementEligibility does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GainsharePaymentsEligibilityOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantsIds(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsIds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().ParticipantsIds(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.ParticipantsIDType) - fc.Result = res - return ec.marshalNParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsIds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ParticipantsIDType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantsIdsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsIdsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsIdsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsIdsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_participantsIDSNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsIDSNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsIDSNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsIDSNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerAdditionFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().ProviderAdditionFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAdditionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAdditionFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAdditionFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAdditionFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerAddMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAddMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().ProviderAddMethod(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.ProviderAddType) - fc.Result = res - return ec.marshalNProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAddMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProviderAddType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerAddMethodOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAddMethodOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAddMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerAddMethodNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAddMethodNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAddMethodNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerLeaveMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().ProviderLeaveMethod(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.ProviderLeaveType) - fc.Result = res - return ec.marshalNProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerLeaveMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProviderLeaveType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerLeaveMethodOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderLeaveMethodOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerLeaveMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerLeaveMethodNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderLeaveMethodNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerLeaveMethodNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerRemovalFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanParticipantsAndProviders().ProviderRemovalFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerRemovalFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderRemovalFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderRemovalFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderRemovalFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerOverlap(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerOverlap(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderOverlap, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.OverlapType) - fc.Result = res - return ec.marshalOOverlapType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOverlapType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerOverlap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OverlapType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerOverlapHierarchy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerOverlapHierarchy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderOverlapHierarchy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerOverlapHierarchy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_providerOverlapNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerOverlapNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderOverlapNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerOverlapNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProviders_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProviders_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TaskStatus) - fc.Result = res - return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProviders", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participants(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Participants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_medicareProviderType(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_medicareProviderType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MedicareProviderType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_medicareProviderType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_isNewTypeOfProvidersOrSuppliers(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_isNewTypeOfProvidersOrSuppliers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNewTypeOfProvidersOrSuppliers, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_isNewTypeOfProvidersOrSuppliers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_statesEngagement(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_statesEngagement(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StatesEngagement, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_statesEngagement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModels(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModels(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsCurrentlyInModels, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModelsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModelsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsCurrentlyInModelsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModelsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_modelApplicationLevel(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_modelApplicationLevel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelApplicationLevel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_modelApplicationLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_expectedNumberOfParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_expectedNumberOfParticipants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExpectedNumberOfParticipants, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_expectedNumberOfParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_estimateConfidence(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_estimateConfidence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EstimateConfidence, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_estimateConfidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_confidenceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_confidenceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ConfidenceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_confidenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_recruitmentMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RecruitmentMethod, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_recruitmentOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RecruitmentOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_recruitmentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RecruitmentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_selectionMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_selectionMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SelectionMethod, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_selectionMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_selectionOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_selectionOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SelectionOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_selectionOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_selectionNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_selectionNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SelectionNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_selectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantAddedFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantAddedFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantAddedFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantAddedFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantAddedFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantAddedFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantAddedFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantAddedFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRemovedFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRemovedFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRemovedFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRemovedFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRemovedFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_communicationMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_communicationMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunicationMethod, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_communicationMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_communicationMethodOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_communicationMethodOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunicationMethodOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_communicationMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_communicationNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_communicationNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommunicationNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_communicationNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_riskType(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_riskType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_riskType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_riskOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_riskOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_riskOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_riskNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_riskNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RiskNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_riskNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_willRiskChange(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_willRiskChange(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillRiskChange, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_willRiskChange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_willRiskChangeNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_willRiskChangeNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillRiskChangeNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_willRiskChangeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuarantee(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuarantee(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRequireFinancialGuarantee, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuarantee(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeType(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRequireFinancialGuaranteeType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRequireFinancialGuaranteeOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantRequireFinancialGuaranteeNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_coordinateWork(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_coordinateWork(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CoordinateWork, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_coordinateWork(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_coordinateWorkNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_coordinateWorkNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CoordinateWorkNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_coordinateWorkNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GainsharePayments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePaymentsTrack(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsTrack(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GainsharePaymentsTrack, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsTrack(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePaymentsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GainsharePaymentsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibility(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibility(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GainsharePaymentsEligibility, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibility(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibilityOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibilityOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GainsharePaymentsEligibilityOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibilityOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsIds(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsIds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsIds, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsIds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsIdsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsIdsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsIdsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsIdsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsIDSNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsIDSNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParticipantsIDSNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsIDSNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAdditionFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAdditionFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAdditionFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAdditionFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAdditionFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAddMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAddMethod, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAddMethodOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethodOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAddMethodOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAddMethodNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethodNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderAddMethodNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethodNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerLeaveMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethod(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderLeaveMethod, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerLeaveMethodOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethodOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderLeaveMethodOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerLeaveMethodNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethodNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderLeaveMethodNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethodNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerRemovalFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderRemovalFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderRemovalFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderRemovalFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderRemovalFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerOverlap(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlap(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderOverlap, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerOverlapHierarchy(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlapHierarchy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderOverlapHierarchy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlapHierarchy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerOverlapNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlapNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProviderOverlapNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlapNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanParticipantsAndProvidersTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSource(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSource(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().FundingSource(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FundingSource) - fc.Result = res - return ec.marshalNFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FundingSource does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourcePatientProtectionInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourcePatientProtectionInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceMedicareAInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceMedicareAInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceMedicareBInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceMedicareBInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceR(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceR(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().FundingSourceR(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FundingSource) - fc.Result = res - return ec.marshalNFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FundingSource does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceRPatientProtectionInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceRPatientProtectionInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceRMedicareAInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceRMedicareAInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceRMedicareBInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceRMedicareBInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceROther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceROther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceROther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceROther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_fundingSourceRNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_fundingSourceRNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceRNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_fundingSourceRNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_payRecipients(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_payRecipients(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().PayRecipients(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.PayRecipient) - fc.Result = res - return ec.marshalNPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_payRecipients(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type PayRecipient does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_payRecipientsOtherSpecification(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayRecipientsOtherSpecification, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_payRecipientsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_payRecipientsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayRecipientsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_payRecipientsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_payType(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_payType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().PayType(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.PayType) - fc.Result = res - return ec.marshalNPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_payType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type PayType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_payTypeNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_payTypeNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayTypeNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_payTypeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_payClaims(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_payClaims(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().PayClaims(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.ClaimsBasedPayType) - fc.Result = res - return ec.marshalNClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_payClaims(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ClaimsBasedPayType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_payClaimsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_payClaimsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayClaimsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_payClaimsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_payClaimsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_payClaimsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayClaimsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_payClaimsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ShouldAnyProvidersExcludedFFSSystems, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ShouldAnyProviderExcludedFFSSystemsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_changesMedicarePhysicianFeeSchedule(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ChangesMedicarePhysicianFeeSchedule, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ChangesMedicarePhysicianFeeScheduleNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_affectsMedicareSecondaryPayerClaims(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AffectsMedicareSecondaryPayerClaims, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AffectsMedicareSecondaryPayerClaimsHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AffectsMedicareSecondaryPayerClaimsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_payModelDifferentiation(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_payModelDifferentiation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayModelDifferentiation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_payModelDifferentiation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_willBePaymentAdjustments(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_willBePaymentAdjustments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillBePaymentAdjustments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_willBePaymentAdjustments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_willBePaymentAdjustmentsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillBePaymentAdjustmentsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_creatingDependenciesBetweenServices(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatingDependenciesBetweenServices, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_creatingDependenciesBetweenServicesNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatingDependenciesBetweenServicesNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_needsClaimsDataCollection(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_needsClaimsDataCollection(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedsClaimsDataCollection, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_needsClaimsDataCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_needsClaimsDataCollectionNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedsClaimsDataCollectionNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_providingThirdPartyFile(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_providingThirdPartyFile(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProvidingThirdPartyFile, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_providingThirdPartyFile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_isContractorAwareTestDataRequirements(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsContractorAwareTestDataRequirements, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryCostSharingLevelAndHandling, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiveBeneficiaryCostSharingForAnyServices, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiveBeneficiaryCostSharingServiceSpecification, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_waiverOnlyAppliesPartOfPayment(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiverOnlyAppliesPartOfPayment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_waiveBeneficiaryCostSharingNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiveBeneficiaryCostSharingNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_nonClaimsPayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_nonClaimsPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().NonClaimsPayments(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]model.NonClaimsBasedPayType) - fc.Result = res - return ec.marshalNNonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_nonClaimsPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type NonClaimsBasedPayType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_nonClaimsPaymentOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_nonClaimsPaymentOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().NonClaimsPaymentOther(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_nonClaimsPaymentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_nonClaimsPaymentsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NonClaimsPaymentsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentCalculationOwner(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentCalculationOwner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentCalculationOwner, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentCalculationOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_numberPaymentsPerPayCycle(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberPaymentsPerPayCycle, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_numberPaymentsPerPayCycleNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberPaymentsPerPayCycleNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SharedSystemsInvolvedAdditionalClaimPayment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SharedSystemsInvolvedAdditionalClaimPaymentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_planningToUseInnovationPaymentContractor(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanningToUseInnovationPaymentContractor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_planningToUseInnovationPaymentContractorNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanningToUseInnovationPaymentContractorNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_expectedCalculationComplexityLevel(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExpectedCalculationComplexityLevel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ComplexityCalculationLevelType) - fc.Result = res - return ec.marshalOComplexityCalculationLevelType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐComplexityCalculationLevelType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ComplexityCalculationLevelType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_expectedCalculationComplexityLevelNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExpectedCalculationComplexityLevelNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_claimsProcessingPrecedence(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_claimsProcessingPrecedence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClaimsProcessingPrecedence, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_claimsProcessingPrecedence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_claimsProcessingPrecedenceOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClaimsProcessingPrecedenceOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_claimsProcessingPrecedenceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClaimsProcessingPrecedenceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CanParticipantsSelectBetweenPaymentMechanisms, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CanParticipantsSelectBetweenPaymentMechanismsHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CanParticipantsSelectBetweenPaymentMechanismsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_anticipatedPaymentFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().AnticipatedPaymentFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_anticipatedPaymentFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedPaymentFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_anticipatedPaymentFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedPaymentFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_anticipatedPaymentFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedPaymentFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_willRecoverPayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_willRecoverPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillRecoverPayments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_willRecoverPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_willRecoverPaymentsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_willRecoverPaymentsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillRecoverPaymentsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_willRecoverPaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipateReconcilingPaymentsRetrospectively, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipateReconcilingPaymentsRetrospectivelyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentReconciliationFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentReconciliationFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().PaymentReconciliationFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentReconciliationFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentReconciliationFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentReconciliationFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentReconciliationFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentReconciliationFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentReconciliationFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentReconciliationFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentDemandRecoupmentFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PlanPayments().PaymentDemandRecoupmentFrequency(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.FrequencyType) - fc.Result = res - return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FrequencyType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentDemandRecoupmentFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentDemandRecoupmentFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentDemandRecoupmentFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentStartDate(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentStartDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentStartDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentStartDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_paymentStartDateNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_paymentStartDateNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentStartDateNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_paymentStartDateNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_readyForReviewByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPayments_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPayments_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TaskStatus) - fc.Result = res - return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPayments_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPayments", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSource(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSource(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSource, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourcePatientProtectionInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourcePatientProtectionInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourcePatientProtectionInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourcePatientProtectionInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceMedicareAInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceMedicareAInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceMedicareAInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceMedicareAInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceMedicareBInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceMedicareBInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceMedicareBInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceMedicareBInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceR(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceR(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceR, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceRPatientProtectionInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceRPatientProtectionInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceRPatientProtectionInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceRPatientProtectionInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceRMedicareAInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceRMedicareAInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceRMedicareAInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceRMedicareAInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceRMedicareBInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceRMedicareBInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceRMedicareBInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceRMedicareBInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceROther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceROther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceROther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceROther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceRNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceRNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FundingSourceRNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceRNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_payRecipients(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_payRecipients(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayRecipients, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payRecipients(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_payRecipientsOtherSpecification(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_payRecipientsOtherSpecification(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayRecipientsOtherSpecification, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payRecipientsOtherSpecification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_payRecipientsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_payRecipientsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayRecipientsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payRecipientsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_payType(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_payType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_payTypeNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_payTypeNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayTypeNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payTypeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_payClaims(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_payClaims(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayClaims, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payClaims(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_payClaimsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_payClaimsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayClaimsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payClaimsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_payClaimsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_payClaimsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayClaimsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payClaimsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_shouldAnyProvidersExcludedFFSSystems(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_shouldAnyProvidersExcludedFFSSystems(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ShouldAnyProvidersExcludedFFSSystems, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_shouldAnyProvidersExcludedFFSSystems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_shouldAnyProviderExcludedFFSSystemsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ShouldAnyProviderExcludedFFSSystemsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_shouldAnyProviderExcludedFFSSystemsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_changesMedicarePhysicianFeeSchedule(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_changesMedicarePhysicianFeeSchedule(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ChangesMedicarePhysicianFeeSchedule, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_changesMedicarePhysicianFeeSchedule(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_changesMedicarePhysicianFeeScheduleNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_changesMedicarePhysicianFeeScheduleNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ChangesMedicarePhysicianFeeScheduleNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_changesMedicarePhysicianFeeScheduleNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaims(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaims(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AffectsMedicareSecondaryPayerClaims, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaims(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AffectsMedicareSecondaryPayerClaimsHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AffectsMedicareSecondaryPayerClaimsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_payModelDifferentiation(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_payModelDifferentiation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PayModelDifferentiation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payModelDifferentiation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_willBePaymentAdjustments(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_willBePaymentAdjustments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillBePaymentAdjustments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_willBePaymentAdjustments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_willBePaymentAdjustmentsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_willBePaymentAdjustmentsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillBePaymentAdjustmentsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_willBePaymentAdjustmentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_creatingDependenciesBetweenServices(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_creatingDependenciesBetweenServices(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatingDependenciesBetweenServices, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_creatingDependenciesBetweenServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_creatingDependenciesBetweenServicesNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_creatingDependenciesBetweenServicesNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatingDependenciesBetweenServicesNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_creatingDependenciesBetweenServicesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_needsClaimsDataCollection(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_needsClaimsDataCollection(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedsClaimsDataCollection, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_needsClaimsDataCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_needsClaimsDataCollectionNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_needsClaimsDataCollectionNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedsClaimsDataCollectionNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_needsClaimsDataCollectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_providingThirdPartyFile(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_providingThirdPartyFile(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProvidingThirdPartyFile, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_providingThirdPartyFile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_isContractorAwareTestDataRequirements(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_isContractorAwareTestDataRequirements(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsContractorAwareTestDataRequirements, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_isContractorAwareTestDataRequirements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_beneficiaryCostSharingLevelAndHandling(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_beneficiaryCostSharingLevelAndHandling(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BeneficiaryCostSharingLevelAndHandling, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_beneficiaryCostSharingLevelAndHandling(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_waiveBeneficiaryCostSharingForAnyServices(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingForAnyServices(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiveBeneficiaryCostSharingForAnyServices, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingForAnyServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_waiveBeneficiaryCostSharingServiceSpecification(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiveBeneficiaryCostSharingServiceSpecification, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingServiceSpecification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_waiverOnlyAppliesPartOfPayment(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_waiverOnlyAppliesPartOfPayment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiverOnlyAppliesPartOfPayment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_waiverOnlyAppliesPartOfPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_waiveBeneficiaryCostSharingNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WaiveBeneficiaryCostSharingNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_nonClaimsPayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_nonClaimsPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NonClaimsPayments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_nonClaimsPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_nonClaimsPaymentOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_nonClaimsPaymentOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NonClaimsPaymentOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_nonClaimsPaymentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_nonClaimsPaymentsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_nonClaimsPaymentsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NonClaimsPaymentsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_nonClaimsPaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentCalculationOwner(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentCalculationOwner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentCalculationOwner, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentCalculationOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_numberPaymentsPerPayCycle(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_numberPaymentsPerPayCycle(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberPaymentsPerPayCycle, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithParent) - fc.Result = res - return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_numberPaymentsPerPayCycle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_numberPaymentsPerPayCycleNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_numberPaymentsPerPayCycleNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberPaymentsPerPayCycleNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_numberPaymentsPerPayCycleNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPayment(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SharedSystemsInvolvedAdditionalClaimPayment, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SharedSystemsInvolvedAdditionalClaimPaymentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_planningToUseInnovationPaymentContractor(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_planningToUseInnovationPaymentContractor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanningToUseInnovationPaymentContractor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndParent) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_planningToUseInnovationPaymentContractor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - case "parentRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_planningToUseInnovationPaymentContractorNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_planningToUseInnovationPaymentContractorNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PlanningToUseInnovationPaymentContractorNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_planningToUseInnovationPaymentContractorNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_expectedCalculationComplexityLevel(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_expectedCalculationComplexityLevel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExpectedCalculationComplexityLevel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_expectedCalculationComplexityLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_expectedCalculationComplexityLevelNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_expectedCalculationComplexityLevelNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExpectedCalculationComplexityLevelNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_expectedCalculationComplexityLevelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_claimsProcessingPrecedence(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClaimsProcessingPrecedence, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_claimsProcessingPrecedenceOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedenceOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClaimsProcessingPrecedenceOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedenceOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_claimsProcessingPrecedenceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedenceNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ClaimsProcessingPrecedenceNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanisms(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CanParticipantsSelectBetweenPaymentMechanisms, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanisms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CanParticipantsSelectBetweenPaymentMechanismsHow, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CanParticipantsSelectBetweenPaymentMechanismsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_anticipatedPaymentFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedPaymentFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_anticipatedPaymentFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedPaymentFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_anticipatedPaymentFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedPaymentFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_anticipatedPaymentFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipatedPaymentFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_willRecoverPayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_willRecoverPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillRecoverPayments, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_willRecoverPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_willRecoverPaymentsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_willRecoverPaymentsNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.WillRecoverPaymentsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_willRecoverPaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectively(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectively(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipateReconcilingPaymentsRetrospectively, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectively(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectivelyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AnticipateReconcilingPaymentsRetrospectivelyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectivelyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentReconciliationFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentReconciliationFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentReconciliationFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentReconciliationFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentReconciliationFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentReconciliationFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentReconciliationFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentReconciliationFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentDemandRecoupmentFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequency(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentDemandRecoupmentFrequency, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyContinually(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentDemandRecoupmentFrequencyContinually, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentDemandRecoupmentFrequencyOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentDemandRecoupmentFrequencyNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentStartDate(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentStartDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentStartDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentStartDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_paymentStartDateNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentStartDateNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PaymentStartDateNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentStartDateNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_readyForReviewBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_readyForReviewDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForReviewDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_readyForClearanceBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_readyForClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadyForClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanPaymentsTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanPaymentsTranslation_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptions) - fc.Result = res - return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanPaymentsTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanPaymentsTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_idNumber(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_idNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IDNumber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_idNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_dateInitiated(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_dateInitiated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateInitiated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_dateInitiated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_title(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_title(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Title, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_note(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_note(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Note, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDL_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDL_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDL_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDLTranslation_idNumber(ctx context.Context, field graphql.CollectedField, obj *model.PlanTDLTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDLTranslation_idNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IDNumber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDLTranslation_idNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDLTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDLTranslation_title(ctx context.Context, field graphql.CollectedField, obj *model.PlanTDLTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDLTranslation_title(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Title, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDLTranslation_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDLTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDLTranslation_dateInitiated(ctx context.Context, field graphql.CollectedField, obj *model.PlanTDLTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDLTranslation_dateInitiated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DateInitiated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDLTranslation_dateInitiated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDLTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PlanTDLTranslation_note(ctx context.Context, field graphql.CollectedField, obj *model.PlanTDLTranslation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PlanTDLTranslation_note(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Note, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PlanTDLTranslation_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlanTDLTranslation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_id(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_possibleSolutions(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_possibleSolutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PossibleOperationalNeed().PossibleSolutions(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PossibleOperationalSolution) - fc.Result = res - return ec.marshalNPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_possibleSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PossibleOperationalSolution_id(ctx, field) - case "name": - return ec.fieldContext_PossibleOperationalSolution_name(ctx, field) - case "key": - return ec.fieldContext_PossibleOperationalSolution_key(ctx, field) - case "treatAsOther": - return ec.fieldContext_PossibleOperationalSolution_treatAsOther(ctx, field) - case "pointsOfContact": - return ec.fieldContext_PossibleOperationalSolution_pointsOfContact(ctx, field) - case "primaryContact": - return ec.fieldContext_PossibleOperationalSolution_primaryContact(ctx, field) - case "filterView": - return ec.fieldContext_PossibleOperationalSolution_filterView(ctx, field) - case "createdBy": - return ec.fieldContext_PossibleOperationalSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PossibleOperationalSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PossibleOperationalSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PossibleOperationalSolution_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolution", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_name(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_key(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.OperationalNeedKey) - fc.Result = res - return ec.marshalNOperationalNeedKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OperationalNeedKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_section(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_section(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Section, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(models.TaskListSection) - fc.Result = res - return ec.marshalOTaskListSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskListSection does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalNeed_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalNeed_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalNeed_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_id(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_name(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_key(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Key, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.OperationalSolutionKey) - fc.Result = res - return ec.marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OperationalSolutionKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_treatAsOther(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_treatAsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TreatAsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_treatAsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_pointsOfContact(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_pointsOfContact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PossibleOperationalSolution().PointsOfContact(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PossibleOperationalSolutionContact) - fc.Result = res - return ec.marshalNPossibleOperationalSolutionContact2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContactᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_pointsOfContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PossibleOperationalSolutionContact_id(ctx, field) - case "possibleOperationalSolutionID": - return ec.fieldContext_PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx, field) - case "name": - return ec.fieldContext_PossibleOperationalSolutionContact_name(ctx, field) - case "email": - return ec.fieldContext_PossibleOperationalSolutionContact_email(ctx, field) - case "isTeam": - return ec.fieldContext_PossibleOperationalSolutionContact_isTeam(ctx, field) - case "role": - return ec.fieldContext_PossibleOperationalSolutionContact_role(ctx, field) - case "isPrimary": - return ec.fieldContext_PossibleOperationalSolutionContact_isPrimary(ctx, field) - case "createdBy": - return ec.fieldContext_PossibleOperationalSolutionContact_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PossibleOperationalSolutionContact_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PossibleOperationalSolutionContact_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PossibleOperationalSolutionContact_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PossibleOperationalSolutionContact_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PossibleOperationalSolutionContact_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolutionContact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_primaryContact(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_primaryContact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.PossibleOperationalSolution().PrimaryContact(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.PossibleOperationalSolutionContact) - fc.Result = res - return ec.marshalOPossibleOperationalSolutionContact2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContact(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_primaryContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PossibleOperationalSolutionContact_id(ctx, field) - case "possibleOperationalSolutionID": - return ec.fieldContext_PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx, field) - case "name": - return ec.fieldContext_PossibleOperationalSolutionContact_name(ctx, field) - case "email": - return ec.fieldContext_PossibleOperationalSolutionContact_email(ctx, field) - case "isTeam": - return ec.fieldContext_PossibleOperationalSolutionContact_isTeam(ctx, field) - case "role": - return ec.fieldContext_PossibleOperationalSolutionContact_role(ctx, field) - case "isPrimary": - return ec.fieldContext_PossibleOperationalSolutionContact_isPrimary(ctx, field) - case "createdBy": - return ec.fieldContext_PossibleOperationalSolutionContact_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PossibleOperationalSolutionContact_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PossibleOperationalSolutionContact_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PossibleOperationalSolutionContact_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PossibleOperationalSolutionContact_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PossibleOperationalSolutionContact_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolutionContact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_filterView(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_filterView(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FilterView, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.ModelViewFilter) - fc.Result = res - return ec.marshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_filterView(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ModelViewFilter does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolution_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolution_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolution_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_id(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PossibleOperationalSolutionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_name(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_email(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_email(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Email, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_isTeam(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_isTeam(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsTeam, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_isTeam(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_role(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_role(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Role, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_role(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_isPrimary(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_isPrimary(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsPrimary, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_isPrimary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PossibleOperationalSolutionContact_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PossibleOperationalSolutionContact_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PossibleOperationalSolutionContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PrepareForClearance_status(ctx context.Context, field graphql.CollectedField, obj *model.PrepareForClearance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PrepareForClearance_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(model.PrepareForClearanceStatus) - fc.Result = res - return ec.marshalNPrepareForClearanceStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearanceStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PrepareForClearance_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PrepareForClearance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type PrepareForClearanceStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PrepareForClearance_latestClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PrepareForClearance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PrepareForClearance_latestClearanceDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LatestClearanceDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PrepareForClearance_latestClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PrepareForClearance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_analyzedAudits(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_analyzedAudits(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AnalyzedAudits(rctx, fc.Args["dateAnalyzed"].(time.Time)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.AnalyzedAudit); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.AnalyzedAudit`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.AnalyzedAudit) - fc.Result = res - return ec.marshalNAnalyzedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_analyzedAudits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_AnalyzedAudit_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_AnalyzedAudit_modelPlanID(ctx, field) - case "modelName": - return ec.fieldContext_AnalyzedAudit_modelName(ctx, field) - case "date": - return ec.fieldContext_AnalyzedAudit_date(ctx, field) - case "changes": - return ec.fieldContext_AnalyzedAudit_changes(ctx, field) - case "createdBy": - return ec.fieldContext_AnalyzedAudit_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_AnalyzedAudit_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_AnalyzedAudit_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_AnalyzedAudit_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_AnalyzedAudit_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_AnalyzedAudit_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AnalyzedAudit", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_analyzedAudits_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_auditChanges(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_auditChanges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AuditChanges(rctx, fc.Args["tableName"].(models.TableName), fc.Args["primaryKey"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.AuditChange); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.AuditChange`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.AuditChange) - fc.Result = res - return ec.marshalNAuditChange2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditChangeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_auditChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_AuditChange_id(ctx, field) - case "primaryKey": - return ec.fieldContext_AuditChange_primaryKey(ctx, field) - case "foreignKey": - return ec.fieldContext_AuditChange_foreignKey(ctx, field) - case "tableName": - return ec.fieldContext_AuditChange_tableName(ctx, field) - case "action": - return ec.fieldContext_AuditChange_action(ctx, field) - case "fields": - return ec.fieldContext_AuditChange_fields(ctx, field) - case "modifiedBy": - return ec.fieldContext_AuditChange_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_AuditChange_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_AuditChange_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditChange", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_auditChanges_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_currentUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_currentUser(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().CurrentUser(rctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.CurrentUser) - fc.Result = res - return ec.marshalNCurrentUser2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐCurrentUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_currentUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "launchDarkly": - return ec.fieldContext_CurrentUser_launchDarkly(ctx, field) - case "account": - return ec.fieldContext_CurrentUser_account(ctx, field) - case "notifications": - return ec.fieldContext_CurrentUser_notifications(ctx, field) - case "notificationPreferences": - return ec.fieldContext_CurrentUser_notificationPreferences(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CurrentUser", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_mostRecentDiscussionRoleSelection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_mostRecentDiscussionRoleSelection(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().MostRecentDiscussionRoleSelection(rctx) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.DiscussionRoleSelection); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.DiscussionRoleSelection`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.DiscussionRoleSelection) - fc.Result = res - return ec.marshalODiscussionRoleSelection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionRoleSelection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_mostRecentDiscussionRoleSelection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userRole": - return ec.fieldContext_DiscussionRoleSelection_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_DiscussionRoleSelection_userRoleDescription(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DiscussionRoleSelection", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_existingModelCollection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_existingModelCollection(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ExistingModelCollection(rctx) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.ExistingModel); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.ExistingModel`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.ExistingModel) - fc.Result = res - return ec.marshalNExistingModel2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_existingModelCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ExistingModel_id(ctx, field) - case "modelName": - return ec.fieldContext_ExistingModel_modelName(ctx, field) - case "stage": - return ec.fieldContext_ExistingModel_stage(ctx, field) - case "numberOfParticipants": - return ec.fieldContext_ExistingModel_numberOfParticipants(ctx, field) - case "category": - return ec.fieldContext_ExistingModel_category(ctx, field) - case "authority": - return ec.fieldContext_ExistingModel_authority(ctx, field) - case "description": - return ec.fieldContext_ExistingModel_description(ctx, field) - case "numberOfBeneficiariesImpacted": - return ec.fieldContext_ExistingModel_numberOfBeneficiariesImpacted(ctx, field) - case "numberOfPhysiciansImpacted": - return ec.fieldContext_ExistingModel_numberOfPhysiciansImpacted(ctx, field) - case "dateBegan": - return ec.fieldContext_ExistingModel_dateBegan(ctx, field) - case "dateEnded": - return ec.fieldContext_ExistingModel_dateEnded(ctx, field) - case "states": - return ec.fieldContext_ExistingModel_states(ctx, field) - case "keywords": - return ec.fieldContext_ExistingModel_keywords(ctx, field) - case "url": - return ec.fieldContext_ExistingModel_url(ctx, field) - case "displayModelSummary": - return ec.fieldContext_ExistingModel_displayModelSummary(ctx, field) - case "createdBy": - return ec.fieldContext_ExistingModel_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ExistingModel_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ExistingModel_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ExistingModel_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ExistingModel_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ExistingModel_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExistingModel", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_existingModelLink(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_existingModelLink(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ExistingModelLink(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.ExistingModelLink); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ExistingModelLink`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ExistingModelLink) - fc.Result = res - return ec.marshalNExistingModelLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLink(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_existingModelLink(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ExistingModelLink_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_ExistingModelLink_modelPlanID(ctx, field) - case "existingModelID": - return ec.fieldContext_ExistingModelLink_existingModelID(ctx, field) - case "currentModelPlanID": - return ec.fieldContext_ExistingModelLink_currentModelPlanID(ctx, field) - case "fieldName": - return ec.fieldContext_ExistingModelLink_fieldName(ctx, field) - case "model": - return ec.fieldContext_ExistingModelLink_model(ctx, field) - case "createdBy": - return ec.fieldContext_ExistingModelLink_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ExistingModelLink_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ExistingModelLink_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ExistingModelLink_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ExistingModelLink_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ExistingModelLink_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExistingModelLink", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_existingModelLink_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_lockableSectionLocks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_lockableSectionLocks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().LockableSectionLocks(rctx, fc.Args["modelPlanID"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*model.LockableSectionLockStatus); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/graph/model.LockableSectionLockStatus`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*model.LockableSectionLockStatus) - fc.Result = res - return ec.marshalNLockableSectionLockStatus2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_lockableSectionLocks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "modelPlanID": - return ec.fieldContext_LockableSectionLockStatus_modelPlanID(ctx, field) - case "section": - return ec.fieldContext_LockableSectionLockStatus_section(ctx, field) - case "lockedByUserAccount": - return ec.fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx, field) - case "isAssessment": - return ec.fieldContext_LockableSectionLockStatus_isAssessment(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatus", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_lockableSectionLocks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_modelPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ModelPlan(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.ModelPlan); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ModelPlan`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_modelPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_modelPlanCollection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_modelPlanCollection(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ModelPlanCollection(rctx, fc.Args["filter"].(model.ModelPlanFilter)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.ModelPlan); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.ModelPlan`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_modelPlanCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_modelPlanCollection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_modelPlansByOperationalSolutionKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_modelPlansByOperationalSolutionKey(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ModelPlansByOperationalSolutionKey(rctx, fc.Args["operationalSolutionKey"].(models.OperationalSolutionKey)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.ModelPlanAndPossibleOperationalSolution); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.ModelPlanAndPossibleOperationalSolution`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.ModelPlanAndPossibleOperationalSolution) - fc.Result = res - return ec.marshalNModelPlanAndPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanAndPossibleOperationalSolutionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_modelPlansByOperationalSolutionKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "possibleOperationalSolution": - return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx, field) - case "possibleOperationalSolutionID": - return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx, field) - case "key": - return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_key(ctx, field) - case "modelPlanID": - return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx, field) - case "modelPlan": - return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlan(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlanAndPossibleOperationalSolution", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_modelPlansByOperationalSolutionKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_ndaInfo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_ndaInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().NdaInfo(rctx) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*model.NDAInfo); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/graph/model.NDAInfo`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.NDAInfo) - fc.Result = res - return ec.marshalNNDAInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNDAInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_ndaInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "agreed": - return ec.fieldContext_NDAInfo_agreed(ctx, field) - case "agreedDts": - return ec.fieldContext_NDAInfo_agreedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NDAInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_operationalNeed(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_operationalNeed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OperationalNeed(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.OperationalNeed); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalNeed`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.OperationalNeed) - fc.Result = res - return ec.marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_operationalNeed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalNeed_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) - case "needed": - return ec.fieldContext_OperationalNeed_needed(ctx, field) - case "solutions": - return ec.fieldContext_OperationalNeed_solutions(ctx, field) - case "key": - return ec.fieldContext_OperationalNeed_key(ctx, field) - case "name": - return ec.fieldContext_OperationalNeed_name(ctx, field) - case "nameOther": - return ec.fieldContext_OperationalNeed_nameOther(ctx, field) - case "section": - return ec.fieldContext_OperationalNeed_section(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalNeed_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalNeed_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalNeed", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_operationalNeed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_operationalSolutions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_operationalSolutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OperationalSolutions(rctx, fc.Args["operationalNeedID"].(uuid.UUID), fc.Args["includeNotNeeded"].(bool)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.OperationalSolution); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.OperationalSolution`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.OperationalSolution) - fc.Result = res - return ec.marshalNOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_operationalSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalSolution_id(ctx, field) - case "operationalNeedID": - return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) - case "solutionType": - return ec.fieldContext_OperationalSolution_solutionType(ctx, field) - case "needed": - return ec.fieldContext_OperationalSolution_needed(ctx, field) - case "name": - return ec.fieldContext_OperationalSolution_name(ctx, field) - case "key": - return ec.fieldContext_OperationalSolution_key(ctx, field) - case "nameOther": - return ec.fieldContext_OperationalSolution_nameOther(ctx, field) - case "pocName": - return ec.fieldContext_OperationalSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) - case "mustStartDts": - return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) - case "mustFinishDts": - return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) - case "isOther": - return ec.fieldContext_OperationalSolution_isOther(ctx, field) - case "isCommonSolution": - return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) - case "otherHeader": - return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) - case "status": - return ec.fieldContext_OperationalSolution_status(ctx, field) - case "documents": - return ec.fieldContext_OperationalSolution_documents(ctx, field) - case "operationalSolutionSubtasks": - return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_operationalSolutions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_operationalSolution(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_operationalSolution(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OperationalSolution(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.OperationalSolution); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalSolution`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.OperationalSolution) - fc.Result = res - return ec.marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_operationalSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OperationalSolution_id(ctx, field) - case "operationalNeedID": - return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) - case "solutionType": - return ec.fieldContext_OperationalSolution_solutionType(ctx, field) - case "needed": - return ec.fieldContext_OperationalSolution_needed(ctx, field) - case "name": - return ec.fieldContext_OperationalSolution_name(ctx, field) - case "key": - return ec.fieldContext_OperationalSolution_key(ctx, field) - case "nameOther": - return ec.fieldContext_OperationalSolution_nameOther(ctx, field) - case "pocName": - return ec.fieldContext_OperationalSolution_pocName(ctx, field) - case "pocEmail": - return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) - case "mustStartDts": - return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) - case "mustFinishDts": - return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) - case "isOther": - return ec.fieldContext_OperationalSolution_isOther(ctx, field) - case "isCommonSolution": - return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) - case "otherHeader": - return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) - case "status": - return ec.fieldContext_OperationalSolution_status(ctx, field) - case "documents": - return ec.fieldContext_OperationalSolution_documents(ctx, field) - case "operationalSolutionSubtasks": - return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) - case "createdBy": - return ec.fieldContext_OperationalSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_OperationalSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_operationalSolution_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_planCollaboratorByID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_planCollaboratorByID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PlanCollaboratorByID(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanCollaborator); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCollaborator`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanCollaborator) - fc.Result = res - return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_planCollaboratorByID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCollaborator_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) - case "userID": - return ec.fieldContext_PlanCollaborator_userID(ctx, field) - case "userAccount": - return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) - case "teamRoles": - return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_planCollaboratorByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_planCR(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_planCR(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PlanCr(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanCR); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCR`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanCR) - fc.Result = res - return ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_planCR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanCR_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanCR_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanCR_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanCR_dateInitiated(ctx, field) - case "dateImplemented": - return ec.fieldContext_PlanCR_dateImplemented(ctx, field) - case "title": - return ec.fieldContext_PlanCR_title(ctx, field) - case "note": - return ec.fieldContext_PlanCR_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanCR_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanCR_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanCR_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanCR_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_planCR_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_planDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_planDocument(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PlanDocument(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanDocument); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDocument`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDocument) - fc.Result = res - return ec.marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_planDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDocument_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) - case "isLink": - return ec.fieldContext_PlanDocument_isLink(ctx, field) - case "url": - return ec.fieldContext_PlanDocument_url(ctx, field) - case "fileType": - return ec.fieldContext_PlanDocument_fileType(ctx, field) - case "bucket": - return ec.fieldContext_PlanDocument_bucket(ctx, field) - case "fileKey": - return ec.fieldContext_PlanDocument_fileKey(ctx, field) - case "virusScanned": - return ec.fieldContext_PlanDocument_virusScanned(ctx, field) - case "virusClean": - return ec.fieldContext_PlanDocument_virusClean(ctx, field) - case "restricted": - return ec.fieldContext_PlanDocument_restricted(ctx, field) - case "fileName": - return ec.fieldContext_PlanDocument_fileName(ctx, field) - case "fileSize": - return ec.fieldContext_PlanDocument_fileSize(ctx, field) - case "documentType": - return ec.fieldContext_PlanDocument_documentType(ctx, field) - case "otherType": - return ec.fieldContext_PlanDocument_otherType(ctx, field) - case "optionalNotes": - return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) - case "downloadUrl": - return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) - case "deletedAt": - return ec.fieldContext_PlanDocument_deletedAt(ctx, field) - case "numLinkedSolutions": - return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDocument_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDocument_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_planDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_planPayments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_planPayments(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PlanPayments(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanPayments); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanPayments`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanPayments) - fc.Result = res - return ec.marshalNPlanPayments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_planPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanPayments_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanPayments_modelPlanID(ctx, field) - case "fundingSource": - return ec.fieldContext_PlanPayments_fundingSource(ctx, field) - case "fundingSourcePatientProtectionInfo": - return ec.fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx, field) - case "fundingSourceMedicareAInfo": - return ec.fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx, field) - case "fundingSourceMedicareBInfo": - return ec.fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx, field) - case "fundingSourceOther": - return ec.fieldContext_PlanPayments_fundingSourceOther(ctx, field) - case "fundingSourceNote": - return ec.fieldContext_PlanPayments_fundingSourceNote(ctx, field) - case "fundingSourceR": - return ec.fieldContext_PlanPayments_fundingSourceR(ctx, field) - case "fundingSourceRPatientProtectionInfo": - return ec.fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field) - case "fundingSourceRMedicareAInfo": - return ec.fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx, field) - case "fundingSourceRMedicareBInfo": - return ec.fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx, field) - case "fundingSourceROther": - return ec.fieldContext_PlanPayments_fundingSourceROther(ctx, field) - case "fundingSourceRNote": - return ec.fieldContext_PlanPayments_fundingSourceRNote(ctx, field) - case "payRecipients": - return ec.fieldContext_PlanPayments_payRecipients(ctx, field) - case "payRecipientsOtherSpecification": - return ec.fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx, field) - case "payRecipientsNote": - return ec.fieldContext_PlanPayments_payRecipientsNote(ctx, field) - case "payType": - return ec.fieldContext_PlanPayments_payType(ctx, field) - case "payTypeNote": - return ec.fieldContext_PlanPayments_payTypeNote(ctx, field) - case "payClaims": - return ec.fieldContext_PlanPayments_payClaims(ctx, field) - case "payClaimsOther": - return ec.fieldContext_PlanPayments_payClaimsOther(ctx, field) - case "payClaimsNote": - return ec.fieldContext_PlanPayments_payClaimsNote(ctx, field) - case "shouldAnyProvidersExcludedFFSSystems": - return ec.fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field) - case "shouldAnyProviderExcludedFFSSystemsNote": - return ec.fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) - case "changesMedicarePhysicianFeeSchedule": - return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field) - case "changesMedicarePhysicianFeeScheduleNote": - return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field) - case "affectsMedicareSecondaryPayerClaims": - return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field) - case "affectsMedicareSecondaryPayerClaimsHow": - return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field) - case "affectsMedicareSecondaryPayerClaimsNote": - return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field) - case "payModelDifferentiation": - return ec.fieldContext_PlanPayments_payModelDifferentiation(ctx, field) - case "willBePaymentAdjustments": - return ec.fieldContext_PlanPayments_willBePaymentAdjustments(ctx, field) - case "willBePaymentAdjustmentsNote": - return ec.fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx, field) - case "creatingDependenciesBetweenServices": - return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx, field) - case "creatingDependenciesBetweenServicesNote": - return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field) - case "needsClaimsDataCollection": - return ec.fieldContext_PlanPayments_needsClaimsDataCollection(ctx, field) - case "needsClaimsDataCollectionNote": - return ec.fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx, field) - case "providingThirdPartyFile": - return ec.fieldContext_PlanPayments_providingThirdPartyFile(ctx, field) - case "isContractorAwareTestDataRequirements": - return ec.fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx, field) - case "beneficiaryCostSharingLevelAndHandling": - return ec.fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field) - case "waiveBeneficiaryCostSharingForAnyServices": - return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field) - case "waiveBeneficiaryCostSharingServiceSpecification": - return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) - case "waiverOnlyAppliesPartOfPayment": - return ec.fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field) - case "waiveBeneficiaryCostSharingNote": - return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field) - case "nonClaimsPayments": - return ec.fieldContext_PlanPayments_nonClaimsPayments(ctx, field) - case "nonClaimsPaymentOther": - return ec.fieldContext_PlanPayments_nonClaimsPaymentOther(ctx, field) - case "nonClaimsPaymentsNote": - return ec.fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx, field) - case "paymentCalculationOwner": - return ec.fieldContext_PlanPayments_paymentCalculationOwner(ctx, field) - case "numberPaymentsPerPayCycle": - return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx, field) - case "numberPaymentsPerPayCycleNote": - return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx, field) - case "sharedSystemsInvolvedAdditionalClaimPayment": - return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) - case "sharedSystemsInvolvedAdditionalClaimPaymentNote": - return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) - case "planningToUseInnovationPaymentContractor": - return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx, field) - case "planningToUseInnovationPaymentContractorNote": - return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field) - case "expectedCalculationComplexityLevel": - return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx, field) - case "expectedCalculationComplexityLevelNote": - return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx, field) - case "claimsProcessingPrecedence": - return ec.fieldContext_PlanPayments_claimsProcessingPrecedence(ctx, field) - case "claimsProcessingPrecedenceOther": - return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx, field) - case "claimsProcessingPrecedenceNote": - return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx, field) - case "canParticipantsSelectBetweenPaymentMechanisms": - return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) - case "canParticipantsSelectBetweenPaymentMechanismsHow": - return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) - case "canParticipantsSelectBetweenPaymentMechanismsNote": - return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) - case "anticipatedPaymentFrequency": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx, field) - case "anticipatedPaymentFrequencyContinually": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field) - case "anticipatedPaymentFrequencyOther": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx, field) - case "anticipatedPaymentFrequencyNote": - return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx, field) - case "willRecoverPayments": - return ec.fieldContext_PlanPayments_willRecoverPayments(ctx, field) - case "willRecoverPaymentsNote": - return ec.fieldContext_PlanPayments_willRecoverPaymentsNote(ctx, field) - case "anticipateReconcilingPaymentsRetrospectively": - return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field) - case "anticipateReconcilingPaymentsRetrospectivelyNote": - return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) - case "paymentReconciliationFrequency": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequency(ctx, field) - case "paymentReconciliationFrequencyContinually": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx, field) - case "paymentReconciliationFrequencyOther": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx, field) - case "paymentReconciliationFrequencyNote": - return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx, field) - case "paymentDemandRecoupmentFrequency": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx, field) - case "paymentDemandRecoupmentFrequencyContinually": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field) - case "paymentDemandRecoupmentFrequencyOther": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field) - case "paymentDemandRecoupmentFrequencyNote": - return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field) - case "paymentStartDate": - return ec.fieldContext_PlanPayments_paymentStartDate(ctx, field) - case "paymentStartDateNote": - return ec.fieldContext_PlanPayments_paymentStartDateNote(ctx, field) - case "createdBy": - return ec.fieldContext_PlanPayments_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanPayments_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanPayments_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanPayments_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanPayments_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanPayments_modifiedDts(ctx, field) - case "readyForReviewBy": - return ec.fieldContext_PlanPayments_readyForReviewBy(ctx, field) - case "readyForReviewByUserAccount": - return ec.fieldContext_PlanPayments_readyForReviewByUserAccount(ctx, field) - case "readyForReviewDts": - return ec.fieldContext_PlanPayments_readyForReviewDts(ctx, field) - case "readyForClearanceBy": - return ec.fieldContext_PlanPayments_readyForClearanceBy(ctx, field) - case "readyForClearanceByUserAccount": - return ec.fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx, field) - case "readyForClearanceDts": - return ec.fieldContext_PlanPayments_readyForClearanceDts(ctx, field) - case "status": - return ec.fieldContext_PlanPayments_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanPayments", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_planPayments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_planTDL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_planTDL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PlanTdl(rctx, fc.Args["id"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.PlanTDL); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanTDL`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanTDL) - fc.Result = res - return ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_planTDL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanTDL_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) - case "idNumber": - return ec.fieldContext_PlanTDL_idNumber(ctx, field) - case "dateInitiated": - return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) - case "title": - return ec.fieldContext_PlanTDL_title(ctx, field) - case "note": - return ec.fieldContext_PlanTDL_note(ctx, field) - case "createdBy": - return ec.fieldContext_PlanTDL_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanTDL_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_planTDL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_possibleOperationalNeeds(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_possibleOperationalNeeds(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PossibleOperationalNeeds(rctx) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.PossibleOperationalNeed); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.PossibleOperationalNeed`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PossibleOperationalNeed) - fc.Result = res - return ec.marshalNPossibleOperationalNeed2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalNeedᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_possibleOperationalNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PossibleOperationalNeed_id(ctx, field) - case "possibleSolutions": - return ec.fieldContext_PossibleOperationalNeed_possibleSolutions(ctx, field) - case "name": - return ec.fieldContext_PossibleOperationalNeed_name(ctx, field) - case "key": - return ec.fieldContext_PossibleOperationalNeed_key(ctx, field) - case "section": - return ec.fieldContext_PossibleOperationalNeed_section(ctx, field) - case "createdBy": - return ec.fieldContext_PossibleOperationalNeed_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PossibleOperationalNeed_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PossibleOperationalNeed_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PossibleOperationalNeed_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PossibleOperationalNeed_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PossibleOperationalNeed_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalNeed", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_possibleOperationalSolutions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_possibleOperationalSolutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PossibleOperationalSolutions(rctx) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.PossibleOperationalSolution); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.PossibleOperationalSolution`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.PossibleOperationalSolution) - fc.Result = res - return ec.marshalNPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_possibleOperationalSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PossibleOperationalSolution_id(ctx, field) - case "name": - return ec.fieldContext_PossibleOperationalSolution_name(ctx, field) - case "key": - return ec.fieldContext_PossibleOperationalSolution_key(ctx, field) - case "treatAsOther": - return ec.fieldContext_PossibleOperationalSolution_treatAsOther(ctx, field) - case "pointsOfContact": - return ec.fieldContext_PossibleOperationalSolution_pointsOfContact(ctx, field) - case "primaryContact": - return ec.fieldContext_PossibleOperationalSolution_primaryContact(ctx, field) - case "filterView": - return ec.fieldContext_PossibleOperationalSolution_filterView(ctx, field) - case "createdBy": - return ec.fieldContext_PossibleOperationalSolution_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PossibleOperationalSolution_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PossibleOperationalSolution_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PossibleOperationalSolution_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolution", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_translatedAuditCollection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_translatedAuditCollection(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TranslatedAuditCollection(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["limit"].(*int), fc.Args["offset"].(*int)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.TranslatedAudit); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.TranslatedAudit`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*models.TranslatedAudit) - fc.Result = res - return ec.marshalOTranslatedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_translatedAuditCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_TranslatedAudit_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_TranslatedAudit_modelPlanID(ctx, field) - case "tableID": - return ec.fieldContext_TranslatedAudit_tableID(ctx, field) - case "tableName": - return ec.fieldContext_TranslatedAudit_tableName(ctx, field) - case "primaryKey": - return ec.fieldContext_TranslatedAudit_primaryKey(ctx, field) - case "date": - return ec.fieldContext_TranslatedAudit_date(ctx, field) - case "action": - return ec.fieldContext_TranslatedAudit_action(ctx, field) - case "restricted": - return ec.fieldContext_TranslatedAudit_restricted(ctx, field) - case "actorID": - return ec.fieldContext_TranslatedAudit_actorID(ctx, field) - case "actorName": - return ec.fieldContext_TranslatedAudit_actorName(ctx, field) - case "changeID": - return ec.fieldContext_TranslatedAudit_changeID(ctx, field) - case "metaDataType": - return ec.fieldContext_TranslatedAudit_metaDataType(ctx, field) - case "metaData": - return ec.fieldContext_TranslatedAudit_metaData(ctx, field) - case "translatedFields": - return ec.fieldContext_TranslatedAudit_translatedFields(ctx, field) - case "createdBy": - return ec.fieldContext_TranslatedAudit_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_TranslatedAudit_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_TranslatedAudit_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_TranslatedAudit_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_TranslatedAudit_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_TranslatedAudit_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslatedAudit", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_translatedAuditCollection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_userAccount(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserAccount(rctx, fc.Args["username"].(string)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*authentication.UserAccount); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/authentication.UserAccount`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userAccount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_searchOktaUsers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_searchOktaUsers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SearchOktaUsers(rctx, fc.Args["searchTerm"].(string)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*models.UserInfo); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.UserInfo`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.UserInfo) - fc.Result = res - return ec.marshalNUserInfo2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserInfoᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_searchOktaUsers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "firstName": - return ec.fieldContext_UserInfo_firstName(ctx, field) - case "lastName": - return ec.fieldContext_UserInfo_lastName(ctx, field) - case "displayName": - return ec.fieldContext_UserInfo_displayName(ctx, field) - case "email": - return ec.fieldContext_UserInfo_email(ctx, field) - case "username": - return ec.fieldContext_UserInfo_username(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserInfo", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_searchOktaUsers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_userViewCustomization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userViewCustomization(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserViewCustomization(rctx) - } - directive1 := func(ctx context.Context) (interface{}, error) { - roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) - if err != nil { - return nil, err - } - if ec.directives.HasAnyRole == nil { - return nil, errors.New("directive hasAnyRole is not implemented") - } - return ec.directives.HasAnyRole(ctx, nil, directive0, roles) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*models.UserViewCustomization); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.UserViewCustomization`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.UserViewCustomization) - fc.Result = res - return ec.marshalNUserViewCustomization2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserViewCustomization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_userViewCustomization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserViewCustomization_id(ctx, field) - case "userId": - return ec.fieldContext_UserViewCustomization_userId(ctx, field) - case "userAccount": - return ec.fieldContext_UserViewCustomization_userAccount(ctx, field) - case "viewCustomization": - return ec.fieldContext_UserViewCustomization_viewCustomization(ctx, field) - case "possibleOperationalSolutions": - return ec.fieldContext_UserViewCustomization_possibleOperationalSolutions(ctx, field) - case "createdBy": - return ec.fieldContext_UserViewCustomization_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_UserViewCustomization_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_UserViewCustomization_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_UserViewCustomization_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_UserViewCustomization_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_UserViewCustomization_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserViewCustomization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.introspectType(fc.Args["name"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___schema(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.introspectSchema() - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Schema) - fc.Result = res - return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "description": - return ec.fieldContext___Schema_description(ctx, field) - case "types": - return ec.fieldContext___Schema_types(ctx, field) - case "queryType": - return ec.fieldContext___Schema_queryType(ctx, field) - case "mutationType": - return ec.fieldContext___Schema_mutationType(ctx, field) - case "subscriptionType": - return ec.fieldContext___Schema_subscriptionType(ctx, field) - case "directives": - return ec.fieldContext___Schema_directives(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RecentModification_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.RecentModification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RecentModification_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_RecentModification_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RecentModification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RecentModification_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.RecentModification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RecentModification_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_RecentModification_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RecentModification", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RecentModification_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.RecentModification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RecentModification_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_RecentModification_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RecentModification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscription_onLockableSectionLocksChanged(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { - fc, err := ec.fieldContext_Subscription_onLockableSectionLocksChanged(ctx, field) - if err != nil { - return nil - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Subscription().OnLockableSectionLocksChanged(rctx, fc.Args["modelPlanID"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(<-chan *model.LockableSectionLockStatusChanged); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be <-chan *github.com/cms-enterprise/mint-app/pkg/graph/model.LockableSectionLockStatusChanged`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return nil - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return nil - } - return func(ctx context.Context) graphql.Marshaler { - select { - case res, ok := <-resTmp.(<-chan *model.LockableSectionLockStatusChanged): - if !ok { - return nil - } - return graphql.WriterFunc(func(w io.Writer) { - w.Write([]byte{'{'}) - graphql.MarshalString(field.Alias).MarshalGQL(w) - w.Write([]byte{':'}) - ec.marshalNLockableSectionLockStatusChanged2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusChanged(ctx, field.Selections, res).MarshalGQL(w) - w.Write([]byte{'}'}) - }) - case <-ctx.Done(): - return nil - } - } -} - -func (ec *executionContext) fieldContext_Subscription_onLockableSectionLocksChanged(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscription", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "changeType": - return ec.fieldContext_LockableSectionLockStatusChanged_changeType(ctx, field) - case "lockStatus": - return ec.fieldContext_LockableSectionLockStatusChanged_lockStatus(ctx, field) - case "actionType": - return ec.fieldContext_LockableSectionLockStatusChanged_actionType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatusChanged", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subscription_onLockableSectionLocksChanged_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Subscription_onLockLockableSectionContext(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { - fc, err := ec.fieldContext_Subscription_onLockLockableSectionContext(ctx, field) - if err != nil { - return nil - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Subscription().OnLockLockableSectionContext(rctx, fc.Args["modelPlanID"].(uuid.UUID)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") - if err != nil { - return nil, err - } - if ec.directives.HasRole == nil { - return nil, errors.New("directive hasRole is not implemented") - } - return ec.directives.HasRole(ctx, nil, directive0, role) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(<-chan *model.LockableSectionLockStatusChanged); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be <-chan *github.com/cms-enterprise/mint-app/pkg/graph/model.LockableSectionLockStatusChanged`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return nil - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return nil - } - return func(ctx context.Context) graphql.Marshaler { - select { - case res, ok := <-resTmp.(<-chan *model.LockableSectionLockStatusChanged): - if !ok { - return nil - } - return graphql.WriterFunc(func(w io.Writer) { - w.Write([]byte{'{'}) - graphql.MarshalString(field.Alias).MarshalGQL(w) - w.Write([]byte{':'}) - ec.marshalNLockableSectionLockStatusChanged2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusChanged(ctx, field.Selections, res).MarshalGQL(w) - w.Write([]byte{'}'}) - }) - case <-ctx.Done(): - return nil - } - } -} - -func (ec *executionContext) fieldContext_Subscription_onLockLockableSectionContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscription", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "changeType": - return ec.fieldContext_LockableSectionLockStatusChanged_changeType(ctx, field) - case "lockStatus": - return ec.fieldContext_LockableSectionLockStatusChanged_lockStatus(ctx, field) - case "actionType": - return ec.fieldContext_LockableSectionLockStatusChanged_actionType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatusChanged", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Subscription_onLockLockableSectionContext_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Tag_id(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_tagType(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_tagType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TagType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TagType) - fc.Result = res - return ec.marshalNTagType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_tagType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TagType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_taggedField(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_taggedField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TaggedField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_taggedField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_taggedContentTable(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_taggedContentTable(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TaggedContentTable, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_taggedContentTable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_taggedContentID(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_taggedContentID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TaggedContentID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_taggedContentID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_entityUUID(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_entityUUID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EntityUUID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_entityUUID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_entityIntID(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_entityIntID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EntityIntID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_entityIntID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_entity(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_entity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Tag().Entity(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(models.TaggedEntity) - fc.Result = res - return ec.marshalOTaggedEntity2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedEntity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_entity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaggedEntity does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Tag_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Tag_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Tag_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Tag", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedContent_rawContent(ctx context.Context, field graphql.CollectedField, obj *models.TaggedContent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedContent_rawContent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TaggedContent().RawContent(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedContent_rawContent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedContent", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedContent_tags(ctx context.Context, field graphql.CollectedField, obj *models.TaggedContent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedContent_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.Tag) - fc.Result = res - return ec.marshalNTag2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedContent_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedContent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Tag_id(ctx, field) - case "tagType": - return ec.fieldContext_Tag_tagType(ctx, field) - case "taggedField": - return ec.fieldContext_Tag_taggedField(ctx, field) - case "taggedContentTable": - return ec.fieldContext_Tag_taggedContentTable(ctx, field) - case "taggedContentID": - return ec.fieldContext_Tag_taggedContentID(ctx, field) - case "entityUUID": - return ec.fieldContext_Tag_entityUUID(ctx, field) - case "entityIntID": - return ec.fieldContext_Tag_entityIntID(ctx, field) - case "entity": - return ec.fieldContext_Tag_entity(ctx, field) - case "createdBy": - return ec.fieldContext_Tag_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_Tag_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_Tag_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_Tag_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_Tag_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_Tag_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Tag", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInDiscussionReplyActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInDiscussionReplyActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInDiscussionReplyActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TaggedInDiscussionReplyActivityMeta().ModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInDiscussionReplyActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_discussionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DiscussionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInDiscussionReplyActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_discussion(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_discussion(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TaggedInDiscussionReplyActivityMeta().Discussion(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDiscussion) - fc.Result = res - return ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_discussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInDiscussionReplyActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDiscussion_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) - case "content": - return ec.fieldContext_PlanDiscussion_content(ctx, field) - case "userRole": - return ec.fieldContext_PlanDiscussion_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) - case "replies": - return ec.fieldContext_PlanDiscussion_replies(ctx, field) - case "isAssessment": - return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_replyID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_replyID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReplyID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_replyID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInDiscussionReplyActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_reply(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_reply(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TaggedInDiscussionReplyActivityMeta().Reply(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.DiscussionReply) - fc.Result = res - return ec.marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_reply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInDiscussionReplyActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DiscussionReply_id(ctx, field) - case "discussionID": - return ec.fieldContext_DiscussionReply_discussionID(ctx, field) - case "content": - return ec.fieldContext_DiscussionReply_content(ctx, field) - case "userRole": - return ec.fieldContext_DiscussionReply_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) - case "isAssessment": - return ec.fieldContext_DiscussionReply_isAssessment(ctx, field) - case "createdBy": - return ec.fieldContext_DiscussionReply_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_DiscussionReply_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DiscussionReply", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_content(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_content(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Content, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInDiscussionReplyActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInPlanDiscussionActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.ActivityType) - fc.Result = res - return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInPlanDiscussionActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInPlanDiscussionActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_modelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TaggedInPlanDiscussionActivityMeta().ModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.ModelPlan) - fc.Result = res - return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInPlanDiscussionActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ModelPlan_id(ctx, field) - case "modelName": - return ec.fieldContext_ModelPlan_modelName(ctx, field) - case "abbreviation": - return ec.fieldContext_ModelPlan_abbreviation(ctx, field) - case "archived": - return ec.fieldContext_ModelPlan_archived(ctx, field) - case "createdBy": - return ec.fieldContext_ModelPlan_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_ModelPlan_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) - case "basics": - return ec.fieldContext_ModelPlan_basics(ctx, field) - case "generalCharacteristics": - return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) - case "participantsAndProviders": - return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) - case "beneficiaries": - return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) - case "opsEvalAndLearning": - return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) - case "collaborators": - return ec.fieldContext_ModelPlan_collaborators(ctx, field) - case "documents": - return ec.fieldContext_ModelPlan_documents(ctx, field) - case "discussions": - return ec.fieldContext_ModelPlan_discussions(ctx, field) - case "payments": - return ec.fieldContext_ModelPlan_payments(ctx, field) - case "dataExchangeApproach": - return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) - case "status": - return ec.fieldContext_ModelPlan_status(ctx, field) - case "taskListStatus": - return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) - case "suggestedPhase": - return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) - case "isFavorite": - return ec.fieldContext_ModelPlan_isFavorite(ctx, field) - case "isCollaborator": - return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) - case "crs": - return ec.fieldContext_ModelPlan_crs(ctx, field) - case "tdls": - return ec.fieldContext_ModelPlan_tdls(ctx, field) - case "echimpCRsAndTDLs": - return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) - case "prepareForClearance": - return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) - case "nameHistory": - return ec.fieldContext_ModelPlan_nameHistory(ctx, field) - case "operationalNeeds": - return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) - case "opSolutionLastModifiedDts": - return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) - case "previousSuggestedPhase": - return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) - case "mtoMatrix": - return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) - case "modelBySolutionStatus": - return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_discussionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DiscussionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInPlanDiscussionActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_discussion(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_discussion(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TaggedInPlanDiscussionActivityMeta().Discussion(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.PlanDiscussion) - fc.Result = res - return ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_discussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInPlanDiscussionActivityMeta", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PlanDiscussion_id(ctx, field) - case "modelPlanID": - return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) - case "content": - return ec.fieldContext_PlanDiscussion_content(ctx, field) - case "userRole": - return ec.fieldContext_PlanDiscussion_userRole(ctx, field) - case "userRoleDescription": - return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) - case "replies": - return ec.fieldContext_PlanDiscussion_replies(ctx, field) - case "isAssessment": - return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) - case "createdBy": - return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_content(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_content(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Content, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaggedInPlanDiscussionActivityMeta", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_id(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_modelPlanID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModelPlanID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_tableID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_tableID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_tableID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_tableName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TableName) - fc.Result = res - return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_primaryKey(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_primaryKey(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrimaryKey, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_primaryKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_date(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_date(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Date, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_action(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_action(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Action, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.DatabaseOperation) - fc.Result = res - return ec.marshalNDatabaseOperation2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatabaseOperation(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_action(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DatabaseOperation does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_restricted(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_restricted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Restricted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_restricted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_actorID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_actorID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActorID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_actorID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_actorName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_actorName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActorName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_actorName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_changeID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_changeID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ChangeID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_changeID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_metaDataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_metaDataType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MetaDataType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TranslatedAuditMetaDataType) - fc.Result = res - return ec.marshalOTranslatedAuditMetaDataType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaDataType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_metaDataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslatedAuditMetaDataType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_metaData(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_metaData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MetaData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(models.TranslatedAuditMetaData) - fc.Result = res - return ec.marshalOTranslatedAuditMetaData2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaData(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_metaData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslatedAuditMetaData does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_translatedFields(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_translatedFields(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TranslatedAudit().TranslatedFields(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.TranslatedAuditField) - fc.Result = res - return ec.marshalNTranslatedAuditField2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditFieldᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_translatedFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_TranslatedAuditField_id(ctx, field) - case "translatedAuditID": - return ec.fieldContext_TranslatedAuditField_translatedAuditID(ctx, field) - case "changeType": - return ec.fieldContext_TranslatedAuditField_changeType(ctx, field) - case "dataType": - return ec.fieldContext_TranslatedAuditField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslatedAuditField_formType(ctx, field) - case "fieldName": - return ec.fieldContext_TranslatedAuditField_fieldName(ctx, field) - case "fieldNameTranslated": - return ec.fieldContext_TranslatedAuditField_fieldNameTranslated(ctx, field) - case "fieldOrder": - return ec.fieldContext_TranslatedAuditField_fieldOrder(ctx, field) - case "referenceLabel": - return ec.fieldContext_TranslatedAuditField_referenceLabel(ctx, field) - case "questionType": - return ec.fieldContext_TranslatedAuditField_questionType(ctx, field) - case "notApplicableQuestions": - return ec.fieldContext_TranslatedAuditField_notApplicableQuestions(ctx, field) - case "old": - return ec.fieldContext_TranslatedAuditField_old(ctx, field) - case "oldTranslated": - return ec.fieldContext_TranslatedAuditField_oldTranslated(ctx, field) - case "new": - return ec.fieldContext_TranslatedAuditField_new(ctx, field) - case "newTranslated": - return ec.fieldContext_TranslatedAuditField_newTranslated(ctx, field) - case "createdBy": - return ec.fieldContext_TranslatedAuditField_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_TranslatedAuditField_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_TranslatedAuditField_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_TranslatedAuditField_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_TranslatedAuditField_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_TranslatedAuditField_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslatedAuditField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAudit_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAudit_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAudit_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAudit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_id(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_translatedAuditID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_translatedAuditID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TranslatedAuditID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_translatedAuditID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_changeType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_changeType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ChangeType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.AuditFieldChangeType) - fc.Result = res - return ec.marshalNAuditFieldChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditFieldChangeType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_changeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AuditFieldChangeType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_dataType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationDataType) - fc.Result = res - return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationDataType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_formType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FormType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFormType) - fc.Result = res - return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationFormType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_fieldName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_fieldName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FieldName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_fieldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_fieldNameTranslated(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_fieldNameTranslated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FieldNameTranslated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_fieldNameTranslated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_fieldOrder(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_fieldOrder(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FieldOrder, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(float64) - fc.Result = res - return ec.marshalNFloat2float64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_fieldOrder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_referenceLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_referenceLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReferenceLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_referenceLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_questionType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_questionType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QuestionType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TranslationQuestionType) - fc.Result = res - return ec.marshalOTranslationQuestionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationQuestionType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_questionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationQuestionType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_notApplicableQuestions(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_notApplicableQuestions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TranslatedAuditField().NotApplicableQuestions(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_notApplicableQuestions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_old(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_old(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Old, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(interface{}) - fc.Result = res - return ec.marshalOAny2interface(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_old(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Any does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_oldTranslated(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_oldTranslated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OldTranslated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(interface{}) - fc.Result = res - return ec.marshalOAny2interface(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_oldTranslated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Any does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_new(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_new(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.New, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(interface{}) - fc.Result = res - return ec.marshalOAny2interface(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_new(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Any does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_newTranslated(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_newTranslated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NewTranslated, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(interface{}) - fc.Result = res - return ec.marshalOAny2interface(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_newTranslated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Any does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditField_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditField_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditField_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaBaseStruct_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaBaseStruct) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaBaseStruct_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaBaseStruct_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaBaseStruct", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaBaseStruct_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaBaseStruct) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaBaseStruct_tableName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TableName) - fc.Result = res - return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaBaseStruct_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaBaseStruct", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_tableName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TableName) - fc.Result = res - return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_discussionID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DiscussionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_discussionContent(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_discussionContent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DiscussionContent, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_discussionContent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_numberOfReplies(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_numberOfReplies(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberOfReplies, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_numberOfReplies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDiscussionReply", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_tableName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TableName) - fc.Result = res - return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_solutionName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_solutionOtherHeader(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionOtherHeader(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionOtherHeader, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionOtherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_solutionIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionIsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionIsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_needName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_needName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_needName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_needIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_needIsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedIsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_needIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentOtherType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentOtherType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentURL(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentURL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentURL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentVisibility(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentVisibility(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentVisibility, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentVisibility(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentRestricted(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentRestricted(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentRestricted, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentRestricted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaDocumentSolutionLink", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaGeneric_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaGeneric) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaGeneric_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaGeneric_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaGeneric", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaGeneric_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaGeneric) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaGeneric_tableName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TableName) - fc.Result = res - return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaGeneric_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaGeneric", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaGeneric_relation(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaGeneric) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaGeneric_relation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Relation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaGeneric_relation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaGeneric", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaGeneric_relationContent(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaGeneric) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaGeneric_relationContent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RelationContent, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaGeneric_relationContent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaGeneric", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalNeed_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalNeed_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalNeed_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalNeed_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalNeed_tableName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TableName) - fc.Result = res - return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalNeed_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalNeed_needName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalNeed_needName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalNeed_needName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalNeed_isOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalNeed) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalNeed_isOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalNeed_isOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalNeed", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_tableName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TableName) - fc.Result = res - return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionOtherHeader(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionOtherHeader(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionOtherHeader, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionOtherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionIsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionIsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_numberOfSubtasks(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_numberOfSubtasks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberOfSubtasks, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_numberOfSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_needName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_needName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_needName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_needIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_needIsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedIsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_needIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionStatus(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionStatus(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionStatus, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionMustStart(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionMustStart(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionMustStart, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionMustStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionMustFinish(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionMustFinish(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionMustFinish, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionMustFinish(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolution", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_tableName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TableName) - fc.Result = res - return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_solutionName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_solutionOtherHeader(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionOtherHeader(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionOtherHeader, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionOtherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_solutionIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionIsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SolutionIsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_numberOfSubtasks(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_numberOfSubtasks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumberOfSubtasks, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_numberOfSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_needName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_needName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_needName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_needIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_needIsOther(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NeedIsOther, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_needIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_subtaskName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_subtaskName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubtaskName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_subtaskName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslatedAuditMetaOperationalSolutionSubtask", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_gqlField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GqlField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_goField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GoField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_dbField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DBField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_label(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Label, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadOnlyLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_sublabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiSelectLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_isArray(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsArray, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_dataType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationDataType) - fc.Result = res - return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationDataType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_formType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FormType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFormType) - fc.Result = res - return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationFormType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_isNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_order(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Order, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(float64) - fc.Result = res - return ec.marshalNFloat2float64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_isOtherType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsOtherType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_otherParentField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OtherParentField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParentReferencesLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_exportLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationField_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationField_tableReference(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableReference, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TableName) - fc.Result = res - return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationField_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationField", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GqlField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GoField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DBField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Label, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadOnlyLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiSelectLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsArray, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationDataType) - fc.Result = res - return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationDataType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FormType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFormType) - fc.Result = res - return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationFormType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Order, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(float64) - fc.Result = res - return ec.marshalNFloat2float64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsOtherType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OtherParentField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParentReferencesLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableReference, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TableName) - fc.Result = res - return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_options(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Options, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalNMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptions_exportOptions(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportOptions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptions_exportOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptions", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GqlField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GoField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DBField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Label, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadOnlyLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiSelectLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsArray, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationDataType) - fc.Result = res - return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationDataType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FormType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFormType) - fc.Result = res - return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationFormType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Order, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(float64) - fc.Result = res - return ec.marshalNFloat2float64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsOtherType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OtherParentField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParentReferencesLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableReference, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TableName) - fc.Result = res - return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_options(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Options, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalNMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_exportOptions(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportOptions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_childRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TranslationFieldWithOptionsAndChildren().ChildRelation(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalNMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndChildren", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GqlField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GoField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DBField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Label, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadOnlyLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiSelectLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsArray, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationDataType) - fc.Result = res - return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationDataType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FormType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFormType) - fc.Result = res - return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationFormType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Order, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(float64) - fc.Result = res - return ec.marshalNFloat2float64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsOtherType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OtherParentField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParentReferencesLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableReference, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TableName) - fc.Result = res - return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_options(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Options, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalNMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_exportOptions(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportOptions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent_parentRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParentRelation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithOptionsAndParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GqlField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GoField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DBField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_label(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Label, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadOnlyLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiSelectLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsArray, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationDataType) - fc.Result = res - return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationDataType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FormType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFormType) - fc.Result = res - return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationFormType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_order(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Order, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(float64) - fc.Result = res - return ec.marshalNFloat2float64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsOtherType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OtherParentField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParentReferencesLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableReference, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TableName) - fc.Result = res - return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParent_parentRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParentRelation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationField) - fc.Result = res - return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParent_parentRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationField_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationField_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationField_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationField_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationField_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationField_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationField_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationField_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationField_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationField_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationField_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationField_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationField_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationField_tableReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_gqlField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GqlField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_goField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GoField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_dbField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DBField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_label(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Label, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_readonlyLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReadOnlyLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_sublabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_multiSelectLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MultiSelectLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_isArray(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsArray, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_dataType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationDataType) - fc.Result = res - return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationDataType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_formType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FormType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFormType) - fc.Result = res - return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TranslationFormType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_isNote(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsNote, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_order(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Order, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(float64) - fc.Result = res - return ec.marshalNFloat2float64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_isOtherType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsOtherType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_otherParentField(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OtherParentField, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParentReferencesLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_exportLabel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportLabel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_tableReference(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TableReference, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.TableName) - fc.Result = res - return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TableName does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_options(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_options(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Options, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalNMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_exportOptions(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_exportOptions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExportOptions, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_exportOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_parentRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_parentRelation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ParentRelation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(models.TranslationFieldWithOptionsAndChildren) - fc.Result = res - return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_parentRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "gqlField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) - case "goField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) - case "dbField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) - case "label": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) - case "readonlyLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) - case "sublabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) - case "multiSelectLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) - case "isArray": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) - case "dataType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) - case "formType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) - case "isNote": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) - case "order": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) - case "isOtherType": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) - case "otherParentField": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) - case "parentReferencesLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) - case "exportLabel": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) - case "tableReference": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) - case "options": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) - case "exportOptions": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) - case "childRelation": - return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren_childRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_childRelation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.TranslationFieldWithParentAndChildren().ChildRelation(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalNMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_childRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TranslationFieldWithParentAndChildren", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_id(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_username(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_username(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Username, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalNString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_username(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_isEUAID(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_isEUAID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsEUAID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_isEUAID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_commonName(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_commonName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CommonName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_commonName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_locale(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_locale(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Locale, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_locale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_email(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_email(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Email, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_givenName(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_givenName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GivenName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_givenName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_familyName(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_familyName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FamilyName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_familyName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_zoneInfo(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_zoneInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ZoneInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_zoneInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserAccount_hasLoggedIn(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasLoggedIn, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserAccount_hasLoggedIn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserAccount", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserInfo_firstName(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserInfo_firstName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FirstName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserInfo_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserInfo_lastName(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserInfo_lastName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserInfo_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserInfo_displayName(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserInfo_displayName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserInfo_displayName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserInfo_email(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserInfo_email(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Email, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserInfo_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserInfo_username(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserInfo_username(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Username, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserInfo_username(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_id(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_activityID(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_activityID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActivityID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_activityID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_userID(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_userID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_isRead(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_isRead(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsRead, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_isRead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_inAppSent(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_inAppSent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.InAppSent, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_inAppSent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_emailSent(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_emailSent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EmailSent, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_emailSent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_activity(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_activity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotification().Activity(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*models.Activity) - fc.Result = res - return ec.marshalNActivity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_activity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "actorID": - return ec.fieldContext_Activity_actorID(ctx, field) - case "actorUserAccount": - return ec.fieldContext_Activity_actorUserAccount(ctx, field) - case "entityID": - return ec.fieldContext_Activity_entityID(ctx, field) - case "activityType": - return ec.fieldContext_Activity_activityType(ctx, field) - case "metaData": - return ec.fieldContext_Activity_metaData(ctx, field) - case "createdBy": - return ec.fieldContext_Activity_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_Activity_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_Activity_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_Activity_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_Activity_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_Activity_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotification_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotification_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotification_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotification", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_id(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_userID(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_userID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_dailyDigestComplete(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_dailyDigestComplete(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotificationPreferences().DailyDigestComplete(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.UserNotificationPreferenceFlag) - fc.Result = res - return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_dailyDigestComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_addedAsCollaborator(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_addedAsCollaborator(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotificationPreferences().AddedAsCollaborator(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.UserNotificationPreferenceFlag) - fc.Result = res - return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_addedAsCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_taggedInDiscussion(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_taggedInDiscussion(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotificationPreferences().TaggedInDiscussion(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.UserNotificationPreferenceFlag) - fc.Result = res - return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_taggedInDiscussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_taggedInDiscussionReply(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_taggedInDiscussionReply(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotificationPreferences().TaggedInDiscussionReply(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.UserNotificationPreferenceFlag) - fc.Result = res - return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_taggedInDiscussionReply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_newDiscussionReply(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_newDiscussionReply(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotificationPreferences().NewDiscussionReply(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.UserNotificationPreferenceFlag) - fc.Result = res - return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_newDiscussionReply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_modelPlanShared(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_modelPlanShared(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotificationPreferences().ModelPlanShared(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.UserNotificationPreferenceFlag) - fc.Result = res - return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_modelPlanShared(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_newModelPlan(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_newModelPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotificationPreferences().NewModelPlan(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.UserNotificationPreferenceFlag) - fc.Result = res - return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_newModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_datesChanged(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_datesChanged(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotificationPreferences().DatesChanged(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.UserNotificationPreferenceFlag) - fc.Result = res - return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_datesChanged(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_datesChangedNotificationType(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_datesChangedNotificationType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DatesChangedNotificationType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.DatesChangedNotificationType) - fc.Result = res - return ec.marshalODatesChangedNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatesChangedNotificationType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_datesChangedNotificationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DatesChangedNotificationType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserNotificationPreferences().DataExchangeApproachMarkedComplete(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.UserNotificationPreferenceFlag) - fc.Result = res - return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DataExchangeApproachMarkedCompleteNotificationType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*models.DataExchangeApproachMarkedCompleteNotificationType) - fc.Result = res - return ec.marshalODataExchangeApproachMarkedCompleteNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachMarkedCompleteNotificationType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataExchangeApproachMarkedCompleteNotificationType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotificationPreferences_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotificationPreferences_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotificationPreferences_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotificationPreferences", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotifications_numUnreadNotifications(ctx context.Context, field graphql.CollectedField, obj *models.UserNotifications) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotifications_numUnreadNotifications(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NumUnreadNotifications(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotifications_numUnreadNotifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotifications", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotifications_notifications(ctx context.Context, field graphql.CollectedField, obj *models.UserNotifications) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotifications_notifications(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Notifications, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.UserNotification) - fc.Result = res - return ec.marshalNUserNotification2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotifications_notifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotifications", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserNotification_id(ctx, field) - case "activityID": - return ec.fieldContext_UserNotification_activityID(ctx, field) - case "userID": - return ec.fieldContext_UserNotification_userID(ctx, field) - case "isRead": - return ec.fieldContext_UserNotification_isRead(ctx, field) - case "inAppSent": - return ec.fieldContext_UserNotification_inAppSent(ctx, field) - case "emailSent": - return ec.fieldContext_UserNotification_emailSent(ctx, field) - case "activity": - return ec.fieldContext_UserNotification_activity(ctx, field) - case "createdBy": - return ec.fieldContext_UserNotification_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_UserNotification_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_UserNotification_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_UserNotification_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserNotification", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserNotifications_unreadNotifications(ctx context.Context, field graphql.CollectedField, obj *models.UserNotifications) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserNotifications_unreadNotifications(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UnreadNotifications(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*models.UserNotification) - fc.Result = res - return ec.marshalNUserNotification2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserNotifications_unreadNotifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserNotifications", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserNotification_id(ctx, field) - case "activityID": - return ec.fieldContext_UserNotification_activityID(ctx, field) - case "userID": - return ec.fieldContext_UserNotification_userID(ctx, field) - case "isRead": - return ec.fieldContext_UserNotification_isRead(ctx, field) - case "inAppSent": - return ec.fieldContext_UserNotification_inAppSent(ctx, field) - case "emailSent": - return ec.fieldContext_UserNotification_emailSent(ctx, field) - case "activity": - return ec.fieldContext_UserNotification_activity(ctx, field) - case "createdBy": - return ec.fieldContext_UserNotification_createdBy(ctx, field) - case "createdByUserAccount": - return ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) - case "createdDts": - return ec.fieldContext_UserNotification_createdDts(ctx, field) - case "modifiedBy": - return ec.fieldContext_UserNotification_modifiedBy(ctx, field) - case "modifiedByUserAccount": - return ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) - case "modifiedDts": - return ec.fieldContext_UserNotification_modifiedDts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserNotification", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_id(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_userId(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_userId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_userId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_userAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_userAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_viewCustomization(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_viewCustomization(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserViewCustomization().ViewCustomization(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.ViewCustomizationType) - fc.Result = res - return ec.marshalNViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_viewCustomization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ViewCustomizationType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_possibleOperationalSolutions(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_possibleOperationalSolutions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.UserViewCustomization().PossibleOperationalSolutions(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]models.OperationalSolutionKey) - fc.Result = res - return ec.marshalNOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_possibleOperationalSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OperationalSolutionKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(uuid.UUID) - fc.Result = res - return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_createdByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_createdDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_modifiedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*uuid.UUID) - fc.Result = res - return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UUID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_modifiedByUserAccount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedByUserAccount(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*authentication.UserAccount) - fc.Result = res - return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserAccount_id(ctx, field) - case "username": - return ec.fieldContext_UserAccount_username(ctx, field) - case "isEUAID": - return ec.fieldContext_UserAccount_isEUAID(ctx, field) - case "commonName": - return ec.fieldContext_UserAccount_commonName(ctx, field) - case "locale": - return ec.fieldContext_UserAccount_locale(ctx, field) - case "email": - return ec.fieldContext_UserAccount_email(ctx, field) - case "givenName": - return ec.fieldContext_UserAccount_givenName(ctx, field) - case "familyName": - return ec.fieldContext_UserAccount_familyName(ctx, field) - case "zoneInfo": - return ec.fieldContext_UserAccount_zoneInfo(ctx, field) - case "hasLoggedIn": - return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserViewCustomization_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserViewCustomization_modifiedDts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedDts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserViewCustomization_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserViewCustomization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_locations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Locations, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type __DirectiveLocation does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_args(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Args, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsRepeatable, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_args(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Args, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DefaultValue, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_types(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Types(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_queryType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QueryType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_mutationType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MutationType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubscriptionType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_directives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Directives(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.Directive) - fc.Result = res - return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___Directive_name(ctx, field) - case "description": - return ec.fieldContext___Directive_description(ctx, field) - case "locations": - return ec.fieldContext___Directive_locations(ctx, field) - case "args": - return ec.fieldContext___Directive_args(ctx, field) - case "isRepeatable": - return ec.fieldContext___Directive_isRepeatable(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_kind(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Kind(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalN__TypeKind2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type __TypeKind does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_fields(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Field) - fc.Result = res - return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___Field_name(ctx, field) - case "description": - return ec.fieldContext___Field_description(ctx, field) - case "args": - return ec.fieldContext___Field_args(ctx, field) - case "type": - return ec.fieldContext___Field_type(ctx, field) - case "isDeprecated": - return ec.fieldContext___Field_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___Field_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_interfaces(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Interfaces(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PossibleTypes(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_enumValues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.EnumValue) - fc.Result = res - return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___EnumValue_name(ctx, field) - case "description": - return ec.fieldContext___EnumValue_description(ctx, field) - case "isDeprecated": - return ec.fieldContext___EnumValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___EnumValue_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_inputFields(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.InputFields(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - fc.Result = res - return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_ofType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OfType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SpecifiedByURL(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -// endregion **************************** field.gotpl ***************************** - -// region **************************** input.gotpl ***************************** - -func (ec *executionContext) unmarshalInputCreateOperationalSolutionSubtaskInput(ctx context.Context, obj interface{}) (model.CreateOperationalSolutionSubtaskInput, error) { - var it model.CreateOperationalSolutionSubtaskInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"name", "status"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "name": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "status": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalNOperationalSolutionSubtaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputDiscussionReplyCreateInput(ctx context.Context, obj interface{}) (model.DiscussionReplyCreateInput, error) { - var it model.DiscussionReplyCreateInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"discussionID", "content", "userRole", "userRoleDescription"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "discussionID": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discussionID")) - data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) - if err != nil { - return it, err - } - it.DiscussionID = data - case "content": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content")) - data, err := ec.unmarshalNTaggedHTML2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedHTML(ctx, v) - if err != nil { - return it, err - } - it.Content = data - case "userRole": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userRole")) - data, err := ec.unmarshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, v) - if err != nil { - return it, err - } - it.UserRole = data - case "userRoleDescription": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userRoleDescription")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UserRoleDescription = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPlanCRCreateInput(ctx context.Context, obj interface{}) (model.PlanCRCreateInput, error) { - var it model.PlanCRCreateInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"modelPlanID", "idNumber", "dateInitiated", "dateImplemented", "title", "note"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "modelPlanID": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) - if err != nil { - return it, err - } - it.ModelPlanID = data - case "idNumber": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNumber")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.IDNumber = data - case "dateInitiated": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateInitiated")) - data, err := ec.unmarshalNTime2timeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DateInitiated = data - case "dateImplemented": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateImplemented")) - data, err := ec.unmarshalNTime2timeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DateImplemented = data - case "title": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Title = data - case "note": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Note = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPlanCollaboratorCreateInput(ctx context.Context, obj interface{}) (model.PlanCollaboratorCreateInput, error) { - var it model.PlanCollaboratorCreateInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"modelPlanID", "userName", "teamRoles"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "modelPlanID": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) - if err != nil { - return it, err - } - it.ModelPlanID = data - case "userName": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.UserName = data - case "teamRoles": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("teamRoles")) - data, err := ec.unmarshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx, v) - if err != nil { - return it, err - } - it.TeamRoles = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPlanDiscussionCreateInput(ctx context.Context, obj interface{}) (model.PlanDiscussionCreateInput, error) { - var it model.PlanDiscussionCreateInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"modelPlanID", "content", "userRole", "userRoleDescription"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "modelPlanID": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) - if err != nil { - return it, err - } - it.ModelPlanID = data - case "content": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content")) - data, err := ec.unmarshalNTaggedHTML2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedHTML(ctx, v) - if err != nil { - return it, err - } - it.Content = data - case "userRole": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userRole")) - data, err := ec.unmarshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, v) - if err != nil { - return it, err - } - it.UserRole = data - case "userRoleDescription": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userRoleDescription")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UserRoleDescription = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPlanDocumentInput(ctx context.Context, obj interface{}) (model.PlanDocumentInput, error) { - var it model.PlanDocumentInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"modelPlanID", "fileData", "documentType", "restricted", "otherTypeDescription", "optionalNotes"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "modelPlanID": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) - if err != nil { - return it, err - } - it.ModelPlanID = data - case "fileData": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileData")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.FileData = data - case "documentType": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentType")) - data, err := ec.unmarshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx, v) - if err != nil { - return it, err - } - it.DocumentType = data - case "restricted": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("restricted")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.Restricted = data - case "otherTypeDescription": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("otherTypeDescription")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OtherTypeDescription = data - case "optionalNotes": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("optionalNotes")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OptionalNotes = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPlanDocumentLinkInput(ctx context.Context, obj interface{}) (model.PlanDocumentLinkInput, error) { - var it model.PlanDocumentLinkInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"modelPlanID", "url", "name", "documentType", "restricted", "otherTypeDescription", "optionalNotes"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "modelPlanID": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) - if err != nil { - return it, err - } - it.ModelPlanID = data - case "url": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.URL = data - case "name": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "documentType": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentType")) - data, err := ec.unmarshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx, v) - if err != nil { - return it, err - } - it.DocumentType = data - case "restricted": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("restricted")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.Restricted = data - case "otherTypeDescription": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("otherTypeDescription")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OtherTypeDescription = data - case "optionalNotes": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("optionalNotes")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OptionalNotes = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPlanTDLCreateInput(ctx context.Context, obj interface{}) (model.PlanTDLCreateInput, error) { - var it model.PlanTDLCreateInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"modelPlanID", "idNumber", "dateInitiated", "title", "note"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "modelPlanID": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) - data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) - if err != nil { - return it, err - } - it.ModelPlanID = data - case "idNumber": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNumber")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.IDNumber = data - case "dateInitiated": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateInitiated")) - data, err := ec.unmarshalNTime2timeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DateInitiated = data - case "title": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Title = data - case "note": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Note = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputReportAProblemInput(ctx context.Context, obj interface{}) (model.ReportAProblemInput, error) { - var it model.ReportAProblemInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"isAnonymousSubmission", "allowContact", "section", "sectionOther", "whatDoing", "whatWentWrong", "severity", "severityOther"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "isAnonymousSubmission": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isAnonymousSubmission")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.IsAnonymousSubmission = data - case "allowContact": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowContact")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.AllowContact = data - case "section": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("section")) - data, err := ec.unmarshalOReportAProblemSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSection(ctx, v) - if err != nil { - return it, err - } - it.Section = data - case "sectionOther": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sectionOther")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SectionOther = data - case "whatDoing": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("whatDoing")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.WhatDoing = data - case "whatWentWrong": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("whatWentWrong")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.WhatWentWrong = data - case "severity": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severity")) - data, err := ec.unmarshalOReportAProblemSeverity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSeverity(ctx, v) - if err != nil { - return it, err - } - it.Severity = data - case "severityOther": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severityOther")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SeverityOther = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSendFeedbackEmailInput(ctx context.Context, obj interface{}) (model.SendFeedbackEmailInput, error) { - var it model.SendFeedbackEmailInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"isAnonymousSubmission", "allowContact", "cmsRole", "mintUsedFor", "mintUsedForOther", "systemEasyToUse", "systemEasyToUseOther", "howSatisfied", "howCanWeImprove"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "isAnonymousSubmission": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isAnonymousSubmission")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.IsAnonymousSubmission = data - case "allowContact": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowContact")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.AllowContact = data - case "cmsRole": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cmsRole")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CmsRole = data - case "mintUsedFor": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mintUsedFor")) - data, err := ec.unmarshalOMintUses2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUsesᚄ(ctx, v) - if err != nil { - return it, err - } - it.MintUsedFor = data - case "mintUsedForOther": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mintUsedForOther")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.MintUsedForOther = data - case "systemEasyToUse": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("systemEasyToUse")) - data, err := ec.unmarshalOEaseOfUse2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEaseOfUse(ctx, v) - if err != nil { - return it, err - } - it.SystemEasyToUse = data - case "systemEasyToUseOther": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("systemEasyToUseOther")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SystemEasyToUseOther = data - case "howSatisfied": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("howSatisfied")) - data, err := ec.unmarshalOSatisfactionLevel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSatisfactionLevel(ctx, v) - if err != nil { - return it, err - } - it.HowSatisfied = data - case "howCanWeImprove": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("howCanWeImprove")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.HowCanWeImprove = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateOperationalSolutionSubtaskInput(ctx context.Context, obj interface{}) (model.UpdateOperationalSolutionSubtaskInput, error) { - var it model.UpdateOperationalSolutionSubtaskInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "changes"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "changes": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) - data, err := ec.unmarshalNUpdateOperationalSolutionSubtaskChangesInput2map(ctx, v) - if err != nil { - return it, err - } - it.Changes = data - } - } - - return it, nil -} - -// endregion **************************** input.gotpl ***************************** - -// region ************************** interface.gotpl *************************** - -func (ec *executionContext) _ActivityMetaData(ctx context.Context, sel ast.SelectionSet, obj models.ActivityMetaData) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case *models.TaggedInPlanDiscussionActivityMeta: - if obj == nil { - return graphql.Null - } - return ec._TaggedInPlanDiscussionActivityMeta(ctx, sel, obj) - case *models.TaggedInDiscussionReplyActivityMeta: - if obj == nil { - return graphql.Null - } - return ec._TaggedInDiscussionReplyActivityMeta(ctx, sel, obj) - case *models.DailyDigestCompleteActivityMeta: - if obj == nil { - return graphql.Null - } - return ec._DailyDigestCompleteActivityMeta(ctx, sel, obj) - case *models.NewDiscussionRepliedActivityMeta: - if obj == nil { - return graphql.Null - } - return ec._NewDiscussionRepliedActivityMeta(ctx, sel, obj) - case *models.AddedAsCollaboratorMeta: - if obj == nil { - return graphql.Null - } - return ec._AddedAsCollaboratorMeta(ctx, sel, obj) - case *models.ModelPlanSharedActivityMeta: - if obj == nil { - return graphql.Null - } - return ec._ModelPlanSharedActivityMeta(ctx, sel, obj) - case *models.NewModelPlanActivityMeta: - if obj == nil { - return graphql.Null - } - return ec._NewModelPlanActivityMeta(ctx, sel, obj) - case *models.DatesChangedActivityMeta: - if obj == nil { - return graphql.Null - } - return ec._DatesChangedActivityMeta(ctx, sel, obj) - case *models.PlanDataExchangeApproachMarkedCompleteActivityMeta: - if obj == nil { - return graphql.Null - } - return ec._PlanDataExchangeApproachMarkedCompleteActivityMeta(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) - } -} - -func (ec *executionContext) _EChimpCRAndTDLS(ctx context.Context, sel ast.SelectionSet, obj models.EChimpCRAndTDLS) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case *models.EChimpCR: - if obj == nil { - return graphql.Null - } - return ec._EChimpCR(ctx, sel, obj) - case *models.EChimpTDL: - if obj == nil { - return graphql.Null - } - return ec._EChimpTDL(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) - } -} - -func (ec *executionContext) _LinkedExistingModel(ctx context.Context, sel ast.SelectionSet, obj models.LinkedExistingModel) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case models.ExistingModel: - return ec._ExistingModel(ctx, sel, &obj) - case *models.ExistingModel: - if obj == nil { - return graphql.Null - } - return ec._ExistingModel(ctx, sel, obj) - case models.ModelPlan: - return ec._ModelPlan(ctx, sel, &obj) - case *models.ModelPlan: - if obj == nil { - return graphql.Null - } - return ec._ModelPlan(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) - } -} - -func (ec *executionContext) _TaggedEntity(ctx context.Context, sel ast.SelectionSet, obj models.TaggedEntity) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case authentication.UserAccount: - return ec._UserAccount(ctx, sel, &obj) - case *authentication.UserAccount: - if obj == nil { - return graphql.Null - } - return ec._UserAccount(ctx, sel, obj) - case models.PossibleOperationalSolution: - return ec._PossibleOperationalSolution(ctx, sel, &obj) - case *models.PossibleOperationalSolution: - if obj == nil { - return graphql.Null - } - return ec._PossibleOperationalSolution(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) - } -} - -func (ec *executionContext) _TranslatedAuditMetaData(ctx context.Context, sel ast.SelectionSet, obj models.TranslatedAuditMetaData) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case *models.TranslatedAuditMetaBaseStruct: - if obj == nil { - return graphql.Null - } - return ec._TranslatedAuditMetaBaseStruct(ctx, sel, obj) - case *models.TranslatedAuditMetaGeneric: - if obj == nil { - return graphql.Null - } - return ec._TranslatedAuditMetaGeneric(ctx, sel, obj) - case *models.TranslatedAuditMetaDiscussionReply: - if obj == nil { - return graphql.Null - } - return ec._TranslatedAuditMetaDiscussionReply(ctx, sel, obj) - case *models.TranslatedAuditMetaOperationalNeed: - if obj == nil { - return graphql.Null - } - return ec._TranslatedAuditMetaOperationalNeed(ctx, sel, obj) - case *models.TranslatedAuditMetaOperationalSolution: - if obj == nil { - return graphql.Null - } - return ec._TranslatedAuditMetaOperationalSolution(ctx, sel, obj) - case *models.TranslatedAuditMetaOperationalSolutionSubtask: - if obj == nil { - return graphql.Null - } - return ec._TranslatedAuditMetaOperationalSolutionSubtask(ctx, sel, obj) - case *models.TranslatedAuditMetaDocumentSolutionLink: - if obj == nil { - return graphql.Null - } - return ec._TranslatedAuditMetaDocumentSolutionLink(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) - } -} - -// endregion ************************** interface.gotpl *************************** - -// region **************************** object.gotpl **************************** - -var activityImplementors = []string{"Activity"} - -func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, obj *models.Activity) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, activityImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Activity") - case "id": - out.Values[i] = ec._Activity_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "actorID": - out.Values[i] = ec._Activity_actorID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "actorUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_actorUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entityID": - out.Values[i] = ec._Activity_entityID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "activityType": - out.Values[i] = ec._Activity_activityType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "metaData": - out.Values[i] = ec._Activity_metaData(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._Activity_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._Activity_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._Activity_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._Activity_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var addedAsCollaboratorMetaImplementors = []string{"AddedAsCollaboratorMeta", "ActivityMetaData"} - -func (ec *executionContext) _AddedAsCollaboratorMeta(ctx context.Context, sel ast.SelectionSet, obj *models.AddedAsCollaboratorMeta) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, addedAsCollaboratorMetaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AddedAsCollaboratorMeta") - case "version": - out.Values[i] = ec._AddedAsCollaboratorMeta_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._AddedAsCollaboratorMeta_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._AddedAsCollaboratorMeta_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._AddedAsCollaboratorMeta_modelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "collaboratorID": - out.Values[i] = ec._AddedAsCollaboratorMeta_collaboratorID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "collaborator": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._AddedAsCollaboratorMeta_collaborator(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var analyzedAuditImplementors = []string{"AnalyzedAudit"} - -func (ec *executionContext) _AnalyzedAudit(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedAudit) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, analyzedAuditImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AnalyzedAudit") - case "id": - out.Values[i] = ec._AnalyzedAudit_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._AnalyzedAudit_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelName": - out.Values[i] = ec._AnalyzedAudit_modelName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "date": - out.Values[i] = ec._AnalyzedAudit_date(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "changes": - out.Values[i] = ec._AnalyzedAudit_changes(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._AnalyzedAudit_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._AnalyzedAudit_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._AnalyzedAudit_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._AnalyzedAudit_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._AnalyzedAudit_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._AnalyzedAudit_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var analyzedAuditChangeImplementors = []string{"AnalyzedAuditChange"} - -func (ec *executionContext) _AnalyzedAuditChange(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedAuditChange) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, analyzedAuditChangeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AnalyzedAuditChange") - case "modelPlan": - out.Values[i] = ec._AnalyzedAuditChange_modelPlan(ctx, field, obj) - case "documents": - out.Values[i] = ec._AnalyzedAuditChange_documents(ctx, field, obj) - case "crTdls": - out.Values[i] = ec._AnalyzedAuditChange_crTdls(ctx, field, obj) - case "planSections": - out.Values[i] = ec._AnalyzedAuditChange_planSections(ctx, field, obj) - case "modelLeads": - out.Values[i] = ec._AnalyzedAuditChange_modelLeads(ctx, field, obj) - case "planDiscussions": - out.Values[i] = ec._AnalyzedAuditChange_planDiscussions(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var analyzedCrTdlsImplementors = []string{"AnalyzedCrTdls"} - -func (ec *executionContext) _AnalyzedCrTdls(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedCrTdls) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, analyzedCrTdlsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AnalyzedCrTdls") - case "activity": - out.Values[i] = ec._AnalyzedCrTdls_activity(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var analyzedDocumentsImplementors = []string{"AnalyzedDocuments"} - -func (ec *executionContext) _AnalyzedDocuments(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedDocuments) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, analyzedDocumentsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AnalyzedDocuments") - case "count": - out.Values[i] = ec._AnalyzedDocuments_count(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var analyzedModelLeadInfoImplementors = []string{"AnalyzedModelLeadInfo"} - -func (ec *executionContext) _AnalyzedModelLeadInfo(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedModelLeadInfo) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, analyzedModelLeadInfoImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AnalyzedModelLeadInfo") - case "id": - out.Values[i] = ec._AnalyzedModelLeadInfo_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._AnalyzedModelLeadInfo_userAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "commonName": - out.Values[i] = ec._AnalyzedModelLeadInfo_commonName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var analyzedModelLeadsImplementors = []string{"AnalyzedModelLeads"} - -func (ec *executionContext) _AnalyzedModelLeads(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedModelLeads) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, analyzedModelLeadsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AnalyzedModelLeads") - case "added": - out.Values[i] = ec._AnalyzedModelLeads_added(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var analyzedModelPlanImplementors = []string{"AnalyzedModelPlan"} - -func (ec *executionContext) _AnalyzedModelPlan(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedModelPlan) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, analyzedModelPlanImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AnalyzedModelPlan") - case "oldName": - out.Values[i] = ec._AnalyzedModelPlan_oldName(ctx, field, obj) - case "statusChanges": - out.Values[i] = ec._AnalyzedModelPlan_statusChanges(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var analyzedPlanDiscussionsImplementors = []string{"AnalyzedPlanDiscussions"} - -func (ec *executionContext) _AnalyzedPlanDiscussions(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedPlanDiscussions) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, analyzedPlanDiscussionsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AnalyzedPlanDiscussions") - case "activity": - out.Values[i] = ec._AnalyzedPlanDiscussions_activity(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var analyzedPlanSectionsImplementors = []string{"AnalyzedPlanSections"} - -func (ec *executionContext) _AnalyzedPlanSections(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedPlanSections) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, analyzedPlanSectionsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AnalyzedPlanSections") - case "updated": - out.Values[i] = ec._AnalyzedPlanSections_updated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReview": - out.Values[i] = ec._AnalyzedPlanSections_readyForReview(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearance": - out.Values[i] = ec._AnalyzedPlanSections_readyForClearance(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataExchangeApproachMarkedComplete": - out.Values[i] = ec._AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var auditChangeImplementors = []string{"AuditChange"} - -func (ec *executionContext) _AuditChange(ctx context.Context, sel ast.SelectionSet, obj *models.AuditChange) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditChangeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AuditChange") - case "id": - out.Values[i] = ec._AuditChange_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "primaryKey": - out.Values[i] = ec._AuditChange_primaryKey(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "foreignKey": - out.Values[i] = ec._AuditChange_foreignKey(ctx, field, obj) - case "tableName": - out.Values[i] = ec._AuditChange_tableName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "action": - out.Values[i] = ec._AuditChange_action(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fields": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._AuditChange_fields(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedBy": - out.Values[i] = ec._AuditChange_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._AuditChange_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._AuditChange_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var currentUserImplementors = []string{"CurrentUser"} - -func (ec *executionContext) _CurrentUser(ctx context.Context, sel ast.SelectionSet, obj *models.CurrentUser) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, currentUserImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CurrentUser") - case "launchDarkly": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._CurrentUser_launchDarkly(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "account": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._CurrentUser_account(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "notifications": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._CurrentUser_notifications(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "notificationPreferences": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._CurrentUser_notificationPreferences(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var dailyDigestCompleteActivityMetaImplementors = []string{"DailyDigestCompleteActivityMeta", "ActivityMetaData"} - -func (ec *executionContext) _DailyDigestCompleteActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.DailyDigestCompleteActivityMeta) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, dailyDigestCompleteActivityMetaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DailyDigestCompleteActivityMeta") - case "version": - out.Values[i] = ec._DailyDigestCompleteActivityMeta_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._DailyDigestCompleteActivityMeta_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanIDs": - out.Values[i] = ec._DailyDigestCompleteActivityMeta_modelPlanIDs(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "analyzedAudits": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DailyDigestCompleteActivityMeta_analyzedAudits(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "userID": - out.Values[i] = ec._DailyDigestCompleteActivityMeta_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "date": - out.Values[i] = ec._DailyDigestCompleteActivityMeta_date(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var dateChangeImplementors = []string{"DateChange"} - -func (ec *executionContext) _DateChange(ctx context.Context, sel ast.SelectionSet, obj *models.DateChange) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, dateChangeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DateChange") - case "isChanged": - out.Values[i] = ec._DateChange_isChanged(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "field": - out.Values[i] = ec._DateChange_field(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isRange": - out.Values[i] = ec._DateChange_isRange(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "oldDate": - out.Values[i] = ec._DateChange_oldDate(ctx, field, obj) - case "newDate": - out.Values[i] = ec._DateChange_newDate(ctx, field, obj) - case "oldRangeStart": - out.Values[i] = ec._DateChange_oldRangeStart(ctx, field, obj) - case "oldRangeEnd": - out.Values[i] = ec._DateChange_oldRangeEnd(ctx, field, obj) - case "newRangeStart": - out.Values[i] = ec._DateChange_newRangeStart(ctx, field, obj) - case "newRangeEnd": - out.Values[i] = ec._DateChange_newRangeEnd(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var datesChangedActivityMetaImplementors = []string{"DatesChangedActivityMeta", "ActivityMetaData"} - -func (ec *executionContext) _DatesChangedActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.DatesChangedActivityMeta) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, datesChangedActivityMetaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DatesChangedActivityMeta") - case "version": - out.Values[i] = ec._DatesChangedActivityMeta_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._DatesChangedActivityMeta_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._DatesChangedActivityMeta_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DatesChangedActivityMeta_modelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dateChanges": - out.Values[i] = ec._DatesChangedActivityMeta_dateChanges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var discussionReplyImplementors = []string{"DiscussionReply"} - -func (ec *executionContext) _DiscussionReply(ctx context.Context, sel ast.SelectionSet, obj *models.DiscussionReply) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, discussionReplyImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DiscussionReply") - case "id": - out.Values[i] = ec._DiscussionReply_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "discussionID": - out.Values[i] = ec._DiscussionReply_discussionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "content": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DiscussionReply_content(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "userRole": - out.Values[i] = ec._DiscussionReply_userRole(ctx, field, obj) - case "userRoleDescription": - out.Values[i] = ec._DiscussionReply_userRoleDescription(ctx, field, obj) - case "isAssessment": - out.Values[i] = ec._DiscussionReply_isAssessment(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._DiscussionReply_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DiscussionReply_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._DiscussionReply_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._DiscussionReply_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DiscussionReply_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._DiscussionReply_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var discussionReplyTranslationImplementors = []string{"DiscussionReplyTranslation"} - -func (ec *executionContext) _DiscussionReplyTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.DiscussionReplyTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, discussionReplyTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DiscussionReplyTranslation") - case "userRole": - out.Values[i] = ec._DiscussionReplyTranslation_userRole(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "userRoleDescription": - out.Values[i] = ec._DiscussionReplyTranslation_userRoleDescription(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "content": - out.Values[i] = ec._DiscussionReplyTranslation_content(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isAssessment": - out.Values[i] = ec._DiscussionReplyTranslation_isAssessment(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var discussionRoleSelectionImplementors = []string{"DiscussionRoleSelection"} - -func (ec *executionContext) _DiscussionRoleSelection(ctx context.Context, sel ast.SelectionSet, obj *models.DiscussionRoleSelection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, discussionRoleSelectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DiscussionRoleSelection") - case "userRole": - out.Values[i] = ec._DiscussionRoleSelection_userRole(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "userRoleDescription": - out.Values[i] = ec._DiscussionRoleSelection_userRoleDescription(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var eChimpCRImplementors = []string{"EChimpCR", "EChimpCRAndTDLS"} - -func (ec *executionContext) _EChimpCR(ctx context.Context, sel ast.SelectionSet, obj *models.EChimpCR) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eChimpCRImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EChimpCR") - case "id": - out.Values[i] = ec._EChimpCR_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "versionNum": - out.Values[i] = ec._EChimpCR_versionNum(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "initiator": - out.Values[i] = ec._EChimpCR_initiator(ctx, field, obj) - case "firstName": - out.Values[i] = ec._EChimpCR_firstName(ctx, field, obj) - case "lastName": - out.Values[i] = ec._EChimpCR_lastName(ctx, field, obj) - case "title": - out.Values[i] = ec._EChimpCR_title(ctx, field, obj) - case "sensitiveFlag": - out.Values[i] = ec._EChimpCR_sensitiveFlag(ctx, field, obj) - case "implementationDate": - out.Values[i] = ec._EChimpCR_implementationDate(ctx, field, obj) - case "crSummary": - out.Values[i] = ec._EChimpCR_crSummary(ctx, field, obj) - case "crStatus": - out.Values[i] = ec._EChimpCR_crStatus(ctx, field, obj) - case "emergencyCrFlag": - out.Values[i] = ec._EChimpCR_emergencyCrFlag(ctx, field, obj) - case "relatedCrNumbers": - out.Values[i] = ec._EChimpCR_relatedCrNumbers(ctx, field, obj) - case "relatedCrTdlNumbers": - out.Values[i] = ec._EChimpCR_relatedCrTdlNumbers(ctx, field, obj) - case "associatedModelUids": - out.Values[i] = ec._EChimpCR_associatedModelUids(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var eChimpTDLImplementors = []string{"EChimpTDL", "EChimpCRAndTDLS"} - -func (ec *executionContext) _EChimpTDL(ctx context.Context, sel ast.SelectionSet, obj *models.EChimpTDL) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eChimpTDLImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EChimpTDL") - case "id": - out.Values[i] = ec._EChimpTDL_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "versionNum": - out.Values[i] = ec._EChimpTDL_versionNum(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "initiator": - out.Values[i] = ec._EChimpTDL_initiator(ctx, field, obj) - case "firstName": - out.Values[i] = ec._EChimpTDL_firstName(ctx, field, obj) - case "lastName": - out.Values[i] = ec._EChimpTDL_lastName(ctx, field, obj) - case "title": - out.Values[i] = ec._EChimpTDL_title(ctx, field, obj) - case "issuedDate": - out.Values[i] = ec._EChimpTDL_issuedDate(ctx, field, obj) - case "status": - out.Values[i] = ec._EChimpTDL_status(ctx, field, obj) - case "associatedModelUids": - out.Values[i] = ec._EChimpTDL_associatedModelUids(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var enumTranslationImplementors = []string{"EnumTranslation"} - -func (ec *executionContext) _EnumTranslation(ctx context.Context, sel ast.SelectionSet, obj *models.EnumTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, enumTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EnumTranslation") - case "generalName": - out.Values[i] = ec._EnumTranslation_generalName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "groupedName": - out.Values[i] = ec._EnumTranslation_groupedName(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var existingModelImplementors = []string{"ExistingModel", "LinkedExistingModel"} - -func (ec *executionContext) _ExistingModel(ctx context.Context, sel ast.SelectionSet, obj *models.ExistingModel) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, existingModelImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ExistingModel") - case "id": - out.Values[i] = ec._ExistingModel_id(ctx, field, obj) - case "modelName": - out.Values[i] = ec._ExistingModel_modelName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "stage": - out.Values[i] = ec._ExistingModel_stage(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "numberOfParticipants": - out.Values[i] = ec._ExistingModel_numberOfParticipants(ctx, field, obj) - case "category": - out.Values[i] = ec._ExistingModel_category(ctx, field, obj) - case "authority": - out.Values[i] = ec._ExistingModel_authority(ctx, field, obj) - case "description": - out.Values[i] = ec._ExistingModel_description(ctx, field, obj) - case "numberOfBeneficiariesImpacted": - out.Values[i] = ec._ExistingModel_numberOfBeneficiariesImpacted(ctx, field, obj) - case "numberOfPhysiciansImpacted": - out.Values[i] = ec._ExistingModel_numberOfPhysiciansImpacted(ctx, field, obj) - case "dateBegan": - out.Values[i] = ec._ExistingModel_dateBegan(ctx, field, obj) - case "dateEnded": - out.Values[i] = ec._ExistingModel_dateEnded(ctx, field, obj) - case "states": - out.Values[i] = ec._ExistingModel_states(ctx, field, obj) - case "keywords": - out.Values[i] = ec._ExistingModel_keywords(ctx, field, obj) - case "url": - out.Values[i] = ec._ExistingModel_url(ctx, field, obj) - case "displayModelSummary": - out.Values[i] = ec._ExistingModel_displayModelSummary(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._ExistingModel_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ExistingModel_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._ExistingModel_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._ExistingModel_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ExistingModel_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._ExistingModel_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var existingModelLinkImplementors = []string{"ExistingModelLink"} - -func (ec *executionContext) _ExistingModelLink(ctx context.Context, sel ast.SelectionSet, obj *models.ExistingModelLink) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, existingModelLinkImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ExistingModelLink") - case "id": - out.Values[i] = ec._ExistingModelLink_id(ctx, field, obj) - case "modelPlanID": - out.Values[i] = ec._ExistingModelLink_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "existingModelID": - out.Values[i] = ec._ExistingModelLink_existingModelID(ctx, field, obj) - case "currentModelPlanID": - out.Values[i] = ec._ExistingModelLink_currentModelPlanID(ctx, field, obj) - case "fieldName": - out.Values[i] = ec._ExistingModelLink_fieldName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "model": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ExistingModelLink_model(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._ExistingModelLink_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ExistingModelLink_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._ExistingModelLink_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._ExistingModelLink_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ExistingModelLink_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._ExistingModelLink_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var existingModelLinkTranslationImplementors = []string{"ExistingModelLinkTranslation"} - -func (ec *executionContext) _ExistingModelLinkTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.ExistingModelLinkTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, existingModelLinkTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ExistingModelLinkTranslation") - case "existingModelID": - out.Values[i] = ec._ExistingModelLinkTranslation_existingModelID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "currentModelPlanID": - out.Values[i] = ec._ExistingModelLinkTranslation_currentModelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fieldName": - out.Values[i] = ec._ExistingModelLinkTranslation_fieldName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var existingModelLinksImplementors = []string{"ExistingModelLinks"} - -func (ec *executionContext) _ExistingModelLinks(ctx context.Context, sel ast.SelectionSet, obj *models.ExistingModelLinks) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, existingModelLinksImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ExistingModelLinks") - case "links": - out.Values[i] = ec._ExistingModelLinks_links(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fieldName": - out.Values[i] = ec._ExistingModelLinks_fieldName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._ExistingModelLinks_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "names": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ExistingModelLinks_names(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var launchDarklySettingsImplementors = []string{"LaunchDarklySettings"} - -func (ec *executionContext) _LaunchDarklySettings(ctx context.Context, sel ast.SelectionSet, obj *model.LaunchDarklySettings) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, launchDarklySettingsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("LaunchDarklySettings") - case "userKey": - out.Values[i] = ec._LaunchDarklySettings_userKey(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "signedHash": - out.Values[i] = ec._LaunchDarklySettings_signedHash(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var lockableSectionLockStatusImplementors = []string{"LockableSectionLockStatus"} - -func (ec *executionContext) _LockableSectionLockStatus(ctx context.Context, sel ast.SelectionSet, obj *model.LockableSectionLockStatus) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, lockableSectionLockStatusImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("LockableSectionLockStatus") - case "modelPlanID": - out.Values[i] = ec._LockableSectionLockStatus_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "section": - out.Values[i] = ec._LockableSectionLockStatus_section(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "lockedByUserAccount": - out.Values[i] = ec._LockableSectionLockStatus_lockedByUserAccount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isAssessment": - out.Values[i] = ec._LockableSectionLockStatus_isAssessment(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var lockableSectionLockStatusChangedImplementors = []string{"LockableSectionLockStatusChanged"} - -func (ec *executionContext) _LockableSectionLockStatusChanged(ctx context.Context, sel ast.SelectionSet, obj *model.LockableSectionLockStatusChanged) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, lockableSectionLockStatusChangedImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("LockableSectionLockStatusChanged") - case "changeType": - out.Values[i] = ec._LockableSectionLockStatusChanged_changeType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "lockStatus": - out.Values[i] = ec._LockableSectionLockStatusChanged_lockStatus(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "actionType": - out.Values[i] = ec._LockableSectionLockStatusChanged_actionType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOCategoryImplementors = []string{"MTOCategory"} - -func (ec *executionContext) _MTOCategory(ctx context.Context, sel ast.SelectionSet, obj *models.MTOCategory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOCategoryImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOCategory") - case "id": - out.Values[i] = ec._MTOCategory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._MTOCategory_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "position": - out.Values[i] = ec._MTOCategory_position(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isUncategorized": - out.Values[i] = ec._MTOCategory_isUncategorized(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "subCategories": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOCategory_subCategories(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOCategoryTranslationImplementors = []string{"MTOCategoryTranslation"} - -func (ec *executionContext) _MTOCategoryTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.MTOCategoryTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOCategoryTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOCategoryTranslation") - case "name": - out.Values[i] = ec._MTOCategoryTranslation_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOCommonMilestoneImplementors = []string{"MTOCommonMilestone"} - -func (ec *executionContext) _MTOCommonMilestone(ctx context.Context, sel ast.SelectionSet, obj *models.MTOCommonMilestone) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOCommonMilestoneImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOCommonMilestone") - case "name": - out.Values[i] = ec._MTOCommonMilestone_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "key": - out.Values[i] = ec._MTOCommonMilestone_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "categoryName": - out.Values[i] = ec._MTOCommonMilestone_categoryName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "subCategoryName": - out.Values[i] = ec._MTOCommonMilestone_subCategoryName(ctx, field, obj) - case "facilitatedByRole": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOCommonMilestone_facilitatedByRole(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "section": - out.Values[i] = ec._MTOCommonMilestone_section(ctx, field, obj) - case "isAdded": - out.Values[i] = ec._MTOCommonMilestone_isAdded(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isSuggested": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOCommonMilestone_isSuggested(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "commonSolutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOCommonMilestone_commonSolutions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOCommonSolutionImplementors = []string{"MTOCommonSolution"} - -func (ec *executionContext) _MTOCommonSolution(ctx context.Context, sel ast.SelectionSet, obj *models.MTOCommonSolution) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOCommonSolutionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOCommonSolution") - case "name": - out.Values[i] = ec._MTOCommonSolution_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "key": - out.Values[i] = ec._MTOCommonSolution_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._MTOCommonSolution_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "subjects": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOCommonSolution_subjects(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "filterView": - out.Values[i] = ec._MTOCommonSolution_filterView(ctx, field, obj) - case "isAdded": - out.Values[i] = ec._MTOCommonSolution_isAdded(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOInfoImplementors = []string{"MTOInfo"} - -func (ec *executionContext) _MTOInfo(ctx context.Context, sel ast.SelectionSet, obj *models.MTOInfo) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOInfoImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOInfo") - case "id": - out.Values[i] = ec._MTOInfo_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._MTOInfo_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "readyForReviewBy": - out.Values[i] = ec._MTOInfo_readyForReviewBy(ctx, field, obj) - case "readyForReviewDTS": - out.Values[i] = ec._MTOInfo_readyForReviewDTS(ctx, field, obj) - case "readyForReviewByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOInfo_readyForReviewByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._MTOInfo_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOInfo_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._MTOInfo_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._MTOInfo_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOInfo_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._MTOInfo_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOInfoTranslationImplementors = []string{"MTOInfoTranslation"} - -func (ec *executionContext) _MTOInfoTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.MTOInfoTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOInfoTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOInfoTranslation") - case "readyForReviewBy": - out.Values[i] = ec._MTOInfoTranslation_readyForReviewBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewDTS": - out.Values[i] = ec._MTOInfoTranslation_readyForReviewDTS(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOMilestoneImplementors = []string{"MTOMilestone"} - -func (ec *executionContext) _MTOMilestone(ctx context.Context, sel ast.SelectionSet, obj *models.MTOMilestone) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOMilestoneImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOMilestone") - case "id": - out.Values[i] = ec._MTOMilestone_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._MTOMilestone_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "key": - out.Values[i] = ec._MTOMilestone_key(ctx, field, obj) - case "mtoCategoryID": - out.Values[i] = ec._MTOMilestone_mtoCategoryID(ctx, field, obj) - case "facilitatedBy": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOMilestone_facilitatedBy(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "needBy": - out.Values[i] = ec._MTOMilestone_needBy(ctx, field, obj) - case "status": - out.Values[i] = ec._MTOMilestone_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "riskIndicator": - out.Values[i] = ec._MTOMilestone_riskIndicator(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isDraft": - out.Values[i] = ec._MTOMilestone_isDraft(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._MTOMilestone_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOMilestone_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._MTOMilestone_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._MTOMilestone_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOMilestone_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._MTOMilestone_modifiedDts(ctx, field, obj) - case "addedFromMilestoneLibrary": - out.Values[i] = ec._MTOMilestone_addedFromMilestoneLibrary(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "commonMilestone": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOMilestone_commonMilestone(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "solutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOMilestone_solutions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "category": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOMilestone_category(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subCategory": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOMilestone_subCategory(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOMilestoneTranslationImplementors = []string{"MTOMilestoneTranslation"} - -func (ec *executionContext) _MTOMilestoneTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.MTOMilestoneTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOMilestoneTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOMilestoneTranslation") - case "name": - out.Values[i] = ec._MTOMilestoneTranslation_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOSolutionImplementors = []string{"MTOSolution"} - -func (ec *executionContext) _MTOSolution(ctx context.Context, sel ast.SelectionSet, obj *models.MTOSolution) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOSolutionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOSolution") - case "id": - out.Values[i] = ec._MTOSolution_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._MTOSolution_name(ctx, field, obj) - case "facilitatedBy": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOSolution_facilitatedBy(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "neededBy": - out.Values[i] = ec._MTOSolution_neededBy(ctx, field, obj) - case "status": - out.Values[i] = ec._MTOSolution_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "riskIndicator": - out.Values[i] = ec._MTOSolution_riskIndicator(ctx, field, obj) - case "key": - out.Values[i] = ec._MTOSolution_key(ctx, field, obj) - case "type": - out.Values[i] = ec._MTOSolution_type(ctx, field, obj) - case "pocName": - out.Values[i] = ec._MTOSolution_pocName(ctx, field, obj) - case "pocEmail": - out.Values[i] = ec._MTOSolution_pocEmail(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._MTOSolution_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOSolution_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._MTOSolution_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._MTOSolution_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOSolution_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._MTOSolution_modifiedDts(ctx, field, obj) - case "relatedMilestones": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOSolution_relatedMilestones(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "addedFromSolutionLibrary": - out.Values[i] = ec._MTOSolution_addedFromSolutionLibrary(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "commonSolution": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOSolution_commonSolution(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mTOSubcategoryImplementors = []string{"MTOSubcategory"} - -func (ec *executionContext) _MTOSubcategory(ctx context.Context, sel ast.SelectionSet, obj *models.MTOSubcategory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mTOSubcategoryImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("MTOSubcategory") - case "id": - out.Values[i] = ec._MTOSubcategory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._MTOSubcategory_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "position": - out.Values[i] = ec._MTOSubcategory_position(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isUncategorized": - out.Values[i] = ec._MTOSubcategory_isUncategorized(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "milestones": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MTOSubcategory_milestones(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var modelPlanImplementors = []string{"ModelPlan", "LinkedExistingModel"} - -func (ec *executionContext) _ModelPlan(ctx context.Context, sel ast.SelectionSet, obj *models.ModelPlan) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, modelPlanImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ModelPlan") - case "id": - out.Values[i] = ec._ModelPlan_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelName": - out.Values[i] = ec._ModelPlan_modelName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "abbreviation": - out.Values[i] = ec._ModelPlan_abbreviation(ctx, field, obj) - case "archived": - out.Values[i] = ec._ModelPlan_archived(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._ModelPlan_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._ModelPlan_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._ModelPlan_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._ModelPlan_modifiedDts(ctx, field, obj) - case "basics": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_basics(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "generalCharacteristics": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_generalCharacteristics(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "participantsAndProviders": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_participantsAndProviders(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "beneficiaries": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_beneficiaries(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "opsEvalAndLearning": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_opsEvalAndLearning(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "collaborators": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_collaborators(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "documents": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_documents(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "discussions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_discussions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "payments": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_payments(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataExchangeApproach": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_dataExchangeApproach(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "status": - out.Values[i] = ec._ModelPlan_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "taskListStatus": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_taskListStatus(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "suggestedPhase": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_suggestedPhase(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "isFavorite": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_isFavorite(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "isCollaborator": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_isCollaborator(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "crs": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_crs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tdls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_tdls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "echimpCRsAndTDLs": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_echimpCRsAndTDLs(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "prepareForClearance": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_prepareForClearance(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "nameHistory": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_nameHistory(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "operationalNeeds": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_operationalNeeds(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "opSolutionLastModifiedDts": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_opSolutionLastModifiedDts(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "previousSuggestedPhase": - out.Values[i] = ec._ModelPlan_previousSuggestedPhase(ctx, field, obj) - case "mtoMatrix": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_mtoMatrix(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modelBySolutionStatus": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlan_modelBySolutionStatus(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var modelPlanAndPossibleOperationalSolutionImplementors = []string{"ModelPlanAndPossibleOperationalSolution"} - -func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, obj *models.ModelPlanAndPossibleOperationalSolution) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, modelPlanAndPossibleOperationalSolutionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ModelPlanAndPossibleOperationalSolution") - case "possibleOperationalSolution": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "possibleOperationalSolutionID": - out.Values[i] = ec._ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "key": - out.Values[i] = ec._ModelPlanAndPossibleOperationalSolution_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlanAndPossibleOperationalSolution_modelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var modelPlanSharedActivityMetaImplementors = []string{"ModelPlanSharedActivityMeta", "ActivityMetaData"} - -func (ec *executionContext) _ModelPlanSharedActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.ModelPlanSharedActivityMeta) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, modelPlanSharedActivityMetaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ModelPlanSharedActivityMeta") - case "version": - out.Values[i] = ec._ModelPlanSharedActivityMeta_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._ModelPlanSharedActivityMeta_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._ModelPlanSharedActivityMeta_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelPlanSharedActivityMeta_modelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "optionalMessage": - out.Values[i] = ec._ModelPlanSharedActivityMeta_optionalMessage(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var modelPlanTranslationImplementors = []string{"ModelPlanTranslation"} - -func (ec *executionContext) _ModelPlanTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.ModelPlanTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, modelPlanTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ModelPlanTranslation") - case "modelName": - out.Values[i] = ec._ModelPlanTranslation_modelName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "previousName": - out.Values[i] = ec._ModelPlanTranslation_previousName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "nameHistory": - out.Values[i] = ec._ModelPlanTranslation_nameHistory(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "abbreviation": - out.Values[i] = ec._ModelPlanTranslation_abbreviation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "archived": - out.Values[i] = ec._ModelPlanTranslation_archived(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._ModelPlanTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var modelsToOperationMatrixImplementors = []string{"ModelsToOperationMatrix"} - -func (ec *executionContext) _ModelsToOperationMatrix(ctx context.Context, sel ast.SelectionSet, obj *models.ModelsToOperationMatrix) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, modelsToOperationMatrixImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ModelsToOperationMatrix") - case "categories": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelsToOperationMatrix_categories(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "commonMilestones": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelsToOperationMatrix_commonMilestones(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "commonSolutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelsToOperationMatrix_commonSolutions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "milestones": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelsToOperationMatrix_milestones(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "solutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelsToOperationMatrix_solutions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "status": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelsToOperationMatrix_status(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "recentEdit": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelsToOperationMatrix_recentEdit(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "info": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ModelsToOperationMatrix_info(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mutationImplementors = []string{"Mutation"} - -func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) - ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ - Object: "Mutation", - }) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ - Object: field.Name, - Field: field, - }) - - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Mutation") - case "createDiscussionReply": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createDiscussionReply(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateExistingModelLinks": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateExistingModelLinks(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "lockLockableSection": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_lockLockableSection(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "unlockLockableSection": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_unlockLockableSection(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "unlockAllLockableSections": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_unlockAllLockableSections(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createModelPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createModelPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateModelPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateModelPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "shareModelPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_shareModelPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "markMTOReadyForReview": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_markMTOReadyForReview(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createMTOCategory": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createMTOCategory(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "renameMTOCategory": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_renameMTOCategory(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "reorderMTOCategory": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_reorderMTOCategory(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createMTOMilestoneCustom": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createMTOMilestoneCustom(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createMTOMilestoneCommon": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createMTOMilestoneCommon(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateMTOMilestone": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateMTOMilestone(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createMTOSolutionCustom": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createMTOSolutionCustom(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createMTOSolutionCommon": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createMTOSolutionCommon(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateMTOSolution": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateMTOSolution(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "agreeToNDA": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_agreeToNDA(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addOrUpdateCustomOperationalNeed": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addOrUpdateCustomOperationalNeed(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateCustomOperationalNeedByID": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateCustomOperationalNeedByID(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createOperationalSolution": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOperationalSolution(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateOperationalSolution": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOperationalSolution(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createOperationalSolutionSubtasks": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOperationalSolutionSubtasks(ctx, field) - }) - case "updateOperationalSolutionSubtasks": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOperationalSolutionSubtasks(ctx, field) - }) - case "deleteOperationalSolutionSubtask": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOperationalSolutionSubtask(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanBasics": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanBasics(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanBeneficiaries": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanBeneficiaries(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createPlanCollaborator": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createPlanCollaborator(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanCollaborator": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanCollaborator(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletePlanCollaborator": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deletePlanCollaborator(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createPlanCR": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createPlanCR(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanCR": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanCR(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletePlanCR": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deletePlanCR(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanDataExchangeApproach": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanDataExchangeApproach(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createPlanDiscussion": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createPlanDiscussion(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "uploadNewPlanDocument": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_uploadNewPlanDocument(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "linkNewPlanDocument": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_linkNewPlanDocument(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletePlanDocument": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deletePlanDocument(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createPlanDocumentSolutionLinks": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createPlanDocumentSolutionLinks(ctx, field) - }) - case "removePlanDocumentSolutionLinks": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removePlanDocumentSolutionLinks(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addPlanFavorite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addPlanFavorite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletePlanFavorite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deletePlanFavorite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanGeneralCharacteristics": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanGeneralCharacteristics(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanOpsEvalAndLearning": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanOpsEvalAndLearning(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanParticipantsAndProviders": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanParticipantsAndProviders(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanPayments": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanPayments(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createPlanTDL": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createPlanTDL(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePlanTDL": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePlanTDL(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletePlanTDL": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deletePlanTDL(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "reportAProblem": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_reportAProblem(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "sendFeedbackEmail": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_sendFeedbackEmail(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "markNotificationAsRead": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_markNotificationAsRead(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "markAllNotificationsAsRead": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_markAllNotificationsAsRead(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateUserNotificationPreferences": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateUserNotificationPreferences(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateUserViewCustomization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateUserViewCustomization(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var nDAInfoImplementors = []string{"NDAInfo"} - -func (ec *executionContext) _NDAInfo(ctx context.Context, sel ast.SelectionSet, obj *model.NDAInfo) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, nDAInfoImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NDAInfo") - case "agreed": - out.Values[i] = ec._NDAInfo_agreed(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "agreedDts": - out.Values[i] = ec._NDAInfo_agreedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var newDiscussionRepliedActivityMetaImplementors = []string{"NewDiscussionRepliedActivityMeta", "ActivityMetaData"} - -func (ec *executionContext) _NewDiscussionRepliedActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.NewDiscussionRepliedActivityMeta) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, newDiscussionRepliedActivityMetaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NewDiscussionRepliedActivityMeta") - case "version": - out.Values[i] = ec._NewDiscussionRepliedActivityMeta_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._NewDiscussionRepliedActivityMeta_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._NewDiscussionRepliedActivityMeta_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._NewDiscussionRepliedActivityMeta_modelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "discussionID": - out.Values[i] = ec._NewDiscussionRepliedActivityMeta_discussionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "discussion": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._NewDiscussionRepliedActivityMeta_discussion(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "replyID": - out.Values[i] = ec._NewDiscussionRepliedActivityMeta_replyID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "reply": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._NewDiscussionRepliedActivityMeta_reply(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "content": - out.Values[i] = ec._NewDiscussionRepliedActivityMeta_content(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var newModelPlanActivityMetaImplementors = []string{"NewModelPlanActivityMeta", "ActivityMetaData"} - -func (ec *executionContext) _NewModelPlanActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.NewModelPlanActivityMeta) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, newModelPlanActivityMetaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NewModelPlanActivityMeta") - case "version": - out.Values[i] = ec._NewModelPlanActivityMeta_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._NewModelPlanActivityMeta_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._NewModelPlanActivityMeta_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._NewModelPlanActivityMeta_modelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var operationalNeedImplementors = []string{"OperationalNeed"} - -func (ec *executionContext) _OperationalNeed(ctx context.Context, sel ast.SelectionSet, obj *models.OperationalNeed) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, operationalNeedImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OperationalNeed") - case "id": - out.Values[i] = ec._OperationalNeed_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._OperationalNeed_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "needed": - out.Values[i] = ec._OperationalNeed_needed(ctx, field, obj) - case "solutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._OperationalNeed_solutions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "key": - out.Values[i] = ec._OperationalNeed_key(ctx, field, obj) - case "name": - out.Values[i] = ec._OperationalNeed_name(ctx, field, obj) - case "nameOther": - out.Values[i] = ec._OperationalNeed_nameOther(ctx, field, obj) - case "section": - out.Values[i] = ec._OperationalNeed_section(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._OperationalNeed_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._OperationalNeed_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._OperationalNeed_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._OperationalNeed_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._OperationalNeed_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._OperationalNeed_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var operationalNeedTranslationImplementors = []string{"OperationalNeedTranslation"} - -func (ec *executionContext) _OperationalNeedTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.OperationalNeedTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, operationalNeedTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OperationalNeedTranslation") - case "name": - out.Values[i] = ec._OperationalNeedTranslation_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "nameOther": - out.Values[i] = ec._OperationalNeedTranslation_nameOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "key": - out.Values[i] = ec._OperationalNeedTranslation_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needed": - out.Values[i] = ec._OperationalNeedTranslation_needed(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "section": - out.Values[i] = ec._OperationalNeedTranslation_section(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var operationalSolutionImplementors = []string{"OperationalSolution"} - -func (ec *executionContext) _OperationalSolution(ctx context.Context, sel ast.SelectionSet, obj *models.OperationalSolution) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, operationalSolutionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OperationalSolution") - case "id": - out.Values[i] = ec._OperationalSolution_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "operationalNeedID": - out.Values[i] = ec._OperationalSolution_operationalNeedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "solutionType": - out.Values[i] = ec._OperationalSolution_solutionType(ctx, field, obj) - case "needed": - out.Values[i] = ec._OperationalSolution_needed(ctx, field, obj) - case "name": - out.Values[i] = ec._OperationalSolution_name(ctx, field, obj) - case "key": - out.Values[i] = ec._OperationalSolution_key(ctx, field, obj) - case "nameOther": - out.Values[i] = ec._OperationalSolution_nameOther(ctx, field, obj) - case "pocName": - out.Values[i] = ec._OperationalSolution_pocName(ctx, field, obj) - case "pocEmail": - out.Values[i] = ec._OperationalSolution_pocEmail(ctx, field, obj) - case "mustStartDts": - out.Values[i] = ec._OperationalSolution_mustStartDts(ctx, field, obj) - case "mustFinishDts": - out.Values[i] = ec._OperationalSolution_mustFinishDts(ctx, field, obj) - case "isOther": - out.Values[i] = ec._OperationalSolution_isOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isCommonSolution": - out.Values[i] = ec._OperationalSolution_isCommonSolution(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "otherHeader": - out.Values[i] = ec._OperationalSolution_otherHeader(ctx, field, obj) - case "status": - out.Values[i] = ec._OperationalSolution_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "documents": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._OperationalSolution_documents(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "operationalSolutionSubtasks": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._OperationalSolution_operationalSolutionSubtasks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._OperationalSolution_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._OperationalSolution_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._OperationalSolution_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._OperationalSolution_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._OperationalSolution_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._OperationalSolution_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var operationalSolutionSubtaskImplementors = []string{"OperationalSolutionSubtask"} - -func (ec *executionContext) _OperationalSolutionSubtask(ctx context.Context, sel ast.SelectionSet, obj *models.OperationalSolutionSubtask) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, operationalSolutionSubtaskImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OperationalSolutionSubtask") - case "id": - out.Values[i] = ec._OperationalSolutionSubtask_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "solutionID": - out.Values[i] = ec._OperationalSolutionSubtask_solutionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._OperationalSolutionSubtask_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "status": - out.Values[i] = ec._OperationalSolutionSubtask_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._OperationalSolutionSubtask_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._OperationalSolutionSubtask_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._OperationalSolutionSubtask_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._OperationalSolutionSubtask_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._OperationalSolutionSubtask_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._OperationalSolutionSubtask_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var operationalSolutionSubtaskTranslationImplementors = []string{"OperationalSolutionSubtaskTranslation"} - -func (ec *executionContext) _OperationalSolutionSubtaskTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.OperationalSolutionSubtaskTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, operationalSolutionSubtaskTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OperationalSolutionSubtaskTranslation") - case "name": - out.Values[i] = ec._OperationalSolutionSubtaskTranslation_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._OperationalSolutionSubtaskTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var operationalSolutionTranslationImplementors = []string{"OperationalSolutionTranslation"} - -func (ec *executionContext) _OperationalSolutionTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.OperationalSolutionTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, operationalSolutionTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OperationalSolutionTranslation") - case "name": - out.Values[i] = ec._OperationalSolutionTranslation_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "nameOther": - out.Values[i] = ec._OperationalSolutionTranslation_nameOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isOther": - out.Values[i] = ec._OperationalSolutionTranslation_isOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "otherHeader": - out.Values[i] = ec._OperationalSolutionTranslation_otherHeader(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pocName": - out.Values[i] = ec._OperationalSolutionTranslation_pocName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pocEmail": - out.Values[i] = ec._OperationalSolutionTranslation_pocEmail(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "mustStartDts": - out.Values[i] = ec._OperationalSolutionTranslation_mustStartDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "mustFinishDts": - out.Values[i] = ec._OperationalSolutionTranslation_mustFinishDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needed": - out.Values[i] = ec._OperationalSolutionTranslation_needed(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "key": - out.Values[i] = ec._OperationalSolutionTranslation_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._OperationalSolutionTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var phaseSuggestionImplementors = []string{"PhaseSuggestion"} - -func (ec *executionContext) _PhaseSuggestion(ctx context.Context, sel ast.SelectionSet, obj *model.PhaseSuggestion) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, phaseSuggestionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PhaseSuggestion") - case "phase": - out.Values[i] = ec._PhaseSuggestion_phase(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "suggestedStatuses": - out.Values[i] = ec._PhaseSuggestion_suggestedStatuses(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planBasicsImplementors = []string{"PlanBasics"} - -func (ec *executionContext) _PlanBasics(ctx context.Context, sel ast.SelectionSet, obj *models.PlanBasics) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planBasicsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanBasics") - case "id": - out.Values[i] = ec._PlanBasics_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanBasics_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "demoCode": - out.Values[i] = ec._PlanBasics_demoCode(ctx, field, obj) - case "amsModelID": - out.Values[i] = ec._PlanBasics_amsModelID(ctx, field, obj) - case "modelCategory": - out.Values[i] = ec._PlanBasics_modelCategory(ctx, field, obj) - case "additionalModelCategories": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBasics_additionalModelCategories(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "cmsCenters": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBasics_cmsCenters(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "cmmiGroups": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBasics_cmmiGroups(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modelType": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBasics_modelType(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modelTypeOther": - out.Values[i] = ec._PlanBasics_modelTypeOther(ctx, field, obj) - case "problem": - out.Values[i] = ec._PlanBasics_problem(ctx, field, obj) - case "goal": - out.Values[i] = ec._PlanBasics_goal(ctx, field, obj) - case "testInterventions": - out.Values[i] = ec._PlanBasics_testInterventions(ctx, field, obj) - case "note": - out.Values[i] = ec._PlanBasics_note(ctx, field, obj) - case "completeICIP": - out.Values[i] = ec._PlanBasics_completeICIP(ctx, field, obj) - case "clearanceStarts": - out.Values[i] = ec._PlanBasics_clearanceStarts(ctx, field, obj) - case "clearanceEnds": - out.Values[i] = ec._PlanBasics_clearanceEnds(ctx, field, obj) - case "announced": - out.Values[i] = ec._PlanBasics_announced(ctx, field, obj) - case "applicationsStart": - out.Values[i] = ec._PlanBasics_applicationsStart(ctx, field, obj) - case "applicationsEnd": - out.Values[i] = ec._PlanBasics_applicationsEnd(ctx, field, obj) - case "performancePeriodStarts": - out.Values[i] = ec._PlanBasics_performancePeriodStarts(ctx, field, obj) - case "performancePeriodEnds": - out.Values[i] = ec._PlanBasics_performancePeriodEnds(ctx, field, obj) - case "wrapUpEnds": - out.Values[i] = ec._PlanBasics_wrapUpEnds(ctx, field, obj) - case "highLevelNote": - out.Values[i] = ec._PlanBasics_highLevelNote(ctx, field, obj) - case "phasedIn": - out.Values[i] = ec._PlanBasics_phasedIn(ctx, field, obj) - case "phasedInNote": - out.Values[i] = ec._PlanBasics_phasedInNote(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PlanBasics_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBasics_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanBasics_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanBasics_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBasics_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanBasics_modifiedDts(ctx, field, obj) - case "readyForReviewBy": - out.Values[i] = ec._PlanBasics_readyForReviewBy(ctx, field, obj) - case "readyForReviewByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBasics_readyForReviewByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForReviewDts": - out.Values[i] = ec._PlanBasics_readyForReviewDts(ctx, field, obj) - case "readyForClearanceBy": - out.Values[i] = ec._PlanBasics_readyForClearanceBy(ctx, field, obj) - case "readyForClearanceByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBasics_readyForClearanceByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForClearanceDts": - out.Values[i] = ec._PlanBasics_readyForClearanceDts(ctx, field, obj) - case "status": - out.Values[i] = ec._PlanBasics_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planBasicsTranslationImplementors = []string{"PlanBasicsTranslation"} - -func (ec *executionContext) _PlanBasicsTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanBasicsTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planBasicsTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanBasicsTranslation") - case "modelCategory": - out.Values[i] = ec._PlanBasicsTranslation_modelCategory(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "additionalModelCategories": - out.Values[i] = ec._PlanBasicsTranslation_additionalModelCategories(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "demoCode": - out.Values[i] = ec._PlanBasicsTranslation_demoCode(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "amsModelID": - out.Values[i] = ec._PlanBasicsTranslation_amsModelID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cmsCenters": - out.Values[i] = ec._PlanBasicsTranslation_cmsCenters(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cmmiGroups": - out.Values[i] = ec._PlanBasicsTranslation_cmmiGroups(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "modelType": - out.Values[i] = ec._PlanBasicsTranslation_modelType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "modelTypeOther": - out.Values[i] = ec._PlanBasicsTranslation_modelTypeOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "problem": - out.Values[i] = ec._PlanBasicsTranslation_problem(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "goal": - out.Values[i] = ec._PlanBasicsTranslation_goal(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "testInterventions": - out.Values[i] = ec._PlanBasicsTranslation_testInterventions(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "note": - out.Values[i] = ec._PlanBasicsTranslation_note(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "completeICIP": - out.Values[i] = ec._PlanBasicsTranslation_completeICIP(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "clearanceStarts": - out.Values[i] = ec._PlanBasicsTranslation_clearanceStarts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "clearanceEnds": - out.Values[i] = ec._PlanBasicsTranslation_clearanceEnds(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "announced": - out.Values[i] = ec._PlanBasicsTranslation_announced(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "applicationsStart": - out.Values[i] = ec._PlanBasicsTranslation_applicationsStart(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "applicationsEnd": - out.Values[i] = ec._PlanBasicsTranslation_applicationsEnd(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "performancePeriodStarts": - out.Values[i] = ec._PlanBasicsTranslation_performancePeriodStarts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "performancePeriodEnds": - out.Values[i] = ec._PlanBasicsTranslation_performancePeriodEnds(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "wrapUpEnds": - out.Values[i] = ec._PlanBasicsTranslation_wrapUpEnds(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "highLevelNote": - out.Values[i] = ec._PlanBasicsTranslation_highLevelNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "phasedIn": - out.Values[i] = ec._PlanBasicsTranslation_phasedIn(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "phasedInNote": - out.Values[i] = ec._PlanBasicsTranslation_phasedInNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewBy": - out.Values[i] = ec._PlanBasicsTranslation_readyForReviewBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewDts": - out.Values[i] = ec._PlanBasicsTranslation_readyForReviewDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceBy": - out.Values[i] = ec._PlanBasicsTranslation_readyForClearanceBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceDts": - out.Values[i] = ec._PlanBasicsTranslation_readyForClearanceDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._PlanBasicsTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planBeneficiariesImplementors = []string{"PlanBeneficiaries"} - -func (ec *executionContext) _PlanBeneficiaries(ctx context.Context, sel ast.SelectionSet, obj *models.PlanBeneficiaries) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planBeneficiariesImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanBeneficiaries") - case "id": - out.Values[i] = ec._PlanBeneficiaries_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanBeneficiaries_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "beneficiaries": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBeneficiaries_beneficiaries(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "beneficiariesOther": - out.Values[i] = ec._PlanBeneficiaries_beneficiariesOther(ctx, field, obj) - case "beneficiariesNote": - out.Values[i] = ec._PlanBeneficiaries_beneficiariesNote(ctx, field, obj) - case "diseaseSpecificGroup": - out.Values[i] = ec._PlanBeneficiaries_diseaseSpecificGroup(ctx, field, obj) - case "treatDualElligibleDifferent": - out.Values[i] = ec._PlanBeneficiaries_treatDualElligibleDifferent(ctx, field, obj) - case "treatDualElligibleDifferentHow": - out.Values[i] = ec._PlanBeneficiaries_treatDualElligibleDifferentHow(ctx, field, obj) - case "treatDualElligibleDifferentNote": - out.Values[i] = ec._PlanBeneficiaries_treatDualElligibleDifferentNote(ctx, field, obj) - case "excludeCertainCharacteristics": - out.Values[i] = ec._PlanBeneficiaries_excludeCertainCharacteristics(ctx, field, obj) - case "excludeCertainCharacteristicsCriteria": - out.Values[i] = ec._PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx, field, obj) - case "excludeCertainCharacteristicsNote": - out.Values[i] = ec._PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx, field, obj) - case "numberPeopleImpacted": - out.Values[i] = ec._PlanBeneficiaries_numberPeopleImpacted(ctx, field, obj) - case "estimateConfidence": - out.Values[i] = ec._PlanBeneficiaries_estimateConfidence(ctx, field, obj) - case "confidenceNote": - out.Values[i] = ec._PlanBeneficiaries_confidenceNote(ctx, field, obj) - case "beneficiarySelectionMethod": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBeneficiaries_beneficiarySelectionMethod(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "beneficiarySelectionOther": - out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionOther(ctx, field, obj) - case "beneficiarySelectionNote": - out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionNote(ctx, field, obj) - case "beneficiarySelectionFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBeneficiaries_beneficiarySelectionFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "beneficiarySelectionFrequencyContinually": - out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx, field, obj) - case "beneficiarySelectionFrequencyOther": - out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx, field, obj) - case "beneficiarySelectionFrequencyNote": - out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx, field, obj) - case "beneficiaryRemovalFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBeneficiaries_beneficiaryRemovalFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "beneficiaryRemovalFrequencyContinually": - out.Values[i] = ec._PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx, field, obj) - case "beneficiaryRemovalFrequencyOther": - out.Values[i] = ec._PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx, field, obj) - case "beneficiaryRemovalFrequencyNote": - out.Values[i] = ec._PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx, field, obj) - case "beneficiaryOverlap": - out.Values[i] = ec._PlanBeneficiaries_beneficiaryOverlap(ctx, field, obj) - case "beneficiaryOverlapNote": - out.Values[i] = ec._PlanBeneficiaries_beneficiaryOverlapNote(ctx, field, obj) - case "precedenceRules": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBeneficiaries_precedenceRules(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "precedenceRulesYes": - out.Values[i] = ec._PlanBeneficiaries_precedenceRulesYes(ctx, field, obj) - case "precedenceRulesNo": - out.Values[i] = ec._PlanBeneficiaries_precedenceRulesNo(ctx, field, obj) - case "precedenceRulesNote": - out.Values[i] = ec._PlanBeneficiaries_precedenceRulesNote(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PlanBeneficiaries_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBeneficiaries_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanBeneficiaries_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanBeneficiaries_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBeneficiaries_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanBeneficiaries_modifiedDts(ctx, field, obj) - case "readyForReviewBy": - out.Values[i] = ec._PlanBeneficiaries_readyForReviewBy(ctx, field, obj) - case "readyForReviewByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBeneficiaries_readyForReviewByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForReviewDts": - out.Values[i] = ec._PlanBeneficiaries_readyForReviewDts(ctx, field, obj) - case "readyForClearanceBy": - out.Values[i] = ec._PlanBeneficiaries_readyForClearanceBy(ctx, field, obj) - case "readyForClearanceByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanBeneficiaries_readyForClearanceByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForClearanceDts": - out.Values[i] = ec._PlanBeneficiaries_readyForClearanceDts(ctx, field, obj) - case "status": - out.Values[i] = ec._PlanBeneficiaries_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planBeneficiariesTranslationImplementors = []string{"PlanBeneficiariesTranslation"} - -func (ec *executionContext) _PlanBeneficiariesTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanBeneficiariesTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planBeneficiariesTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanBeneficiariesTranslation") - case "beneficiaries": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaries(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiariesOther": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiariesOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiariesNote": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiariesNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "diseaseSpecificGroup": - out.Values[i] = ec._PlanBeneficiariesTranslation_diseaseSpecificGroup(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "treatDualElligibleDifferent": - out.Values[i] = ec._PlanBeneficiariesTranslation_treatDualElligibleDifferent(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "treatDualElligibleDifferentHow": - out.Values[i] = ec._PlanBeneficiariesTranslation_treatDualElligibleDifferentHow(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "treatDualElligibleDifferentNote": - out.Values[i] = ec._PlanBeneficiariesTranslation_treatDualElligibleDifferentNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "excludeCertainCharacteristics": - out.Values[i] = ec._PlanBeneficiariesTranslation_excludeCertainCharacteristics(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "excludeCertainCharacteristicsCriteria": - out.Values[i] = ec._PlanBeneficiariesTranslation_excludeCertainCharacteristicsCriteria(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "excludeCertainCharacteristicsNote": - out.Values[i] = ec._PlanBeneficiariesTranslation_excludeCertainCharacteristicsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "numberPeopleImpacted": - out.Values[i] = ec._PlanBeneficiariesTranslation_numberPeopleImpacted(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "estimateConfidence": - out.Values[i] = ec._PlanBeneficiariesTranslation_estimateConfidence(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "confidenceNote": - out.Values[i] = ec._PlanBeneficiariesTranslation_confidenceNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiarySelectionMethod": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionMethod(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiarySelectionOther": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiarySelectionNote": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiarySelectionFrequency": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiarySelectionFrequencyContinually": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiarySelectionFrequencyOther": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiarySelectionFrequencyNote": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiaryRemovalFrequency": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryRemovalFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiaryRemovalFrequencyContinually": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiaryRemovalFrequencyOther": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiaryRemovalFrequencyNote": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiaryOverlap": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryOverlap(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiaryOverlapNote": - out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryOverlapNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "precedenceRules": - out.Values[i] = ec._PlanBeneficiariesTranslation_precedenceRules(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "precedenceRulesYes": - out.Values[i] = ec._PlanBeneficiariesTranslation_precedenceRulesYes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "precedenceRulesNo": - out.Values[i] = ec._PlanBeneficiariesTranslation_precedenceRulesNo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "precedenceRulesNote": - out.Values[i] = ec._PlanBeneficiariesTranslation_precedenceRulesNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewBy": - out.Values[i] = ec._PlanBeneficiariesTranslation_readyForReviewBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewDts": - out.Values[i] = ec._PlanBeneficiariesTranslation_readyForReviewDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceBy": - out.Values[i] = ec._PlanBeneficiariesTranslation_readyForClearanceBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceDts": - out.Values[i] = ec._PlanBeneficiariesTranslation_readyForClearanceDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._PlanBeneficiariesTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planCRImplementors = []string{"PlanCR"} - -func (ec *executionContext) _PlanCR(ctx context.Context, sel ast.SelectionSet, obj *models.PlanCR) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planCRImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanCR") - case "id": - out.Values[i] = ec._PlanCR_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanCR_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "idNumber": - out.Values[i] = ec._PlanCR_idNumber(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dateInitiated": - out.Values[i] = ec._PlanCR_dateInitiated(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dateImplemented": - out.Values[i] = ec._PlanCR_dateImplemented(ctx, field, obj) - case "title": - out.Values[i] = ec._PlanCR_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "note": - out.Values[i] = ec._PlanCR_note(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PlanCR_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanCR_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanCR_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanCR_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanCR_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanCR_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planCRTranslationImplementors = []string{"PlanCRTranslation"} - -func (ec *executionContext) _PlanCRTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanCRTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planCRTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanCRTranslation") - case "idNumber": - out.Values[i] = ec._PlanCRTranslation_idNumber(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "title": - out.Values[i] = ec._PlanCRTranslation_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dateInitiated": - out.Values[i] = ec._PlanCRTranslation_dateInitiated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dateImplemented": - out.Values[i] = ec._PlanCRTranslation_dateImplemented(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "note": - out.Values[i] = ec._PlanCRTranslation_note(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planCollaboratorImplementors = []string{"PlanCollaborator"} - -func (ec *executionContext) _PlanCollaborator(ctx context.Context, sel ast.SelectionSet, obj *models.PlanCollaborator) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planCollaboratorImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanCollaborator") - case "id": - out.Values[i] = ec._PlanCollaborator_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanCollaborator_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userID": - out.Values[i] = ec._PlanCollaborator_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanCollaborator_userAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "teamRoles": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanCollaborator_teamRoles(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._PlanCollaborator_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanCollaborator_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanCollaborator_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanCollaborator_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanCollaborator_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanCollaborator_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planCollaboratorTranslationImplementors = []string{"PlanCollaboratorTranslation"} - -func (ec *executionContext) _PlanCollaboratorTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanCollaboratorTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planCollaboratorTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanCollaboratorTranslation") - case "username": - out.Values[i] = ec._PlanCollaboratorTranslation_username(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "userID": - out.Values[i] = ec._PlanCollaboratorTranslation_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "teamRoles": - out.Values[i] = ec._PlanCollaboratorTranslation_teamRoles(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planDataExchangeApproachImplementors = []string{"PlanDataExchangeApproach"} - -func (ec *executionContext) _PlanDataExchangeApproach(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDataExchangeApproach) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planDataExchangeApproachImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanDataExchangeApproach") - case "id": - out.Values[i] = ec._PlanDataExchangeApproach_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanDataExchangeApproach_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dataToCollectFromParticipants": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataToCollectFromParticipantsReportsDetails": - out.Values[i] = ec._PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field, obj) - case "dataToCollectFromParticipantsOther": - out.Values[i] = ec._PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field, obj) - case "dataWillNotBeCollectedFromParticipants": - out.Values[i] = ec._PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field, obj) - case "dataToCollectFromParticipantsNote": - out.Values[i] = ec._PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field, obj) - case "dataToSendToParticipants": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproach_dataToSendToParticipants(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataToSendToParticipantsNote": - out.Values[i] = ec._PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field, obj) - case "doesNeedToMakeMultiPayerDataAvailable": - out.Values[i] = ec._PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field, obj) - case "anticipatedMultiPayerDataAvailabilityUseCase": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "doesNeedToMakeMultiPayerDataAvailableNote": - out.Values[i] = ec._PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field, obj) - case "doesNeedToCollectAndAggregateMultiSourceData": - out.Values[i] = ec._PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field, obj) - case "multiSourceDataToCollect": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "multiSourceDataToCollectOther": - out.Values[i] = ec._PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field, obj) - case "doesNeedToCollectAndAggregateMultiSourceDataNote": - out.Values[i] = ec._PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field, obj) - case "willImplementNewDataExchangeMethods": - out.Values[i] = ec._PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field, obj) - case "newDataExchangeMethodsDescription": - out.Values[i] = ec._PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field, obj) - case "newDataExchangeMethodsNote": - out.Values[i] = ec._PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field, obj) - case "additionalDataExchangeConsiderationsDescription": - out.Values[i] = ec._PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PlanDataExchangeApproach_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproach_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanDataExchangeApproach_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanDataExchangeApproach_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproach_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanDataExchangeApproach_modifiedDts(ctx, field, obj) - case "isDataExchangeApproachComplete": - out.Values[i] = ec._PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "markedCompleteBy": - out.Values[i] = ec._PlanDataExchangeApproach_markedCompleteBy(ctx, field, obj) - case "markedCompleteByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "markedCompleteDts": - out.Values[i] = ec._PlanDataExchangeApproach_markedCompleteDts(ctx, field, obj) - case "status": - out.Values[i] = ec._PlanDataExchangeApproach_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planDataExchangeApproachMarkedCompleteActivityMetaImplementors = []string{"PlanDataExchangeApproachMarkedCompleteActivityMeta", "ActivityMetaData"} - -func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planDataExchangeApproachMarkedCompleteActivityMetaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanDataExchangeApproachMarkedCompleteActivityMeta") - case "version": - out.Values[i] = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dataExchangeApproachID": - out.Values[i] = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproachID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dataExchangeApproach": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproach(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_modelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "markedCompleteBy": - out.Values[i] = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "markedCompleteByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planDataExchangeApproachTranslationImplementors = []string{"PlanDataExchangeApproachTranslation"} - -func (ec *executionContext) _PlanDataExchangeApproachTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanDataExchangeApproachTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planDataExchangeApproachTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanDataExchangeApproachTranslation") - case "dataToCollectFromParticipants": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToCollectFromParticipants(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataToCollectFromParticipantsReportsDetails": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsReportsDetails(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataToCollectFromParticipantsOther": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataWillNotBeCollectedFromParticipants": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataWillNotBeCollectedFromParticipants(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataToCollectFromParticipantsNote": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataToSendToParticipants": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToSendToParticipants(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataToSendToParticipantsNote": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToSendToParticipantsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "doesNeedToMakeMultiPayerDataAvailable": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailable(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "anticipatedMultiPayerDataAvailabilityUseCase": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "doesNeedToMakeMultiPayerDataAvailableNote": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "doesNeedToCollectAndAggregateMultiSourceData": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceData(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "multiSourceDataToCollect": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_multiSourceDataToCollect(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "multiSourceDataToCollectOther": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_multiSourceDataToCollectOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "doesNeedToCollectAndAggregateMultiSourceDataNote": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "willImplementNewDataExchangeMethods": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_willImplementNewDataExchangeMethods(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "newDataExchangeMethodsDescription": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_newDataExchangeMethodsDescription(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "newDataExchangeMethodsNote": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_newDataExchangeMethodsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "additionalDataExchangeConsiderationsDescription": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_additionalDataExchangeConsiderationsDescription(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isDataExchangeApproachComplete": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_isDataExchangeApproachComplete(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "markedCompleteBy": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_markedCompleteBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "markedCompleteDts": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_markedCompleteDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._PlanDataExchangeApproachTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planDiscussionImplementors = []string{"PlanDiscussion"} - -func (ec *executionContext) _PlanDiscussion(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDiscussion) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planDiscussionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanDiscussion") - case "id": - out.Values[i] = ec._PlanDiscussion_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanDiscussion_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "content": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDiscussion_content(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "userRole": - out.Values[i] = ec._PlanDiscussion_userRole(ctx, field, obj) - case "userRoleDescription": - out.Values[i] = ec._PlanDiscussion_userRoleDescription(ctx, field, obj) - case "replies": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDiscussion_replies(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "isAssessment": - out.Values[i] = ec._PlanDiscussion_isAssessment(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._PlanDiscussion_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDiscussion_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanDiscussion_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanDiscussion_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDiscussion_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanDiscussion_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planDiscussionTranslationImplementors = []string{"PlanDiscussionTranslation"} - -func (ec *executionContext) _PlanDiscussionTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanDiscussionTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planDiscussionTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanDiscussionTranslation") - case "userRole": - out.Values[i] = ec._PlanDiscussionTranslation_userRole(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "userRoleDescription": - out.Values[i] = ec._PlanDiscussionTranslation_userRoleDescription(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "content": - out.Values[i] = ec._PlanDiscussionTranslation_content(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isAssessment": - out.Values[i] = ec._PlanDiscussionTranslation_isAssessment(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planDocumentImplementors = []string{"PlanDocument"} - -func (ec *executionContext) _PlanDocument(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDocument) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planDocumentImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanDocument") - case "id": - out.Values[i] = ec._PlanDocument_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanDocument_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isLink": - out.Values[i] = ec._PlanDocument_isLink(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "url": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDocument_url(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "fileType": - out.Values[i] = ec._PlanDocument_fileType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "bucket": - out.Values[i] = ec._PlanDocument_bucket(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fileKey": - out.Values[i] = ec._PlanDocument_fileKey(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "virusScanned": - out.Values[i] = ec._PlanDocument_virusScanned(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "virusClean": - out.Values[i] = ec._PlanDocument_virusClean(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "restricted": - out.Values[i] = ec._PlanDocument_restricted(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fileName": - out.Values[i] = ec._PlanDocument_fileName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fileSize": - out.Values[i] = ec._PlanDocument_fileSize(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "documentType": - out.Values[i] = ec._PlanDocument_documentType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "otherType": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDocument_otherType(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "optionalNotes": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDocument_optionalNotes(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "downloadUrl": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDocument_downloadUrl(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "deletedAt": - out.Values[i] = ec._PlanDocument_deletedAt(ctx, field, obj) - case "numLinkedSolutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDocument_numLinkedSolutions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._PlanDocument_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDocument_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanDocument_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanDocument_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDocument_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanDocument_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planDocumentSolutionLinkImplementors = []string{"PlanDocumentSolutionLink"} - -func (ec *executionContext) _PlanDocumentSolutionLink(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDocumentSolutionLink) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planDocumentSolutionLinkImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanDocumentSolutionLink") - case "id": - out.Values[i] = ec._PlanDocumentSolutionLink_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "solutionID": - out.Values[i] = ec._PlanDocumentSolutionLink_solutionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "documentID": - out.Values[i] = ec._PlanDocumentSolutionLink_documentID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._PlanDocumentSolutionLink_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDocumentSolutionLink_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanDocumentSolutionLink_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanDocumentSolutionLink_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanDocumentSolutionLink_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanDocumentSolutionLink_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planDocumentSolutionLinkTranslationImplementors = []string{"PlanDocumentSolutionLinkTranslation"} - -func (ec *executionContext) _PlanDocumentSolutionLinkTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanDocumentSolutionLinkTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planDocumentSolutionLinkTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanDocumentSolutionLinkTranslation") - case "solutionID": - out.Values[i] = ec._PlanDocumentSolutionLinkTranslation_solutionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "documentID": - out.Values[i] = ec._PlanDocumentSolutionLinkTranslation_documentID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planDocumentTranslationImplementors = []string{"PlanDocumentTranslation"} - -func (ec *executionContext) _PlanDocumentTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanDocumentTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planDocumentTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanDocumentTranslation") - case "isLink": - out.Values[i] = ec._PlanDocumentTranslation_isLink(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "url": - out.Values[i] = ec._PlanDocumentTranslation_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fileName": - out.Values[i] = ec._PlanDocumentTranslation_fileName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "documentType": - out.Values[i] = ec._PlanDocumentTranslation_documentType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "otherType": - out.Values[i] = ec._PlanDocumentTranslation_otherType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fileType": - out.Values[i] = ec._PlanDocumentTranslation_fileType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "restricted": - out.Values[i] = ec._PlanDocumentTranslation_restricted(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "optionalNotes": - out.Values[i] = ec._PlanDocumentTranslation_optionalNotes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planFavoriteImplementors = []string{"PlanFavorite"} - -func (ec *executionContext) _PlanFavorite(ctx context.Context, sel ast.SelectionSet, obj *models.PlanFavorite) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planFavoriteImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanFavorite") - case "id": - out.Values[i] = ec._PlanFavorite_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanFavorite_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userID": - out.Values[i] = ec._PlanFavorite_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanFavorite_userAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._PlanFavorite_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanFavorite_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanFavorite_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanFavorite_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanFavorite_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanFavorite_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planGeneralCharacteristicsImplementors = []string{"PlanGeneralCharacteristics"} - -func (ec *executionContext) _PlanGeneralCharacteristics(ctx context.Context, sel ast.SelectionSet, obj *models.PlanGeneralCharacteristics) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planGeneralCharacteristicsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanGeneralCharacteristics") - case "id": - out.Values[i] = ec._PlanGeneralCharacteristics_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanGeneralCharacteristics_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isNewModel": - out.Values[i] = ec._PlanGeneralCharacteristics_isNewModel(ctx, field, obj) - case "existingModel": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_existingModel(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "currentModelPlanID": - out.Values[i] = ec._PlanGeneralCharacteristics_currentModelPlanID(ctx, field, obj) - case "currentModelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_currentModelPlan(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "existingModelID": - out.Values[i] = ec._PlanGeneralCharacteristics_existingModelID(ctx, field, obj) - case "existingModelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_existingModelPlan(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "resemblesExistingModel": - out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModel(ctx, field, obj) - case "resemblesExistingModelWhyHow": - out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx, field, obj) - case "resemblesExistingModelOtherSpecify": - out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx, field, obj) - case "resemblesExistingModelOtherSelected": - out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx, field, obj) - case "resemblesExistingModelOtherOption": - out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx, field, obj) - case "resemblesExistingModelHow": - out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelHow(ctx, field, obj) - case "resemblesExistingModelNote": - out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelNote(ctx, field, obj) - case "resemblesExistingModelWhich": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "participationInModelPrecondition": - out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPrecondition(ctx, field, obj) - case "participationInModelPreconditionWhyHow": - out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx, field, obj) - case "participationInModelPreconditionOtherSpecify": - out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx, field, obj) - case "participationInModelPreconditionOtherSelected": - out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx, field, obj) - case "participationInModelPreconditionOtherOption": - out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx, field, obj) - case "participationInModelPreconditionNote": - out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx, field, obj) - case "participationInModelPreconditionWhich": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hasComponentsOrTracks": - out.Values[i] = ec._PlanGeneralCharacteristics_hasComponentsOrTracks(ctx, field, obj) - case "hasComponentsOrTracksDiffer": - out.Values[i] = ec._PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx, field, obj) - case "hasComponentsOrTracksNote": - out.Values[i] = ec._PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx, field, obj) - case "agencyOrStateHelp": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_agencyOrStateHelp(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "agencyOrStateHelpOther": - out.Values[i] = ec._PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx, field, obj) - case "agencyOrStateHelpNote": - out.Values[i] = ec._PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx, field, obj) - case "alternativePaymentModelTypes": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "alternativePaymentModelNote": - out.Values[i] = ec._PlanGeneralCharacteristics_alternativePaymentModelNote(ctx, field, obj) - case "keyCharacteristics": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_keyCharacteristics(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "keyCharacteristicsOther": - out.Values[i] = ec._PlanGeneralCharacteristics_keyCharacteristicsOther(ctx, field, obj) - case "keyCharacteristicsNote": - out.Values[i] = ec._PlanGeneralCharacteristics_keyCharacteristicsNote(ctx, field, obj) - case "collectPlanBids": - out.Values[i] = ec._PlanGeneralCharacteristics_collectPlanBids(ctx, field, obj) - case "collectPlanBidsNote": - out.Values[i] = ec._PlanGeneralCharacteristics_collectPlanBidsNote(ctx, field, obj) - case "managePartCDEnrollment": - out.Values[i] = ec._PlanGeneralCharacteristics_managePartCDEnrollment(ctx, field, obj) - case "managePartCDEnrollmentNote": - out.Values[i] = ec._PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx, field, obj) - case "planContractUpdated": - out.Values[i] = ec._PlanGeneralCharacteristics_planContractUpdated(ctx, field, obj) - case "planContractUpdatedNote": - out.Values[i] = ec._PlanGeneralCharacteristics_planContractUpdatedNote(ctx, field, obj) - case "careCoordinationInvolved": - out.Values[i] = ec._PlanGeneralCharacteristics_careCoordinationInvolved(ctx, field, obj) - case "careCoordinationInvolvedDescription": - out.Values[i] = ec._PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx, field, obj) - case "careCoordinationInvolvedNote": - out.Values[i] = ec._PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx, field, obj) - case "additionalServicesInvolved": - out.Values[i] = ec._PlanGeneralCharacteristics_additionalServicesInvolved(ctx, field, obj) - case "additionalServicesInvolvedDescription": - out.Values[i] = ec._PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx, field, obj) - case "additionalServicesInvolvedNote": - out.Values[i] = ec._PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx, field, obj) - case "communityPartnersInvolved": - out.Values[i] = ec._PlanGeneralCharacteristics_communityPartnersInvolved(ctx, field, obj) - case "communityPartnersInvolvedDescription": - out.Values[i] = ec._PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx, field, obj) - case "communityPartnersInvolvedNote": - out.Values[i] = ec._PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx, field, obj) - case "geographiesTargeted": - out.Values[i] = ec._PlanGeneralCharacteristics_geographiesTargeted(ctx, field, obj) - case "geographiesTargetedTypes": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_geographiesTargetedTypes(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "geographiesStatesAndTerritories": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "geographiesRegionTypes": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_geographiesRegionTypes(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "geographiesTargetedTypesOther": - out.Values[i] = ec._PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx, field, obj) - case "geographiesTargetedAppliedTo": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "geographiesTargetedAppliedToOther": - out.Values[i] = ec._PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx, field, obj) - case "geographiesTargetedNote": - out.Values[i] = ec._PlanGeneralCharacteristics_geographiesTargetedNote(ctx, field, obj) - case "participationOptions": - out.Values[i] = ec._PlanGeneralCharacteristics_participationOptions(ctx, field, obj) - case "participationOptionsNote": - out.Values[i] = ec._PlanGeneralCharacteristics_participationOptionsNote(ctx, field, obj) - case "agreementTypes": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_agreementTypes(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "agreementTypesOther": - out.Values[i] = ec._PlanGeneralCharacteristics_agreementTypesOther(ctx, field, obj) - case "multiplePatricipationAgreementsNeeded": - out.Values[i] = ec._PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx, field, obj) - case "multiplePatricipationAgreementsNeededNote": - out.Values[i] = ec._PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx, field, obj) - case "rulemakingRequired": - out.Values[i] = ec._PlanGeneralCharacteristics_rulemakingRequired(ctx, field, obj) - case "rulemakingRequiredDescription": - out.Values[i] = ec._PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx, field, obj) - case "rulemakingRequiredNote": - out.Values[i] = ec._PlanGeneralCharacteristics_rulemakingRequiredNote(ctx, field, obj) - case "authorityAllowances": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_authorityAllowances(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "authorityAllowancesOther": - out.Values[i] = ec._PlanGeneralCharacteristics_authorityAllowancesOther(ctx, field, obj) - case "authorityAllowancesNote": - out.Values[i] = ec._PlanGeneralCharacteristics_authorityAllowancesNote(ctx, field, obj) - case "waiversRequired": - out.Values[i] = ec._PlanGeneralCharacteristics_waiversRequired(ctx, field, obj) - case "waiversRequiredTypes": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_waiversRequiredTypes(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "waiversRequiredNote": - out.Values[i] = ec._PlanGeneralCharacteristics_waiversRequiredNote(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PlanGeneralCharacteristics_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanGeneralCharacteristics_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanGeneralCharacteristics_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanGeneralCharacteristics_modifiedDts(ctx, field, obj) - case "readyForReviewBy": - out.Values[i] = ec._PlanGeneralCharacteristics_readyForReviewBy(ctx, field, obj) - case "readyForReviewByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForReviewDts": - out.Values[i] = ec._PlanGeneralCharacteristics_readyForReviewDts(ctx, field, obj) - case "readyForClearanceBy": - out.Values[i] = ec._PlanGeneralCharacteristics_readyForClearanceBy(ctx, field, obj) - case "readyForClearanceByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForClearanceDts": - out.Values[i] = ec._PlanGeneralCharacteristics_readyForClearanceDts(ctx, field, obj) - case "status": - out.Values[i] = ec._PlanGeneralCharacteristics_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planGeneralCharacteristicsTranslationImplementors = []string{"PlanGeneralCharacteristicsTranslation"} - -func (ec *executionContext) _PlanGeneralCharacteristicsTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanGeneralCharacteristicsTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planGeneralCharacteristicsTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanGeneralCharacteristicsTranslation") - case "isNewModel": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_isNewModel(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "currentModelPlanID": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_currentModelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "existingModelID": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_existingModelID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "existingModel": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_existingModel(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "resemblesExistingModel": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModel(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "resemblesExistingModelWhyHow": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhyHow(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "resemblesExistingModelOtherSpecify": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherSpecify(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "resemblesExistingModelOtherOption": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherOption(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "resemblesExistingModelHow": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelHow(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "resemblesExistingModelNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "resemblesExistingModelWhich": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhich(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participationInModelPrecondition": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPrecondition(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participationInModelPreconditionWhyHow": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhyHow(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participationInModelPreconditionOtherSpecify": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherSpecify(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participationInModelPreconditionOtherOption": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherOption(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participationInModelPreconditionNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participationInModelPreconditionWhich": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhich(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "hasComponentsOrTracks": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_hasComponentsOrTracks(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "hasComponentsOrTracksDiffer": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksDiffer(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "hasComponentsOrTracksNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "agencyOrStateHelp": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agencyOrStateHelp(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "agencyOrStateHelpOther": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agencyOrStateHelpOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "agencyOrStateHelpNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agencyOrStateHelpNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "alternativePaymentModelTypes": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_alternativePaymentModelTypes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "alternativePaymentModelNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_alternativePaymentModelNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "keyCharacteristics": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_keyCharacteristics(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "keyCharacteristicsOther": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_keyCharacteristicsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "keyCharacteristicsNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_keyCharacteristicsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "collectPlanBids": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_collectPlanBids(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "collectPlanBidsNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_collectPlanBidsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "managePartCDEnrollment": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_managePartCDEnrollment(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "managePartCDEnrollmentNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_managePartCDEnrollmentNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "planContractUpdated": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_planContractUpdated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "planContractUpdatedNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_planContractUpdatedNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "careCoordinationInvolved": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_careCoordinationInvolved(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "careCoordinationInvolvedDescription": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedDescription(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "careCoordinationInvolvedNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "additionalServicesInvolved": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_additionalServicesInvolved(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "additionalServicesInvolvedDescription": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedDescription(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "additionalServicesInvolvedNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "communityPartnersInvolved": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_communityPartnersInvolved(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "communityPartnersInvolvedDescription": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedDescription(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "communityPartnersInvolvedNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "geographiesTargeted": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargeted(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "geographiesTargetedTypes": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedTypes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "geographiesStatesAndTerritories": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesStatesAndTerritories(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "geographiesRegionTypes": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesRegionTypes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "geographiesTargetedTypesOther": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedTypesOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "geographiesTargetedAppliedTo": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedTo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "geographiesTargetedAppliedToOther": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedToOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "geographiesTargetedNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participationOptions": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationOptions(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participationOptionsNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationOptionsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "agreementTypes": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agreementTypes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "agreementTypesOther": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agreementTypesOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "multiplePatricipationAgreementsNeeded": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeeded(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "multiplePatricipationAgreementsNeededNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeededNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "rulemakingRequired": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_rulemakingRequired(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "rulemakingRequiredDescription": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_rulemakingRequiredDescription(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "rulemakingRequiredNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_rulemakingRequiredNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "authorityAllowances": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_authorityAllowances(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "authorityAllowancesOther": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_authorityAllowancesOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "authorityAllowancesNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_authorityAllowancesNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "waiversRequired": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_waiversRequired(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "waiversRequiredTypes": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_waiversRequiredTypes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "waiversRequiredNote": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_waiversRequiredNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewBy": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_readyForReviewBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewDts": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_readyForReviewDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceBy": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_readyForClearanceBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceDts": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_readyForClearanceDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planOpsEvalAndLearningImplementors = []string{"PlanOpsEvalAndLearning"} - -func (ec *executionContext) _PlanOpsEvalAndLearning(ctx context.Context, sel ast.SelectionSet, obj *models.PlanOpsEvalAndLearning) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planOpsEvalAndLearningImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanOpsEvalAndLearning") - case "id": - out.Values[i] = ec._PlanOpsEvalAndLearning_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanOpsEvalAndLearning_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "stakeholders": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_stakeholders(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "stakeholdersOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_stakeholdersOther(ctx, field, obj) - case "stakeholdersNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_stakeholdersNote(ctx, field, obj) - case "helpdeskUse": - out.Values[i] = ec._PlanOpsEvalAndLearning_helpdeskUse(ctx, field, obj) - case "helpdeskUseNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_helpdeskUseNote(ctx, field, obj) - case "contractorSupport": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_contractorSupport(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "contractorSupportOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_contractorSupportOther(ctx, field, obj) - case "contractorSupportHow": - out.Values[i] = ec._PlanOpsEvalAndLearning_contractorSupportHow(ctx, field, obj) - case "contractorSupportNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_contractorSupportNote(ctx, field, obj) - case "iddocSupport": - out.Values[i] = ec._PlanOpsEvalAndLearning_iddocSupport(ctx, field, obj) - case "iddocSupportNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_iddocSupportNote(ctx, field, obj) - case "technicalContactsIdentified": - out.Values[i] = ec._PlanOpsEvalAndLearning_technicalContactsIdentified(ctx, field, obj) - case "technicalContactsIdentifiedDetail": - out.Values[i] = ec._PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx, field, obj) - case "technicalContactsIdentifiedNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx, field, obj) - case "captureParticipantInfo": - out.Values[i] = ec._PlanOpsEvalAndLearning_captureParticipantInfo(ctx, field, obj) - case "captureParticipantInfoNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx, field, obj) - case "icdOwner": - out.Values[i] = ec._PlanOpsEvalAndLearning_icdOwner(ctx, field, obj) - case "draftIcdDueDate": - out.Values[i] = ec._PlanOpsEvalAndLearning_draftIcdDueDate(ctx, field, obj) - case "icdNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_icdNote(ctx, field, obj) - case "uatNeeds": - out.Values[i] = ec._PlanOpsEvalAndLearning_uatNeeds(ctx, field, obj) - case "stcNeeds": - out.Values[i] = ec._PlanOpsEvalAndLearning_stcNeeds(ctx, field, obj) - case "testingTimelines": - out.Values[i] = ec._PlanOpsEvalAndLearning_testingTimelines(ctx, field, obj) - case "testingNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_testingNote(ctx, field, obj) - case "dataMonitoringFileTypes": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataMonitoringFileOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx, field, obj) - case "dataResponseType": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataResponseType(ctx, field, obj) - case "dataResponseFileFrequency": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx, field, obj) - case "dataFullTimeOrIncremental": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx, field, obj) - case "eftSetUp": - out.Values[i] = ec._PlanOpsEvalAndLearning_eftSetUp(ctx, field, obj) - case "unsolicitedAdjustmentsIncluded": - out.Values[i] = ec._PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx, field, obj) - case "dataFlowDiagramsNeeded": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx, field, obj) - case "produceBenefitEnhancementFiles": - out.Values[i] = ec._PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx, field, obj) - case "fileNamingConventions": - out.Values[i] = ec._PlanOpsEvalAndLearning_fileNamingConventions(ctx, field, obj) - case "dataMonitoringNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataMonitoringNote(ctx, field, obj) - case "benchmarkForPerformance": - out.Values[i] = ec._PlanOpsEvalAndLearning_benchmarkForPerformance(ctx, field, obj) - case "benchmarkForPerformanceNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx, field, obj) - case "computePerformanceScores": - out.Values[i] = ec._PlanOpsEvalAndLearning_computePerformanceScores(ctx, field, obj) - case "computePerformanceScoresNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx, field, obj) - case "riskAdjustPerformance": - out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustPerformance(ctx, field, obj) - case "riskAdjustFeedback": - out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustFeedback(ctx, field, obj) - case "riskAdjustPayments": - out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustPayments(ctx, field, obj) - case "riskAdjustOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustOther(ctx, field, obj) - case "riskAdjustNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustNote(ctx, field, obj) - case "appealPerformance": - out.Values[i] = ec._PlanOpsEvalAndLearning_appealPerformance(ctx, field, obj) - case "appealFeedback": - out.Values[i] = ec._PlanOpsEvalAndLearning_appealFeedback(ctx, field, obj) - case "appealPayments": - out.Values[i] = ec._PlanOpsEvalAndLearning_appealPayments(ctx, field, obj) - case "appealOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_appealOther(ctx, field, obj) - case "appealNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_appealNote(ctx, field, obj) - case "evaluationApproaches": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_evaluationApproaches(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "evaluationApproachOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_evaluationApproachOther(ctx, field, obj) - case "evalutaionApproachNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_evalutaionApproachNote(ctx, field, obj) - case "ccmInvolvment": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_ccmInvolvment(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "ccmInvolvmentOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx, field, obj) - case "ccmInvolvmentNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx, field, obj) - case "dataNeededForMonitoring": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataNeededForMonitoringOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx, field, obj) - case "dataNeededForMonitoringNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx, field, obj) - case "dataToSendParticicipants": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_dataToSendParticicipants(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataToSendParticicipantsOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx, field, obj) - case "dataToSendParticicipantsNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx, field, obj) - case "shareCclfData": - out.Values[i] = ec._PlanOpsEvalAndLearning_shareCclfData(ctx, field, obj) - case "shareCclfDataNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_shareCclfDataNote(ctx, field, obj) - case "sendFilesBetweenCcw": - out.Values[i] = ec._PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx, field, obj) - case "sendFilesBetweenCcwNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx, field, obj) - case "appToSendFilesToKnown": - out.Values[i] = ec._PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx, field, obj) - case "appToSendFilesToWhich": - out.Values[i] = ec._PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx, field, obj) - case "appToSendFilesToNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_appToSendFilesToNote(ctx, field, obj) - case "useCcwForFileDistribiutionToParticipants": - out.Values[i] = ec._PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx, field, obj) - case "useCcwForFileDistribiutionToParticipantsNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx, field, obj) - case "developNewQualityMeasures": - out.Values[i] = ec._PlanOpsEvalAndLearning_developNewQualityMeasures(ctx, field, obj) - case "developNewQualityMeasuresNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx, field, obj) - case "qualityPerformanceImpactsPayment": - out.Values[i] = ec._PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx, field, obj) - case "qualityPerformanceImpactsPaymentOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx, field, obj) - case "qualityPerformanceImpactsPaymentNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx, field, obj) - case "dataSharingStarts": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingStarts(ctx, field, obj) - case "dataSharingStartsOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingStartsOther(ctx, field, obj) - case "dataSharingFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_dataSharingFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataSharingFrequencyContinually": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx, field, obj) - case "dataSharingFrequencyOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx, field, obj) - case "dataSharingStartsNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingStartsNote(ctx, field, obj) - case "dataCollectionStarts": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionStarts(ctx, field, obj) - case "dataCollectionStartsOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx, field, obj) - case "dataCollectionFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_dataCollectionFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataCollectionFrequencyContinually": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx, field, obj) - case "dataCollectionFrequencyOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx, field, obj) - case "dataCollectionFrequencyNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx, field, obj) - case "qualityReportingStarts": - out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingStarts(ctx, field, obj) - case "qualityReportingStartsOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx, field, obj) - case "qualityReportingStartsNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx, field, obj) - case "qualityReportingFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_qualityReportingFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "qualityReportingFrequencyContinually": - out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx, field, obj) - case "qualityReportingFrequencyOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx, field, obj) - case "modelLearningSystems": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_modelLearningSystems(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modelLearningSystemsOther": - out.Values[i] = ec._PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx, field, obj) - case "modelLearningSystemsNote": - out.Values[i] = ec._PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx, field, obj) - case "anticipatedChallenges": - out.Values[i] = ec._PlanOpsEvalAndLearning_anticipatedChallenges(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PlanOpsEvalAndLearning_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanOpsEvalAndLearning_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanOpsEvalAndLearning_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanOpsEvalAndLearning_modifiedDts(ctx, field, obj) - case "readyForReviewBy": - out.Values[i] = ec._PlanOpsEvalAndLearning_readyForReviewBy(ctx, field, obj) - case "readyForReviewByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForReviewDts": - out.Values[i] = ec._PlanOpsEvalAndLearning_readyForReviewDts(ctx, field, obj) - case "readyForClearanceBy": - out.Values[i] = ec._PlanOpsEvalAndLearning_readyForClearanceBy(ctx, field, obj) - case "readyForClearanceByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForClearanceDts": - out.Values[i] = ec._PlanOpsEvalAndLearning_readyForClearanceDts(ctx, field, obj) - case "status": - out.Values[i] = ec._PlanOpsEvalAndLearning_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planOpsEvalAndLearningTranslationImplementors = []string{"PlanOpsEvalAndLearningTranslation"} - -func (ec *executionContext) _PlanOpsEvalAndLearningTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanOpsEvalAndLearningTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planOpsEvalAndLearningTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanOpsEvalAndLearningTranslation") - case "stakeholders": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_stakeholders(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "stakeholdersOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_stakeholdersOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "stakeholdersNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_stakeholdersNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "helpdeskUse": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_helpdeskUse(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "helpdeskUseNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_helpdeskUseNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "contractorSupport": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_contractorSupport(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "contractorSupportOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_contractorSupportOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "contractorSupportHow": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_contractorSupportHow(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "contractorSupportNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_contractorSupportNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "iddocSupport": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_iddocSupport(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "iddocSupportNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_iddocSupportNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "technicalContactsIdentified": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_technicalContactsIdentified(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "technicalContactsIdentifiedDetail": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedDetail(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "technicalContactsIdentifiedNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "captureParticipantInfo": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_captureParticipantInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "captureParticipantInfoNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_captureParticipantInfoNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "icdOwner": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_icdOwner(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "draftIcdDueDate": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_draftIcdDueDate(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "icdNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_icdNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "uatNeeds": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_uatNeeds(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "stcNeeds": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_stcNeeds(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "testingTimelines": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_testingTimelines(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "testingNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_testingNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataMonitoringFileTypes": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataMonitoringFileTypes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataMonitoringFileOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataMonitoringFileOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataResponseType": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataResponseType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataResponseFileFrequency": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataResponseFileFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataFullTimeOrIncremental": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataFullTimeOrIncremental(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "eftSetUp": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_eftSetUp(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "unsolicitedAdjustmentsIncluded": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_unsolicitedAdjustmentsIncluded(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataFlowDiagramsNeeded": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataFlowDiagramsNeeded(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "produceBenefitEnhancementFiles": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_produceBenefitEnhancementFiles(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fileNamingConventions": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_fileNamingConventions(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataMonitoringNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataMonitoringNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "benchmarkForPerformance": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_benchmarkForPerformance(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "benchmarkForPerformanceNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_benchmarkForPerformanceNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "computePerformanceScores": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_computePerformanceScores(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "computePerformanceScoresNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_computePerformanceScoresNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "riskAdjustPerformance": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustPerformance(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "riskAdjustFeedback": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustFeedback(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "riskAdjustPayments": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustPayments(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "riskAdjustOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "riskAdjustNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "appealPerformance": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealPerformance(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "appealFeedback": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealFeedback(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "appealPayments": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealPayments(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "appealOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "appealNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "evaluationApproaches": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_evaluationApproaches(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "evaluationApproachOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_evaluationApproachOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "evalutaionApproachNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_evalutaionApproachNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ccmInvolvment": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_ccmInvolvment(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ccmInvolvmentOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_ccmInvolvmentOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ccmInvolvmentNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_ccmInvolvmentNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataNeededForMonitoring": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataNeededForMonitoring(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataNeededForMonitoringOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataNeededForMonitoringNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataToSendParticicipants": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataToSendParticicipants(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataToSendParticicipantsOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataToSendParticicipantsNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "shareCclfData": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_shareCclfData(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "shareCclfDataNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_shareCclfDataNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "sendFilesBetweenCcw": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcw(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "sendFilesBetweenCcwNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcwNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "appToSendFilesToKnown": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appToSendFilesToKnown(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "appToSendFilesToWhich": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appToSendFilesToWhich(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "appToSendFilesToNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appToSendFilesToNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "useCcwForFileDistribiutionToParticipants": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipants(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "useCcwForFileDistribiutionToParticipantsNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipantsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "developNewQualityMeasures": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_developNewQualityMeasures(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "developNewQualityMeasuresNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_developNewQualityMeasuresNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "qualityPerformanceImpactsPayment": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPayment(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "qualityPerformanceImpactsPaymentOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "qualityPerformanceImpactsPaymentNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataSharingStarts": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingStarts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataSharingStartsOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingStartsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataSharingFrequency": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataSharingFrequencyContinually": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataSharingFrequencyOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataSharingStartsNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingStartsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataCollectionStarts": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionStarts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataCollectionStartsOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionStartsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataCollectionFrequency": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataCollectionFrequencyContinually": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataCollectionFrequencyOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dataCollectionFrequencyNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "qualityReportingStarts": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingStarts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "qualityReportingStartsOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingStartsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "qualityReportingStartsNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingStartsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "qualityReportingFrequency": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "qualityReportingFrequencyContinually": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "qualityReportingFrequencyOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "modelLearningSystems": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_modelLearningSystems(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "modelLearningSystemsOther": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_modelLearningSystemsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "modelLearningSystemsNote": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_modelLearningSystemsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "anticipatedChallenges": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_anticipatedChallenges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewBy": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_readyForReviewBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewDts": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_readyForReviewDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceBy": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_readyForClearanceBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceDts": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_readyForClearanceDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planParticipantsAndProvidersImplementors = []string{"PlanParticipantsAndProviders"} - -func (ec *executionContext) _PlanParticipantsAndProviders(ctx context.Context, sel ast.SelectionSet, obj *models.PlanParticipantsAndProviders) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planParticipantsAndProvidersImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanParticipantsAndProviders") - case "id": - out.Values[i] = ec._PlanParticipantsAndProviders_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanParticipantsAndProviders_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "participants": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_participants(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "medicareProviderType": - out.Values[i] = ec._PlanParticipantsAndProviders_medicareProviderType(ctx, field, obj) - case "isNewTypeOfProvidersOrSuppliers": - out.Values[i] = ec._PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx, field, obj) - case "statesEngagement": - out.Values[i] = ec._PlanParticipantsAndProviders_statesEngagement(ctx, field, obj) - case "participantsOther": - out.Values[i] = ec._PlanParticipantsAndProviders_participantsOther(ctx, field, obj) - case "participantsNote": - out.Values[i] = ec._PlanParticipantsAndProviders_participantsNote(ctx, field, obj) - case "participantsCurrentlyInModels": - out.Values[i] = ec._PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx, field, obj) - case "participantsCurrentlyInModelsNote": - out.Values[i] = ec._PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx, field, obj) - case "modelApplicationLevel": - out.Values[i] = ec._PlanParticipantsAndProviders_modelApplicationLevel(ctx, field, obj) - case "expectedNumberOfParticipants": - out.Values[i] = ec._PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx, field, obj) - case "estimateConfidence": - out.Values[i] = ec._PlanParticipantsAndProviders_estimateConfidence(ctx, field, obj) - case "confidenceNote": - out.Values[i] = ec._PlanParticipantsAndProviders_confidenceNote(ctx, field, obj) - case "recruitmentMethod": - out.Values[i] = ec._PlanParticipantsAndProviders_recruitmentMethod(ctx, field, obj) - case "recruitmentOther": - out.Values[i] = ec._PlanParticipantsAndProviders_recruitmentOther(ctx, field, obj) - case "recruitmentNote": - out.Values[i] = ec._PlanParticipantsAndProviders_recruitmentNote(ctx, field, obj) - case "selectionMethod": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_selectionMethod(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "selectionOther": - out.Values[i] = ec._PlanParticipantsAndProviders_selectionOther(ctx, field, obj) - case "selectionNote": - out.Values[i] = ec._PlanParticipantsAndProviders_selectionNote(ctx, field, obj) - case "participantAddedFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_participantAddedFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "participantAddedFrequencyContinually": - out.Values[i] = ec._PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx, field, obj) - case "participantAddedFrequencyOther": - out.Values[i] = ec._PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx, field, obj) - case "participantAddedFrequencyNote": - out.Values[i] = ec._PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx, field, obj) - case "participantRemovedFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_participantRemovedFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "participantRemovedFrequencyContinually": - out.Values[i] = ec._PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx, field, obj) - case "participantRemovedFrequencyOther": - out.Values[i] = ec._PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx, field, obj) - case "participantRemovedFrequencyNote": - out.Values[i] = ec._PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx, field, obj) - case "communicationMethod": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_communicationMethod(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "communicationMethodOther": - out.Values[i] = ec._PlanParticipantsAndProviders_communicationMethodOther(ctx, field, obj) - case "communicationNote": - out.Values[i] = ec._PlanParticipantsAndProviders_communicationNote(ctx, field, obj) - case "riskType": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_riskType(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "riskOther": - out.Values[i] = ec._PlanParticipantsAndProviders_riskOther(ctx, field, obj) - case "riskNote": - out.Values[i] = ec._PlanParticipantsAndProviders_riskNote(ctx, field, obj) - case "willRiskChange": - out.Values[i] = ec._PlanParticipantsAndProviders_willRiskChange(ctx, field, obj) - case "willRiskChangeNote": - out.Values[i] = ec._PlanParticipantsAndProviders_willRiskChangeNote(ctx, field, obj) - case "participantRequireFinancialGuarantee": - out.Values[i] = ec._PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx, field, obj) - case "participantRequireFinancialGuaranteeType": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "participantRequireFinancialGuaranteeOther": - out.Values[i] = ec._PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx, field, obj) - case "participantRequireFinancialGuaranteeNote": - out.Values[i] = ec._PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx, field, obj) - case "coordinateWork": - out.Values[i] = ec._PlanParticipantsAndProviders_coordinateWork(ctx, field, obj) - case "coordinateWorkNote": - out.Values[i] = ec._PlanParticipantsAndProviders_coordinateWorkNote(ctx, field, obj) - case "gainsharePayments": - out.Values[i] = ec._PlanParticipantsAndProviders_gainsharePayments(ctx, field, obj) - case "gainsharePaymentsTrack": - out.Values[i] = ec._PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx, field, obj) - case "gainsharePaymentsNote": - out.Values[i] = ec._PlanParticipantsAndProviders_gainsharePaymentsNote(ctx, field, obj) - case "gainsharePaymentsEligibility": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "gainsharePaymentsEligibilityOther": - out.Values[i] = ec._PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx, field, obj) - case "participantsIds": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_participantsIds(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "participantsIdsOther": - out.Values[i] = ec._PlanParticipantsAndProviders_participantsIdsOther(ctx, field, obj) - case "participantsIDSNote": - out.Values[i] = ec._PlanParticipantsAndProviders_participantsIDSNote(ctx, field, obj) - case "providerAdditionFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_providerAdditionFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "providerAdditionFrequencyContinually": - out.Values[i] = ec._PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx, field, obj) - case "providerAdditionFrequencyOther": - out.Values[i] = ec._PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx, field, obj) - case "providerAdditionFrequencyNote": - out.Values[i] = ec._PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx, field, obj) - case "providerAddMethod": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_providerAddMethod(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "providerAddMethodOther": - out.Values[i] = ec._PlanParticipantsAndProviders_providerAddMethodOther(ctx, field, obj) - case "providerAddMethodNote": - out.Values[i] = ec._PlanParticipantsAndProviders_providerAddMethodNote(ctx, field, obj) - case "providerLeaveMethod": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_providerLeaveMethod(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "providerLeaveMethodOther": - out.Values[i] = ec._PlanParticipantsAndProviders_providerLeaveMethodOther(ctx, field, obj) - case "providerLeaveMethodNote": - out.Values[i] = ec._PlanParticipantsAndProviders_providerLeaveMethodNote(ctx, field, obj) - case "providerRemovalFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_providerRemovalFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "providerRemovalFrequencyContinually": - out.Values[i] = ec._PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx, field, obj) - case "providerRemovalFrequencyOther": - out.Values[i] = ec._PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx, field, obj) - case "providerRemovalFrequencyNote": - out.Values[i] = ec._PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx, field, obj) - case "providerOverlap": - out.Values[i] = ec._PlanParticipantsAndProviders_providerOverlap(ctx, field, obj) - case "providerOverlapHierarchy": - out.Values[i] = ec._PlanParticipantsAndProviders_providerOverlapHierarchy(ctx, field, obj) - case "providerOverlapNote": - out.Values[i] = ec._PlanParticipantsAndProviders_providerOverlapNote(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PlanParticipantsAndProviders_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanParticipantsAndProviders_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanParticipantsAndProviders_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanParticipantsAndProviders_modifiedDts(ctx, field, obj) - case "readyForReviewBy": - out.Values[i] = ec._PlanParticipantsAndProviders_readyForReviewBy(ctx, field, obj) - case "readyForReviewByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForReviewDts": - out.Values[i] = ec._PlanParticipantsAndProviders_readyForReviewDts(ctx, field, obj) - case "readyForClearanceBy": - out.Values[i] = ec._PlanParticipantsAndProviders_readyForClearanceBy(ctx, field, obj) - case "readyForClearanceByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForClearanceDts": - out.Values[i] = ec._PlanParticipantsAndProviders_readyForClearanceDts(ctx, field, obj) - case "status": - out.Values[i] = ec._PlanParticipantsAndProviders_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planParticipantsAndProvidersTranslationImplementors = []string{"PlanParticipantsAndProvidersTranslation"} - -func (ec *executionContext) _PlanParticipantsAndProvidersTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanParticipantsAndProvidersTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planParticipantsAndProvidersTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanParticipantsAndProvidersTranslation") - case "participants": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participants(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "medicareProviderType": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_medicareProviderType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isNewTypeOfProvidersOrSuppliers": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_isNewTypeOfProvidersOrSuppliers(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "statesEngagement": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_statesEngagement(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantsOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantsNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantsCurrentlyInModels": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModels(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantsCurrentlyInModelsNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModelsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "modelApplicationLevel": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_modelApplicationLevel(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "expectedNumberOfParticipants": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_expectedNumberOfParticipants(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "estimateConfidence": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_estimateConfidence(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "confidenceNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_confidenceNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "recruitmentMethod": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_recruitmentMethod(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "recruitmentOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_recruitmentOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "recruitmentNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_recruitmentNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "selectionMethod": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_selectionMethod(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "selectionOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_selectionOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "selectionNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_selectionNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantAddedFrequency": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantAddedFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantAddedFrequencyContinually": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantAddedFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantAddedFrequencyOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantAddedFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantAddedFrequencyNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantAddedFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantRemovedFrequency": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRemovedFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantRemovedFrequencyContinually": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantRemovedFrequencyOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantRemovedFrequencyNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "communicationMethod": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_communicationMethod(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "communicationMethodOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_communicationMethodOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "communicationNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_communicationNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "riskType": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_riskType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "riskOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_riskOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "riskNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_riskNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "willRiskChange": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_willRiskChange(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "willRiskChangeNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_willRiskChangeNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantRequireFinancialGuarantee": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuarantee(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantRequireFinancialGuaranteeType": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantRequireFinancialGuaranteeOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantRequireFinancialGuaranteeNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "coordinateWork": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_coordinateWork(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "coordinateWorkNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_coordinateWorkNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "gainsharePayments": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePayments(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "gainsharePaymentsTrack": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePaymentsTrack(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "gainsharePaymentsNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePaymentsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "gainsharePaymentsEligibility": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibility(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "gainsharePaymentsEligibilityOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibilityOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantsIds": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsIds(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantsIdsOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsIdsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "participantsIDSNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsIDSNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerAdditionFrequency": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAdditionFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerAdditionFrequencyContinually": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerAdditionFrequencyOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerAdditionFrequencyNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerAddMethod": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAddMethod(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerAddMethodOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAddMethodOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerAddMethodNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAddMethodNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerLeaveMethod": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerLeaveMethod(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerLeaveMethodOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerLeaveMethodOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerLeaveMethodNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerLeaveMethodNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerRemovalFrequency": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerRemovalFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerRemovalFrequencyContinually": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerRemovalFrequencyOther": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerRemovalFrequencyNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerOverlap": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerOverlap(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerOverlapHierarchy": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerOverlapHierarchy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providerOverlapNote": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerOverlapNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewBy": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_readyForReviewBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewDts": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_readyForReviewDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceBy": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_readyForClearanceBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceDts": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_readyForClearanceDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planPaymentsImplementors = []string{"PlanPayments"} - -func (ec *executionContext) _PlanPayments(ctx context.Context, sel ast.SelectionSet, obj *models.PlanPayments) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planPaymentsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanPayments") - case "id": - out.Values[i] = ec._PlanPayments_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanPayments_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fundingSource": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_fundingSource(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "fundingSourcePatientProtectionInfo": - out.Values[i] = ec._PlanPayments_fundingSourcePatientProtectionInfo(ctx, field, obj) - case "fundingSourceMedicareAInfo": - out.Values[i] = ec._PlanPayments_fundingSourceMedicareAInfo(ctx, field, obj) - case "fundingSourceMedicareBInfo": - out.Values[i] = ec._PlanPayments_fundingSourceMedicareBInfo(ctx, field, obj) - case "fundingSourceOther": - out.Values[i] = ec._PlanPayments_fundingSourceOther(ctx, field, obj) - case "fundingSourceNote": - out.Values[i] = ec._PlanPayments_fundingSourceNote(ctx, field, obj) - case "fundingSourceR": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_fundingSourceR(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "fundingSourceRPatientProtectionInfo": - out.Values[i] = ec._PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field, obj) - case "fundingSourceRMedicareAInfo": - out.Values[i] = ec._PlanPayments_fundingSourceRMedicareAInfo(ctx, field, obj) - case "fundingSourceRMedicareBInfo": - out.Values[i] = ec._PlanPayments_fundingSourceRMedicareBInfo(ctx, field, obj) - case "fundingSourceROther": - out.Values[i] = ec._PlanPayments_fundingSourceROther(ctx, field, obj) - case "fundingSourceRNote": - out.Values[i] = ec._PlanPayments_fundingSourceRNote(ctx, field, obj) - case "payRecipients": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_payRecipients(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "payRecipientsOtherSpecification": - out.Values[i] = ec._PlanPayments_payRecipientsOtherSpecification(ctx, field, obj) - case "payRecipientsNote": - out.Values[i] = ec._PlanPayments_payRecipientsNote(ctx, field, obj) - case "payType": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_payType(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "payTypeNote": - out.Values[i] = ec._PlanPayments_payTypeNote(ctx, field, obj) - case "payClaims": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_payClaims(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "payClaimsOther": - out.Values[i] = ec._PlanPayments_payClaimsOther(ctx, field, obj) - case "payClaimsNote": - out.Values[i] = ec._PlanPayments_payClaimsNote(ctx, field, obj) - case "shouldAnyProvidersExcludedFFSSystems": - out.Values[i] = ec._PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field, obj) - case "shouldAnyProviderExcludedFFSSystemsNote": - out.Values[i] = ec._PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field, obj) - case "changesMedicarePhysicianFeeSchedule": - out.Values[i] = ec._PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field, obj) - case "changesMedicarePhysicianFeeScheduleNote": - out.Values[i] = ec._PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field, obj) - case "affectsMedicareSecondaryPayerClaims": - out.Values[i] = ec._PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field, obj) - case "affectsMedicareSecondaryPayerClaimsHow": - out.Values[i] = ec._PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field, obj) - case "affectsMedicareSecondaryPayerClaimsNote": - out.Values[i] = ec._PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field, obj) - case "payModelDifferentiation": - out.Values[i] = ec._PlanPayments_payModelDifferentiation(ctx, field, obj) - case "willBePaymentAdjustments": - out.Values[i] = ec._PlanPayments_willBePaymentAdjustments(ctx, field, obj) - case "willBePaymentAdjustmentsNote": - out.Values[i] = ec._PlanPayments_willBePaymentAdjustmentsNote(ctx, field, obj) - case "creatingDependenciesBetweenServices": - out.Values[i] = ec._PlanPayments_creatingDependenciesBetweenServices(ctx, field, obj) - case "creatingDependenciesBetweenServicesNote": - out.Values[i] = ec._PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field, obj) - case "needsClaimsDataCollection": - out.Values[i] = ec._PlanPayments_needsClaimsDataCollection(ctx, field, obj) - case "needsClaimsDataCollectionNote": - out.Values[i] = ec._PlanPayments_needsClaimsDataCollectionNote(ctx, field, obj) - case "providingThirdPartyFile": - out.Values[i] = ec._PlanPayments_providingThirdPartyFile(ctx, field, obj) - case "isContractorAwareTestDataRequirements": - out.Values[i] = ec._PlanPayments_isContractorAwareTestDataRequirements(ctx, field, obj) - case "beneficiaryCostSharingLevelAndHandling": - out.Values[i] = ec._PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field, obj) - case "waiveBeneficiaryCostSharingForAnyServices": - out.Values[i] = ec._PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field, obj) - case "waiveBeneficiaryCostSharingServiceSpecification": - out.Values[i] = ec._PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field, obj) - case "waiverOnlyAppliesPartOfPayment": - out.Values[i] = ec._PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field, obj) - case "waiveBeneficiaryCostSharingNote": - out.Values[i] = ec._PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field, obj) - case "nonClaimsPayments": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_nonClaimsPayments(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "nonClaimsPaymentOther": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_nonClaimsPaymentOther(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "nonClaimsPaymentsNote": - out.Values[i] = ec._PlanPayments_nonClaimsPaymentsNote(ctx, field, obj) - case "paymentCalculationOwner": - out.Values[i] = ec._PlanPayments_paymentCalculationOwner(ctx, field, obj) - case "numberPaymentsPerPayCycle": - out.Values[i] = ec._PlanPayments_numberPaymentsPerPayCycle(ctx, field, obj) - case "numberPaymentsPerPayCycleNote": - out.Values[i] = ec._PlanPayments_numberPaymentsPerPayCycleNote(ctx, field, obj) - case "sharedSystemsInvolvedAdditionalClaimPayment": - out.Values[i] = ec._PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field, obj) - case "sharedSystemsInvolvedAdditionalClaimPaymentNote": - out.Values[i] = ec._PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field, obj) - case "planningToUseInnovationPaymentContractor": - out.Values[i] = ec._PlanPayments_planningToUseInnovationPaymentContractor(ctx, field, obj) - case "planningToUseInnovationPaymentContractorNote": - out.Values[i] = ec._PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field, obj) - case "expectedCalculationComplexityLevel": - out.Values[i] = ec._PlanPayments_expectedCalculationComplexityLevel(ctx, field, obj) - case "expectedCalculationComplexityLevelNote": - out.Values[i] = ec._PlanPayments_expectedCalculationComplexityLevelNote(ctx, field, obj) - case "claimsProcessingPrecedence": - out.Values[i] = ec._PlanPayments_claimsProcessingPrecedence(ctx, field, obj) - case "claimsProcessingPrecedenceOther": - out.Values[i] = ec._PlanPayments_claimsProcessingPrecedenceOther(ctx, field, obj) - case "claimsProcessingPrecedenceNote": - out.Values[i] = ec._PlanPayments_claimsProcessingPrecedenceNote(ctx, field, obj) - case "canParticipantsSelectBetweenPaymentMechanisms": - out.Values[i] = ec._PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field, obj) - case "canParticipantsSelectBetweenPaymentMechanismsHow": - out.Values[i] = ec._PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field, obj) - case "canParticipantsSelectBetweenPaymentMechanismsNote": - out.Values[i] = ec._PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field, obj) - case "anticipatedPaymentFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_anticipatedPaymentFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "anticipatedPaymentFrequencyContinually": - out.Values[i] = ec._PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field, obj) - case "anticipatedPaymentFrequencyOther": - out.Values[i] = ec._PlanPayments_anticipatedPaymentFrequencyOther(ctx, field, obj) - case "anticipatedPaymentFrequencyNote": - out.Values[i] = ec._PlanPayments_anticipatedPaymentFrequencyNote(ctx, field, obj) - case "willRecoverPayments": - out.Values[i] = ec._PlanPayments_willRecoverPayments(ctx, field, obj) - case "willRecoverPaymentsNote": - out.Values[i] = ec._PlanPayments_willRecoverPaymentsNote(ctx, field, obj) - case "anticipateReconcilingPaymentsRetrospectively": - out.Values[i] = ec._PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field, obj) - case "anticipateReconcilingPaymentsRetrospectivelyNote": - out.Values[i] = ec._PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field, obj) - case "paymentReconciliationFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_paymentReconciliationFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "paymentReconciliationFrequencyContinually": - out.Values[i] = ec._PlanPayments_paymentReconciliationFrequencyContinually(ctx, field, obj) - case "paymentReconciliationFrequencyOther": - out.Values[i] = ec._PlanPayments_paymentReconciliationFrequencyOther(ctx, field, obj) - case "paymentReconciliationFrequencyNote": - out.Values[i] = ec._PlanPayments_paymentReconciliationFrequencyNote(ctx, field, obj) - case "paymentDemandRecoupmentFrequency": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_paymentDemandRecoupmentFrequency(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "paymentDemandRecoupmentFrequencyContinually": - out.Values[i] = ec._PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field, obj) - case "paymentDemandRecoupmentFrequencyOther": - out.Values[i] = ec._PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field, obj) - case "paymentDemandRecoupmentFrequencyNote": - out.Values[i] = ec._PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field, obj) - case "paymentStartDate": - out.Values[i] = ec._PlanPayments_paymentStartDate(ctx, field, obj) - case "paymentStartDateNote": - out.Values[i] = ec._PlanPayments_paymentStartDateNote(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PlanPayments_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanPayments_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanPayments_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanPayments_modifiedDts(ctx, field, obj) - case "readyForReviewBy": - out.Values[i] = ec._PlanPayments_readyForReviewBy(ctx, field, obj) - case "readyForReviewByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_readyForReviewByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForReviewDts": - out.Values[i] = ec._PlanPayments_readyForReviewDts(ctx, field, obj) - case "readyForClearanceBy": - out.Values[i] = ec._PlanPayments_readyForClearanceBy(ctx, field, obj) - case "readyForClearanceByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanPayments_readyForClearanceByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "readyForClearanceDts": - out.Values[i] = ec._PlanPayments_readyForClearanceDts(ctx, field, obj) - case "status": - out.Values[i] = ec._PlanPayments_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planPaymentsTranslationImplementors = []string{"PlanPaymentsTranslation"} - -func (ec *executionContext) _PlanPaymentsTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanPaymentsTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planPaymentsTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanPaymentsTranslation") - case "fundingSource": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSource(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourcePatientProtectionInfo": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourcePatientProtectionInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceMedicareAInfo": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceMedicareAInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceMedicareBInfo": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceMedicareBInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceOther": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceNote": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceR": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceR(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceRPatientProtectionInfo": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceRPatientProtectionInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceRMedicareAInfo": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceRMedicareAInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceRMedicareBInfo": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceRMedicareBInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceROther": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceROther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fundingSourceRNote": - out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceRNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "payRecipients": - out.Values[i] = ec._PlanPaymentsTranslation_payRecipients(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "payRecipientsOtherSpecification": - out.Values[i] = ec._PlanPaymentsTranslation_payRecipientsOtherSpecification(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "payRecipientsNote": - out.Values[i] = ec._PlanPaymentsTranslation_payRecipientsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "payType": - out.Values[i] = ec._PlanPaymentsTranslation_payType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "payTypeNote": - out.Values[i] = ec._PlanPaymentsTranslation_payTypeNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "payClaims": - out.Values[i] = ec._PlanPaymentsTranslation_payClaims(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "payClaimsOther": - out.Values[i] = ec._PlanPaymentsTranslation_payClaimsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "payClaimsNote": - out.Values[i] = ec._PlanPaymentsTranslation_payClaimsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "shouldAnyProvidersExcludedFFSSystems": - out.Values[i] = ec._PlanPaymentsTranslation_shouldAnyProvidersExcludedFFSSystems(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "shouldAnyProviderExcludedFFSSystemsNote": - out.Values[i] = ec._PlanPaymentsTranslation_shouldAnyProviderExcludedFFSSystemsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "changesMedicarePhysicianFeeSchedule": - out.Values[i] = ec._PlanPaymentsTranslation_changesMedicarePhysicianFeeSchedule(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "changesMedicarePhysicianFeeScheduleNote": - out.Values[i] = ec._PlanPaymentsTranslation_changesMedicarePhysicianFeeScheduleNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "affectsMedicareSecondaryPayerClaims": - out.Values[i] = ec._PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaims(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "affectsMedicareSecondaryPayerClaimsHow": - out.Values[i] = ec._PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsHow(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "affectsMedicareSecondaryPayerClaimsNote": - out.Values[i] = ec._PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "payModelDifferentiation": - out.Values[i] = ec._PlanPaymentsTranslation_payModelDifferentiation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "willBePaymentAdjustments": - out.Values[i] = ec._PlanPaymentsTranslation_willBePaymentAdjustments(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "willBePaymentAdjustmentsNote": - out.Values[i] = ec._PlanPaymentsTranslation_willBePaymentAdjustmentsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "creatingDependenciesBetweenServices": - out.Values[i] = ec._PlanPaymentsTranslation_creatingDependenciesBetweenServices(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "creatingDependenciesBetweenServicesNote": - out.Values[i] = ec._PlanPaymentsTranslation_creatingDependenciesBetweenServicesNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needsClaimsDataCollection": - out.Values[i] = ec._PlanPaymentsTranslation_needsClaimsDataCollection(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needsClaimsDataCollectionNote": - out.Values[i] = ec._PlanPaymentsTranslation_needsClaimsDataCollectionNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providingThirdPartyFile": - out.Values[i] = ec._PlanPaymentsTranslation_providingThirdPartyFile(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isContractorAwareTestDataRequirements": - out.Values[i] = ec._PlanPaymentsTranslation_isContractorAwareTestDataRequirements(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "beneficiaryCostSharingLevelAndHandling": - out.Values[i] = ec._PlanPaymentsTranslation_beneficiaryCostSharingLevelAndHandling(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "waiveBeneficiaryCostSharingForAnyServices": - out.Values[i] = ec._PlanPaymentsTranslation_waiveBeneficiaryCostSharingForAnyServices(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "waiveBeneficiaryCostSharingServiceSpecification": - out.Values[i] = ec._PlanPaymentsTranslation_waiveBeneficiaryCostSharingServiceSpecification(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "waiverOnlyAppliesPartOfPayment": - out.Values[i] = ec._PlanPaymentsTranslation_waiverOnlyAppliesPartOfPayment(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "waiveBeneficiaryCostSharingNote": - out.Values[i] = ec._PlanPaymentsTranslation_waiveBeneficiaryCostSharingNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "nonClaimsPayments": - out.Values[i] = ec._PlanPaymentsTranslation_nonClaimsPayments(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "nonClaimsPaymentOther": - out.Values[i] = ec._PlanPaymentsTranslation_nonClaimsPaymentOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "nonClaimsPaymentsNote": - out.Values[i] = ec._PlanPaymentsTranslation_nonClaimsPaymentsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentCalculationOwner": - out.Values[i] = ec._PlanPaymentsTranslation_paymentCalculationOwner(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "numberPaymentsPerPayCycle": - out.Values[i] = ec._PlanPaymentsTranslation_numberPaymentsPerPayCycle(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "numberPaymentsPerPayCycleNote": - out.Values[i] = ec._PlanPaymentsTranslation_numberPaymentsPerPayCycleNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "sharedSystemsInvolvedAdditionalClaimPayment": - out.Values[i] = ec._PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "sharedSystemsInvolvedAdditionalClaimPaymentNote": - out.Values[i] = ec._PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "planningToUseInnovationPaymentContractor": - out.Values[i] = ec._PlanPaymentsTranslation_planningToUseInnovationPaymentContractor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "planningToUseInnovationPaymentContractorNote": - out.Values[i] = ec._PlanPaymentsTranslation_planningToUseInnovationPaymentContractorNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "expectedCalculationComplexityLevel": - out.Values[i] = ec._PlanPaymentsTranslation_expectedCalculationComplexityLevel(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "expectedCalculationComplexityLevelNote": - out.Values[i] = ec._PlanPaymentsTranslation_expectedCalculationComplexityLevelNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "claimsProcessingPrecedence": - out.Values[i] = ec._PlanPaymentsTranslation_claimsProcessingPrecedence(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "claimsProcessingPrecedenceOther": - out.Values[i] = ec._PlanPaymentsTranslation_claimsProcessingPrecedenceOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "claimsProcessingPrecedenceNote": - out.Values[i] = ec._PlanPaymentsTranslation_claimsProcessingPrecedenceNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "canParticipantsSelectBetweenPaymentMechanisms": - out.Values[i] = ec._PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanisms(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "canParticipantsSelectBetweenPaymentMechanismsHow": - out.Values[i] = ec._PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "canParticipantsSelectBetweenPaymentMechanismsNote": - out.Values[i] = ec._PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "anticipatedPaymentFrequency": - out.Values[i] = ec._PlanPaymentsTranslation_anticipatedPaymentFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "anticipatedPaymentFrequencyContinually": - out.Values[i] = ec._PlanPaymentsTranslation_anticipatedPaymentFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "anticipatedPaymentFrequencyOther": - out.Values[i] = ec._PlanPaymentsTranslation_anticipatedPaymentFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "anticipatedPaymentFrequencyNote": - out.Values[i] = ec._PlanPaymentsTranslation_anticipatedPaymentFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "willRecoverPayments": - out.Values[i] = ec._PlanPaymentsTranslation_willRecoverPayments(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "willRecoverPaymentsNote": - out.Values[i] = ec._PlanPaymentsTranslation_willRecoverPaymentsNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "anticipateReconcilingPaymentsRetrospectively": - out.Values[i] = ec._PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectively(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "anticipateReconcilingPaymentsRetrospectivelyNote": - out.Values[i] = ec._PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentReconciliationFrequency": - out.Values[i] = ec._PlanPaymentsTranslation_paymentReconciliationFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentReconciliationFrequencyContinually": - out.Values[i] = ec._PlanPaymentsTranslation_paymentReconciliationFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentReconciliationFrequencyOther": - out.Values[i] = ec._PlanPaymentsTranslation_paymentReconciliationFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentReconciliationFrequencyNote": - out.Values[i] = ec._PlanPaymentsTranslation_paymentReconciliationFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentDemandRecoupmentFrequency": - out.Values[i] = ec._PlanPaymentsTranslation_paymentDemandRecoupmentFrequency(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentDemandRecoupmentFrequencyContinually": - out.Values[i] = ec._PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyContinually(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentDemandRecoupmentFrequencyOther": - out.Values[i] = ec._PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentDemandRecoupmentFrequencyNote": - out.Values[i] = ec._PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentStartDate": - out.Values[i] = ec._PlanPaymentsTranslation_paymentStartDate(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "paymentStartDateNote": - out.Values[i] = ec._PlanPaymentsTranslation_paymentStartDateNote(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewBy": - out.Values[i] = ec._PlanPaymentsTranslation_readyForReviewBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForReviewDts": - out.Values[i] = ec._PlanPaymentsTranslation_readyForReviewDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceBy": - out.Values[i] = ec._PlanPaymentsTranslation_readyForClearanceBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readyForClearanceDts": - out.Values[i] = ec._PlanPaymentsTranslation_readyForClearanceDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._PlanPaymentsTranslation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planTDLImplementors = []string{"PlanTDL"} - -func (ec *executionContext) _PlanTDL(ctx context.Context, sel ast.SelectionSet, obj *models.PlanTDL) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planTDLImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanTDL") - case "id": - out.Values[i] = ec._PlanTDL_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._PlanTDL_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "idNumber": - out.Values[i] = ec._PlanTDL_idNumber(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dateInitiated": - out.Values[i] = ec._PlanTDL_dateInitiated(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "title": - out.Values[i] = ec._PlanTDL_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "note": - out.Values[i] = ec._PlanTDL_note(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PlanTDL_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanTDL_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PlanTDL_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PlanTDL_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PlanTDL_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PlanTDL_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var planTDLTranslationImplementors = []string{"PlanTDLTranslation"} - -func (ec *executionContext) _PlanTDLTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanTDLTranslation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, planTDLTranslationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PlanTDLTranslation") - case "idNumber": - out.Values[i] = ec._PlanTDLTranslation_idNumber(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "title": - out.Values[i] = ec._PlanTDLTranslation_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dateInitiated": - out.Values[i] = ec._PlanTDLTranslation_dateInitiated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "note": - out.Values[i] = ec._PlanTDLTranslation_note(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var possibleOperationalNeedImplementors = []string{"PossibleOperationalNeed"} - -func (ec *executionContext) _PossibleOperationalNeed(ctx context.Context, sel ast.SelectionSet, obj *models.PossibleOperationalNeed) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, possibleOperationalNeedImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PossibleOperationalNeed") - case "id": - out.Values[i] = ec._PossibleOperationalNeed_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "possibleSolutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PossibleOperationalNeed_possibleSolutions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "name": - out.Values[i] = ec._PossibleOperationalNeed_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "key": - out.Values[i] = ec._PossibleOperationalNeed_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "section": - out.Values[i] = ec._PossibleOperationalNeed_section(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PossibleOperationalNeed_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PossibleOperationalNeed_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PossibleOperationalNeed_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PossibleOperationalNeed_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PossibleOperationalNeed_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PossibleOperationalNeed_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var possibleOperationalSolutionImplementors = []string{"PossibleOperationalSolution", "TaggedEntity"} - -func (ec *executionContext) _PossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, obj *models.PossibleOperationalSolution) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, possibleOperationalSolutionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PossibleOperationalSolution") - case "id": - out.Values[i] = ec._PossibleOperationalSolution_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._PossibleOperationalSolution_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "key": - out.Values[i] = ec._PossibleOperationalSolution_key(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "treatAsOther": - out.Values[i] = ec._PossibleOperationalSolution_treatAsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pointsOfContact": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PossibleOperationalSolution_pointsOfContact(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "primaryContact": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PossibleOperationalSolution_primaryContact(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "filterView": - out.Values[i] = ec._PossibleOperationalSolution_filterView(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._PossibleOperationalSolution_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PossibleOperationalSolution_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PossibleOperationalSolution_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PossibleOperationalSolution_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PossibleOperationalSolution_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PossibleOperationalSolution_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var possibleOperationalSolutionContactImplementors = []string{"PossibleOperationalSolutionContact"} - -func (ec *executionContext) _PossibleOperationalSolutionContact(ctx context.Context, sel ast.SelectionSet, obj *models.PossibleOperationalSolutionContact) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, possibleOperationalSolutionContactImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PossibleOperationalSolutionContact") - case "id": - out.Values[i] = ec._PossibleOperationalSolutionContact_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "possibleOperationalSolutionID": - out.Values[i] = ec._PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._PossibleOperationalSolutionContact_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "email": - out.Values[i] = ec._PossibleOperationalSolutionContact_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isTeam": - out.Values[i] = ec._PossibleOperationalSolutionContact_isTeam(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "role": - out.Values[i] = ec._PossibleOperationalSolutionContact_role(ctx, field, obj) - case "isPrimary": - out.Values[i] = ec._PossibleOperationalSolutionContact_isPrimary(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._PossibleOperationalSolutionContact_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PossibleOperationalSolutionContact_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._PossibleOperationalSolutionContact_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._PossibleOperationalSolutionContact_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PossibleOperationalSolutionContact_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._PossibleOperationalSolutionContact_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var prepareForClearanceImplementors = []string{"PrepareForClearance"} - -func (ec *executionContext) _PrepareForClearance(ctx context.Context, sel ast.SelectionSet, obj *model.PrepareForClearance) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, prepareForClearanceImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PrepareForClearance") - case "status": - out.Values[i] = ec._PrepareForClearance_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "latestClearanceDts": - out.Values[i] = ec._PrepareForClearance_latestClearanceDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var queryImplementors = []string{"Query"} - -func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) - ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ - Object: "Query", - }) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ - Object: field.Name, - Field: field, - }) - - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Query") - case "analyzedAudits": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_analyzedAudits(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "auditChanges": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_auditChanges(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "currentUser": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_currentUser(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "mostRecentDiscussionRoleSelection": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_mostRecentDiscussionRoleSelection(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "existingModelCollection": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_existingModelCollection(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "existingModelLink": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_existingModelLink(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "lockableSectionLocks": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_lockableSectionLocks(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_modelPlan(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "modelPlanCollection": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_modelPlanCollection(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "modelPlansByOperationalSolutionKey": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_modelPlansByOperationalSolutionKey(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "ndaInfo": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ndaInfo(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "operationalNeed": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_operationalNeed(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "operationalSolutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_operationalSolutions(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "operationalSolution": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_operationalSolution(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "planCollaboratorByID": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_planCollaboratorByID(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "planCR": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_planCR(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "planDocument": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_planDocument(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "planPayments": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_planPayments(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "planTDL": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_planTDL(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "possibleOperationalNeeds": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_possibleOperationalNeeds(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "possibleOperationalSolutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_possibleOperationalSolutions(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "translatedAuditCollection": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_translatedAuditCollection(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "userAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_userAccount(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "searchOktaUsers": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_searchOktaUsers(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "userViewCustomization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_userViewCustomization(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "__type": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query___type(ctx, field) - }) - case "__schema": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query___schema(ctx, field) - }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var recentModificationImplementors = []string{"RecentModification"} - -func (ec *executionContext) _RecentModification(ctx context.Context, sel ast.SelectionSet, obj *models.RecentModification) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, recentModificationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("RecentModification") - case "modifiedBy": - out.Values[i] = ec._RecentModification_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._RecentModification_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._RecentModification_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var subscriptionImplementors = []string{"Subscription"} - -func (ec *executionContext) _Subscription(ctx context.Context, sel ast.SelectionSet) func(ctx context.Context) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionImplementors) - ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ - Object: "Subscription", - }) - if len(fields) != 1 { - ec.Errorf(ctx, "must subscribe to exactly one stream") - return nil - } - - switch fields[0].Name { - case "onLockableSectionLocksChanged": - return ec._Subscription_onLockableSectionLocksChanged(ctx, fields[0]) - case "onLockLockableSectionContext": - return ec._Subscription_onLockLockableSectionContext(ctx, fields[0]) - default: - panic("unknown field " + strconv.Quote(fields[0].Name)) - } -} - -var tagImplementors = []string{"Tag"} - -func (ec *executionContext) _Tag(ctx context.Context, sel ast.SelectionSet, obj *models.Tag) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tagImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Tag") - case "id": - out.Values[i] = ec._Tag_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tagType": - out.Values[i] = ec._Tag_tagType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "taggedField": - out.Values[i] = ec._Tag_taggedField(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "taggedContentTable": - out.Values[i] = ec._Tag_taggedContentTable(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "taggedContentID": - out.Values[i] = ec._Tag_taggedContentID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "entityUUID": - out.Values[i] = ec._Tag_entityUUID(ctx, field, obj) - case "entityIntID": - out.Values[i] = ec._Tag_entityIntID(ctx, field, obj) - case "entity": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Tag_entity(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._Tag_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Tag_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._Tag_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._Tag_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Tag_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._Tag_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var taggedContentImplementors = []string{"TaggedContent"} - -func (ec *executionContext) _TaggedContent(ctx context.Context, sel ast.SelectionSet, obj *models.TaggedContent) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taggedContentImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TaggedContent") - case "rawContent": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TaggedContent_rawContent(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tags": - out.Values[i] = ec._TaggedContent_tags(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var taggedInDiscussionReplyActivityMetaImplementors = []string{"TaggedInDiscussionReplyActivityMeta", "ActivityMetaData"} - -func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.TaggedInDiscussionReplyActivityMeta) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taggedInDiscussionReplyActivityMetaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TaggedInDiscussionReplyActivityMeta") - case "version": - out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TaggedInDiscussionReplyActivityMeta_modelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "discussionID": - out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_discussionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "discussion": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TaggedInDiscussionReplyActivityMeta_discussion(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "replyID": - out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_replyID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "reply": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TaggedInDiscussionReplyActivityMeta_reply(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "content": - out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_content(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var taggedInPlanDiscussionActivityMetaImplementors = []string{"TaggedInPlanDiscussionActivityMeta", "ActivityMetaData"} - -func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.TaggedInPlanDiscussionActivityMeta) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taggedInPlanDiscussionActivityMetaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TaggedInPlanDiscussionActivityMeta") - case "version": - out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TaggedInPlanDiscussionActivityMeta_modelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "discussionID": - out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_discussionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "discussion": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TaggedInPlanDiscussionActivityMeta_discussion(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "content": - out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_content(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translatedAuditImplementors = []string{"TranslatedAudit"} - -func (ec *executionContext) _TranslatedAudit(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAudit) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslatedAudit") - case "id": - out.Values[i] = ec._TranslatedAudit_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modelPlanID": - out.Values[i] = ec._TranslatedAudit_modelPlanID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tableID": - out.Values[i] = ec._TranslatedAudit_tableID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tableName": - out.Values[i] = ec._TranslatedAudit_tableName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "primaryKey": - out.Values[i] = ec._TranslatedAudit_primaryKey(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "date": - out.Values[i] = ec._TranslatedAudit_date(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "action": - out.Values[i] = ec._TranslatedAudit_action(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "restricted": - out.Values[i] = ec._TranslatedAudit_restricted(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "actorID": - out.Values[i] = ec._TranslatedAudit_actorID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "actorName": - out.Values[i] = ec._TranslatedAudit_actorName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "changeID": - out.Values[i] = ec._TranslatedAudit_changeID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "metaDataType": - out.Values[i] = ec._TranslatedAudit_metaDataType(ctx, field, obj) - case "metaData": - out.Values[i] = ec._TranslatedAudit_metaData(ctx, field, obj) - case "translatedFields": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TranslatedAudit_translatedFields(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._TranslatedAudit_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TranslatedAudit_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._TranslatedAudit_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._TranslatedAudit_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TranslatedAudit_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._TranslatedAudit_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translatedAuditFieldImplementors = []string{"TranslatedAuditField"} - -func (ec *executionContext) _TranslatedAuditField(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditField) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditFieldImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslatedAuditField") - case "id": - out.Values[i] = ec._TranslatedAuditField_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "translatedAuditID": - out.Values[i] = ec._TranslatedAuditField_translatedAuditID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "changeType": - out.Values[i] = ec._TranslatedAuditField_changeType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dataType": - out.Values[i] = ec._TranslatedAuditField_dataType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "formType": - out.Values[i] = ec._TranslatedAuditField_formType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fieldName": - out.Values[i] = ec._TranslatedAuditField_fieldName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fieldNameTranslated": - out.Values[i] = ec._TranslatedAuditField_fieldNameTranslated(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fieldOrder": - out.Values[i] = ec._TranslatedAuditField_fieldOrder(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "referenceLabel": - out.Values[i] = ec._TranslatedAuditField_referenceLabel(ctx, field, obj) - case "questionType": - out.Values[i] = ec._TranslatedAuditField_questionType(ctx, field, obj) - case "notApplicableQuestions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TranslatedAuditField_notApplicableQuestions(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "old": - out.Values[i] = ec._TranslatedAuditField_old(ctx, field, obj) - case "oldTranslated": - out.Values[i] = ec._TranslatedAuditField_oldTranslated(ctx, field, obj) - case "new": - out.Values[i] = ec._TranslatedAuditField_new(ctx, field, obj) - case "newTranslated": - out.Values[i] = ec._TranslatedAuditField_newTranslated(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._TranslatedAuditField_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TranslatedAuditField_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._TranslatedAuditField_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._TranslatedAuditField_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TranslatedAuditField_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._TranslatedAuditField_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translatedAuditMetaBaseStructImplementors = []string{"TranslatedAuditMetaBaseStruct", "TranslatedAuditMetaData"} - -func (ec *executionContext) _TranslatedAuditMetaBaseStruct(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaBaseStruct) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaBaseStructImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslatedAuditMetaBaseStruct") - case "version": - out.Values[i] = ec._TranslatedAuditMetaBaseStruct_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "tableName": - out.Values[i] = ec._TranslatedAuditMetaBaseStruct_tableName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translatedAuditMetaDiscussionReplyImplementors = []string{"TranslatedAuditMetaDiscussionReply", "TranslatedAuditMetaData"} - -func (ec *executionContext) _TranslatedAuditMetaDiscussionReply(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaDiscussionReply) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaDiscussionReplyImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslatedAuditMetaDiscussionReply") - case "version": - out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "tableName": - out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_tableName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "discussionID": - out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_discussionID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "discussionContent": - out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_discussionContent(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "numberOfReplies": - out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_numberOfReplies(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translatedAuditMetaDocumentSolutionLinkImplementors = []string{"TranslatedAuditMetaDocumentSolutionLink", "TranslatedAuditMetaData"} - -func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaDocumentSolutionLink) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaDocumentSolutionLinkImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslatedAuditMetaDocumentSolutionLink") - case "version": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "tableName": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_tableName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "solutionName": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_solutionName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "solutionOtherHeader": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_solutionOtherHeader(ctx, field, obj) - case "solutionIsOther": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_solutionIsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needName": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_needName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needIsOther": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_needIsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "documentName": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentName(ctx, field, obj) - case "documentType": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentType(ctx, field, obj) - case "documentOtherType": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentOtherType(ctx, field, obj) - case "documentNote": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentNote(ctx, field, obj) - case "documentURL": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentURL(ctx, field, obj) - case "documentVisibility": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentVisibility(ctx, field, obj) - case "documentRestricted": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentRestricted(ctx, field, obj) - case "documentID": - out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translatedAuditMetaGenericImplementors = []string{"TranslatedAuditMetaGeneric", "TranslatedAuditMetaData"} - -func (ec *executionContext) _TranslatedAuditMetaGeneric(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaGeneric) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaGenericImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslatedAuditMetaGeneric") - case "version": - out.Values[i] = ec._TranslatedAuditMetaGeneric_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "tableName": - out.Values[i] = ec._TranslatedAuditMetaGeneric_tableName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "relation": - out.Values[i] = ec._TranslatedAuditMetaGeneric_relation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "relationContent": - out.Values[i] = ec._TranslatedAuditMetaGeneric_relationContent(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translatedAuditMetaOperationalNeedImplementors = []string{"TranslatedAuditMetaOperationalNeed", "TranslatedAuditMetaData"} - -func (ec *executionContext) _TranslatedAuditMetaOperationalNeed(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaOperationalNeed) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaOperationalNeedImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslatedAuditMetaOperationalNeed") - case "version": - out.Values[i] = ec._TranslatedAuditMetaOperationalNeed_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "tableName": - out.Values[i] = ec._TranslatedAuditMetaOperationalNeed_tableName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needName": - out.Values[i] = ec._TranslatedAuditMetaOperationalNeed_needName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isOther": - out.Values[i] = ec._TranslatedAuditMetaOperationalNeed_isOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translatedAuditMetaOperationalSolutionImplementors = []string{"TranslatedAuditMetaOperationalSolution", "TranslatedAuditMetaData"} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolution(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaOperationalSolution) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaOperationalSolutionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslatedAuditMetaOperationalSolution") - case "version": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "tableName": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_tableName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "solutionName": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "solutionOtherHeader": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionOtherHeader(ctx, field, obj) - case "solutionIsOther": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionIsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "numberOfSubtasks": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_numberOfSubtasks(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needName": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_needName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needIsOther": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_needIsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "solutionStatus": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionStatus(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "solutionMustStart": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionMustStart(ctx, field, obj) - case "solutionMustFinish": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionMustFinish(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translatedAuditMetaOperationalSolutionSubtaskImplementors = []string{"TranslatedAuditMetaOperationalSolutionSubtask", "TranslatedAuditMetaData"} - -func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaOperationalSolutionSubtaskImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslatedAuditMetaOperationalSolutionSubtask") - case "version": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "tableName": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_tableName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "solutionName": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_solutionName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "solutionOtherHeader": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_solutionOtherHeader(ctx, field, obj) - case "solutionIsOther": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_solutionIsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "numberOfSubtasks": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_numberOfSubtasks(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needName": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_needName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "needIsOther": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_needIsOther(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "subtaskName": - out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_subtaskName(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translationFieldImplementors = []string{"TranslationField"} - -func (ec *executionContext) _TranslationField(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationField) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslationField") - case "gqlField": - out.Values[i] = ec._TranslationField_gqlField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "goField": - out.Values[i] = ec._TranslationField_goField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dbField": - out.Values[i] = ec._TranslationField_dbField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "label": - out.Values[i] = ec._TranslationField_label(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readonlyLabel": - out.Values[i] = ec._TranslationField_readonlyLabel(ctx, field, obj) - case "sublabel": - out.Values[i] = ec._TranslationField_sublabel(ctx, field, obj) - case "multiSelectLabel": - out.Values[i] = ec._TranslationField_multiSelectLabel(ctx, field, obj) - case "isArray": - out.Values[i] = ec._TranslationField_isArray(ctx, field, obj) - case "dataType": - out.Values[i] = ec._TranslationField_dataType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "formType": - out.Values[i] = ec._TranslationField_formType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isNote": - out.Values[i] = ec._TranslationField_isNote(ctx, field, obj) - case "order": - out.Values[i] = ec._TranslationField_order(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isOtherType": - out.Values[i] = ec._TranslationField_isOtherType(ctx, field, obj) - case "otherParentField": - out.Values[i] = ec._TranslationField_otherParentField(ctx, field, obj) - case "parentReferencesLabel": - out.Values[i] = ec._TranslationField_parentReferencesLabel(ctx, field, obj) - case "exportLabel": - out.Values[i] = ec._TranslationField_exportLabel(ctx, field, obj) - case "tableReference": - out.Values[i] = ec._TranslationField_tableReference(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translationFieldWithOptionsImplementors = []string{"TranslationFieldWithOptions"} - -func (ec *executionContext) _TranslationFieldWithOptions(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithOptions) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithOptionsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslationFieldWithOptions") - case "gqlField": - out.Values[i] = ec._TranslationFieldWithOptions_gqlField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "goField": - out.Values[i] = ec._TranslationFieldWithOptions_goField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dbField": - out.Values[i] = ec._TranslationFieldWithOptions_dbField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "label": - out.Values[i] = ec._TranslationFieldWithOptions_label(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readonlyLabel": - out.Values[i] = ec._TranslationFieldWithOptions_readonlyLabel(ctx, field, obj) - case "sublabel": - out.Values[i] = ec._TranslationFieldWithOptions_sublabel(ctx, field, obj) - case "multiSelectLabel": - out.Values[i] = ec._TranslationFieldWithOptions_multiSelectLabel(ctx, field, obj) - case "isArray": - out.Values[i] = ec._TranslationFieldWithOptions_isArray(ctx, field, obj) - case "dataType": - out.Values[i] = ec._TranslationFieldWithOptions_dataType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "formType": - out.Values[i] = ec._TranslationFieldWithOptions_formType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isNote": - out.Values[i] = ec._TranslationFieldWithOptions_isNote(ctx, field, obj) - case "order": - out.Values[i] = ec._TranslationFieldWithOptions_order(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isOtherType": - out.Values[i] = ec._TranslationFieldWithOptions_isOtherType(ctx, field, obj) - case "otherParentField": - out.Values[i] = ec._TranslationFieldWithOptions_otherParentField(ctx, field, obj) - case "parentReferencesLabel": - out.Values[i] = ec._TranslationFieldWithOptions_parentReferencesLabel(ctx, field, obj) - case "exportLabel": - out.Values[i] = ec._TranslationFieldWithOptions_exportLabel(ctx, field, obj) - case "tableReference": - out.Values[i] = ec._TranslationFieldWithOptions_tableReference(ctx, field, obj) - case "options": - out.Values[i] = ec._TranslationFieldWithOptions_options(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportOptions": - out.Values[i] = ec._TranslationFieldWithOptions_exportOptions(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translationFieldWithOptionsAndChildrenImplementors = []string{"TranslationFieldWithOptionsAndChildren"} - -func (ec *executionContext) _TranslationFieldWithOptionsAndChildren(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithOptionsAndChildren) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithOptionsAndChildrenImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslationFieldWithOptionsAndChildren") - case "gqlField": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_gqlField(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "goField": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_goField(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dbField": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_dbField(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "label": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_label(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "readonlyLabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field, obj) - case "sublabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_sublabel(ctx, field, obj) - case "multiSelectLabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field, obj) - case "isArray": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_isArray(ctx, field, obj) - case "dataType": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_dataType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "formType": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_formType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isNote": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_isNote(ctx, field, obj) - case "order": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_order(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isOtherType": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field, obj) - case "otherParentField": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field, obj) - case "parentReferencesLabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field, obj) - case "exportLabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field, obj) - case "tableReference": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_tableReference(ctx, field, obj) - case "options": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_options(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "exportOptions": - out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field, obj) - case "childRelation": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TranslationFieldWithOptionsAndChildren_childRelation(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translationFieldWithOptionsAndParentImplementors = []string{"TranslationFieldWithOptionsAndParent"} - -func (ec *executionContext) _TranslationFieldWithOptionsAndParent(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithOptionsAndParent) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithOptionsAndParentImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslationFieldWithOptionsAndParent") - case "gqlField": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_gqlField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "goField": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_goField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dbField": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_dbField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "label": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_label(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readonlyLabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field, obj) - case "sublabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_sublabel(ctx, field, obj) - case "multiSelectLabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field, obj) - case "isArray": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_isArray(ctx, field, obj) - case "dataType": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_dataType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "formType": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_formType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isNote": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_isNote(ctx, field, obj) - case "order": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_order(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isOtherType": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_isOtherType(ctx, field, obj) - case "otherParentField": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_otherParentField(ctx, field, obj) - case "parentReferencesLabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field, obj) - case "exportLabel": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_exportLabel(ctx, field, obj) - case "tableReference": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_tableReference(ctx, field, obj) - case "options": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_options(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportOptions": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_exportOptions(ctx, field, obj) - case "parentRelation": - out.Values[i] = ec._TranslationFieldWithOptionsAndParent_parentRelation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translationFieldWithParentImplementors = []string{"TranslationFieldWithParent"} - -func (ec *executionContext) _TranslationFieldWithParent(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithParent) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithParentImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslationFieldWithParent") - case "gqlField": - out.Values[i] = ec._TranslationFieldWithParent_gqlField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "goField": - out.Values[i] = ec._TranslationFieldWithParent_goField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "dbField": - out.Values[i] = ec._TranslationFieldWithParent_dbField(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "label": - out.Values[i] = ec._TranslationFieldWithParent_label(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "readonlyLabel": - out.Values[i] = ec._TranslationFieldWithParent_readonlyLabel(ctx, field, obj) - case "sublabel": - out.Values[i] = ec._TranslationFieldWithParent_sublabel(ctx, field, obj) - case "multiSelectLabel": - out.Values[i] = ec._TranslationFieldWithParent_multiSelectLabel(ctx, field, obj) - case "isArray": - out.Values[i] = ec._TranslationFieldWithParent_isArray(ctx, field, obj) - case "dataType": - out.Values[i] = ec._TranslationFieldWithParent_dataType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "formType": - out.Values[i] = ec._TranslationFieldWithParent_formType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isNote": - out.Values[i] = ec._TranslationFieldWithParent_isNote(ctx, field, obj) - case "order": - out.Values[i] = ec._TranslationFieldWithParent_order(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isOtherType": - out.Values[i] = ec._TranslationFieldWithParent_isOtherType(ctx, field, obj) - case "otherParentField": - out.Values[i] = ec._TranslationFieldWithParent_otherParentField(ctx, field, obj) - case "parentReferencesLabel": - out.Values[i] = ec._TranslationFieldWithParent_parentReferencesLabel(ctx, field, obj) - case "exportLabel": - out.Values[i] = ec._TranslationFieldWithParent_exportLabel(ctx, field, obj) - case "tableReference": - out.Values[i] = ec._TranslationFieldWithParent_tableReference(ctx, field, obj) - case "parentRelation": - out.Values[i] = ec._TranslationFieldWithParent_parentRelation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var translationFieldWithParentAndChildrenImplementors = []string{"TranslationFieldWithParentAndChildren"} - -func (ec *executionContext) _TranslationFieldWithParentAndChildren(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithParentAndChildren) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithParentAndChildrenImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TranslationFieldWithParentAndChildren") - case "gqlField": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_gqlField(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "goField": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_goField(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dbField": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_dbField(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "label": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_label(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "readonlyLabel": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_readonlyLabel(ctx, field, obj) - case "sublabel": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_sublabel(ctx, field, obj) - case "multiSelectLabel": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_multiSelectLabel(ctx, field, obj) - case "isArray": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_isArray(ctx, field, obj) - case "dataType": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_dataType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "formType": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_formType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isNote": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_isNote(ctx, field, obj) - case "order": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_order(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isOtherType": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_isOtherType(ctx, field, obj) - case "otherParentField": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_otherParentField(ctx, field, obj) - case "parentReferencesLabel": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx, field, obj) - case "exportLabel": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_exportLabel(ctx, field, obj) - case "tableReference": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_tableReference(ctx, field, obj) - case "options": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_options(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "exportOptions": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_exportOptions(ctx, field, obj) - case "parentRelation": - out.Values[i] = ec._TranslationFieldWithParentAndChildren_parentRelation(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "childRelation": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TranslationFieldWithParentAndChildren_childRelation(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var userAccountImplementors = []string{"UserAccount", "TaggedEntity"} - -func (ec *executionContext) _UserAccount(ctx context.Context, sel ast.SelectionSet, obj *authentication.UserAccount) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userAccountImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserAccount") - case "id": - out.Values[i] = ec._UserAccount_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "username": - out.Values[i] = ec._UserAccount_username(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isEUAID": - out.Values[i] = ec._UserAccount_isEUAID(ctx, field, obj) - case "commonName": - out.Values[i] = ec._UserAccount_commonName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "locale": - out.Values[i] = ec._UserAccount_locale(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "email": - out.Values[i] = ec._UserAccount_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "givenName": - out.Values[i] = ec._UserAccount_givenName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "familyName": - out.Values[i] = ec._UserAccount_familyName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "zoneInfo": - out.Values[i] = ec._UserAccount_zoneInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "hasLoggedIn": - out.Values[i] = ec._UserAccount_hasLoggedIn(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var userInfoImplementors = []string{"UserInfo"} - -func (ec *executionContext) _UserInfo(ctx context.Context, sel ast.SelectionSet, obj *models.UserInfo) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userInfoImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserInfo") - case "firstName": - out.Values[i] = ec._UserInfo_firstName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "lastName": - out.Values[i] = ec._UserInfo_lastName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "displayName": - out.Values[i] = ec._UserInfo_displayName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "email": - out.Values[i] = ec._UserInfo_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "username": - out.Values[i] = ec._UserInfo_username(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var userNotificationImplementors = []string{"UserNotification"} - -func (ec *executionContext) _UserNotification(ctx context.Context, sel ast.SelectionSet, obj *models.UserNotification) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userNotificationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserNotification") - case "id": - out.Values[i] = ec._UserNotification_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "activityID": - out.Values[i] = ec._UserNotification_activityID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userID": - out.Values[i] = ec._UserNotification_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isRead": - out.Values[i] = ec._UserNotification_isRead(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "inAppSent": - out.Values[i] = ec._UserNotification_inAppSent(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "emailSent": - out.Values[i] = ec._UserNotification_emailSent(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "activity": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotification_activity(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._UserNotification_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotification_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._UserNotification_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._UserNotification_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotification_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._UserNotification_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var userNotificationPreferencesImplementors = []string{"UserNotificationPreferences"} - -func (ec *executionContext) _UserNotificationPreferences(ctx context.Context, sel ast.SelectionSet, obj *models.UserNotificationPreferences) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userNotificationPreferencesImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserNotificationPreferences") - case "id": - out.Values[i] = ec._UserNotificationPreferences_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userID": - out.Values[i] = ec._UserNotificationPreferences_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dailyDigestComplete": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_dailyDigestComplete(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "addedAsCollaborator": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_addedAsCollaborator(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "taggedInDiscussion": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_taggedInDiscussion(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "taggedInDiscussionReply": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_taggedInDiscussionReply(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "newDiscussionReply": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_newDiscussionReply(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modelPlanShared": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_modelPlanShared(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "newModelPlan": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_newModelPlan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "datesChanged": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_datesChanged(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "datesChangedNotificationType": - out.Values[i] = ec._UserNotificationPreferences_datesChangedNotificationType(ctx, field, obj) - case "dataExchangeApproachMarkedComplete": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataExchangeApproachMarkedCompleteNotificationType": - out.Values[i] = ec._UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._UserNotificationPreferences_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._UserNotificationPreferences_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._UserNotificationPreferences_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserNotificationPreferences_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._UserNotificationPreferences_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var userNotificationsImplementors = []string{"UserNotifications"} - -func (ec *executionContext) _UserNotifications(ctx context.Context, sel ast.SelectionSet, obj *models.UserNotifications) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userNotificationsImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserNotifications") - case "numUnreadNotifications": - out.Values[i] = ec._UserNotifications_numUnreadNotifications(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "notifications": - out.Values[i] = ec._UserNotifications_notifications(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "unreadNotifications": - out.Values[i] = ec._UserNotifications_unreadNotifications(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var userViewCustomizationImplementors = []string{"UserViewCustomization"} - -func (ec *executionContext) _UserViewCustomization(ctx context.Context, sel ast.SelectionSet, obj *models.UserViewCustomization) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userViewCustomizationImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserViewCustomization") - case "id": - out.Values[i] = ec._UserViewCustomization_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userId": - out.Values[i] = ec._UserViewCustomization_userId(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserViewCustomization_userAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewCustomization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserViewCustomization_viewCustomization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "possibleOperationalSolutions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserViewCustomization_possibleOperationalSolutions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdBy": - out.Values[i] = ec._UserViewCustomization_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserViewCustomization_createdByUserAccount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdDts": - out.Values[i] = ec._UserViewCustomization_createdDts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "modifiedBy": - out.Values[i] = ec._UserViewCustomization_modifiedBy(ctx, field, obj) - case "modifiedByUserAccount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserViewCustomization_modifiedByUserAccount(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "modifiedDts": - out.Values[i] = ec._UserViewCustomization_modifiedDts(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __DirectiveImplementors = []string{"__Directive"} - -func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Directive") - case "name": - out.Values[i] = ec.___Directive_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___Directive_description(ctx, field, obj) - case "locations": - out.Values[i] = ec.___Directive_locations(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "args": - out.Values[i] = ec.___Directive_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isRepeatable": - out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __EnumValueImplementors = []string{"__EnumValue"} - -func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__EnumValue") - case "name": - out.Values[i] = ec.___EnumValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___EnumValue_description(ctx, field, obj) - case "isDeprecated": - out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __FieldImplementors = []string{"__Field"} - -func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Field") - case "name": - out.Values[i] = ec.___Field_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___Field_description(ctx, field, obj) - case "args": - out.Values[i] = ec.___Field_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "type": - out.Values[i] = ec.___Field_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isDeprecated": - out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __InputValueImplementors = []string{"__InputValue"} - -func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__InputValue") - case "name": - out.Values[i] = ec.___InputValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___InputValue_description(ctx, field, obj) - case "type": - out.Values[i] = ec.___InputValue_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "defaultValue": - out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __SchemaImplementors = []string{"__Schema"} - -func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Schema") - case "description": - out.Values[i] = ec.___Schema_description(ctx, field, obj) - case "types": - out.Values[i] = ec.___Schema_types(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "queryType": - out.Values[i] = ec.___Schema_queryType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "mutationType": - out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) - case "subscriptionType": - out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) - case "directives": - out.Values[i] = ec.___Schema_directives(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __TypeImplementors = []string{"__Type"} - -func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Type") - case "kind": - out.Values[i] = ec.___Type_kind(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec.___Type_name(ctx, field, obj) - case "description": - out.Values[i] = ec.___Type_description(ctx, field, obj) - case "fields": - out.Values[i] = ec.___Type_fields(ctx, field, obj) - case "interfaces": - out.Values[i] = ec.___Type_interfaces(ctx, field, obj) - case "possibleTypes": - out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) - case "enumValues": - out.Values[i] = ec.___Type_enumValues(ctx, field, obj) - case "inputFields": - out.Values[i] = ec.___Type_inputFields(ctx, field, obj) - case "ofType": - out.Values[i] = ec.___Type_ofType(ctx, field, obj) - case "specifiedByURL": - out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -// endregion **************************** object.gotpl **************************** - -// region ***************************** type.gotpl ***************************** - -func (ec *executionContext) unmarshalNActionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐActionType(ctx context.Context, v interface{}) (model.ActionType, error) { - var res model.ActionType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNActionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐActionType(ctx context.Context, sel ast.SelectionSet, v model.ActionType) graphql.Marshaler { - return v -} - -func (ec *executionContext) marshalNActivity2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivity(ctx context.Context, sel ast.SelectionSet, v models.Activity) graphql.Marshaler { - return ec._Activity(ctx, sel, &v) -} - -func (ec *executionContext) marshalNActivity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivity(ctx context.Context, sel ast.SelectionSet, v *models.Activity) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Activity(ctx, sel, v) -} - -func (ec *executionContext) marshalNActivityMetaData2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityMetaData(ctx context.Context, sel ast.SelectionSet, v models.ActivityMetaData) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ActivityMetaData(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx context.Context, v interface{}) (models.ActivityType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ActivityType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx context.Context, sel ast.SelectionSet, v models.ActivityType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx context.Context, v interface{}) (model.AgencyOrStateHelpType, error) { - var res model.AgencyOrStateHelpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx context.Context, sel ast.SelectionSet, v model.AgencyOrStateHelpType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx context.Context, v interface{}) ([]model.AgencyOrStateHelpType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.AgencyOrStateHelpType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AgencyOrStateHelpType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx context.Context, v interface{}) (model.AgreementType, error) { - var res model.AgreementType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx context.Context, sel ast.SelectionSet, v model.AgreementType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx context.Context, v interface{}) ([]model.AgreementType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.AgreementType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AgreementType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx context.Context, v interface{}) (model.AlternativePaymentModelType, error) { - var res model.AlternativePaymentModelType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx context.Context, sel ast.SelectionSet, v model.AlternativePaymentModelType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx context.Context, v interface{}) ([]model.AlternativePaymentModelType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.AlternativePaymentModelType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AlternativePaymentModelType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNAnalyzedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.AnalyzedAudit) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAnalyzedAudit2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAudit(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNAnalyzedAudit2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAudit(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedAudit) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AnalyzedAudit(ctx, sel, v) -} - -func (ec *executionContext) marshalNAnalyzedAuditChange2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditChange(ctx context.Context, sel ast.SelectionSet, v models.AnalyzedAuditChange) graphql.Marshaler { - return ec._AnalyzedAuditChange(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAnalyzedModelLeadInfo2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeadInfo(ctx context.Context, sel ast.SelectionSet, v models.AnalyzedModelLeadInfo) graphql.Marshaler { - return ec._AnalyzedModelLeadInfo(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAnalyzedModelLeadInfo2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeadInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []models.AnalyzedModelLeadInfo) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAnalyzedModelLeadInfo2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeadInfo(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, v interface{}) (models.AnticipatedMultiPayerDataAvailabilityUseCase, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.AnticipatedMultiPayerDataAvailabilityUseCase(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, sel ast.SelectionSet, v models.AnticipatedMultiPayerDataAvailabilityUseCase) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx context.Context, v interface{}) ([]models.AnticipatedMultiPayerDataAvailabilityUseCase, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.AnticipatedMultiPayerDataAvailabilityUseCase, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx context.Context, sel ast.SelectionSet, v []models.AnticipatedMultiPayerDataAvailabilityUseCase) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNAuditChange2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditChangeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.AuditChange) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAuditChange2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditChange(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNAuditChange2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditChange(ctx context.Context, sel ast.SelectionSet, v *models.AuditChange) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AuditChange(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNAuditFieldChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditFieldChangeType(ctx context.Context, v interface{}) (models.AuditFieldChangeType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.AuditFieldChangeType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAuditFieldChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditFieldChangeType(ctx context.Context, sel ast.SelectionSet, v models.AuditFieldChangeType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx context.Context, v interface{}) (model.AuthorityAllowance, error) { - var res model.AuthorityAllowance - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx context.Context, sel ast.SelectionSet, v model.AuthorityAllowance) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx context.Context, v interface{}) ([]model.AuthorityAllowance, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.AuthorityAllowance, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AuthorityAllowance) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx context.Context, v interface{}) (model.BeneficiariesType, error) { - var res model.BeneficiariesType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx context.Context, sel ast.SelectionSet, v model.BeneficiariesType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx context.Context, v interface{}) ([]model.BeneficiariesType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.BeneficiariesType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.BeneficiariesType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - res := graphql.MarshalBoolean(*v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx context.Context, v interface{}) (model.CMMIGroup, error) { - var res model.CMMIGroup - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx context.Context, sel ast.SelectionSet, v model.CMMIGroup) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx context.Context, v interface{}) ([]model.CMMIGroup, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.CMMIGroup, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CMMIGroup) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx context.Context, v interface{}) (model.CMSCenter, error) { - var res model.CMSCenter - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx context.Context, sel ast.SelectionSet, v model.CMSCenter) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx context.Context, v interface{}) ([]model.CMSCenter, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.CMSCenter, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CMSCenter) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx context.Context, v interface{}) (model.CcmInvolvmentType, error) { - var res model.CcmInvolvmentType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx context.Context, sel ast.SelectionSet, v model.CcmInvolvmentType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx context.Context, v interface{}) ([]model.CcmInvolvmentType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.CcmInvolvmentType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CcmInvolvmentType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐChangeType(ctx context.Context, v interface{}) (model.ChangeType, error) { - var res model.ChangeType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐChangeType(ctx context.Context, sel ast.SelectionSet, v model.ChangeType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx context.Context, v interface{}) (models.ClaimsBasedPayType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ClaimsBasedPayType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx context.Context, sel ast.SelectionSet, v models.ClaimsBasedPayType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx context.Context, v interface{}) ([]models.ClaimsBasedPayType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ClaimsBasedPayType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ClaimsBasedPayType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx context.Context, v interface{}) (model.ContractorSupportType, error) { - var res model.ContractorSupportType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx context.Context, sel ast.SelectionSet, v model.ContractorSupportType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx context.Context, v interface{}) ([]model.ContractorSupportType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ContractorSupportType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ContractorSupportType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNCreateOperationalSolutionSubtaskInput2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCreateOperationalSolutionSubtaskInputᚄ(ctx context.Context, v interface{}) ([]*model.CreateOperationalSolutionSubtaskInput, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*model.CreateOperationalSolutionSubtaskInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateOperationalSolutionSubtaskInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCreateOperationalSolutionSubtaskInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalNCreateOperationalSolutionSubtaskInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCreateOperationalSolutionSubtaskInput(ctx context.Context, v interface{}) (*model.CreateOperationalSolutionSubtaskInput, error) { - res, err := ec.unmarshalInputCreateOperationalSolutionSubtaskInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCurrentUser2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐCurrentUser(ctx context.Context, sel ast.SelectionSet, v models.CurrentUser) graphql.Marshaler { - return ec._CurrentUser(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCurrentUser2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐCurrentUser(ctx context.Context, sel ast.SelectionSet, v *models.CurrentUser) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CurrentUser(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDataExchangeApproachStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachStatus(ctx context.Context, v interface{}) (models.DataExchangeApproachStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.DataExchangeApproachStatus(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDataExchangeApproachStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachStatus(ctx context.Context, sel ast.SelectionSet, v models.DataExchangeApproachStatus) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx context.Context, v interface{}) (model.DataForMonitoringType, error) { - var res model.DataForMonitoringType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx context.Context, sel ast.SelectionSet, v model.DataForMonitoringType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNDataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx context.Context, v interface{}) ([]model.DataForMonitoringType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.DataForMonitoringType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNDataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DataForMonitoringType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx context.Context, v interface{}) (models.DataToCollectFromParticipants, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.DataToCollectFromParticipants(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx context.Context, sel ast.SelectionSet, v models.DataToCollectFromParticipants) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNDataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx context.Context, v interface{}) ([]models.DataToCollectFromParticipants, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.DataToCollectFromParticipants, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNDataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DataToCollectFromParticipants) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx context.Context, v interface{}) (model.DataToSendParticipantsType, error) { - var res model.DataToSendParticipantsType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx context.Context, sel ast.SelectionSet, v model.DataToSendParticipantsType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNDataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx context.Context, v interface{}) ([]model.DataToSendParticipantsType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.DataToSendParticipantsType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNDataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DataToSendParticipantsType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx context.Context, v interface{}) (models.DataToSendToParticipants, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.DataToSendToParticipants(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx context.Context, sel ast.SelectionSet, v models.DataToSendToParticipants) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNDataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx context.Context, v interface{}) ([]models.DataToSendToParticipants, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.DataToSendToParticipants, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNDataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DataToSendToParticipants) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNDatabaseOperation2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatabaseOperation(ctx context.Context, v interface{}) (models.DatabaseOperation, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.DatabaseOperation(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDatabaseOperation2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatabaseOperation(ctx context.Context, sel ast.SelectionSet, v models.DatabaseOperation) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNDateChange2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChange(ctx context.Context, sel ast.SelectionSet, v models.DateChange) graphql.Marshaler { - return ec._DateChange(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDateChange2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DateChange) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDateChange2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChange(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNDateChangeFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeFieldType(ctx context.Context, v interface{}) (models.DateChangeFieldType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.DateChangeFieldType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDateChangeFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeFieldType(ctx context.Context, sel ast.SelectionSet, v models.DateChangeFieldType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNDiscussionReply2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx context.Context, sel ast.SelectionSet, v models.DiscussionReply) graphql.Marshaler { - return ec._DiscussionReply(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDiscussionReply2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReplyᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.DiscussionReply) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx context.Context, sel ast.SelectionSet, v *models.DiscussionReply) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DiscussionReply(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDiscussionReplyCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDiscussionReplyCreateInput(ctx context.Context, v interface{}) (model.DiscussionReplyCreateInput, error) { - res, err := ec.unmarshalInputDiscussionReplyCreateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNDiscussionUserRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx context.Context, v interface{}) (models.DiscussionUserRole, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.DiscussionUserRole(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDiscussionUserRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx context.Context, sel ast.SelectionSet, v models.DiscussionUserRole) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx context.Context, v interface{}) (models.DocumentType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.DocumentType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v models.DocumentType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNEChimpCRAndTDLS2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐEChimpCRAndTDLS(ctx context.Context, sel ast.SelectionSet, v models.EChimpCRAndTDLS) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EChimpCRAndTDLS(ctx, sel, v) -} - -func (ec *executionContext) marshalNEChimpCRAndTDLS2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐEChimpCRAndTDLSᚄ(ctx context.Context, sel ast.SelectionSet, v []models.EChimpCRAndTDLS) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNEChimpCRAndTDLS2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐEChimpCRAndTDLS(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx context.Context, v interface{}) (model.EvaluationApproachType, error) { - var res model.EvaluationApproachType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx context.Context, sel ast.SelectionSet, v model.EvaluationApproachType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx context.Context, v interface{}) ([]model.EvaluationApproachType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.EvaluationApproachType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.EvaluationApproachType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx context.Context, v interface{}) (models.ExisitingModelLinkFieldType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ExisitingModelLinkFieldType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx context.Context, sel ast.SelectionSet, v models.ExisitingModelLinkFieldType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNExistingModel2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.ExistingModel) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNExistingModel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModel(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNExistingModel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModel(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModel) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExistingModel(ctx, sel, v) -} - -func (ec *executionContext) marshalNExistingModelLink2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLink(ctx context.Context, sel ast.SelectionSet, v models.ExistingModelLink) graphql.Marshaler { - return ec._ExistingModelLink(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExistingModelLink2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinkᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.ExistingModelLink) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNExistingModelLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLink(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNExistingModelLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLink(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModelLink) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExistingModelLink(ctx, sel, v) -} - -func (ec *executionContext) marshalNExistingModelLinks2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx context.Context, sel ast.SelectionSet, v models.ExistingModelLinks) graphql.Marshaler { - return ec._ExistingModelLinks(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModelLinks) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExistingModelLinks(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { - res, err := graphql.UnmarshalFloatContext(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { - res := graphql.MarshalFloatContext(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return graphql.WrapContextMarshaler(ctx, res) -} - -func (ec *executionContext) unmarshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx context.Context, v interface{}) (models.FrequencyType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.FrequencyType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx context.Context, sel ast.SelectionSet, v models.FrequencyType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx context.Context, v interface{}) ([]models.FrequencyType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.FrequencyType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.FrequencyType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx context.Context, v interface{}) (models.FundingSource, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.FundingSource(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx context.Context, sel ast.SelectionSet, v models.FundingSource) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx context.Context, v interface{}) ([]models.FundingSource, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.FundingSource, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx context.Context, sel ast.SelectionSet, v []models.FundingSource) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx context.Context, v interface{}) (model.GainshareArrangementEligibility, error) { - var res model.GainshareArrangementEligibility - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx context.Context, sel ast.SelectionSet, v model.GainshareArrangementEligibility) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx context.Context, v interface{}) ([]model.GainshareArrangementEligibility, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.GainshareArrangementEligibility, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GainshareArrangementEligibility) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx context.Context, v interface{}) (model.GeographyApplication, error) { - var res model.GeographyApplication - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx context.Context, sel ast.SelectionSet, v model.GeographyApplication) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx context.Context, v interface{}) ([]model.GeographyApplication, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.GeographyApplication, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GeographyApplication) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx context.Context, v interface{}) (models.GeographyRegionType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.GeographyRegionType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx context.Context, sel ast.SelectionSet, v models.GeographyRegionType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx context.Context, v interface{}) ([]models.GeographyRegionType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.GeographyRegionType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.GeographyRegionType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx context.Context, v interface{}) (model.GeographyType, error) { - var res model.GeographyType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx context.Context, sel ast.SelectionSet, v model.GeographyType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx context.Context, v interface{}) ([]model.GeographyType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.GeographyType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GeographyType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { - res, err := graphql.UnmarshalInt(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - res := graphql.MarshalInt(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx context.Context, v interface{}) (model.KeyCharacteristic, error) { - var res model.KeyCharacteristic - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx context.Context, sel ast.SelectionSet, v model.KeyCharacteristic) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx context.Context, v interface{}) ([]model.KeyCharacteristic, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.KeyCharacteristic, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx context.Context, sel ast.SelectionSet, v []model.KeyCharacteristic) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNLaunchDarklySettings2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLaunchDarklySettings(ctx context.Context, sel ast.SelectionSet, v model.LaunchDarklySettings) graphql.Marshaler { - return ec._LaunchDarklySettings(ctx, sel, &v) -} - -func (ec *executionContext) marshalNLaunchDarklySettings2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLaunchDarklySettings(ctx context.Context, sel ast.SelectionSet, v *model.LaunchDarklySettings) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._LaunchDarklySettings(ctx, sel, v) -} - -func (ec *executionContext) marshalNLinkedExistingModel2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLinkedExistingModel(ctx context.Context, sel ast.SelectionSet, v models.LinkedExistingModel) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._LinkedExistingModel(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx context.Context, v interface{}) (models.LockableSection, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.LockableSection(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx context.Context, sel ast.SelectionSet, v models.LockableSection) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNLockableSectionLockStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatus(ctx context.Context, sel ast.SelectionSet, v model.LockableSectionLockStatus) graphql.Marshaler { - return ec._LockableSectionLockStatus(ctx, sel, &v) -} - -func (ec *executionContext) marshalNLockableSectionLockStatus2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.LockableSectionLockStatus) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNLockableSectionLockStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatus(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNLockableSectionLockStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatus(ctx context.Context, sel ast.SelectionSet, v *model.LockableSectionLockStatus) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._LockableSectionLockStatus(ctx, sel, v) -} - -func (ec *executionContext) marshalNLockableSectionLockStatusChanged2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusChanged(ctx context.Context, sel ast.SelectionSet, v model.LockableSectionLockStatusChanged) graphql.Marshaler { - return ec._LockableSectionLockStatusChanged(ctx, sel, &v) -} - -func (ec *executionContext) marshalNLockableSectionLockStatusChanged2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusChanged(ctx context.Context, sel ast.SelectionSet, v *model.LockableSectionLockStatusChanged) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._LockableSectionLockStatusChanged(ctx, sel, v) -} - -func (ec *executionContext) marshalNMTOCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx context.Context, sel ast.SelectionSet, v models.MTOCategory) graphql.Marshaler { - return ec._MTOCategory(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMTOCategory2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategoryᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOCategory) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx context.Context, sel ast.SelectionSet, v *models.MTOCategory) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MTOCategory(ctx, sel, v) -} - -func (ec *executionContext) marshalNMTOCommonMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOCommonMilestone) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMTOCommonMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestone(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMTOCommonMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestone(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonMilestone) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MTOCommonMilestone(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMTOCommonMilestoneKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx context.Context, v interface{}) (models.MTOCommonMilestoneKey, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTOCommonMilestoneKey(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMTOCommonMilestoneKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx context.Context, sel ast.SelectionSet, v models.MTOCommonMilestoneKey) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNMTOCommonSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOCommonSolution) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMTOCommonSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolution(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMTOCommonSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolution(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonSolution) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MTOCommonSolution(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMTOCommonSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx context.Context, v interface{}) (models.MTOCommonSolutionKey, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTOCommonSolutionKey(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMTOCommonSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx context.Context, sel ast.SelectionSet, v models.MTOCommonSolutionKey) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNMTOCommonSolutionSubject2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubject(ctx context.Context, v interface{}) (models.MTOCommonSolutionSubject, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTOCommonSolutionSubject(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMTOCommonSolutionSubject2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubject(ctx context.Context, sel ast.SelectionSet, v models.MTOCommonSolutionSubject) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNMTOCommonSolutionSubject2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubjectᚄ(ctx context.Context, v interface{}) ([]models.MTOCommonSolutionSubject, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.MTOCommonSolutionSubject, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNMTOCommonSolutionSubject2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubject(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNMTOCommonSolutionSubject2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubjectᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MTOCommonSolutionSubject) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMTOCommonSolutionSubject2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubject(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx context.Context, v interface{}) (models.MTOFacilitator, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTOFacilitator(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx context.Context, sel ast.SelectionSet, v models.MTOFacilitator) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx context.Context, v interface{}) ([]models.MTOFacilitator, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.MTOFacilitator, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MTOFacilitator) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMTOInfo2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOInfo(ctx context.Context, sel ast.SelectionSet, v models.MTOInfo) graphql.Marshaler { - return ec._MTOInfo(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMTOInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOInfo(ctx context.Context, sel ast.SelectionSet, v *models.MTOInfo) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MTOInfo(ctx, sel, v) -} - -func (ec *executionContext) marshalNMTOMilestone2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx context.Context, sel ast.SelectionSet, v models.MTOMilestone) graphql.Marshaler { - return ec._MTOMilestone(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMTOMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOMilestone) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx context.Context, sel ast.SelectionSet, v *models.MTOMilestone) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MTOMilestone(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMTOMilestoneChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) unmarshalNMTOMilestoneStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx context.Context, v interface{}) (models.MTOMilestoneStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTOMilestoneStatus(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMTOMilestoneStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx context.Context, sel ast.SelectionSet, v models.MTOMilestoneStatus) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, v interface{}) (models.MTORiskIndicator, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTORiskIndicator(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, sel ast.SelectionSet, v models.MTORiskIndicator) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNMTOSolution2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx context.Context, sel ast.SelectionSet, v models.MTOSolution) graphql.Marshaler { - return ec._MTOSolution(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMTOSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOSolution) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx context.Context, sel ast.SelectionSet, v *models.MTOSolution) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MTOSolution(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMTOSolutionChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) unmarshalNMTOSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx context.Context, v interface{}) (models.MTOSolutionStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTOSolutionStatus(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMTOSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx context.Context, sel ast.SelectionSet, v models.MTOSolutionStatus) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNMTOSolutionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx context.Context, v interface{}) (models.MTOSolutionType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTOSolutionType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMTOSolutionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx context.Context, sel ast.SelectionSet, v models.MTOSolutionType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNMTOStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOStatus(ctx context.Context, v interface{}) (models.MTOStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTOStatus(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMTOStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOStatus(ctx context.Context, sel ast.SelectionSet, v models.MTOStatus) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNMTOSubcategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategory(ctx context.Context, sel ast.SelectionSet, v models.MTOSubcategory) graphql.Marshaler { - return ec._MTOSubcategory(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMTOSubcategory2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategoryᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOSubcategory) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMTOSubcategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategory(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMTOSubcategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategory(ctx context.Context, sel ast.SelectionSet, v *models.MTOSubcategory) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MTOSubcategory(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - res, err := graphql.UnmarshalMap(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - res := graphql.MarshalMap(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNMintUses2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUses(ctx context.Context, v interface{}) (model.MintUses, error) { - var res model.MintUses - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMintUses2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUses(ctx context.Context, sel ast.SelectionSet, v model.MintUses) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNModelBySolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelBySolutionStatus(ctx context.Context, v interface{}) (models.ModelBySolutionStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ModelBySolutionStatus(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNModelBySolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelBySolutionStatus(ctx context.Context, sel ast.SelectionSet, v models.ModelBySolutionStatus) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx context.Context, v interface{}) (models.ModelCategory, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ModelCategory(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx context.Context, sel ast.SelectionSet, v models.ModelCategory) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx context.Context, v interface{}) ([]models.ModelCategory, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ModelCategory, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelCategory) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx context.Context, v interface{}) (model.ModelLearningSystemType, error) { - var res model.ModelLearningSystemType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx context.Context, sel ast.SelectionSet, v model.ModelLearningSystemType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx context.Context, v interface{}) ([]model.ModelLearningSystemType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ModelLearningSystemType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ModelLearningSystemType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNModelPhase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx context.Context, v interface{}) (models.ModelPhase, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ModelPhase(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNModelPhase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx context.Context, sel ast.SelectionSet, v models.ModelPhase) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNModelPlan2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx context.Context, sel ast.SelectionSet, v models.ModelPlan) graphql.Marshaler { - return ec._ModelPlan(ctx, sel, &v) -} - -func (ec *executionContext) marshalNModelPlan2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.ModelPlan) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx context.Context, sel ast.SelectionSet, v *models.ModelPlan) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ModelPlan(ctx, sel, v) -} - -func (ec *executionContext) marshalNModelPlanAndPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanAndPossibleOperationalSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.ModelPlanAndPossibleOperationalSolution) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNModelPlanAndPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanAndPossibleOperationalSolution(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNModelPlanAndPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanAndPossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, v *models.ModelPlanAndPossibleOperationalSolution) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ModelPlanAndPossibleOperationalSolution(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNModelPlanChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) unmarshalNModelPlanFilter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelPlanFilter(ctx context.Context, v interface{}) (model.ModelPlanFilter, error) { - var res model.ModelPlanFilter - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNModelPlanFilter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelPlanFilter(ctx context.Context, sel ast.SelectionSet, v model.ModelPlanFilter) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx context.Context, v interface{}) (models.ModelStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ModelStatus(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx context.Context, sel ast.SelectionSet, v models.ModelStatus) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNModelStatus2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatusᚄ(ctx context.Context, v interface{}) ([]models.ModelStatus, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ModelStatus, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNModelStatus2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelStatus) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx context.Context, v interface{}) (models.ModelType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ModelType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx context.Context, sel ast.SelectionSet, v models.ModelType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx context.Context, v interface{}) ([]models.ModelType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ModelType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNModelsToOperationMatrix2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelsToOperationMatrix(ctx context.Context, sel ast.SelectionSet, v models.ModelsToOperationMatrix) graphql.Marshaler { - return ec._ModelsToOperationMatrix(ctx, sel, &v) -} - -func (ec *executionContext) marshalNModelsToOperationMatrix2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelsToOperationMatrix(ctx context.Context, sel ast.SelectionSet, v *models.ModelsToOperationMatrix) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ModelsToOperationMatrix(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx context.Context, v interface{}) (model.MonitoringFileType, error) { - var res model.MonitoringFileType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx context.Context, sel ast.SelectionSet, v model.MonitoringFileType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx context.Context, v interface{}) ([]model.MonitoringFileType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.MonitoringFileType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MonitoringFileType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx context.Context, v interface{}) (models.MultiSourceDataToCollect, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MultiSourceDataToCollect(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx context.Context, sel ast.SelectionSet, v models.MultiSourceDataToCollect) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx context.Context, v interface{}) ([]models.MultiSourceDataToCollect, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.MultiSourceDataToCollect, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MultiSourceDataToCollect) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNNDAInfo2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNDAInfo(ctx context.Context, sel ast.SelectionSet, v model.NDAInfo) graphql.Marshaler { - return ec._NDAInfo(ctx, sel, &v) -} - -func (ec *executionContext) marshalNNDAInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNDAInfo(ctx context.Context, sel ast.SelectionSet, v *model.NDAInfo) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._NDAInfo(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx context.Context, v interface{}) (model.NonClaimsBasedPayType, error) { - var res model.NonClaimsBasedPayType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx context.Context, sel ast.SelectionSet, v model.NonClaimsBasedPayType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNNonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx context.Context, v interface{}) ([]model.NonClaimsBasedPayType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.NonClaimsBasedPayType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNNonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.NonClaimsBasedPayType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNOpSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx context.Context, v interface{}) (models.OpSolutionStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.OpSolutionStatus(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOpSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx context.Context, sel ast.SelectionSet, v models.OpSolutionStatus) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNOperationalNeed2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx context.Context, sel ast.SelectionSet, v models.OperationalNeed) graphql.Marshaler { - return ec._OperationalNeed(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOperationalNeed2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationalNeed) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx context.Context, sel ast.SelectionSet, v *models.OperationalNeed) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OperationalNeed(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOperationalNeedKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx context.Context, v interface{}) (models.OperationalNeedKey, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.OperationalNeedKey(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOperationalNeedKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx context.Context, sel ast.SelectionSet, v models.OperationalNeedKey) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNOperationalSolution2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx context.Context, sel ast.SelectionSet, v models.OperationalSolution) graphql.Marshaler { - return ec._OperationalSolution(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationalSolution) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx context.Context, sel ast.SelectionSet, v *models.OperationalSolution) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OperationalSolution(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOperationalSolutionChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) unmarshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx context.Context, v interface{}) (models.OperationalSolutionKey, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.OperationalSolutionKey(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx context.Context, sel ast.SelectionSet, v models.OperationalSolutionKey) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx context.Context, v interface{}) ([]models.OperationalSolutionKey, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.OperationalSolutionKey, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx context.Context, sel ast.SelectionSet, v []models.OperationalSolutionKey) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationalSolutionSubtask) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNOperationalSolutionSubtask2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtask(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNOperationalSolutionSubtask2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtask(ctx context.Context, sel ast.SelectionSet, v *models.OperationalSolutionSubtask) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OperationalSolutionSubtask(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOperationalSolutionSubtaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskStatus(ctx context.Context, v interface{}) (models.OperationalSolutionSubtaskStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.OperationalSolutionSubtaskStatus(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOperationalSolutionSubtaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskStatus(ctx context.Context, sel ast.SelectionSet, v models.OperationalSolutionSubtaskStatus) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx context.Context, v interface{}) (model.ParticipantCommunicationType, error) { - var res model.ParticipantCommunicationType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantCommunicationType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantCommunicationType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantCommunicationType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantCommunicationType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx context.Context, v interface{}) (model.ParticipantRequireFinancialGuaranteeType, error) { - var res model.ParticipantRequireFinancialGuaranteeType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantRequireFinancialGuaranteeType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantRequireFinancialGuaranteeType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantRequireFinancialGuaranteeType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantRequireFinancialGuaranteeType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx context.Context, v interface{}) (models.ParticipantRiskType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ParticipantRiskType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx context.Context, sel ast.SelectionSet, v models.ParticipantRiskType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx context.Context, v interface{}) ([]models.ParticipantRiskType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ParticipantRiskType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ParticipantRiskType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx context.Context, v interface{}) (model.ParticipantSelectionType, error) { - var res model.ParticipantSelectionType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantSelectionType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantSelectionType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantSelectionType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantSelectionType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx context.Context, v interface{}) (model.ParticipantsIDType, error) { - var res model.ParticipantsIDType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantsIDType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantsIDType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantsIDType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantsIDType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx context.Context, v interface{}) (model.ParticipantsType, error) { - var res model.ParticipantsType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantsType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantsType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantsType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantsType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx context.Context, v interface{}) (models.PayRecipient, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.PayRecipient(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx context.Context, sel ast.SelectionSet, v models.PayRecipient) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx context.Context, v interface{}) ([]models.PayRecipient, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.PayRecipient, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx context.Context, sel ast.SelectionSet, v []models.PayRecipient) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx context.Context, v interface{}) (models.PayType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.PayType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx context.Context, sel ast.SelectionSet, v models.PayType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx context.Context, v interface{}) ([]models.PayType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.PayType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.PayType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPlanBasics2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBasics(ctx context.Context, sel ast.SelectionSet, v models.PlanBasics) graphql.Marshaler { - return ec._PlanBasics(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanBasics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBasics(ctx context.Context, sel ast.SelectionSet, v *models.PlanBasics) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanBasics(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanBasicsChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) marshalNPlanBeneficiaries2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBeneficiaries(ctx context.Context, sel ast.SelectionSet, v models.PlanBeneficiaries) graphql.Marshaler { - return ec._PlanBeneficiaries(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanBeneficiaries2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBeneficiaries(ctx context.Context, sel ast.SelectionSet, v *models.PlanBeneficiaries) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanBeneficiaries(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanBeneficiariesChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) marshalNPlanCR2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx context.Context, sel ast.SelectionSet, v models.PlanCR) graphql.Marshaler { - return ec._PlanCR(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanCR2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCRᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanCR) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx context.Context, sel ast.SelectionSet, v *models.PlanCR) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanCR(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanCRChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) unmarshalNPlanCRCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanCRCreateInput(ctx context.Context, v interface{}) (model.PlanCRCreateInput, error) { - res, err := ec.unmarshalInputPlanCRCreateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPlanCollaborator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx context.Context, sel ast.SelectionSet, v models.PlanCollaborator) graphql.Marshaler { - return ec._PlanCollaborator(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanCollaborator2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaboratorᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanCollaborator) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx context.Context, sel ast.SelectionSet, v *models.PlanCollaborator) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanCollaborator(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanCollaboratorCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanCollaboratorCreateInput(ctx context.Context, v interface{}) (model.PlanCollaboratorCreateInput, error) { - res, err := ec.unmarshalInputPlanCollaboratorCreateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPlanDataExchangeApproach2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx context.Context, sel ast.SelectionSet, v models.PlanDataExchangeApproach) graphql.Marshaler { - return ec._PlanDataExchangeApproach(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanDataExchangeApproach2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx context.Context, sel ast.SelectionSet, v *models.PlanDataExchangeApproach) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanDataExchangeApproach(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanDataExchangeApproachChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) marshalNPlanDiscussion2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx context.Context, sel ast.SelectionSet, v models.PlanDiscussion) graphql.Marshaler { - return ec._PlanDiscussion(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanDiscussion2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanDiscussion) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx context.Context, sel ast.SelectionSet, v *models.PlanDiscussion) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanDiscussion(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanDiscussionCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDiscussionCreateInput(ctx context.Context, v interface{}) (model.PlanDiscussionCreateInput, error) { - res, err := ec.unmarshalInputPlanDiscussionCreateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPlanDocument2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx context.Context, sel ast.SelectionSet, v models.PlanDocument) graphql.Marshaler { - return ec._PlanDocument(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanDocument2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanDocument) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx context.Context, sel ast.SelectionSet, v *models.PlanDocument) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanDocument(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanDocumentInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDocumentInput(ctx context.Context, v interface{}) (model.PlanDocumentInput, error) { - res, err := ec.unmarshalInputPlanDocumentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNPlanDocumentLinkInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDocumentLinkInput(ctx context.Context, v interface{}) (model.PlanDocumentLinkInput, error) { - res, err := ec.unmarshalInputPlanDocumentLinkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPlanDocumentSolutionLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentSolutionLink(ctx context.Context, sel ast.SelectionSet, v *models.PlanDocumentSolutionLink) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanDocumentSolutionLink(ctx, sel, v) -} - -func (ec *executionContext) marshalNPlanFavorite2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanFavorite(ctx context.Context, sel ast.SelectionSet, v models.PlanFavorite) graphql.Marshaler { - return ec._PlanFavorite(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanFavorite2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanFavorite(ctx context.Context, sel ast.SelectionSet, v *models.PlanFavorite) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanFavorite(ctx, sel, v) -} - -func (ec *executionContext) marshalNPlanGeneralCharacteristics2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanGeneralCharacteristics(ctx context.Context, sel ast.SelectionSet, v models.PlanGeneralCharacteristics) graphql.Marshaler { - return ec._PlanGeneralCharacteristics(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanGeneralCharacteristics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanGeneralCharacteristics(ctx context.Context, sel ast.SelectionSet, v *models.PlanGeneralCharacteristics) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanGeneralCharacteristics(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanGeneralCharacteristicsChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) marshalNPlanOpsEvalAndLearning2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanOpsEvalAndLearning(ctx context.Context, sel ast.SelectionSet, v models.PlanOpsEvalAndLearning) graphql.Marshaler { - return ec._PlanOpsEvalAndLearning(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanOpsEvalAndLearning2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanOpsEvalAndLearning(ctx context.Context, sel ast.SelectionSet, v *models.PlanOpsEvalAndLearning) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanOpsEvalAndLearning(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanOpsEvalAndLearningChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) marshalNPlanParticipantsAndProviders2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanParticipantsAndProviders(ctx context.Context, sel ast.SelectionSet, v models.PlanParticipantsAndProviders) graphql.Marshaler { - return ec._PlanParticipantsAndProviders(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanParticipantsAndProviders2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanParticipantsAndProviders(ctx context.Context, sel ast.SelectionSet, v *models.PlanParticipantsAndProviders) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanParticipantsAndProviders(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanParticipantsAndProvidersChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) marshalNPlanPayments2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx context.Context, sel ast.SelectionSet, v models.PlanPayments) graphql.Marshaler { - return ec._PlanPayments(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanPayments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx context.Context, sel ast.SelectionSet, v *models.PlanPayments) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanPayments(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanPaymentsChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) marshalNPlanTDL2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx context.Context, sel ast.SelectionSet, v models.PlanTDL) graphql.Marshaler { - return ec._PlanTDL(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPlanTDL2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDLᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanTDL) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx context.Context, sel ast.SelectionSet, v *models.PlanTDL) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PlanTDL(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPlanTDLChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) unmarshalNPlanTDLCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanTDLCreateInput(ctx context.Context, v interface{}) (model.PlanTDLCreateInput, error) { - res, err := ec.unmarshalInputPlanTDLCreateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPossibleOperationalNeed2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalNeedᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PossibleOperationalNeed) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPossibleOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalNeed(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPossibleOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalNeed(ctx context.Context, sel ast.SelectionSet, v *models.PossibleOperationalNeed) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PossibleOperationalNeed(ctx, sel, v) -} - -func (ec *executionContext) marshalNPossibleOperationalSolution2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, v models.PossibleOperationalSolution) graphql.Marshaler { - return ec._PossibleOperationalSolution(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PossibleOperationalSolution) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolution(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, v *models.PossibleOperationalSolution) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PossibleOperationalSolution(ctx, sel, v) -} - -func (ec *executionContext) marshalNPossibleOperationalSolutionContact2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContactᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PossibleOperationalSolutionContact) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPossibleOperationalSolutionContact2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContact(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPossibleOperationalSolutionContact2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContact(ctx context.Context, sel ast.SelectionSet, v *models.PossibleOperationalSolutionContact) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PossibleOperationalSolutionContact(ctx, sel, v) -} - -func (ec *executionContext) marshalNPrepareForClearance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearance(ctx context.Context, sel ast.SelectionSet, v model.PrepareForClearance) graphql.Marshaler { - return ec._PrepareForClearance(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPrepareForClearance2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearance(ctx context.Context, sel ast.SelectionSet, v *model.PrepareForClearance) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PrepareForClearance(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNPrepareForClearanceStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearanceStatus(ctx context.Context, v interface{}) (model.PrepareForClearanceStatus, error) { - var res model.PrepareForClearanceStatus - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPrepareForClearanceStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearanceStatus(ctx context.Context, sel ast.SelectionSet, v model.PrepareForClearanceStatus) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx context.Context, v interface{}) (model.ProviderAddType, error) { - var res model.ProviderAddType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx context.Context, sel ast.SelectionSet, v model.ProviderAddType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx context.Context, v interface{}) ([]model.ProviderAddType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ProviderAddType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProviderAddType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx context.Context, v interface{}) (model.ProviderLeaveType, error) { - var res model.ProviderLeaveType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx context.Context, sel ast.SelectionSet, v model.ProviderLeaveType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx context.Context, v interface{}) ([]model.ProviderLeaveType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ProviderLeaveType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProviderLeaveType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNReportAProblemInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemInput(ctx context.Context, v interface{}) (model.ReportAProblemInput, error) { - res, err := ec.unmarshalInputReportAProblemInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx context.Context, v interface{}) (model.Role, error) { - var res model.Role - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx context.Context, sel ast.SelectionSet, v model.Role) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx context.Context, v interface{}) ([]model.Role, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.Role, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []model.Role) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx context.Context, v interface{}) (model.SelectionMethodType, error) { - var res model.SelectionMethodType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx context.Context, sel ast.SelectionSet, v model.SelectionMethodType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx context.Context, v interface{}) ([]model.SelectionMethodType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.SelectionMethodType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SelectionMethodType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNSendFeedbackEmailInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSendFeedbackEmailInput(ctx context.Context, v interface{}) (model.SendFeedbackEmailInput, error) { - res, err := ec.unmarshalInputSendFeedbackEmailInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNSortDirection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐSortDirection(ctx context.Context, v interface{}) (models.SortDirection, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.SortDirection(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSortDirection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐSortDirection(ctx context.Context, sel ast.SelectionSet, v models.SortDirection) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx context.Context, v interface{}) (model.StakeholdersType, error) { - var res model.StakeholdersType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx context.Context, sel ast.SelectionSet, v model.StakeholdersType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx context.Context, v interface{}) ([]model.StakeholdersType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.StakeholdersType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.StakeholdersType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx context.Context, v interface{}) (models.StatesAndTerritories, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.StatesAndTerritories(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx context.Context, sel ast.SelectionSet, v models.StatesAndTerritories) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx context.Context, v interface{}) ([]models.StatesAndTerritories, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.StatesAndTerritories, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx context.Context, sel ast.SelectionSet, v []models.StatesAndTerritories) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNString2string(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { - res, err := graphql.UnmarshalString(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - res := graphql.MarshalString(*v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx context.Context, v interface{}) (models.TableName, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.TableName(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx context.Context, sel ast.SelectionSet, v models.TableName) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx context.Context, v interface{}) ([]models.TableName, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.TableName, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx context.Context, sel ast.SelectionSet, v []models.TableName) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTag2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Tag) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNTag2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTag(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTag2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTag(ctx context.Context, sel ast.SelectionSet, v *models.Tag) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Tag(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTagType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagType(ctx context.Context, v interface{}) (models.TagType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.TagType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTagType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagType(ctx context.Context, sel ast.SelectionSet, v models.TagType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNTaggedHTML2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedHTML(ctx context.Context, v interface{}) (models.TaggedHTML, error) { - var res models.TaggedHTML - err := res.UnmarshalGQLContext(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTaggedHTML2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedHTML(ctx context.Context, sel ast.SelectionSet, v models.TaggedHTML) graphql.Marshaler { - return graphql.WrapContextMarshaler(ctx, v) -} - -func (ec *executionContext) unmarshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx context.Context, v interface{}) (models.TaskStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.TaskStatus(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx context.Context, sel ast.SelectionSet, v models.TaskStatus) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNTeamRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRole(ctx context.Context, v interface{}) (models.TeamRole, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.TeamRole(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTeamRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRole(ctx context.Context, sel ast.SelectionSet, v models.TeamRole) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx context.Context, v interface{}) ([]models.TeamRole, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.TeamRole, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNTeamRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRole(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []models.TeamRole) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNTeamRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRole(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { - res, err := graphql.UnmarshalTime(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { - res := graphql.MarshalTime(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { - res, err := graphql.UnmarshalTime(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - res := graphql.MarshalTime(*v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNTranslatedAudit2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAudit(ctx context.Context, sel ast.SelectionSet, v *models.TranslatedAudit) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TranslatedAudit(ctx, sel, v) -} - -func (ec *executionContext) marshalNTranslatedAuditField2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.TranslatedAuditField) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNTranslatedAuditField2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditField(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTranslatedAuditField2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditField(ctx context.Context, sel ast.SelectionSet, v *models.TranslatedAuditField) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TranslatedAuditField(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx context.Context, v interface{}) (models.TranslationDataType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.TranslationDataType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx context.Context, sel ast.SelectionSet, v models.TranslationDataType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx context.Context, sel ast.SelectionSet, v models.TranslationField) graphql.Marshaler { - return ec._TranslationField(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithOptions) graphql.Marshaler { - return ec._TranslationFieldWithOptions(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithOptionsAndChildren) graphql.Marshaler { - return ec._TranslationFieldWithOptionsAndChildren(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithOptionsAndParent) graphql.Marshaler { - return ec._TranslationFieldWithOptionsAndParent(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithParent) graphql.Marshaler { - return ec._TranslationFieldWithParent(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTranslationFieldWithParentAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParentAndChildren(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithParentAndChildren) graphql.Marshaler { - return ec._TranslationFieldWithParentAndChildren(ctx, sel, &v) -} - -func (ec *executionContext) unmarshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx context.Context, v interface{}) (models.TranslationFormType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.TranslationFormType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx context.Context, sel ast.SelectionSet, v models.TranslationFormType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (uuid.UUID, error) { - res, err := models.UnmarshalUUID(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, sel ast.SelectionSet, v uuid.UUID) graphql.Marshaler { - res := models.MarshalUUID(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v interface{}) ([]uuid.UUID, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]uuid.UUID, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, sel ast.SelectionSet, v []uuid.UUID) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNUpdateOperationalSolutionSubtaskChangesInput2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) unmarshalNUpdateOperationalSolutionSubtaskInput2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐUpdateOperationalSolutionSubtaskInputᚄ(ctx context.Context, v interface{}) ([]*model.UpdateOperationalSolutionSubtaskInput, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*model.UpdateOperationalSolutionSubtaskInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNUpdateOperationalSolutionSubtaskInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐUpdateOperationalSolutionSubtaskInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalNUpdateOperationalSolutionSubtaskInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐUpdateOperationalSolutionSubtaskInput(ctx context.Context, v interface{}) (*model.UpdateOperationalSolutionSubtaskInput, error) { - res, err := ec.unmarshalInputUpdateOperationalSolutionSubtaskInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (graphql.Upload, error) { - res, err := graphql.UnmarshalUpload(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v graphql.Upload) graphql.Marshaler { - res := graphql.MarshalUpload(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNUserAccount2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx context.Context, sel ast.SelectionSet, v authentication.UserAccount) graphql.Marshaler { - return ec._UserAccount(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx context.Context, sel ast.SelectionSet, v *authentication.UserAccount) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserAccount(ctx, sel, v) -} - -func (ec *executionContext) marshalNUserInfo2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.UserInfo) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNUserInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserInfo(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNUserInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserInfo(ctx context.Context, sel ast.SelectionSet, v *models.UserInfo) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserInfo(ctx, sel, v) -} - -func (ec *executionContext) marshalNUserNotification2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotification(ctx context.Context, sel ast.SelectionSet, v models.UserNotification) graphql.Marshaler { - return ec._UserNotification(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserNotification2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.UserNotification) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNUserNotification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotification(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNUserNotification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotification(ctx context.Context, sel ast.SelectionSet, v *models.UserNotification) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserNotification(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx context.Context, v interface{}) (models.UserNotificationPreferenceFlag, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.UserNotificationPreferenceFlag(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx context.Context, sel ast.SelectionSet, v models.UserNotificationPreferenceFlag) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx context.Context, v interface{}) ([]models.UserNotificationPreferenceFlag, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.UserNotificationPreferenceFlag, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx context.Context, sel ast.SelectionSet, v []models.UserNotificationPreferenceFlag) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNUserNotificationPreferences2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferences(ctx context.Context, sel ast.SelectionSet, v models.UserNotificationPreferences) graphql.Marshaler { - return ec._UserNotificationPreferences(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserNotificationPreferences2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferences(ctx context.Context, sel ast.SelectionSet, v *models.UserNotificationPreferences) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserNotificationPreferences(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUserNotificationPreferencesChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) marshalNUserNotifications2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotifications(ctx context.Context, sel ast.SelectionSet, v models.UserNotifications) graphql.Marshaler { - return ec._UserNotifications(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserNotifications2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotifications(ctx context.Context, sel ast.SelectionSet, v *models.UserNotifications) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserNotifications(ctx, sel, v) -} - -func (ec *executionContext) marshalNUserViewCustomization2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserViewCustomization(ctx context.Context, sel ast.SelectionSet, v models.UserViewCustomization) graphql.Marshaler { - return ec._UserViewCustomization(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserViewCustomization2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserViewCustomization(ctx context.Context, sel ast.SelectionSet, v *models.UserViewCustomization) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserViewCustomization(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUserViewCustomizationChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - return v.(map[string]interface{}), nil -} - -func (ec *executionContext) unmarshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx context.Context, v interface{}) (models.ViewCustomizationType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.ViewCustomizationType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx context.Context, sel ast.SelectionSet, v models.ViewCustomizationType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx context.Context, v interface{}) ([]models.ViewCustomizationType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ViewCustomizationType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ViewCustomizationType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx context.Context, v interface{}) (model.WaiverType, error) { - var res model.WaiverType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx context.Context, sel ast.SelectionSet, v model.WaiverType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx context.Context, v interface{}) ([]model.WaiverType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.WaiverType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.WaiverType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx context.Context, v interface{}) (models.YesNoType, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.YesNoType(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx context.Context, sel ast.SelectionSet, v models.YesNoType) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx context.Context, v interface{}) ([]models.YesNoType, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.YesNoType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.YesNoType) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { - return ec.___Directive(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { - return ec.___EnumValue(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { - return ec.___Field(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { - return ec.___InputValue(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { - return ec.___Type(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec.___Type(ctx, sel, v) -} - -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalOAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx context.Context, v interface{}) ([]model.AgencyOrStateHelpType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.AgencyOrStateHelpType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AgencyOrStateHelpType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx context.Context, v interface{}) ([]model.AgreementType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.AgreementType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AgreementType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx context.Context, v interface{}) ([]model.AlternativePaymentModelType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.AlternativePaymentModelType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AlternativePaymentModelType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalOAnalyzedCrTdls2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedCrTdls(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedCrTdls) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AnalyzedCrTdls(ctx, sel, v) -} - -func (ec *executionContext) marshalOAnalyzedDocuments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedDocuments(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedDocuments) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AnalyzedDocuments(ctx, sel, v) -} - -func (ec *executionContext) marshalOAnalyzedModelLeads2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeads(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedModelLeads) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AnalyzedModelLeads(ctx, sel, v) -} - -func (ec *executionContext) marshalOAnalyzedModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelPlan(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedModelPlan) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AnalyzedModelPlan(ctx, sel, v) -} - -func (ec *executionContext) marshalOAnalyzedPlanDiscussions2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedPlanDiscussions(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedPlanDiscussions) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AnalyzedPlanDiscussions(ctx, sel, v) -} - -func (ec *executionContext) marshalOAnalyzedPlanSections2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedPlanSections(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedPlanSections) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AnalyzedPlanSections(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx context.Context, v interface{}) ([]models.AnticipatedMultiPayerDataAvailabilityUseCase, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.AnticipatedMultiPayerDataAvailabilityUseCase, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx context.Context, sel ast.SelectionSet, v []models.AnticipatedMultiPayerDataAvailabilityUseCase) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (interface{}, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalAny(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.SelectionSet, v interface{}) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalAny(v) - return res -} - -func (ec *executionContext) unmarshalOAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx context.Context, v interface{}) ([]model.AuthorityAllowance, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.AuthorityAllowance, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AuthorityAllowance) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOBenchmarkForPerformanceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐBenchmarkForPerformanceType(ctx context.Context, v interface{}) (*models.BenchmarkForPerformanceType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.BenchmarkForPerformanceType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOBenchmarkForPerformanceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐBenchmarkForPerformanceType(ctx context.Context, sel ast.SelectionSet, v *models.BenchmarkForPerformanceType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx context.Context, v interface{}) ([]model.BeneficiariesType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.BeneficiariesType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.BeneficiariesType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - return res -} - -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalBoolean(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalBoolean(*v) - return res -} - -func (ec *executionContext) unmarshalOCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx context.Context, v interface{}) ([]model.CMMIGroup, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.CMMIGroup, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CMMIGroup) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx context.Context, v interface{}) ([]model.CMSCenter, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.CMSCenter, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CMSCenter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx context.Context, v interface{}) ([]model.CcmInvolvmentType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.CcmInvolvmentType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CcmInvolvmentType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx context.Context, v interface{}) ([]models.ClaimsBasedPayType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ClaimsBasedPayType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ClaimsBasedPayType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOComplexityCalculationLevelType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐComplexityCalculationLevelType(ctx context.Context, v interface{}) (*models.ComplexityCalculationLevelType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.ComplexityCalculationLevelType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOComplexityCalculationLevelType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐComplexityCalculationLevelType(ctx context.Context, sel ast.SelectionSet, v *models.ComplexityCalculationLevelType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOConfidenceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐConfidenceType(ctx context.Context, v interface{}) (*models.ConfidenceType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.ConfidenceType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOConfidenceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐConfidenceType(ctx context.Context, sel ast.SelectionSet, v *models.ConfidenceType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx context.Context, v interface{}) ([]model.ContractorSupportType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ContractorSupportType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ContractorSupportType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalODataExchangeApproachMarkedCompleteNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachMarkedCompleteNotificationType(ctx context.Context, v interface{}) (*models.DataExchangeApproachMarkedCompleteNotificationType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.DataExchangeApproachMarkedCompleteNotificationType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODataExchangeApproachMarkedCompleteNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachMarkedCompleteNotificationType(ctx context.Context, sel ast.SelectionSet, v *models.DataExchangeApproachMarkedCompleteNotificationType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalODataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx context.Context, v interface{}) ([]model.DataForMonitoringType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.DataForMonitoringType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalODataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DataForMonitoringType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalODataFullTimeOrIncrementalType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataFullTimeOrIncrementalType(ctx context.Context, v interface{}) (*models.DataFullTimeOrIncrementalType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.DataFullTimeOrIncrementalType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODataFullTimeOrIncrementalType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataFullTimeOrIncrementalType(ctx context.Context, sel ast.SelectionSet, v *models.DataFullTimeOrIncrementalType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx context.Context, v interface{}) (*models.DataStartsType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.DataStartsType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx context.Context, sel ast.SelectionSet, v *models.DataStartsType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalODataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx context.Context, v interface{}) ([]models.DataToCollectFromParticipants, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.DataToCollectFromParticipants, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalODataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DataToCollectFromParticipants) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalODataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx context.Context, v interface{}) ([]model.DataToSendParticipantsType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.DataToSendParticipantsType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalODataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DataToSendParticipantsType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalODataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx context.Context, v interface{}) ([]models.DataToSendToParticipants, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.DataToSendToParticipants, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalODataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DataToSendToParticipants) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalODatesChangedNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatesChangedNotificationType(ctx context.Context, v interface{}) (*models.DatesChangedNotificationType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.DatesChangedNotificationType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODatesChangedNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatesChangedNotificationType(ctx context.Context, sel ast.SelectionSet, v *models.DatesChangedNotificationType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) marshalODiscussionRoleSelection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionRoleSelection(ctx context.Context, sel ast.SelectionSet, v *models.DiscussionRoleSelection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DiscussionRoleSelection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx context.Context, v interface{}) (*models.DiscussionUserRole, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.DiscussionUserRole(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx context.Context, sel ast.SelectionSet, v *models.DiscussionUserRole) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOEaseOfUse2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEaseOfUse(ctx context.Context, v interface{}) (*model.EaseOfUse, error) { - if v == nil { - return nil, nil - } - var res = new(model.EaseOfUse) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOEaseOfUse2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEaseOfUse(ctx context.Context, sel ast.SelectionSet, v *model.EaseOfUse) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx context.Context, v interface{}) ([]model.EvaluationApproachType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.EvaluationApproachType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.EvaluationApproachType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalOExistingModel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModel(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModel) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ExistingModel(ctx, sel, v) -} - -func (ec *executionContext) marshalOExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModelLinks) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ExistingModelLinks(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx context.Context, v interface{}) ([]models.FrequencyType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.FrequencyType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.FrequencyType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx context.Context, v interface{}) ([]models.FundingSource, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.FundingSource, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx context.Context, sel ast.SelectionSet, v []models.FundingSource) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx context.Context, v interface{}) ([]model.GainshareArrangementEligibility, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.GainshareArrangementEligibility, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GainshareArrangementEligibility) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx context.Context, v interface{}) ([]model.GeographyApplication, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.GeographyApplication, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GeographyApplication) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx context.Context, v interface{}) ([]models.GeographyRegionType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.GeographyRegionType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.GeographyRegionType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx context.Context, v interface{}) ([]model.GeographyType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.GeographyType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GeographyType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { - res, err := graphql.UnmarshalInt(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - res := graphql.MarshalInt(v) - return res -} - -func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]int, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOInt2ᚕintᚄ(ctx context.Context, sel ast.SelectionSet, v []int) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNInt2int(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalInt(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalInt(*v) - return res -} - -func (ec *executionContext) unmarshalOKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx context.Context, v interface{}) ([]model.KeyCharacteristic, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.KeyCharacteristic, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx context.Context, sel ast.SelectionSet, v []model.KeyCharacteristic) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalOMTOCommonMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestone(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonMilestone) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._MTOCommonMilestone(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOMTOCommonMilestoneKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx context.Context, v interface{}) (*models.MTOCommonMilestoneKey, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.MTOCommonMilestoneKey(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMTOCommonMilestoneKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonMilestoneKey) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) marshalOMTOCommonSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolution(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonSolution) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._MTOCommonSolution(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOMTOCommonSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx context.Context, v interface{}) (*models.MTOCommonSolutionKey, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.MTOCommonSolutionKey(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMTOCommonSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonSolutionKey) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx context.Context, v interface{}) ([]models.MTOFacilitator, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.MTOFacilitator, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MTOFacilitator) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOMTOMilestoneStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx context.Context, v interface{}) (*models.MTOMilestoneStatus, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.MTOMilestoneStatus(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMTOMilestoneStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx context.Context, sel ast.SelectionSet, v *models.MTOMilestoneStatus) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, v interface{}) (models.MTORiskIndicator, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.MTORiskIndicator(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, sel ast.SelectionSet, v models.MTORiskIndicator) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - return res -} - -func (ec *executionContext) unmarshalOMTORiskIndicator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, v interface{}) (*models.MTORiskIndicator, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.MTORiskIndicator(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMTORiskIndicator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, sel ast.SelectionSet, v *models.MTORiskIndicator) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOMTOSolutionStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx context.Context, v interface{}) (*models.MTOSolutionStatus, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.MTOSolutionStatus(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMTOSolutionStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx context.Context, sel ast.SelectionSet, v *models.MTOSolutionStatus) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOMTOSolutionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx context.Context, v interface{}) (*models.MTOSolutionType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.MTOSolutionType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMTOSolutionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx context.Context, sel ast.SelectionSet, v *models.MTOSolutionType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalMap(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalMap(v) - return res -} - -func (ec *executionContext) unmarshalOMintUses2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUsesᚄ(ctx context.Context, v interface{}) ([]model.MintUses, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.MintUses, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNMintUses2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUses(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOMintUses2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUsesᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MintUses) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMintUses2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUses(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx context.Context, v interface{}) ([]models.ModelCategory, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ModelCategory, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelCategory) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOModelCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx context.Context, v interface{}) (*models.ModelCategory, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.ModelCategory(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOModelCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx context.Context, sel ast.SelectionSet, v *models.ModelCategory) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx context.Context, v interface{}) ([]model.ModelLearningSystemType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ModelLearningSystemType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ModelLearningSystemType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOModelPhase2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx context.Context, v interface{}) (*models.ModelPhase, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.ModelPhase(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOModelPhase2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx context.Context, sel ast.SelectionSet, v *models.ModelPhase) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) marshalOModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx context.Context, sel ast.SelectionSet, v *models.ModelPlan) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ModelPlan(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOModelStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx context.Context, v interface{}) (*models.ModelStatus, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.ModelStatus(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOModelStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx context.Context, sel ast.SelectionSet, v *models.ModelStatus) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx context.Context, v interface{}) ([]models.ModelType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ModelType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx context.Context, v interface{}) (*models.ModelViewFilter, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.ModelViewFilter(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx context.Context, sel ast.SelectionSet, v *models.ModelViewFilter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx context.Context, v interface{}) ([]model.MonitoringFileType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.MonitoringFileType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MonitoringFileType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx context.Context, v interface{}) ([]models.MultiSourceDataToCollect, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.MultiSourceDataToCollect, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MultiSourceDataToCollect) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalONonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx context.Context, v interface{}) ([]model.NonClaimsBasedPayType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.NonClaimsBasedPayType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalONonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.NonClaimsBasedPayType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOOpSolutionStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx context.Context, v interface{}) (*models.OpSolutionStatus, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.OpSolutionStatus(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOOpSolutionStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx context.Context, sel ast.SelectionSet, v *models.OpSolutionStatus) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOOperationalNeedKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx context.Context, v interface{}) (*models.OperationalNeedKey, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.OperationalNeedKey(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOOperationalNeedKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx context.Context, sel ast.SelectionSet, v *models.OperationalNeedKey) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx context.Context, v interface{}) ([]models.OperationalSolutionKey, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.OperationalSolutionKey, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx context.Context, sel ast.SelectionSet, v []models.OperationalSolutionKey) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOOperationalSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx context.Context, v interface{}) (*models.OperationalSolutionKey, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.OperationalSolutionKey(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOOperationalSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx context.Context, sel ast.SelectionSet, v *models.OperationalSolutionKey) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) marshalOOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationalSolutionSubtask) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNOperationalSolutionSubtask2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtask(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOOverlapType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOverlapType(ctx context.Context, v interface{}) (*models.OverlapType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.OverlapType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOOverlapType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOverlapType(ctx context.Context, sel ast.SelectionSet, v *models.OverlapType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantCommunicationType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantCommunicationType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantCommunicationType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantRequireFinancialGuaranteeType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantRequireFinancialGuaranteeType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantRequireFinancialGuaranteeType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx context.Context, v interface{}) ([]models.ParticipantRiskType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ParticipantRiskType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ParticipantRiskType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantSelectionType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantSelectionType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantSelectionType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantsIDType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantsIDType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantsIDType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantsType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ParticipantsType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantsType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx context.Context, v interface{}) ([]models.PayRecipient, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.PayRecipient, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx context.Context, sel ast.SelectionSet, v []models.PayRecipient) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx context.Context, v interface{}) ([]models.PayType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.PayType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.PayType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalOPhaseSuggestion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPhaseSuggestion(ctx context.Context, sel ast.SelectionSet, v *model.PhaseSuggestion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._PhaseSuggestion(ctx, sel, v) -} - -func (ec *executionContext) marshalOPlanDocumentSolutionLink2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentSolutionLinkᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanDocumentSolutionLink) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNPlanDocumentSolutionLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentSolutionLink(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalOPossibleOperationalSolutionContact2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContact(ctx context.Context, sel ast.SelectionSet, v *models.PossibleOperationalSolutionContact) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._PossibleOperationalSolutionContact(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx context.Context, v interface{}) ([]model.ProviderAddType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ProviderAddType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProviderAddType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx context.Context, v interface{}) ([]model.ProviderLeaveType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.ProviderLeaveType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProviderLeaveType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalORecentModification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecentModification(ctx context.Context, sel ast.SelectionSet, v *models.RecentModification) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._RecentModification(ctx, sel, v) -} - -func (ec *executionContext) unmarshalORecruitmentType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecruitmentType(ctx context.Context, v interface{}) (*models.RecruitmentType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.RecruitmentType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalORecruitmentType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecruitmentType(ctx context.Context, sel ast.SelectionSet, v *models.RecruitmentType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOReportAProblemSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSection(ctx context.Context, v interface{}) (*model.ReportAProblemSection, error) { - if v == nil { - return nil, nil - } - var res = new(model.ReportAProblemSection) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOReportAProblemSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSection(ctx context.Context, sel ast.SelectionSet, v *model.ReportAProblemSection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOReportAProblemSeverity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSeverity(ctx context.Context, v interface{}) (*model.ReportAProblemSeverity, error) { - if v == nil { - return nil, nil - } - var res = new(model.ReportAProblemSeverity) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOReportAProblemSeverity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSeverity(ctx context.Context, sel ast.SelectionSet, v *model.ReportAProblemSeverity) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOSatisfactionLevel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSatisfactionLevel(ctx context.Context, v interface{}) (*model.SatisfactionLevel, error) { - if v == nil { - return nil, nil - } - var res = new(model.SatisfactionLevel) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOSatisfactionLevel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSatisfactionLevel(ctx context.Context, sel ast.SelectionSet, v *model.SatisfactionLevel) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx context.Context, v interface{}) ([]model.SelectionMethodType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.SelectionMethodType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SelectionMethodType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx context.Context, v interface{}) ([]model.StakeholdersType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.StakeholdersType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.StakeholdersType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx context.Context, v interface{}) ([]models.StatesAndTerritories, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.StatesAndTerritories, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx context.Context, sel ast.SelectionSet, v []models.StatesAndTerritories) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - return res -} - -func (ec *executionContext) unmarshalOString2ᚕstring(ctx context.Context, v interface{}) ([]string, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalOString2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOString2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalOString2string(ctx, sel, v[i]) - } - - return ret -} - -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNString2string(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalString(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(*v) - return res -} - -func (ec *executionContext) unmarshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx context.Context, v interface{}) (*models.TableName, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.TableName(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx context.Context, sel ast.SelectionSet, v *models.TableName) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) marshalOTaggedContent2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedContent(ctx context.Context, sel ast.SelectionSet, v *models.TaggedContent) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TaggedContent(ctx, sel, v) -} - -func (ec *executionContext) marshalOTaggedEntity2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedEntity(ctx context.Context, sel ast.SelectionSet, v models.TaggedEntity) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TaggedEntity(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOTaskListSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx context.Context, v interface{}) (models.TaskListSection, error) { - tmp, err := graphql.UnmarshalString(v) - res := models.TaskListSection(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTaskListSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx context.Context, sel ast.SelectionSet, v models.TaskListSection) graphql.Marshaler { - res := graphql.MarshalString(string(v)) - return res -} - -func (ec *executionContext) unmarshalOTaskListSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx context.Context, v interface{}) (*models.TaskListSection, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.TaskListSection(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTaskListSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx context.Context, sel ast.SelectionSet, v *models.TaskListSection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOTaskStatusInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐTaskStatusInput(ctx context.Context, v interface{}) (*model.TaskStatusInput, error) { - if v == nil { - return nil, nil - } - var res = new(model.TaskStatusInput) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTaskStatusInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐTaskStatusInput(ctx context.Context, sel ast.SelectionSet, v *model.TaskStatusInput) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { - res, err := graphql.UnmarshalTime(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { - res := graphql.MarshalTime(v) - return res -} - -func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalTime(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalTime(*v) - return res -} - -func (ec *executionContext) marshalOTranslatedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.TranslatedAudit) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNTranslatedAudit2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAudit(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalOTranslatedAuditMetaData2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaData(ctx context.Context, sel ast.SelectionSet, v models.TranslatedAuditMetaData) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TranslatedAuditMetaData(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOTranslatedAuditMetaDataType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaDataType(ctx context.Context, v interface{}) (*models.TranslatedAuditMetaDataType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.TranslatedAuditMetaDataType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTranslatedAuditMetaDataType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaDataType(ctx context.Context, sel ast.SelectionSet, v *models.TranslatedAuditMetaDataType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOTranslationQuestionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationQuestionType(ctx context.Context, v interface{}) (*models.TranslationQuestionType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.TranslationQuestionType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTranslationQuestionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationQuestionType(ctx context.Context, sel ast.SelectionSet, v *models.TranslationQuestionType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOTriStateAnswer2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTriStateAnswer(ctx context.Context, v interface{}) (*models.TriStateAnswer, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.TriStateAnswer(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTriStateAnswer2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTriStateAnswer(ctx context.Context, sel ast.SelectionSet, v *models.TriStateAnswer) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (uuid.UUID, error) { - res, err := models.UnmarshalUUID(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, sel ast.SelectionSet, v uuid.UUID) graphql.Marshaler { - res := models.MarshalUUID(v) - return res -} - -func (ec *executionContext) unmarshalOUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v interface{}) ([]uuid.UUID, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]uuid.UUID, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, sel ast.SelectionSet, v []uuid.UUID) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (*uuid.UUID, error) { - if v == nil { - return nil, nil - } - res, err := models.UnmarshalUUID(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, sel ast.SelectionSet, v *uuid.UUID) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := models.MarshalUUID(*v) - return res -} - -func (ec *executionContext) marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx context.Context, sel ast.SelectionSet, v *authentication.UserAccount) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._UserAccount(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx context.Context, v interface{}) ([]models.UserNotificationPreferenceFlag, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.UserNotificationPreferenceFlag, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx context.Context, sel ast.SelectionSet, v []models.UserNotificationPreferenceFlag) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx context.Context, v interface{}) ([]models.ViewCustomizationType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.ViewCustomizationType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ViewCustomizationType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx context.Context, v interface{}) ([]model.WaiverType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]model.WaiverType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.WaiverType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx context.Context, v interface{}) (*models.YesNoOtherType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := models.YesNoOtherType(tmp) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx context.Context, sel ast.SelectionSet, v *models.YesNoOtherType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(string(*v)) - return res -} - -func (ec *executionContext) unmarshalOYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx context.Context, v interface{}) ([]models.YesNoType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]models.YesNoType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.YesNoType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.___Schema(ctx, sel, v) -} - -func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.___Type(ctx, sel, v) -} - -// endregion ***************************** type.gotpl ***************************** diff --git a/pkg/graph/model/models_gen.go b/pkg/graph/model/models_gen.go deleted file mode 100644 index fbf73a19af..0000000000 --- a/pkg/graph/model/models_gen.go +++ /dev/null @@ -1,2638 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package model - -import ( - "fmt" - "io" - "strconv" - "time" - - "github.com/99designs/gqlgen/graphql" - "github.com/cms-enterprise/mint-app/pkg/authentication" - "github.com/cms-enterprise/mint-app/pkg/models" - "github.com/google/uuid" -) - -type CreateOperationalSolutionSubtaskInput struct { - Name string `json:"name"` - Status models.OperationalSolutionSubtaskStatus `json:"status"` -} - -// DiscussionReplyCreateInput represents the necessary fields to create a discussion reply -type DiscussionReplyCreateInput struct { - DiscussionID uuid.UUID `json:"discussionID"` - Content models.TaggedHTML `json:"content"` - UserRole *models.DiscussionUserRole `json:"userRole,omitempty"` - UserRoleDescription *string `json:"userRoleDescription,omitempty"` -} - -// Represents discussion reply translation data -type DiscussionReplyTranslation struct { - UserRole models.TranslationFieldWithOptions `json:"userRole" db:"user_role"` - UserRoleDescription models.TranslationField `json:"userRoleDescription" db:"user_role_description"` - Content models.TranslationField `json:"content" db:"content"` - IsAssessment models.TranslationFieldWithOptions `json:"isAssessment" db:"is_assessment"` -} - -// Represents existing model link translation data -type ExistingModelLinkTranslation struct { - ExistingModelID models.TranslationField `json:"existingModelID" db:"existing_model_id"` - CurrentModelPlanID models.TranslationField `json:"currentModelPlanID" db:"current_model_plan_id"` - FieldName models.TranslationFieldWithOptions `json:"fieldName" db:"field_name"` -} - -// The current user's Launch Darkly key -type LaunchDarklySettings struct { - UserKey string `json:"userKey"` - SignedHash string `json:"signedHash"` -} - -type LockableSectionLockStatus struct { - ModelPlanID uuid.UUID `json:"modelPlanID"` - Section models.LockableSection `json:"section"` - LockedByUserAccount authentication.UserAccount `json:"lockedByUserAccount"` - IsAssessment bool `json:"isAssessment"` -} - -type LockableSectionLockStatusChanged struct { - ChangeType ChangeType `json:"changeType"` - LockStatus LockableSectionLockStatus `json:"lockStatus"` - ActionType ActionType `json:"actionType"` -} - -// Represents MTO Category translation data -type MTOCategoryTranslation struct { - Name models.TranslationField `json:"name" db:"name"` -} - -// Represents mto info translation data -type MTOInfoTranslation struct { - ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` - ReadyForReviewDts models.TranslationField `json:"readyForReviewDTS" db:"ready_for_review_dts"` -} - -// Represents MTO Custom Milestone translation data -type MTOMilestoneTranslation struct { - Name models.TranslationField `json:"name" db:"name"` -} - -// Represents model plan base translation data -type ModelPlanTranslation struct { - ModelName models.TranslationField `json:"modelName" db:"model_name"` - PreviousName models.TranslationField `json:"previousName"` - NameHistory models.TranslationField `json:"nameHistory"` - Abbreviation models.TranslationField `json:"abbreviation" db:"abbreviation"` - Archived models.TranslationFieldWithOptions `json:"archived" db:"archived"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -// NDAInfo represents whether a user has agreed to an NDA or not. If agreed to previously, there will be a datestamp visible -type NDAInfo struct { - Agreed bool `json:"agreed"` - AgreedDts *time.Time `json:"agreedDts,omitempty"` -} - -// Represents operational need translation data -type OperationalNeedTranslation struct { - // Name comes from the possible operational need table. It is not returned in an audit - Name models.TranslationField `json:"name" db:"need_name"` - NameOther models.TranslationField `json:"nameOther" db:"name_other"` - // Key comes from the possible operational need table. It is not returned in an audit - Key models.TranslationFieldWithOptions `json:"key" db:"need_key"` - Needed models.TranslationFieldWithOptions `json:"needed" db:"needed"` - Section models.TranslationFieldWithOptions `json:"section" db:"section"` -} - -// Represents operational solution subtask translation data -type OperationalSolutionSubtaskTranslation struct { - Name models.TranslationField `json:"name" db:"name"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -// Represents operational solution translation data -type OperationalSolutionTranslation struct { - // Name comes from the possible operational solution table. It is not returned in an audit - Name models.TranslationField `json:"name" db:"sol_name"` - NameOther models.TranslationField `json:"nameOther" db:"name_other"` - IsOther models.TranslationFieldWithOptions `json:"isOther" db:"is_other"` - OtherHeader models.TranslationField `json:"otherHeader" db:"other_header"` - PocName models.TranslationField `json:"pocName" db:"poc_name"` - PocEmail models.TranslationField `json:"pocEmail" db:"poc_email"` - MustStartDts models.TranslationField `json:"mustStartDts" db:"must_start_dts"` - MustFinishDts models.TranslationField `json:"mustFinishDts" db:"must_finish_dts"` - Needed models.TranslationFieldWithOptions `json:"needed" db:"needed"` - // Key comes from the possible operational solution table. It is not returned in an audit - Key models.TranslationFieldWithOptions `json:"key" db:"sol_key"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -// PhaseSuggestion is a suggestion response for a potential next phase and corresponding statuses for a model plan -type PhaseSuggestion struct { - Phase models.ModelPhase `json:"phase"` - SuggestedStatuses []models.ModelStatus `json:"suggestedStatuses"` -} - -// Represents plan basics translation data -type PlanBasicsTranslation struct { - ModelCategory models.TranslationFieldWithOptions `json:"modelCategory" db:"model_category"` - AdditionalModelCategories models.TranslationFieldWithOptions `json:"additionalModelCategories" db:"additional_model_categories"` - DemoCode models.TranslationField `json:"demoCode" db:"demo_code"` - AmsModelID models.TranslationField `json:"amsModelID" db:"ams_model_id"` - CmsCenters models.TranslationFieldWithOptions `json:"cmsCenters" db:"cms_centers"` - CmmiGroups models.TranslationFieldWithOptions `json:"cmmiGroups" db:"cmmi_groups"` - ModelType models.TranslationFieldWithOptions `json:"modelType" db:"model_type"` - ModelTypeOther models.TranslationField `json:"modelTypeOther" db:"model_type_other"` - Problem models.TranslationField `json:"problem" db:"problem"` - Goal models.TranslationField `json:"goal" db:"goal"` - TestInterventions models.TranslationField `json:"testInterventions" db:"test_interventions"` - Note models.TranslationField `json:"note" db:"note"` - CompleteIcip models.TranslationField `json:"completeICIP" db:"complete_icip"` - ClearanceStarts models.TranslationField `json:"clearanceStarts" db:"clearance_starts"` - ClearanceEnds models.TranslationField `json:"clearanceEnds" db:"clearance_ends"` - Announced models.TranslationField `json:"announced" db:"announced"` - ApplicationsStart models.TranslationField `json:"applicationsStart" db:"applications_starts"` - ApplicationsEnd models.TranslationField `json:"applicationsEnd" db:"applications_ends"` - PerformancePeriodStarts models.TranslationField `json:"performancePeriodStarts" db:"performance_period_starts"` - PerformancePeriodEnds models.TranslationField `json:"performancePeriodEnds" db:"performance_period_ends"` - WrapUpEnds models.TranslationField `json:"wrapUpEnds" db:"wrap_up_ends"` - HighLevelNote models.TranslationField `json:"highLevelNote" db:"high_level_note"` - PhasedIn models.TranslationFieldWithOptions `json:"phasedIn" db:"phased_in"` - PhasedInNote models.TranslationField `json:"phasedInNote" db:"phased_in_note"` - ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` - ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` - ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` - ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -// Represents plan beneficiaries translation data -type PlanBeneficiariesTranslation struct { - Beneficiaries models.TranslationFieldWithOptions `json:"beneficiaries" db:"beneficiaries"` - BeneficiariesOther models.TranslationField `json:"beneficiariesOther" db:"beneficiaries_other"` - BeneficiariesNote models.TranslationField `json:"beneficiariesNote" db:"beneficiaries_note"` - DiseaseSpecificGroup models.TranslationField `json:"diseaseSpecificGroup" db:"disease_specific_group"` - TreatDualElligibleDifferent models.TranslationFieldWithOptions `json:"treatDualElligibleDifferent" db:"treat_dual_elligible_different"` - TreatDualElligibleDifferentHow models.TranslationField `json:"treatDualElligibleDifferentHow" db:"treat_dual_elligible_different_how"` - TreatDualElligibleDifferentNote models.TranslationField `json:"treatDualElligibleDifferentNote" db:"treat_dual_elligible_different_note"` - ExcludeCertainCharacteristics models.TranslationFieldWithOptions `json:"excludeCertainCharacteristics" db:"exclude_certain_characteristics"` - ExcludeCertainCharacteristicsCriteria models.TranslationField `json:"excludeCertainCharacteristicsCriteria" db:"exclude_certain_characteristics_criteria"` - ExcludeCertainCharacteristicsNote models.TranslationField `json:"excludeCertainCharacteristicsNote" db:"exclude_certain_characteristics_note"` - NumberPeopleImpacted models.TranslationField `json:"numberPeopleImpacted" db:"number_people_impacted"` - EstimateConfidence models.TranslationFieldWithOptions `json:"estimateConfidence" db:"estimate_confidence"` - ConfidenceNote models.TranslationField `json:"confidenceNote" db:"confidence_note"` - BeneficiarySelectionMethod models.TranslationFieldWithOptions `json:"beneficiarySelectionMethod" db:"beneficiary_selection_method"` - BeneficiarySelectionOther models.TranslationField `json:"beneficiarySelectionOther" db:"beneficiary_selection_other"` - BeneficiarySelectionNote models.TranslationField `json:"beneficiarySelectionNote" db:"beneficiary_selection_note"` - BeneficiarySelectionFrequency models.TranslationFieldWithOptions `json:"beneficiarySelectionFrequency" db:"beneficiary_selection_frequency"` - BeneficiarySelectionFrequencyContinually models.TranslationField `json:"beneficiarySelectionFrequencyContinually" db:"beneficiary_selection_frequency_continually"` - BeneficiarySelectionFrequencyOther models.TranslationField `json:"beneficiarySelectionFrequencyOther" db:"beneficiary_selection_frequency_other"` - BeneficiarySelectionFrequencyNote models.TranslationField `json:"beneficiarySelectionFrequencyNote" db:"beneficiary_selection_frequency_note"` - BeneficiaryRemovalFrequency models.TranslationFieldWithOptions `json:"beneficiaryRemovalFrequency" db:"beneficiary_removal_frequency"` - BeneficiaryRemovalFrequencyContinually models.TranslationField `json:"beneficiaryRemovalFrequencyContinually" db:"beneficiary_removal_frequency_continually"` - BeneficiaryRemovalFrequencyOther models.TranslationField `json:"beneficiaryRemovalFrequencyOther" db:"beneficiary_removal_frequency_other"` - BeneficiaryRemovalFrequencyNote models.TranslationField `json:"beneficiaryRemovalFrequencyNote" db:"beneficiary_removal_frequency_note"` - BeneficiaryOverlap models.TranslationFieldWithOptions `json:"beneficiaryOverlap" db:"beneficiary_overlap"` - BeneficiaryOverlapNote models.TranslationField `json:"beneficiaryOverlapNote" db:"beneficiary_overlap_note"` - PrecedenceRules models.TranslationFieldWithOptions `json:"precedenceRules" db:"precedence_rules"` - PrecedenceRulesYes models.TranslationField `json:"precedenceRulesYes" db:"precedence_rules_yes"` - PrecedenceRulesNo models.TranslationField `json:"precedenceRulesNo" db:"precedence_rules_no"` - PrecedenceRulesNote models.TranslationField `json:"precedenceRulesNote" db:"precedence_rules_note"` - ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` - ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` - ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` - ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -type PlanCRCreateInput struct { - ModelPlanID uuid.UUID `json:"modelPlanID"` - IDNumber string `json:"idNumber"` - DateInitiated time.Time `json:"dateInitiated"` - DateImplemented time.Time `json:"dateImplemented"` - Title string `json:"title"` - Note *string `json:"note,omitempty"` -} - -// Represents plan cr translation data -type PlanCRTranslation struct { - IDNumber models.TranslationField `json:"idNumber" db:"id_number"` - Title models.TranslationField `json:"title" db:"title"` - DateInitiated models.TranslationField `json:"dateInitiated" db:"date_initiated"` - DateImplemented models.TranslationField `json:"dateImplemented" db:"date_implemented"` - Note models.TranslationField `json:"note" db:"note"` -} - -// PlanCollaboratorCreateInput represents the data required to create a collaborator on a plan -type PlanCollaboratorCreateInput struct { - ModelPlanID uuid.UUID `json:"modelPlanID"` - UserName string `json:"userName"` - TeamRoles []models.TeamRole `json:"teamRoles"` -} - -// Represents plan collaborator translation data -type PlanCollaboratorTranslation struct { - Username models.TranslationField `json:"username" db:"user_account.username"` - UserID models.TranslationField `json:"userID" db:"user_id"` - TeamRoles models.TranslationFieldWithOptions `json:"teamRoles" db:"team_roles"` -} - -// Represents plan data exchange approach translation data -type PlanDataExchangeApproachTranslation struct { - DataToCollectFromParticipants models.TranslationFieldWithOptions `json:"dataToCollectFromParticipants" db:"data_to_collect_from_participants"` - DataToCollectFromParticipantsReportsDetails models.TranslationField `json:"dataToCollectFromParticipantsReportsDetails" db:"data_to_collect_from_participants_reports_details"` - DataToCollectFromParticipantsOther models.TranslationField `json:"dataToCollectFromParticipantsOther" db:"data_to_collect_from_participants_other"` - DataWillNotBeCollectedFromParticipants models.TranslationFieldWithOptions `json:"dataWillNotBeCollectedFromParticipants" db:"data_will_not_be_collected_from_participants"` - DataToCollectFromParticipantsNote models.TranslationField `json:"dataToCollectFromParticipantsNote" db:"data_to_collect_from_participants_note"` - DataToSendToParticipants models.TranslationFieldWithOptions `json:"dataToSendToParticipants" db:"data_to_send_to_participants"` - DataToSendToParticipantsNote models.TranslationField `json:"dataToSendToParticipantsNote" db:"data_to_send_to_participants_note"` - DoesNeedToMakeMultiPayerDataAvailable models.TranslationFieldWithOptionsAndChildren `json:"doesNeedToMakeMultiPayerDataAvailable" db:"does_need_to_make_multi_payer_data_available"` - AnticipatedMultiPayerDataAvailabilityUseCase models.TranslationFieldWithOptionsAndParent `json:"anticipatedMultiPayerDataAvailabilityUseCase" db:"anticipated_multi_payer_data_availability_use_case"` - DoesNeedToMakeMultiPayerDataAvailableNote models.TranslationField `json:"doesNeedToMakeMultiPayerDataAvailableNote" db:"does_need_to_make_multi_payer_data_available_note"` - DoesNeedToCollectAndAggregateMultiSourceData models.TranslationFieldWithOptionsAndChildren `json:"doesNeedToCollectAndAggregateMultiSourceData" db:"does_need_to_collect_and_aggregate_multi_source_data"` - MultiSourceDataToCollect models.TranslationFieldWithOptionsAndParent `json:"multiSourceDataToCollect" db:"multi_source_data_to_collect"` - MultiSourceDataToCollectOther models.TranslationField `json:"multiSourceDataToCollectOther" db:"multi_source_data_to_collect_other"` - DoesNeedToCollectAndAggregateMultiSourceDataNote models.TranslationField `json:"doesNeedToCollectAndAggregateMultiSourceDataNote" db:"does_need_to_collect_and_aggregate_multi_source_data_note"` - WillImplementNewDataExchangeMethods models.TranslationFieldWithOptions `json:"willImplementNewDataExchangeMethods" db:"will_implement_new_data_exchange_methods"` - NewDataExchangeMethodsDescription models.TranslationField `json:"newDataExchangeMethodsDescription" db:"new_data_exchange_methods_description"` - NewDataExchangeMethodsNote models.TranslationField `json:"newDataExchangeMethodsNote" db:"new_data_exchange_methods_note"` - AdditionalDataExchangeConsiderationsDescription models.TranslationField `json:"additionalDataExchangeConsiderationsDescription" db:"additional_data_exchange_considerations_description"` - IsDataExchangeApproachComplete models.TranslationFieldWithOptions `json:"isDataExchangeApproachComplete" db:"is_data_exchange_approach_complete"` - MarkedCompleteBy models.TranslationField `json:"markedCompleteBy" db:"marked_complete_by"` - MarkedCompleteDts models.TranslationField `json:"markedCompleteDts" db:"marked_complete_dts"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -// PlanDiscussionCreateInput represents the necessary fields to create a plan discussion -type PlanDiscussionCreateInput struct { - ModelPlanID uuid.UUID `json:"modelPlanID"` - Content models.TaggedHTML `json:"content"` - UserRole *models.DiscussionUserRole `json:"userRole,omitempty"` - UserRoleDescription *string `json:"userRoleDescription,omitempty"` -} - -// Represents plan discussion translation data -type PlanDiscussionTranslation struct { - UserRole models.TranslationFieldWithOptions `json:"userRole" db:"user_role"` - UserRoleDescription models.TranslationField `json:"userRoleDescription" db:"user_role_description"` - Content models.TranslationField `json:"content" db:"content"` - IsAssessment models.TranslationField `json:"isAssessment" db:"is_assessment"` -} - -// PlanDocumentInput -type PlanDocumentInput struct { - ModelPlanID uuid.UUID `json:"modelPlanID"` - FileData graphql.Upload `json:"fileData"` - DocumentType models.DocumentType `json:"documentType"` - Restricted bool `json:"restricted"` - OtherTypeDescription *string `json:"otherTypeDescription,omitempty"` - OptionalNotes *string `json:"optionalNotes,omitempty"` -} - -// PlanDocumentLinkInput -type PlanDocumentLinkInput struct { - ModelPlanID uuid.UUID `json:"modelPlanID"` - URL string `json:"url"` - Name string `json:"name"` - DocumentType models.DocumentType `json:"documentType"` - Restricted bool `json:"restricted"` - OtherTypeDescription *string `json:"otherTypeDescription,omitempty"` - OptionalNotes *string `json:"optionalNotes,omitempty"` -} - -// Represents document solution link translation data -type PlanDocumentSolutionLinkTranslation struct { - SolutionID models.TranslationField `json:"solutionID" db:"solution_id"` - DocumentID models.TranslationField `json:"documentID" db:"document_id"` -} - -// Represents plan document translation data -type PlanDocumentTranslation struct { - IsLink models.TranslationField `json:"isLink" db:"is_link"` - URL models.TranslationField `json:"url" db:"url"` - FileName models.TranslationField `json:"fileName" db:"file_name"` - DocumentType models.TranslationFieldWithOptions `json:"documentType" db:"document_type"` - OtherType models.TranslationField `json:"otherType" db:"other_type"` - FileType models.TranslationField `json:"fileType" db:"file_type"` - Restricted models.TranslationFieldWithOptions `json:"restricted" db:"restricted"` - OptionalNotes models.TranslationField `json:"optionalNotes" db:"optional_notes"` -} - -// Represents plan general characteristics translation data -type PlanGeneralCharacteristicsTranslation struct { - IsNewModel models.TranslationFieldWithOptionsAndChildren `json:"isNewModel" db:"is_new_model"` - CurrentModelPlanID models.TranslationField `json:"currentModelPlanID" db:"current_model_plan_id"` - ExistingModelID models.TranslationField `json:"existingModelID" db:"existing_model_id"` - // Existing model doesn't exist in the database, it is returned based on if there is a current model plan ID or current model plan ID returned - ExistingModel models.TranslationFieldWithParent `json:"existingModel" db:"existing_model"` - ResemblesExistingModel models.TranslationFieldWithOptionsAndChildren `json:"resemblesExistingModel" db:"resembles_existing_model"` - ResemblesExistingModelWhyHow models.TranslationField `json:"resemblesExistingModelWhyHow" db:"resembles_existing_model_why_how"` - ResemblesExistingModelOtherSpecify models.TranslationField `json:"resemblesExistingModelOtherSpecify" db:"resembles_existing_model_other_specify"` - ResemblesExistingModelOtherOption models.TranslationField `json:"resemblesExistingModelOtherOption" db:"resembles_existing_model_other_option"` - ResemblesExistingModelHow models.TranslationFieldWithParent `json:"resemblesExistingModelHow" db:"resembles_existing_model_how"` - ResemblesExistingModelNote models.TranslationField `json:"resemblesExistingModelNote" db:"resembles_existing_model_note"` - ResemblesExistingModelWhich models.TranslationFieldWithOptionsAndParent `json:"resemblesExistingModelWhich" db:"resembles_existing_model_which"` - ParticipationInModelPrecondition models.TranslationFieldWithOptionsAndChildren `json:"participationInModelPrecondition" db:"participation_in_model_precondition"` - ParticipationInModelPreconditionWhyHow models.TranslationFieldWithParent `json:"participationInModelPreconditionWhyHow" db:"participation_in_model_precondition_why_how"` - ParticipationInModelPreconditionOtherSpecify models.TranslationField `json:"participationInModelPreconditionOtherSpecify" db:"participation_in_model_precondition_other_specify"` - ParticipationInModelPreconditionOtherOption models.TranslationField `json:"participationInModelPreconditionOtherOption" db:"participation_in_model_precondition_other_option"` - ParticipationInModelPreconditionNote models.TranslationField `json:"participationInModelPreconditionNote" db:"participation_in_model_precondition_note"` - ParticipationInModelPreconditionWhich models.TranslationFieldWithOptionsAndParent `json:"participationInModelPreconditionWhich" db:"participation_in_model_precondition_which"` - HasComponentsOrTracks models.TranslationFieldWithOptions `json:"hasComponentsOrTracks" db:"has_components_or_tracks"` - HasComponentsOrTracksDiffer models.TranslationField `json:"hasComponentsOrTracksDiffer" db:"has_components_or_tracks_differ"` - HasComponentsOrTracksNote models.TranslationField `json:"hasComponentsOrTracksNote" db:"has_components_or_tracks_note"` - AgencyOrStateHelp models.TranslationFieldWithOptions `json:"agencyOrStateHelp" db:"agency_or_state_help"` - AgencyOrStateHelpOther models.TranslationField `json:"agencyOrStateHelpOther" db:"agency_or_state_help_other"` - AgencyOrStateHelpNote models.TranslationField `json:"agencyOrStateHelpNote" db:"agency_or_state_help_note"` - AlternativePaymentModelTypes models.TranslationFieldWithOptions `json:"alternativePaymentModelTypes" db:"alternative_payment_model_types"` - AlternativePaymentModelNote models.TranslationField `json:"alternativePaymentModelNote" db:"alternative_payment_model_note"` - KeyCharacteristics models.TranslationFieldWithOptionsAndChildren `json:"keyCharacteristics" db:"key_characteristics"` - KeyCharacteristicsOther models.TranslationField `json:"keyCharacteristicsOther" db:"key_characteristics_other"` - KeyCharacteristicsNote models.TranslationField `json:"keyCharacteristicsNote" db:"key_characteristics_note"` - CollectPlanBids models.TranslationFieldWithOptionsAndParent `json:"collectPlanBids" db:"collect_plan_bids"` - CollectPlanBidsNote models.TranslationField `json:"collectPlanBidsNote" db:"collect_plan_bids_note"` - ManagePartCDEnrollment models.TranslationFieldWithOptionsAndParent `json:"managePartCDEnrollment" db:"manage_part_c_d_enrollment"` - ManagePartCDEnrollmentNote models.TranslationField `json:"managePartCDEnrollmentNote" db:"manage_part_c_d_enrollment_note"` - PlanContractUpdated models.TranslationFieldWithOptionsAndParent `json:"planContractUpdated" db:"plan_contract_updated"` - PlanContractUpdatedNote models.TranslationField `json:"planContractUpdatedNote" db:"plan_contract_updated_note"` - CareCoordinationInvolved models.TranslationFieldWithOptions `json:"careCoordinationInvolved" db:"care_coordination_involved"` - CareCoordinationInvolvedDescription models.TranslationField `json:"careCoordinationInvolvedDescription" db:"care_coordination_involved_description"` - CareCoordinationInvolvedNote models.TranslationField `json:"careCoordinationInvolvedNote" db:"care_coordination_involved_note"` - AdditionalServicesInvolved models.TranslationFieldWithOptions `json:"additionalServicesInvolved" db:"additional_services_involved"` - AdditionalServicesInvolvedDescription models.TranslationField `json:"additionalServicesInvolvedDescription" db:"additional_services_involved_description"` - AdditionalServicesInvolvedNote models.TranslationField `json:"additionalServicesInvolvedNote" db:"additional_services_involved_note"` - CommunityPartnersInvolved models.TranslationFieldWithOptions `json:"communityPartnersInvolved" db:"community_partners_involved"` - CommunityPartnersInvolvedDescription models.TranslationField `json:"communityPartnersInvolvedDescription" db:"community_partners_involved_description"` - CommunityPartnersInvolvedNote models.TranslationField `json:"communityPartnersInvolvedNote" db:"community_partners_involved_note"` - GeographiesTargeted models.TranslationFieldWithOptionsAndChildren `json:"geographiesTargeted" db:"geographies_targeted"` - GeographiesTargetedTypes models.TranslationFieldWithParentAndChildren `json:"geographiesTargetedTypes" db:"geographies_targeted_types"` - GeographiesStatesAndTerritories models.TranslationFieldWithOptionsAndParent `json:"geographiesStatesAndTerritories" db:"geographies_states_and_territories"` - GeographiesRegionTypes models.TranslationFieldWithOptionsAndParent `json:"geographiesRegionTypes" db:"geographies_region_types"` - GeographiesTargetedTypesOther models.TranslationField `json:"geographiesTargetedTypesOther" db:"geographies_targeted_types_other"` - GeographiesTargetedAppliedTo models.TranslationFieldWithOptionsAndParent `json:"geographiesTargetedAppliedTo" db:"geographies_targeted_applied_to"` - GeographiesTargetedAppliedToOther models.TranslationField `json:"geographiesTargetedAppliedToOther" db:"geographies_targeted_applied_to_other"` - GeographiesTargetedNote models.TranslationField `json:"geographiesTargetedNote" db:"geographies_targeted_note"` - ParticipationOptions models.TranslationFieldWithOptions `json:"participationOptions" db:"participation_options"` - ParticipationOptionsNote models.TranslationField `json:"participationOptionsNote" db:"participation_options_note"` - AgreementTypes models.TranslationFieldWithOptionsAndChildren `json:"agreementTypes" db:"agreement_types"` - AgreementTypesOther models.TranslationField `json:"agreementTypesOther" db:"agreement_types_other"` - MultiplePatricipationAgreementsNeeded models.TranslationFieldWithOptionsAndParent `json:"multiplePatricipationAgreementsNeeded" db:"multiple_patricipation_agreements_needed"` - MultiplePatricipationAgreementsNeededNote models.TranslationField `json:"multiplePatricipationAgreementsNeededNote" db:"multiple_patricipation_agreements_needed_note"` - RulemakingRequired models.TranslationFieldWithOptions `json:"rulemakingRequired" db:"rulemaking_required"` - RulemakingRequiredDescription models.TranslationField `json:"rulemakingRequiredDescription" db:"rulemaking_required_description"` - RulemakingRequiredNote models.TranslationField `json:"rulemakingRequiredNote" db:"rulemaking_required_note"` - AuthorityAllowances models.TranslationFieldWithOptions `json:"authorityAllowances" db:"authority_allowances"` - AuthorityAllowancesOther models.TranslationField `json:"authorityAllowancesOther" db:"authority_allowances_other"` - AuthorityAllowancesNote models.TranslationField `json:"authorityAllowancesNote" db:"authority_allowances_note"` - WaiversRequired models.TranslationFieldWithOptions `json:"waiversRequired" db:"waivers_required"` - WaiversRequiredTypes models.TranslationFieldWithOptions `json:"waiversRequiredTypes" db:"waivers_required_types"` - WaiversRequiredNote models.TranslationField `json:"waiversRequiredNote" db:"waivers_required_note"` - ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` - ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` - ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` - ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -// Represents plan ops eval and learning translation data -type PlanOpsEvalAndLearningTranslation struct { - Stakeholders models.TranslationFieldWithOptions `json:"stakeholders" db:"stakeholders"` - StakeholdersOther models.TranslationField `json:"stakeholdersOther" db:"stakeholders_other"` - StakeholdersNote models.TranslationField `json:"stakeholdersNote" db:"stakeholders_note"` - HelpdeskUse models.TranslationFieldWithOptions `json:"helpdeskUse" db:"helpdesk_use"` - HelpdeskUseNote models.TranslationField `json:"helpdeskUseNote" db:"helpdesk_use_note"` - ContractorSupport models.TranslationFieldWithOptionsAndChildren `json:"contractorSupport" db:"contractor_support"` - ContractorSupportOther models.TranslationField `json:"contractorSupportOther" db:"contractor_support_other"` - ContractorSupportHow models.TranslationFieldWithParent `json:"contractorSupportHow" db:"contractor_support_how"` - ContractorSupportNote models.TranslationField `json:"contractorSupportNote" db:"contractor_support_note"` - IddocSupport models.TranslationFieldWithOptionsAndChildren `json:"iddocSupport" db:"iddoc_support"` - IddocSupportNote models.TranslationField `json:"iddocSupportNote" db:"iddoc_support_note"` - TechnicalContactsIdentified models.TranslationFieldWithOptionsAndParent `json:"technicalContactsIdentified" db:"technical_contacts_identified"` - TechnicalContactsIdentifiedDetail models.TranslationField `json:"technicalContactsIdentifiedDetail" db:"technical_contacts_identified_detail"` - TechnicalContactsIdentifiedNote models.TranslationField `json:"technicalContactsIdentifiedNote" db:"technical_contacts_identified_note"` - CaptureParticipantInfo models.TranslationFieldWithOptionsAndParent `json:"captureParticipantInfo" db:"capture_participant_info"` - CaptureParticipantInfoNote models.TranslationField `json:"captureParticipantInfoNote" db:"capture_participant_info_note"` - IcdOwner models.TranslationFieldWithParent `json:"icdOwner" db:"icd_owner"` - DraftIcdDueDate models.TranslationFieldWithParent `json:"draftIcdDueDate" db:"draft_icd_due_date"` - IcdNote models.TranslationFieldWithParent `json:"icdNote" db:"icd_note"` - UatNeeds models.TranslationFieldWithParent `json:"uatNeeds" db:"uat_needs"` - StcNeeds models.TranslationFieldWithParent `json:"stcNeeds" db:"stc_needs"` - TestingTimelines models.TranslationFieldWithParent `json:"testingTimelines" db:"testing_timelines"` - TestingNote models.TranslationField `json:"testingNote" db:"testing_note"` - DataMonitoringFileTypes models.TranslationFieldWithOptionsAndParent `json:"dataMonitoringFileTypes" db:"data_monitoring_file_types"` - DataMonitoringFileOther models.TranslationField `json:"dataMonitoringFileOther" db:"data_monitoring_file_other"` - DataResponseType models.TranslationFieldWithParent `json:"dataResponseType" db:"data_response_type"` - DataResponseFileFrequency models.TranslationFieldWithParent `json:"dataResponseFileFrequency" db:"data_response_file_frequency"` - DataFullTimeOrIncremental models.TranslationFieldWithOptionsAndParent `json:"dataFullTimeOrIncremental" db:"data_full_time_or_incremental"` - EftSetUp models.TranslationFieldWithOptionsAndParent `json:"eftSetUp" db:"eft_set_up"` - UnsolicitedAdjustmentsIncluded models.TranslationFieldWithOptionsAndParent `json:"unsolicitedAdjustmentsIncluded" db:"unsolicited_adjustments_included"` - DataFlowDiagramsNeeded models.TranslationFieldWithOptionsAndParent `json:"dataFlowDiagramsNeeded" db:"data_flow_diagrams_needed"` - ProduceBenefitEnhancementFiles models.TranslationFieldWithOptionsAndParent `json:"produceBenefitEnhancementFiles" db:"produce_benefit_enhancement_files"` - FileNamingConventions models.TranslationFieldWithParent `json:"fileNamingConventions" db:"file_naming_conventions"` - DataMonitoringNote models.TranslationField `json:"dataMonitoringNote" db:"data_monitoring_note"` - BenchmarkForPerformance models.TranslationFieldWithOptions `json:"benchmarkForPerformance" db:"benchmark_for_performance"` - BenchmarkForPerformanceNote models.TranslationField `json:"benchmarkForPerformanceNote" db:"benchmark_for_performance_note"` - ComputePerformanceScores models.TranslationFieldWithOptions `json:"computePerformanceScores" db:"compute_performance_scores"` - ComputePerformanceScoresNote models.TranslationField `json:"computePerformanceScoresNote" db:"compute_performance_scores_note"` - RiskAdjustPerformance models.TranslationFieldWithOptions `json:"riskAdjustPerformance" db:"risk_adjust_performance"` - RiskAdjustFeedback models.TranslationFieldWithOptions `json:"riskAdjustFeedback" db:"risk_adjust_feedback"` - RiskAdjustPayments models.TranslationFieldWithOptions `json:"riskAdjustPayments" db:"risk_adjust_payments"` - RiskAdjustOther models.TranslationFieldWithOptions `json:"riskAdjustOther" db:"risk_adjust_other"` - RiskAdjustNote models.TranslationField `json:"riskAdjustNote" db:"risk_adjust_note"` - AppealPerformance models.TranslationFieldWithOptions `json:"appealPerformance" db:"appeal_performance"` - AppealFeedback models.TranslationFieldWithOptions `json:"appealFeedback" db:"appeal_feedback"` - AppealPayments models.TranslationFieldWithOptions `json:"appealPayments" db:"appeal_payments"` - AppealOther models.TranslationFieldWithOptions `json:"appealOther" db:"appeal_other"` - AppealNote models.TranslationField `json:"appealNote" db:"appeal_note"` - EvaluationApproaches models.TranslationFieldWithOptions `json:"evaluationApproaches" db:"evaluation_approaches"` - EvaluationApproachOther models.TranslationField `json:"evaluationApproachOther" db:"evaluation_approach_other"` - EvalutaionApproachNote models.TranslationField `json:"evalutaionApproachNote" db:"evalutaion_approach_note"` - CcmInvolvment models.TranslationFieldWithOptionsAndChildren `json:"ccmInvolvment" db:"ccm_involvment"` - CcmInvolvmentOther models.TranslationField `json:"ccmInvolvmentOther" db:"ccm_involvment_other"` - CcmInvolvmentNote models.TranslationField `json:"ccmInvolvmentNote" db:"ccm_involvment_note"` - DataNeededForMonitoring models.TranslationFieldWithOptionsAndChildren `json:"dataNeededForMonitoring" db:"data_needed_for_monitoring"` - DataNeededForMonitoringOther models.TranslationField `json:"dataNeededForMonitoringOther" db:"data_needed_for_monitoring_other"` - DataNeededForMonitoringNote models.TranslationField `json:"dataNeededForMonitoringNote" db:"data_needed_for_monitoring_note"` - DataToSendParticicipants models.TranslationFieldWithOptions `json:"dataToSendParticicipants" db:"data_to_send_particicipants"` - DataToSendParticicipantsOther models.TranslationField `json:"dataToSendParticicipantsOther" db:"data_to_send_particicipants_other"` - DataToSendParticicipantsNote models.TranslationField `json:"dataToSendParticicipantsNote" db:"data_to_send_particicipants_note"` - ShareCclfData models.TranslationFieldWithOptions `json:"shareCclfData" db:"share_cclf_data"` - ShareCclfDataNote models.TranslationField `json:"shareCclfDataNote" db:"share_cclf_data_note"` - SendFilesBetweenCcw models.TranslationFieldWithOptionsAndParent `json:"sendFilesBetweenCcw" db:"send_files_between_ccw"` - SendFilesBetweenCcwNote models.TranslationField `json:"sendFilesBetweenCcwNote" db:"send_files_between_ccw_note"` - AppToSendFilesToKnown models.TranslationFieldWithOptionsAndParent `json:"appToSendFilesToKnown" db:"app_to_send_files_to_known"` - AppToSendFilesToWhich models.TranslationField `json:"appToSendFilesToWhich" db:"app_to_send_files_to_which"` - AppToSendFilesToNote models.TranslationField `json:"appToSendFilesToNote" db:"app_to_send_files_to_note"` - UseCcwForFileDistribiutionToParticipants models.TranslationFieldWithOptionsAndParent `json:"useCcwForFileDistribiutionToParticipants" db:"use_ccw_for_file_distribiution_to_participants"` - UseCcwForFileDistribiutionToParticipantsNote models.TranslationField `json:"useCcwForFileDistribiutionToParticipantsNote" db:"use_ccw_for_file_distribiution_to_participants_note"` - DevelopNewQualityMeasures models.TranslationFieldWithOptionsAndParent `json:"developNewQualityMeasures" db:"develop_new_quality_measures"` - DevelopNewQualityMeasuresNote models.TranslationField `json:"developNewQualityMeasuresNote" db:"develop_new_quality_measures_note"` - QualityPerformanceImpactsPayment models.TranslationFieldWithOptionsAndParent `json:"qualityPerformanceImpactsPayment" db:"quality_performance_impacts_payment"` - QualityPerformanceImpactsPaymentOther models.TranslationField `json:"qualityPerformanceImpactsPaymentOther" db:"quality_performance_impacts_payment_other"` - QualityPerformanceImpactsPaymentNote models.TranslationField `json:"qualityPerformanceImpactsPaymentNote" db:"quality_performance_impacts_payment_note"` - DataSharingStarts models.TranslationFieldWithOptions `json:"dataSharingStarts" db:"data_sharing_starts"` - DataSharingStartsOther models.TranslationField `json:"dataSharingStartsOther" db:"data_sharing_starts_other"` - DataSharingFrequency models.TranslationFieldWithOptions `json:"dataSharingFrequency" db:"data_sharing_frequency"` - DataSharingFrequencyContinually models.TranslationField `json:"dataSharingFrequencyContinually" db:"data_sharing_frequency_continually"` - DataSharingFrequencyOther models.TranslationField `json:"dataSharingFrequencyOther" db:"data_sharing_frequency_other"` - DataSharingStartsNote models.TranslationField `json:"dataSharingStartsNote" db:"data_sharing_starts_note"` - DataCollectionStarts models.TranslationFieldWithOptions `json:"dataCollectionStarts" db:"data_collection_starts"` - DataCollectionStartsOther models.TranslationField `json:"dataCollectionStartsOther" db:"data_collection_starts_other"` - DataCollectionFrequency models.TranslationFieldWithOptions `json:"dataCollectionFrequency" db:"data_collection_frequency"` - DataCollectionFrequencyContinually models.TranslationField `json:"dataCollectionFrequencyContinually" db:"data_collection_frequency_continually"` - DataCollectionFrequencyOther models.TranslationField `json:"dataCollectionFrequencyOther" db:"data_collection_frequency_other"` - DataCollectionFrequencyNote models.TranslationField `json:"dataCollectionFrequencyNote" db:"data_collection_frequency_note"` - QualityReportingStarts models.TranslationFieldWithOptions `json:"qualityReportingStarts" db:"quality_reporting_starts"` - QualityReportingStartsOther models.TranslationField `json:"qualityReportingStartsOther" db:"quality_reporting_starts_other"` - QualityReportingStartsNote models.TranslationField `json:"qualityReportingStartsNote" db:"quality_reporting_starts_note"` - QualityReportingFrequency models.TranslationFieldWithOptions `json:"qualityReportingFrequency" db:"quality_reporting_frequency"` - QualityReportingFrequencyContinually models.TranslationField `json:"qualityReportingFrequencyContinually" db:"quality_reporting_frequency_continually"` - QualityReportingFrequencyOther models.TranslationField `json:"qualityReportingFrequencyOther" db:"quality_reporting_frequency_other"` - ModelLearningSystems models.TranslationFieldWithOptions `json:"modelLearningSystems" db:"model_learning_systems"` - ModelLearningSystemsOther models.TranslationField `json:"modelLearningSystemsOther" db:"model_learning_systems_other"` - ModelLearningSystemsNote models.TranslationField `json:"modelLearningSystemsNote" db:"model_learning_systems_note"` - AnticipatedChallenges models.TranslationField `json:"anticipatedChallenges" db:"anticipated_challenges"` - ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` - ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` - ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` - ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -// Represents plan participants and providers translation data -type PlanParticipantsAndProvidersTranslation struct { - Participants models.TranslationFieldWithOptions `json:"participants" db:"participants"` - MedicareProviderType models.TranslationField `json:"medicareProviderType" db:"medicare_provider_type"` - IsNewTypeOfProvidersOrSuppliers models.TranslationFieldWithOptionsAndParent `json:"isNewTypeOfProvidersOrSuppliers" db:"is_new_type_of_providers_or_suppliers"` - StatesEngagement models.TranslationField `json:"statesEngagement" db:"states_engagement"` - ParticipantsOther models.TranslationField `json:"participantsOther" db:"participants_other"` - ParticipantsNote models.TranslationField `json:"participantsNote" db:"participants_note"` - ParticipantsCurrentlyInModels models.TranslationFieldWithOptions `json:"participantsCurrentlyInModels" db:"participants_currently_in_models"` - ParticipantsCurrentlyInModelsNote models.TranslationField `json:"participantsCurrentlyInModelsNote" db:"participants_currently_in_models_note"` - ModelApplicationLevel models.TranslationField `json:"modelApplicationLevel" db:"model_application_level"` - ExpectedNumberOfParticipants models.TranslationField `json:"expectedNumberOfParticipants" db:"expected_number_of_participants"` - EstimateConfidence models.TranslationFieldWithOptions `json:"estimateConfidence" db:"estimate_confidence"` - ConfidenceNote models.TranslationField `json:"confidenceNote" db:"confidence_note"` - RecruitmentMethod models.TranslationFieldWithOptions `json:"recruitmentMethod" db:"recruitment_method"` - RecruitmentOther models.TranslationField `json:"recruitmentOther" db:"recruitment_other"` - RecruitmentNote models.TranslationField `json:"recruitmentNote" db:"recruitment_note"` - SelectionMethod models.TranslationFieldWithOptions `json:"selectionMethod" db:"selection_method"` - SelectionOther models.TranslationField `json:"selectionOther" db:"selection_other"` - SelectionNote models.TranslationField `json:"selectionNote" db:"selection_note"` - ParticipantAddedFrequency models.TranslationFieldWithOptions `json:"participantAddedFrequency" db:"participant_added_frequency"` - ParticipantAddedFrequencyContinually models.TranslationField `json:"participantAddedFrequencyContinually" db:"participant_added_frequency_continually"` - ParticipantAddedFrequencyOther models.TranslationField `json:"participantAddedFrequencyOther" db:"participant_added_frequency_other"` - ParticipantAddedFrequencyNote models.TranslationField `json:"participantAddedFrequencyNote" db:"participant_added_frequency_note"` - ParticipantRemovedFrequency models.TranslationFieldWithOptions `json:"participantRemovedFrequency" db:"participant_removed_frequency"` - ParticipantRemovedFrequencyContinually models.TranslationField `json:"participantRemovedFrequencyContinually" db:"participant_removed_frequency_continually"` - ParticipantRemovedFrequencyOther models.TranslationField `json:"participantRemovedFrequencyOther" db:"participant_removed_frequency_other"` - ParticipantRemovedFrequencyNote models.TranslationField `json:"participantRemovedFrequencyNote" db:"participant_removed_frequency_note"` - CommunicationMethod models.TranslationFieldWithOptions `json:"communicationMethod" db:"communication_method"` - CommunicationMethodOther models.TranslationField `json:"communicationMethodOther" db:"communication_method_other"` - CommunicationNote models.TranslationField `json:"communicationNote" db:"communication_note"` - RiskType models.TranslationFieldWithOptions `json:"riskType" db:"risk_type"` - RiskOther models.TranslationField `json:"riskOther" db:"risk_other"` - RiskNote models.TranslationField `json:"riskNote" db:"risk_note"` - WillRiskChange models.TranslationFieldWithOptions `json:"willRiskChange" db:"will_risk_change"` - WillRiskChangeNote models.TranslationField `json:"willRiskChangeNote" db:"will_risk_change_note"` - ParticipantRequireFinancialGuarantee models.TranslationFieldWithOptions `json:"participantRequireFinancialGuarantee" db:"participant_require_financial_guarantee"` - ParticipantRequireFinancialGuaranteeType models.TranslationFieldWithOptions `json:"participantRequireFinancialGuaranteeType" db:"participant_require_financial_guarantee_type"` - ParticipantRequireFinancialGuaranteeOther models.TranslationField `json:"participantRequireFinancialGuaranteeOther" db:"participant_require_financial_guarantee_other"` - ParticipantRequireFinancialGuaranteeNote models.TranslationField `json:"participantRequireFinancialGuaranteeNote" db:"participant_require_financial_guarantee_note"` - CoordinateWork models.TranslationFieldWithOptions `json:"coordinateWork" db:"coordinate_work"` - CoordinateWorkNote models.TranslationField `json:"coordinateWorkNote" db:"coordinate_work_note"` - GainsharePayments models.TranslationFieldWithOptionsAndChildren `json:"gainsharePayments" db:"gainshare_payments"` - GainsharePaymentsTrack models.TranslationFieldWithOptionsAndParent `json:"gainsharePaymentsTrack" db:"gainshare_payments_track"` - GainsharePaymentsNote models.TranslationField `json:"gainsharePaymentsNote" db:"gainshare_payments_note"` - GainsharePaymentsEligibility models.TranslationFieldWithOptionsAndParent `json:"gainsharePaymentsEligibility" db:"gainshare_payments_eligibility"` - GainsharePaymentsEligibilityOther models.TranslationField `json:"gainsharePaymentsEligibilityOther" db:"gainshare_payments_eligibility_other"` - ParticipantsIds models.TranslationFieldWithOptions `json:"participantsIds" db:"participants_ids"` - ParticipantsIdsOther models.TranslationField `json:"participantsIdsOther" db:"participants_ids_other"` - ParticipantsIDSNote models.TranslationField `json:"participantsIDSNote" db:"participants_ids_note"` - ProviderAdditionFrequency models.TranslationFieldWithOptions `json:"providerAdditionFrequency" db:"provider_addition_frequency"` - ProviderAdditionFrequencyContinually models.TranslationField `json:"providerAdditionFrequencyContinually" db:"provider_addition_frequency_continually"` - ProviderAdditionFrequencyOther models.TranslationField `json:"providerAdditionFrequencyOther" db:"provider_addition_frequency_other"` - ProviderAdditionFrequencyNote models.TranslationField `json:"providerAdditionFrequencyNote" db:"provider_addition_frequency_note"` - ProviderAddMethod models.TranslationFieldWithOptions `json:"providerAddMethod" db:"provider_add_method"` - ProviderAddMethodOther models.TranslationField `json:"providerAddMethodOther" db:"provider_add_method_other"` - ProviderAddMethodNote models.TranslationField `json:"providerAddMethodNote" db:"provider_add_method_note"` - ProviderLeaveMethod models.TranslationFieldWithOptions `json:"providerLeaveMethod" db:"provider_leave_method"` - ProviderLeaveMethodOther models.TranslationField `json:"providerLeaveMethodOther" db:"provider_leave_method_other"` - ProviderLeaveMethodNote models.TranslationField `json:"providerLeaveMethodNote" db:"provider_leave_method_note"` - ProviderRemovalFrequency models.TranslationFieldWithOptions `json:"providerRemovalFrequency" db:"provider_removal_frequency"` - ProviderRemovalFrequencyContinually models.TranslationField `json:"providerRemovalFrequencyContinually" db:"provider_removal_frequency_continually"` - ProviderRemovalFrequencyOther models.TranslationField `json:"providerRemovalFrequencyOther" db:"provider_removal_frequency_other"` - ProviderRemovalFrequencyNote models.TranslationField `json:"providerRemovalFrequencyNote" db:"provider_removal_frequency_note"` - ProviderOverlap models.TranslationFieldWithOptionsAndChildren `json:"providerOverlap" db:"provider_overlap"` - ProviderOverlapHierarchy models.TranslationFieldWithParent `json:"providerOverlapHierarchy" db:"provider_overlap_hierarchy"` - ProviderOverlapNote models.TranslationField `json:"providerOverlapNote" db:"provider_overlap_note"` - ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` - ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` - ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` - ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -// Represents payments translation data -type PlanPaymentsTranslation struct { - FundingSource models.TranslationFieldWithOptions `json:"fundingSource" db:"funding_source"` - FundingSourcePatientProtectionInfo models.TranslationField `json:"fundingSourcePatientProtectionInfo" db:"funding_source_patient_protection_info"` - FundingSourceMedicareAInfo models.TranslationField `json:"fundingSourceMedicareAInfo" db:"funding_source_medicare_a_info"` - FundingSourceMedicareBInfo models.TranslationField `json:"fundingSourceMedicareBInfo" db:"funding_source_medicare_b_info"` - FundingSourceOther models.TranslationField `json:"fundingSourceOther" db:"funding_source_other"` - FundingSourceNote models.TranslationField `json:"fundingSourceNote" db:"funding_source_note"` - FundingSourceR models.TranslationFieldWithOptions `json:"fundingSourceR" db:"funding_source_r"` - FundingSourceRPatientProtectionInfo models.TranslationField `json:"fundingSourceRPatientProtectionInfo" db:"funding_source_r_patient_protection_info"` - FundingSourceRMedicareAInfo models.TranslationField `json:"fundingSourceRMedicareAInfo" db:"funding_source_r_medicare_a_info"` - FundingSourceRMedicareBInfo models.TranslationField `json:"fundingSourceRMedicareBInfo" db:"funding_source_r_medicare_b_info"` - FundingSourceROther models.TranslationField `json:"fundingSourceROther" db:"funding_source_r_other"` - FundingSourceRNote models.TranslationField `json:"fundingSourceRNote" db:"funding_source_r_note"` - PayRecipients models.TranslationFieldWithOptions `json:"payRecipients" db:"pay_recipients"` - PayRecipientsOtherSpecification models.TranslationField `json:"payRecipientsOtherSpecification" db:"pay_recipients_other_specification"` - PayRecipientsNote models.TranslationField `json:"payRecipientsNote" db:"pay_recipients_note"` - PayType models.TranslationFieldWithOptionsAndChildren `json:"payType" db:"pay_type"` - PayTypeNote models.TranslationField `json:"payTypeNote" db:"pay_type_note"` - PayClaims models.TranslationFieldWithOptions `json:"payClaims" db:"pay_claims"` - PayClaimsOther models.TranslationField `json:"payClaimsOther" db:"pay_claims_other"` - PayClaimsNote models.TranslationField `json:"payClaimsNote" db:"pay_claims_note"` - ShouldAnyProvidersExcludedFFSSystems models.TranslationFieldWithOptionsAndParent `json:"shouldAnyProvidersExcludedFFSSystems" db:"should_any_providers_excluded_ffs_systems"` - ShouldAnyProviderExcludedFFSSystemsNote models.TranslationField `json:"shouldAnyProviderExcludedFFSSystemsNote" db:"should_any_providers_excluded_ffs_systems_note"` - ChangesMedicarePhysicianFeeSchedule models.TranslationFieldWithOptionsAndParent `json:"changesMedicarePhysicianFeeSchedule" db:"changes_medicare_physician_fee_schedule"` - ChangesMedicarePhysicianFeeScheduleNote models.TranslationField `json:"changesMedicarePhysicianFeeScheduleNote" db:"changes_medicare_physician_fee_schedule_note"` - AffectsMedicareSecondaryPayerClaims models.TranslationFieldWithOptionsAndParent `json:"affectsMedicareSecondaryPayerClaims" db:"affects_medicare_secondary_payer_claims"` - AffectsMedicareSecondaryPayerClaimsHow models.TranslationField `json:"affectsMedicareSecondaryPayerClaimsHow" db:"affects_medicare_secondary_payer_claims_how"` - AffectsMedicareSecondaryPayerClaimsNote models.TranslationField `json:"affectsMedicareSecondaryPayerClaimsNote" db:"affects_medicare_secondary_payer_claims_note"` - PayModelDifferentiation models.TranslationFieldWithParent `json:"payModelDifferentiation" db:"pay_model_differentiation"` - WillBePaymentAdjustments models.TranslationFieldWithOptionsAndParent `json:"willBePaymentAdjustments" db:"will_be_payment_adjustments"` - WillBePaymentAdjustmentsNote models.TranslationField `json:"willBePaymentAdjustmentsNote" db:"will_be_payment_adjustments_note"` - CreatingDependenciesBetweenServices models.TranslationFieldWithOptionsAndParent `json:"creatingDependenciesBetweenServices" db:"creating_dependencies_between_services"` - CreatingDependenciesBetweenServicesNote models.TranslationField `json:"creatingDependenciesBetweenServicesNote" db:"creating_dependencies_between_services_note"` - NeedsClaimsDataCollection models.TranslationFieldWithOptionsAndParent `json:"needsClaimsDataCollection" db:"needs_claims_data_collection"` - NeedsClaimsDataCollectionNote models.TranslationField `json:"needsClaimsDataCollectionNote" db:"needs_claims_data_collection_note"` - ProvidingThirdPartyFile models.TranslationFieldWithOptionsAndParent `json:"providingThirdPartyFile" db:"providing_third_party_file"` - IsContractorAwareTestDataRequirements models.TranslationFieldWithOptionsAndParent `json:"isContractorAwareTestDataRequirements" db:"is_contractor_aware_test_data_requirements"` - BeneficiaryCostSharingLevelAndHandling models.TranslationFieldWithParent `json:"beneficiaryCostSharingLevelAndHandling" db:"beneficiary_cost_sharing_level_and_handling"` - WaiveBeneficiaryCostSharingForAnyServices models.TranslationFieldWithOptionsAndParent `json:"waiveBeneficiaryCostSharingForAnyServices" db:"waive_beneficiary_cost_sharing_for_any_services"` - WaiveBeneficiaryCostSharingServiceSpecification models.TranslationField `json:"waiveBeneficiaryCostSharingServiceSpecification" db:"waive_beneficiary_cost_sharing_service_specification"` - WaiverOnlyAppliesPartOfPayment models.TranslationFieldWithOptionsAndParent `json:"waiverOnlyAppliesPartOfPayment" db:"waiver_only_applies_part_of_payment"` - WaiveBeneficiaryCostSharingNote models.TranslationField `json:"waiveBeneficiaryCostSharingNote" db:"waive_beneficiary_cost_sharing_note"` - NonClaimsPayments models.TranslationFieldWithOptionsAndParent `json:"nonClaimsPayments" db:"non_claims_payments"` - NonClaimsPaymentOther models.TranslationField `json:"nonClaimsPaymentOther" db:"non_claims_payments_other"` - NonClaimsPaymentsNote models.TranslationField `json:"nonClaimsPaymentsNote" db:"non_claims_payments_note"` - PaymentCalculationOwner models.TranslationFieldWithParent `json:"paymentCalculationOwner" db:"payment_calculation_owner"` - NumberPaymentsPerPayCycle models.TranslationFieldWithParent `json:"numberPaymentsPerPayCycle" db:"number_payments_per_pay_cycle"` - NumberPaymentsPerPayCycleNote models.TranslationField `json:"numberPaymentsPerPayCycleNote" db:"number_payments_per_pay_cycle_note"` - SharedSystemsInvolvedAdditionalClaimPayment models.TranslationFieldWithOptionsAndParent `json:"sharedSystemsInvolvedAdditionalClaimPayment" db:"shared_systems_involved_additional_claim_payment"` - SharedSystemsInvolvedAdditionalClaimPaymentNote models.TranslationField `json:"sharedSystemsInvolvedAdditionalClaimPaymentNote" db:"shared_systems_involved_additional_claim_payment_note"` - PlanningToUseInnovationPaymentContractor models.TranslationFieldWithOptionsAndParent `json:"planningToUseInnovationPaymentContractor" db:"planning_to_use_innovation_payment_contractor"` - PlanningToUseInnovationPaymentContractorNote models.TranslationField `json:"planningToUseInnovationPaymentContractorNote" db:"planning_to_use_innovation_payment_contractor_note"` - ExpectedCalculationComplexityLevel models.TranslationFieldWithOptions `json:"expectedCalculationComplexityLevel" db:"expected_calculation_complexity_level"` - ExpectedCalculationComplexityLevelNote models.TranslationField `json:"expectedCalculationComplexityLevelNote" db:"expected_calculation_complexity_level_note"` - ClaimsProcessingPrecedence models.TranslationFieldWithOptions `json:"claimsProcessingPrecedence" db:"claims_processing_precedence"` - ClaimsProcessingPrecedenceOther models.TranslationField `json:"claimsProcessingPrecedenceOther" db:"claims_processing_precedence_other"` - ClaimsProcessingPrecedenceNote models.TranslationField `json:"claimsProcessingPrecedenceNote" db:"claims_processing_precedence_note"` - CanParticipantsSelectBetweenPaymentMechanisms models.TranslationFieldWithOptions `json:"canParticipantsSelectBetweenPaymentMechanisms" db:"can_participants_select_between_payment_mechanisms"` - CanParticipantsSelectBetweenPaymentMechanismsHow models.TranslationField `json:"canParticipantsSelectBetweenPaymentMechanismsHow" db:"can_participants_select_between_payment_mechanisms_how"` - CanParticipantsSelectBetweenPaymentMechanismsNote models.TranslationField `json:"canParticipantsSelectBetweenPaymentMechanismsNote" db:"can_participants_select_between_payment_mechanisms_note"` - AnticipatedPaymentFrequency models.TranslationFieldWithOptions `json:"anticipatedPaymentFrequency" db:"anticipated_payment_frequency"` - AnticipatedPaymentFrequencyContinually models.TranslationField `json:"anticipatedPaymentFrequencyContinually" db:"anticipated_payment_frequency_continually"` - AnticipatedPaymentFrequencyOther models.TranslationField `json:"anticipatedPaymentFrequencyOther" db:"anticipated_payment_frequency_other"` - AnticipatedPaymentFrequencyNote models.TranslationField `json:"anticipatedPaymentFrequencyNote" db:"anticipated_payment_frequency_note"` - WillRecoverPayments models.TranslationFieldWithOptions `json:"willRecoverPayments" db:"will_recover_payments"` - WillRecoverPaymentsNote models.TranslationField `json:"willRecoverPaymentsNote" db:"will_recover_payments_note"` - AnticipateReconcilingPaymentsRetrospectively models.TranslationFieldWithOptions `json:"anticipateReconcilingPaymentsRetrospectively" db:"anticipate_reconciling_payments_retrospectively"` - AnticipateReconcilingPaymentsRetrospectivelyNote models.TranslationField `json:"anticipateReconcilingPaymentsRetrospectivelyNote" db:"anticipate_reconciling_payments_retrospectively_note"` - PaymentReconciliationFrequency models.TranslationFieldWithOptions `json:"paymentReconciliationFrequency" db:"payment_reconciliation_frequency"` - PaymentReconciliationFrequencyContinually models.TranslationField `json:"paymentReconciliationFrequencyContinually" db:"payment_reconciliation_frequency_continually"` - PaymentReconciliationFrequencyOther models.TranslationField `json:"paymentReconciliationFrequencyOther" db:"payment_reconciliation_frequency_other"` - PaymentReconciliationFrequencyNote models.TranslationField `json:"paymentReconciliationFrequencyNote" db:"payment_reconciliation_frequency_note"` - PaymentDemandRecoupmentFrequency models.TranslationFieldWithOptions `json:"paymentDemandRecoupmentFrequency" db:"payment_demand_recoupment_frequency"` - PaymentDemandRecoupmentFrequencyContinually models.TranslationField `json:"paymentDemandRecoupmentFrequencyContinually" db:"payment_demand_recoupment_frequency_continually"` - PaymentDemandRecoupmentFrequencyOther models.TranslationField `json:"paymentDemandRecoupmentFrequencyOther" db:"payment_demand_recoupment_frequency_other"` - PaymentDemandRecoupmentFrequencyNote models.TranslationField `json:"paymentDemandRecoupmentFrequencyNote" db:"payment_demand_recoupment_frequency_note"` - PaymentStartDate models.TranslationField `json:"paymentStartDate" db:"payment_start_date"` - PaymentStartDateNote models.TranslationField `json:"paymentStartDateNote" db:"payment_start_date_note"` - ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` - ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` - ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` - ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` - Status models.TranslationFieldWithOptions `json:"status" db:"status"` -} - -type PlanTDLCreateInput struct { - ModelPlanID uuid.UUID `json:"modelPlanID"` - IDNumber string `json:"idNumber"` - DateInitiated time.Time `json:"dateInitiated"` - Title string `json:"title"` - Note *string `json:"note,omitempty"` -} - -// Represents plan tdl translation data -type PlanTDLTranslation struct { - IDNumber models.TranslationField `json:"idNumber" db:"id_number"` - Title models.TranslationField `json:"title" db:"title"` - DateInitiated models.TranslationField `json:"dateInitiated" db:"date_initiated"` - Note models.TranslationField `json:"note" db:"note"` -} - -type PrepareForClearance struct { - Status PrepareForClearanceStatus `json:"status"` - LatestClearanceDts *time.Time `json:"latestClearanceDts,omitempty"` -} - -type ReportAProblemInput struct { - IsAnonymousSubmission bool `json:"isAnonymousSubmission"` - AllowContact *bool `json:"allowContact,omitempty"` - Section *ReportAProblemSection `json:"section,omitempty"` - SectionOther *string `json:"sectionOther,omitempty"` - WhatDoing *string `json:"whatDoing,omitempty"` - WhatWentWrong *string `json:"whatWentWrong,omitempty"` - Severity *ReportAProblemSeverity `json:"severity,omitempty"` - SeverityOther *string `json:"severityOther,omitempty"` -} - -// The inputs to the user feedback form -type SendFeedbackEmailInput struct { - IsAnonymousSubmission bool `json:"isAnonymousSubmission"` - AllowContact *bool `json:"allowContact,omitempty"` - CmsRole *string `json:"cmsRole,omitempty"` - MintUsedFor []MintUses `json:"mintUsedFor,omitempty"` - MintUsedForOther *string `json:"mintUsedForOther,omitempty"` - SystemEasyToUse *EaseOfUse `json:"systemEasyToUse,omitempty"` - SystemEasyToUseOther *string `json:"systemEasyToUseOther,omitempty"` - HowSatisfied *SatisfactionLevel `json:"howSatisfied,omitempty"` - HowCanWeImprove *string `json:"howCanWeImprove,omitempty"` -} - -type UpdateOperationalSolutionSubtaskInput struct { - ID uuid.UUID `json:"id"` - Changes map[string]interface{} `json:"changes"` -} - -type ActionType string - -const ( - // A normal flow action - ActionTypeNormal ActionType = "NORMAL" - // An administrative action - ActionTypeAdmin ActionType = "ADMIN" -) - -var AllActionType = []ActionType{ - ActionTypeNormal, - ActionTypeAdmin, -} - -func (e ActionType) IsValid() bool { - switch e { - case ActionTypeNormal, ActionTypeAdmin: - return true - } - return false -} - -func (e ActionType) String() string { - return string(e) -} - -func (e *ActionType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ActionType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ActionType", str) - } - return nil -} - -func (e ActionType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type AgencyOrStateHelpType string - -const ( - AgencyOrStateHelpTypeYesState AgencyOrStateHelpType = "YES_STATE" - AgencyOrStateHelpTypeYesAgencyIDEas AgencyOrStateHelpType = "YES_AGENCY_IDEAS" - AgencyOrStateHelpTypeYesAgencyIaa AgencyOrStateHelpType = "YES_AGENCY_IAA" - AgencyOrStateHelpTypeNo AgencyOrStateHelpType = "NO" - AgencyOrStateHelpTypeOther AgencyOrStateHelpType = "OTHER" -) - -var AllAgencyOrStateHelpType = []AgencyOrStateHelpType{ - AgencyOrStateHelpTypeYesState, - AgencyOrStateHelpTypeYesAgencyIDEas, - AgencyOrStateHelpTypeYesAgencyIaa, - AgencyOrStateHelpTypeNo, - AgencyOrStateHelpTypeOther, -} - -func (e AgencyOrStateHelpType) IsValid() bool { - switch e { - case AgencyOrStateHelpTypeYesState, AgencyOrStateHelpTypeYesAgencyIDEas, AgencyOrStateHelpTypeYesAgencyIaa, AgencyOrStateHelpTypeNo, AgencyOrStateHelpTypeOther: - return true - } - return false -} - -func (e AgencyOrStateHelpType) String() string { - return string(e) -} - -func (e *AgencyOrStateHelpType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = AgencyOrStateHelpType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid AgencyOrStateHelpType", str) - } - return nil -} - -func (e AgencyOrStateHelpType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type AgreementType string - -const ( - AgreementTypeParticipation AgreementType = "PARTICIPATION" - AgreementTypeCooperative AgreementType = "COOPERATIVE" - AgreementTypeOther AgreementType = "OTHER" -) - -var AllAgreementType = []AgreementType{ - AgreementTypeParticipation, - AgreementTypeCooperative, - AgreementTypeOther, -} - -func (e AgreementType) IsValid() bool { - switch e { - case AgreementTypeParticipation, AgreementTypeCooperative, AgreementTypeOther: - return true - } - return false -} - -func (e AgreementType) String() string { - return string(e) -} - -func (e *AgreementType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = AgreementType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid AgreementType", str) - } - return nil -} - -func (e AgreementType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type AlternativePaymentModelType string - -const ( - AlternativePaymentModelTypeRegular AlternativePaymentModelType = "REGULAR" - AlternativePaymentModelTypeMips AlternativePaymentModelType = "MIPS" - AlternativePaymentModelTypeAdvanced AlternativePaymentModelType = "ADVANCED" - AlternativePaymentModelTypeNotApm AlternativePaymentModelType = "NOT_APM" -) - -var AllAlternativePaymentModelType = []AlternativePaymentModelType{ - AlternativePaymentModelTypeRegular, - AlternativePaymentModelTypeMips, - AlternativePaymentModelTypeAdvanced, - AlternativePaymentModelTypeNotApm, -} - -func (e AlternativePaymentModelType) IsValid() bool { - switch e { - case AlternativePaymentModelTypeRegular, AlternativePaymentModelTypeMips, AlternativePaymentModelTypeAdvanced, AlternativePaymentModelTypeNotApm: - return true - } - return false -} - -func (e AlternativePaymentModelType) String() string { - return string(e) -} - -func (e *AlternativePaymentModelType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = AlternativePaymentModelType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid AlternativePaymentModelType", str) - } - return nil -} - -func (e AlternativePaymentModelType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type AuthorityAllowance string - -const ( - AuthorityAllowanceAca AuthorityAllowance = "ACA" - AuthorityAllowanceCongressionallyMandated AuthorityAllowance = "CONGRESSIONALLY_MANDATED" - AuthorityAllowanceSsaPartB AuthorityAllowance = "SSA_PART_B" - AuthorityAllowanceOther AuthorityAllowance = "OTHER" -) - -var AllAuthorityAllowance = []AuthorityAllowance{ - AuthorityAllowanceAca, - AuthorityAllowanceCongressionallyMandated, - AuthorityAllowanceSsaPartB, - AuthorityAllowanceOther, -} - -func (e AuthorityAllowance) IsValid() bool { - switch e { - case AuthorityAllowanceAca, AuthorityAllowanceCongressionallyMandated, AuthorityAllowanceSsaPartB, AuthorityAllowanceOther: - return true - } - return false -} - -func (e AuthorityAllowance) String() string { - return string(e) -} - -func (e *AuthorityAllowance) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = AuthorityAllowance(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid AuthorityAllowance", str) - } - return nil -} - -func (e AuthorityAllowance) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type BeneficiariesType string - -const ( - BeneficiariesTypeMedicareFfs BeneficiariesType = "MEDICARE_FFS" - BeneficiariesTypeMedicareAdvantage BeneficiariesType = "MEDICARE_ADVANTAGE" - BeneficiariesTypeMedicarePartD BeneficiariesType = "MEDICARE_PART_D" - BeneficiariesTypeMedicaid BeneficiariesType = "MEDICAID" - BeneficiariesTypeDuallyEligible BeneficiariesType = "DUALLY_ELIGIBLE" - BeneficiariesTypeDiseaseSpecific BeneficiariesType = "DISEASE_SPECIFIC" - BeneficiariesTypeUnderserved BeneficiariesType = "UNDERSERVED" - BeneficiariesTypeOther BeneficiariesType = "OTHER" - BeneficiariesTypeNa BeneficiariesType = "NA" -) - -var AllBeneficiariesType = []BeneficiariesType{ - BeneficiariesTypeMedicareFfs, - BeneficiariesTypeMedicareAdvantage, - BeneficiariesTypeMedicarePartD, - BeneficiariesTypeMedicaid, - BeneficiariesTypeDuallyEligible, - BeneficiariesTypeDiseaseSpecific, - BeneficiariesTypeUnderserved, - BeneficiariesTypeOther, - BeneficiariesTypeNa, -} - -func (e BeneficiariesType) IsValid() bool { - switch e { - case BeneficiariesTypeMedicareFfs, BeneficiariesTypeMedicareAdvantage, BeneficiariesTypeMedicarePartD, BeneficiariesTypeMedicaid, BeneficiariesTypeDuallyEligible, BeneficiariesTypeDiseaseSpecific, BeneficiariesTypeUnderserved, BeneficiariesTypeOther, BeneficiariesTypeNa: - return true - } - return false -} - -func (e BeneficiariesType) String() string { - return string(e) -} - -func (e *BeneficiariesType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = BeneficiariesType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid BeneficiariesType", str) - } - return nil -} - -func (e BeneficiariesType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type CMMIGroup string - -const ( - CMMIGroupPatientCareModelsGroup CMMIGroup = "PATIENT_CARE_MODELS_GROUP" - CMMIGroupPolicyAndProgramsGroup CMMIGroup = "POLICY_AND_PROGRAMS_GROUP" - CMMIGroupSeamlessCareModelsGroup CMMIGroup = "SEAMLESS_CARE_MODELS_GROUP" - CMMIGroupStateAndPopulationHealthGroup CMMIGroup = "STATE_AND_POPULATION_HEALTH_GROUP" - CMMIGroupTbd CMMIGroup = "TBD" -) - -var AllCMMIGroup = []CMMIGroup{ - CMMIGroupPatientCareModelsGroup, - CMMIGroupPolicyAndProgramsGroup, - CMMIGroupSeamlessCareModelsGroup, - CMMIGroupStateAndPopulationHealthGroup, - CMMIGroupTbd, -} - -func (e CMMIGroup) IsValid() bool { - switch e { - case CMMIGroupPatientCareModelsGroup, CMMIGroupPolicyAndProgramsGroup, CMMIGroupSeamlessCareModelsGroup, CMMIGroupStateAndPopulationHealthGroup, CMMIGroupTbd: - return true - } - return false -} - -func (e CMMIGroup) String() string { - return string(e) -} - -func (e *CMMIGroup) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = CMMIGroup(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid CMMIGroup", str) - } - return nil -} - -func (e CMMIGroup) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type CMSCenter string - -const ( - CMSCenterCmmi CMSCenter = "CMMI" - CMSCenterCenterForMedicare CMSCenter = "CENTER_FOR_MEDICARE" - CMSCenterFederalCoordinatedHealthCareOffice CMSCenter = "FEDERAL_COORDINATED_HEALTH_CARE_OFFICE" - CMSCenterCenterForMedicaidAndChipServices CMSCenter = "CENTER_FOR_MEDICAID_AND_CHIP_SERVICES" - CMSCenterCenterForClinicalStandardsAndQuality CMSCenter = "CENTER_FOR_CLINICAL_STANDARDS_AND_QUALITY" - CMSCenterCenterForProgramIntegrity CMSCenter = "CENTER_FOR_PROGRAM_INTEGRITY" -) - -var AllCMSCenter = []CMSCenter{ - CMSCenterCmmi, - CMSCenterCenterForMedicare, - CMSCenterFederalCoordinatedHealthCareOffice, - CMSCenterCenterForMedicaidAndChipServices, - CMSCenterCenterForClinicalStandardsAndQuality, - CMSCenterCenterForProgramIntegrity, -} - -func (e CMSCenter) IsValid() bool { - switch e { - case CMSCenterCmmi, CMSCenterCenterForMedicare, CMSCenterFederalCoordinatedHealthCareOffice, CMSCenterCenterForMedicaidAndChipServices, CMSCenterCenterForClinicalStandardsAndQuality, CMSCenterCenterForProgramIntegrity: - return true - } - return false -} - -func (e CMSCenter) String() string { - return string(e) -} - -func (e *CMSCenter) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = CMSCenter(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid CMSCenter", str) - } - return nil -} - -func (e CMSCenter) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type CcmInvolvmentType string - -const ( - CcmInvolvmentTypeYesEvaluation CcmInvolvmentType = "YES_EVALUATION" - CcmInvolvmentTypeYesImplementation CcmInvolvmentType = "YES__IMPLEMENTATION" - CcmInvolvmentTypeNo CcmInvolvmentType = "NO" - CcmInvolvmentTypeOther CcmInvolvmentType = "OTHER" -) - -var AllCcmInvolvmentType = []CcmInvolvmentType{ - CcmInvolvmentTypeYesEvaluation, - CcmInvolvmentTypeYesImplementation, - CcmInvolvmentTypeNo, - CcmInvolvmentTypeOther, -} - -func (e CcmInvolvmentType) IsValid() bool { - switch e { - case CcmInvolvmentTypeYesEvaluation, CcmInvolvmentTypeYesImplementation, CcmInvolvmentTypeNo, CcmInvolvmentTypeOther: - return true - } - return false -} - -func (e CcmInvolvmentType) String() string { - return string(e) -} - -func (e *CcmInvolvmentType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = CcmInvolvmentType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid CcmInvolvmentType", str) - } - return nil -} - -func (e CcmInvolvmentType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ChangeType string - -const ( - ChangeTypeAdded ChangeType = "ADDED" - ChangeTypeUpdated ChangeType = "UPDATED" - ChangeTypeRemoved ChangeType = "REMOVED" -) - -var AllChangeType = []ChangeType{ - ChangeTypeAdded, - ChangeTypeUpdated, - ChangeTypeRemoved, -} - -func (e ChangeType) IsValid() bool { - switch e { - case ChangeTypeAdded, ChangeTypeUpdated, ChangeTypeRemoved: - return true - } - return false -} - -func (e ChangeType) String() string { - return string(e) -} - -func (e *ChangeType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ChangeType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ChangeType", str) - } - return nil -} - -func (e ChangeType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ContractorSupportType string - -const ( - ContractorSupportTypeOne ContractorSupportType = "ONE" - ContractorSupportTypeMultiple ContractorSupportType = "MULTIPLE" - ContractorSupportTypeNone ContractorSupportType = "NONE" - ContractorSupportTypeOther ContractorSupportType = "OTHER" -) - -var AllContractorSupportType = []ContractorSupportType{ - ContractorSupportTypeOne, - ContractorSupportTypeMultiple, - ContractorSupportTypeNone, - ContractorSupportTypeOther, -} - -func (e ContractorSupportType) IsValid() bool { - switch e { - case ContractorSupportTypeOne, ContractorSupportTypeMultiple, ContractorSupportTypeNone, ContractorSupportTypeOther: - return true - } - return false -} - -func (e ContractorSupportType) String() string { - return string(e) -} - -func (e *ContractorSupportType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ContractorSupportType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ContractorSupportType", str) - } - return nil -} - -func (e ContractorSupportType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type DataForMonitoringType string - -const ( - DataForMonitoringTypeSiteVisits DataForMonitoringType = "SITE_VISITS" - DataForMonitoringTypeMedicareClaims DataForMonitoringType = "MEDICARE_CLAIMS" - DataForMonitoringTypeMedicaidClaims DataForMonitoringType = "MEDICAID_CLAIMS" - DataForMonitoringTypeEncounterData DataForMonitoringType = "ENCOUNTER_DATA" - DataForMonitoringTypeNoPayClaims DataForMonitoringType = "NO_PAY_CLAIMS" - DataForMonitoringTypeQualityClaimsBasedMeasures DataForMonitoringType = "QUALITY_CLAIMS_BASED_MEASURES" - DataForMonitoringTypeQualityReportedMeasures DataForMonitoringType = "QUALITY_REPORTED_MEASURES" - DataForMonitoringTypeClinicalData DataForMonitoringType = "CLINICAL_DATA" - DataForMonitoringTypeNonClinicalData DataForMonitoringType = "NON_CLINICAL_DATA" - DataForMonitoringTypeNonMedicalData DataForMonitoringType = "NON_MEDICAL_DATA" - DataForMonitoringTypeOther DataForMonitoringType = "OTHER" - DataForMonitoringTypeNotPlanningToCollectData DataForMonitoringType = "NOT_PLANNING_TO_COLLECT_DATA" -) - -var AllDataForMonitoringType = []DataForMonitoringType{ - DataForMonitoringTypeSiteVisits, - DataForMonitoringTypeMedicareClaims, - DataForMonitoringTypeMedicaidClaims, - DataForMonitoringTypeEncounterData, - DataForMonitoringTypeNoPayClaims, - DataForMonitoringTypeQualityClaimsBasedMeasures, - DataForMonitoringTypeQualityReportedMeasures, - DataForMonitoringTypeClinicalData, - DataForMonitoringTypeNonClinicalData, - DataForMonitoringTypeNonMedicalData, - DataForMonitoringTypeOther, - DataForMonitoringTypeNotPlanningToCollectData, -} - -func (e DataForMonitoringType) IsValid() bool { - switch e { - case DataForMonitoringTypeSiteVisits, DataForMonitoringTypeMedicareClaims, DataForMonitoringTypeMedicaidClaims, DataForMonitoringTypeEncounterData, DataForMonitoringTypeNoPayClaims, DataForMonitoringTypeQualityClaimsBasedMeasures, DataForMonitoringTypeQualityReportedMeasures, DataForMonitoringTypeClinicalData, DataForMonitoringTypeNonClinicalData, DataForMonitoringTypeNonMedicalData, DataForMonitoringTypeOther, DataForMonitoringTypeNotPlanningToCollectData: - return true - } - return false -} - -func (e DataForMonitoringType) String() string { - return string(e) -} - -func (e *DataForMonitoringType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = DataForMonitoringType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid DataForMonitoringType", str) - } - return nil -} - -func (e DataForMonitoringType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type DataToSendParticipantsType string - -const ( - DataToSendParticipantsTypeBaselineHistoricalData DataToSendParticipantsType = "BASELINE_HISTORICAL_DATA" - DataToSendParticipantsTypeClaimsLevelData DataToSendParticipantsType = "CLAIMS_LEVEL_DATA" - DataToSendParticipantsTypeBeneficiaryLevelData DataToSendParticipantsType = "BENEFICIARY_LEVEL_DATA" - DataToSendParticipantsTypeParticipantLevelData DataToSendParticipantsType = "PARTICIPANT_LEVEL_DATA" - DataToSendParticipantsTypeProviderLevelData DataToSendParticipantsType = "PROVIDER_LEVEL_DATA" - DataToSendParticipantsTypeOtherMipsData DataToSendParticipantsType = "OTHER_MIPS_DATA" - DataToSendParticipantsTypeNotPlanningToSendData DataToSendParticipantsType = "NOT_PLANNING_TO_SEND_DATA" -) - -var AllDataToSendParticipantsType = []DataToSendParticipantsType{ - DataToSendParticipantsTypeBaselineHistoricalData, - DataToSendParticipantsTypeClaimsLevelData, - DataToSendParticipantsTypeBeneficiaryLevelData, - DataToSendParticipantsTypeParticipantLevelData, - DataToSendParticipantsTypeProviderLevelData, - DataToSendParticipantsTypeOtherMipsData, - DataToSendParticipantsTypeNotPlanningToSendData, -} - -func (e DataToSendParticipantsType) IsValid() bool { - switch e { - case DataToSendParticipantsTypeBaselineHistoricalData, DataToSendParticipantsTypeClaimsLevelData, DataToSendParticipantsTypeBeneficiaryLevelData, DataToSendParticipantsTypeParticipantLevelData, DataToSendParticipantsTypeProviderLevelData, DataToSendParticipantsTypeOtherMipsData, DataToSendParticipantsTypeNotPlanningToSendData: - return true - } - return false -} - -func (e DataToSendParticipantsType) String() string { - return string(e) -} - -func (e *DataToSendParticipantsType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = DataToSendParticipantsType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid DataToSendParticipantsType", str) - } - return nil -} - -func (e DataToSendParticipantsType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type EaseOfUse string - -const ( - EaseOfUseAgree EaseOfUse = "AGREE" - EaseOfUseDisagree EaseOfUse = "DISAGREE" - EaseOfUseUnsure EaseOfUse = "UNSURE" -) - -var AllEaseOfUse = []EaseOfUse{ - EaseOfUseAgree, - EaseOfUseDisagree, - EaseOfUseUnsure, -} - -func (e EaseOfUse) IsValid() bool { - switch e { - case EaseOfUseAgree, EaseOfUseDisagree, EaseOfUseUnsure: - return true - } - return false -} - -func (e EaseOfUse) String() string { - return string(e) -} - -func (e *EaseOfUse) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = EaseOfUse(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid EaseOfUse", str) - } - return nil -} - -func (e EaseOfUse) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type EvaluationApproachType string - -const ( - EvaluationApproachTypeControlIntervention EvaluationApproachType = "CONTROL_INTERVENTION" - EvaluationApproachTypeComparisonMatch EvaluationApproachType = "COMPARISON_MATCH" - EvaluationApproachTypeInterruptedTime EvaluationApproachType = "INTERRUPTED_TIME" - EvaluationApproachTypeNonMedicareData EvaluationApproachType = "NON_MEDICARE_DATA" - EvaluationApproachTypeOther EvaluationApproachType = "OTHER" -) - -var AllEvaluationApproachType = []EvaluationApproachType{ - EvaluationApproachTypeControlIntervention, - EvaluationApproachTypeComparisonMatch, - EvaluationApproachTypeInterruptedTime, - EvaluationApproachTypeNonMedicareData, - EvaluationApproachTypeOther, -} - -func (e EvaluationApproachType) IsValid() bool { - switch e { - case EvaluationApproachTypeControlIntervention, EvaluationApproachTypeComparisonMatch, EvaluationApproachTypeInterruptedTime, EvaluationApproachTypeNonMedicareData, EvaluationApproachTypeOther: - return true - } - return false -} - -func (e EvaluationApproachType) String() string { - return string(e) -} - -func (e *EvaluationApproachType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = EvaluationApproachType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid EvaluationApproachType", str) - } - return nil -} - -func (e EvaluationApproachType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type GainshareArrangementEligibility string - -const ( - GainshareArrangementEligibilityAllProviders GainshareArrangementEligibility = "ALL_PROVIDERS" - GainshareArrangementEligibilitySomeProviders GainshareArrangementEligibility = "SOME_PROVIDERS" - GainshareArrangementEligibilityOther GainshareArrangementEligibility = "OTHER" - GainshareArrangementEligibilityNo GainshareArrangementEligibility = "NO" -) - -var AllGainshareArrangementEligibility = []GainshareArrangementEligibility{ - GainshareArrangementEligibilityAllProviders, - GainshareArrangementEligibilitySomeProviders, - GainshareArrangementEligibilityOther, - GainshareArrangementEligibilityNo, -} - -func (e GainshareArrangementEligibility) IsValid() bool { - switch e { - case GainshareArrangementEligibilityAllProviders, GainshareArrangementEligibilitySomeProviders, GainshareArrangementEligibilityOther, GainshareArrangementEligibilityNo: - return true - } - return false -} - -func (e GainshareArrangementEligibility) String() string { - return string(e) -} - -func (e *GainshareArrangementEligibility) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = GainshareArrangementEligibility(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid GainshareArrangementEligibility", str) - } - return nil -} - -func (e GainshareArrangementEligibility) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type GeographyApplication string - -const ( - GeographyApplicationParticipants GeographyApplication = "PARTICIPANTS" - GeographyApplicationProviders GeographyApplication = "PROVIDERS" - GeographyApplicationBeneficiaries GeographyApplication = "BENEFICIARIES" - GeographyApplicationOther GeographyApplication = "OTHER" -) - -var AllGeographyApplication = []GeographyApplication{ - GeographyApplicationParticipants, - GeographyApplicationProviders, - GeographyApplicationBeneficiaries, - GeographyApplicationOther, -} - -func (e GeographyApplication) IsValid() bool { - switch e { - case GeographyApplicationParticipants, GeographyApplicationProviders, GeographyApplicationBeneficiaries, GeographyApplicationOther: - return true - } - return false -} - -func (e GeographyApplication) String() string { - return string(e) -} - -func (e *GeographyApplication) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = GeographyApplication(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid GeographyApplication", str) - } - return nil -} - -func (e GeographyApplication) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type GeographyType string - -const ( - GeographyTypeState GeographyType = "STATE" - GeographyTypeRegion GeographyType = "REGION" - GeographyTypeOther GeographyType = "OTHER" -) - -var AllGeographyType = []GeographyType{ - GeographyTypeState, - GeographyTypeRegion, - GeographyTypeOther, -} - -func (e GeographyType) IsValid() bool { - switch e { - case GeographyTypeState, GeographyTypeRegion, GeographyTypeOther: - return true - } - return false -} - -func (e GeographyType) String() string { - return string(e) -} - -func (e *GeographyType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = GeographyType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid GeographyType", str) - } - return nil -} - -func (e GeographyType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type KeyCharacteristic string - -const ( - KeyCharacteristicEpisodeBased KeyCharacteristic = "EPISODE_BASED" - KeyCharacteristicPartC KeyCharacteristic = "PART_C" - KeyCharacteristicPartD KeyCharacteristic = "PART_D" - KeyCharacteristicPayment KeyCharacteristic = "PAYMENT" - KeyCharacteristicPopulationBased KeyCharacteristic = "POPULATION_BASED" - KeyCharacteristicPreventative KeyCharacteristic = "PREVENTATIVE" - KeyCharacteristicServiceDelivery KeyCharacteristic = "SERVICE_DELIVERY" - KeyCharacteristicSharedSavings KeyCharacteristic = "SHARED_SAVINGS" - KeyCharacteristicOther KeyCharacteristic = "OTHER" - KeyCharacteristicMedicaidModel KeyCharacteristic = "MEDICAID_MODEL" - KeyCharacteristicMedicareFfsModel KeyCharacteristic = "MEDICARE_FFS_MODEL" -) - -var AllKeyCharacteristic = []KeyCharacteristic{ - KeyCharacteristicEpisodeBased, - KeyCharacteristicPartC, - KeyCharacteristicPartD, - KeyCharacteristicPayment, - KeyCharacteristicPopulationBased, - KeyCharacteristicPreventative, - KeyCharacteristicServiceDelivery, - KeyCharacteristicSharedSavings, - KeyCharacteristicOther, - KeyCharacteristicMedicaidModel, - KeyCharacteristicMedicareFfsModel, -} - -func (e KeyCharacteristic) IsValid() bool { - switch e { - case KeyCharacteristicEpisodeBased, KeyCharacteristicPartC, KeyCharacteristicPartD, KeyCharacteristicPayment, KeyCharacteristicPopulationBased, KeyCharacteristicPreventative, KeyCharacteristicServiceDelivery, KeyCharacteristicSharedSavings, KeyCharacteristicOther, KeyCharacteristicMedicaidModel, KeyCharacteristicMedicareFfsModel: - return true - } - return false -} - -func (e KeyCharacteristic) String() string { - return string(e) -} - -func (e *KeyCharacteristic) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = KeyCharacteristic(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid KeyCharacteristic", str) - } - return nil -} - -func (e KeyCharacteristic) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type MintUses string - -const ( - MintUsesViewModel MintUses = "VIEW_MODEL" - MintUsesEditModel MintUses = "EDIT_MODEL" - MintUsesShareModel MintUses = "SHARE_MODEL" - MintUsesTrackSolutions MintUses = "TRACK_SOLUTIONS" - MintUsesContributeDiscussions MintUses = "CONTRIBUTE_DISCUSSIONS" - MintUsesViewHelp MintUses = "VIEW_HELP" - MintUsesOther MintUses = "OTHER" -) - -var AllMintUses = []MintUses{ - MintUsesViewModel, - MintUsesEditModel, - MintUsesShareModel, - MintUsesTrackSolutions, - MintUsesContributeDiscussions, - MintUsesViewHelp, - MintUsesOther, -} - -func (e MintUses) IsValid() bool { - switch e { - case MintUsesViewModel, MintUsesEditModel, MintUsesShareModel, MintUsesTrackSolutions, MintUsesContributeDiscussions, MintUsesViewHelp, MintUsesOther: - return true - } - return false -} - -func (e MintUses) String() string { - return string(e) -} - -func (e *MintUses) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = MintUses(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid MintUses", str) - } - return nil -} - -func (e MintUses) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ModelLearningSystemType string - -const ( - ModelLearningSystemTypeLearningContractor ModelLearningSystemType = "LEARNING_CONTRACTOR" - ModelLearningSystemTypeItPlatformConnect ModelLearningSystemType = "IT_PLATFORM_CONNECT" - ModelLearningSystemTypeParticipantCollaboration ModelLearningSystemType = "PARTICIPANT_COLLABORATION" - ModelLearningSystemTypeEducateBeneficiaries ModelLearningSystemType = "EDUCATE_BENEFICIARIES" - ModelLearningSystemTypeOther ModelLearningSystemType = "OTHER" - ModelLearningSystemTypeNoLearningSystem ModelLearningSystemType = "NO_LEARNING_SYSTEM" -) - -var AllModelLearningSystemType = []ModelLearningSystemType{ - ModelLearningSystemTypeLearningContractor, - ModelLearningSystemTypeItPlatformConnect, - ModelLearningSystemTypeParticipantCollaboration, - ModelLearningSystemTypeEducateBeneficiaries, - ModelLearningSystemTypeOther, - ModelLearningSystemTypeNoLearningSystem, -} - -func (e ModelLearningSystemType) IsValid() bool { - switch e { - case ModelLearningSystemTypeLearningContractor, ModelLearningSystemTypeItPlatformConnect, ModelLearningSystemTypeParticipantCollaboration, ModelLearningSystemTypeEducateBeneficiaries, ModelLearningSystemTypeOther, ModelLearningSystemTypeNoLearningSystem: - return true - } - return false -} - -func (e ModelLearningSystemType) String() string { - return string(e) -} - -func (e *ModelLearningSystemType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ModelLearningSystemType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ModelLearningSystemType", str) - } - return nil -} - -func (e ModelLearningSystemType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ModelPlanFilter string - -const ( - ModelPlanFilterIncludeAll ModelPlanFilter = "INCLUDE_ALL" - ModelPlanFilterCollabOnly ModelPlanFilter = "COLLAB_ONLY" - ModelPlanFilterWithCrTdls ModelPlanFilter = "WITH_CR_TDLS" - ModelPlanFilterFavorited ModelPlanFilter = "FAVORITED" - ModelPlanFilterApproachingClearance ModelPlanFilter = "APPROACHING_CLEARANCE" -) - -var AllModelPlanFilter = []ModelPlanFilter{ - ModelPlanFilterIncludeAll, - ModelPlanFilterCollabOnly, - ModelPlanFilterWithCrTdls, - ModelPlanFilterFavorited, - ModelPlanFilterApproachingClearance, -} - -func (e ModelPlanFilter) IsValid() bool { - switch e { - case ModelPlanFilterIncludeAll, ModelPlanFilterCollabOnly, ModelPlanFilterWithCrTdls, ModelPlanFilterFavorited, ModelPlanFilterApproachingClearance: - return true - } - return false -} - -func (e ModelPlanFilter) String() string { - return string(e) -} - -func (e *ModelPlanFilter) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ModelPlanFilter(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ModelPlanFilter", str) - } - return nil -} - -func (e ModelPlanFilter) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type MonitoringFileType string - -const ( - MonitoringFileTypeBeneficiary MonitoringFileType = "BENEFICIARY" - MonitoringFileTypeProvider MonitoringFileType = "PROVIDER" - MonitoringFileTypePartA MonitoringFileType = "PART_A" - MonitoringFileTypePartB MonitoringFileType = "PART_B" - MonitoringFileTypeOther MonitoringFileType = "OTHER" -) - -var AllMonitoringFileType = []MonitoringFileType{ - MonitoringFileTypeBeneficiary, - MonitoringFileTypeProvider, - MonitoringFileTypePartA, - MonitoringFileTypePartB, - MonitoringFileTypeOther, -} - -func (e MonitoringFileType) IsValid() bool { - switch e { - case MonitoringFileTypeBeneficiary, MonitoringFileTypeProvider, MonitoringFileTypePartA, MonitoringFileTypePartB, MonitoringFileTypeOther: - return true - } - return false -} - -func (e MonitoringFileType) String() string { - return string(e) -} - -func (e *MonitoringFileType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = MonitoringFileType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid MonitoringFileType", str) - } - return nil -} - -func (e MonitoringFileType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type NonClaimsBasedPayType string - -const ( - NonClaimsBasedPayTypeAdvancedPayment NonClaimsBasedPayType = "ADVANCED_PAYMENT" - NonClaimsBasedPayTypeBundledEpisodeOfCare NonClaimsBasedPayType = "BUNDLED_EPISODE_OF_CARE" - NonClaimsBasedPayTypeCapitationPopulationBasedFull NonClaimsBasedPayType = "CAPITATION_POPULATION_BASED_FULL" - NonClaimsBasedPayTypeCapitationPopulationBasedPartial NonClaimsBasedPayType = "CAPITATION_POPULATION_BASED_PARTIAL" - NonClaimsBasedPayTypeCareCoordinationManagementFee NonClaimsBasedPayType = "CARE_COORDINATION_MANAGEMENT_FEE" - NonClaimsBasedPayTypeGlobalBudget NonClaimsBasedPayType = "GLOBAL_BUDGET" - NonClaimsBasedPayTypeIncentivePayment NonClaimsBasedPayType = "INCENTIVE_PAYMENT" - NonClaimsBasedPayTypeMapdSharedSavings NonClaimsBasedPayType = "MAPD_SHARED_SAVINGS" - NonClaimsBasedPayTypeSharedSavings NonClaimsBasedPayType = "SHARED_SAVINGS" - NonClaimsBasedPayTypeOther NonClaimsBasedPayType = "OTHER" -) - -var AllNonClaimsBasedPayType = []NonClaimsBasedPayType{ - NonClaimsBasedPayTypeAdvancedPayment, - NonClaimsBasedPayTypeBundledEpisodeOfCare, - NonClaimsBasedPayTypeCapitationPopulationBasedFull, - NonClaimsBasedPayTypeCapitationPopulationBasedPartial, - NonClaimsBasedPayTypeCareCoordinationManagementFee, - NonClaimsBasedPayTypeGlobalBudget, - NonClaimsBasedPayTypeIncentivePayment, - NonClaimsBasedPayTypeMapdSharedSavings, - NonClaimsBasedPayTypeSharedSavings, - NonClaimsBasedPayTypeOther, -} - -func (e NonClaimsBasedPayType) IsValid() bool { - switch e { - case NonClaimsBasedPayTypeAdvancedPayment, NonClaimsBasedPayTypeBundledEpisodeOfCare, NonClaimsBasedPayTypeCapitationPopulationBasedFull, NonClaimsBasedPayTypeCapitationPopulationBasedPartial, NonClaimsBasedPayTypeCareCoordinationManagementFee, NonClaimsBasedPayTypeGlobalBudget, NonClaimsBasedPayTypeIncentivePayment, NonClaimsBasedPayTypeMapdSharedSavings, NonClaimsBasedPayTypeSharedSavings, NonClaimsBasedPayTypeOther: - return true - } - return false -} - -func (e NonClaimsBasedPayType) String() string { - return string(e) -} - -func (e *NonClaimsBasedPayType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = NonClaimsBasedPayType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid NonClaimsBasedPayType", str) - } - return nil -} - -func (e NonClaimsBasedPayType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ParticipantCommunicationType string - -const ( - ParticipantCommunicationTypeMassEmail ParticipantCommunicationType = "MASS_EMAIL" - ParticipantCommunicationTypeItTool ParticipantCommunicationType = "IT_TOOL" - ParticipantCommunicationTypeOther ParticipantCommunicationType = "OTHER" - ParticipantCommunicationTypeNoCommunication ParticipantCommunicationType = "NO_COMMUNICATION" -) - -var AllParticipantCommunicationType = []ParticipantCommunicationType{ - ParticipantCommunicationTypeMassEmail, - ParticipantCommunicationTypeItTool, - ParticipantCommunicationTypeOther, - ParticipantCommunicationTypeNoCommunication, -} - -func (e ParticipantCommunicationType) IsValid() bool { - switch e { - case ParticipantCommunicationTypeMassEmail, ParticipantCommunicationTypeItTool, ParticipantCommunicationTypeOther, ParticipantCommunicationTypeNoCommunication: - return true - } - return false -} - -func (e ParticipantCommunicationType) String() string { - return string(e) -} - -func (e *ParticipantCommunicationType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ParticipantCommunicationType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ParticipantCommunicationType", str) - } - return nil -} - -func (e ParticipantCommunicationType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ParticipantRequireFinancialGuaranteeType string - -const ( - ParticipantRequireFinancialGuaranteeTypeSuretyBond ParticipantRequireFinancialGuaranteeType = "SURETY_BOND" - ParticipantRequireFinancialGuaranteeTypeLetterOfCredit ParticipantRequireFinancialGuaranteeType = "LETTER_OF_CREDIT" - ParticipantRequireFinancialGuaranteeTypeEscrow ParticipantRequireFinancialGuaranteeType = "ESCROW" - ParticipantRequireFinancialGuaranteeTypeOther ParticipantRequireFinancialGuaranteeType = "OTHER" -) - -var AllParticipantRequireFinancialGuaranteeType = []ParticipantRequireFinancialGuaranteeType{ - ParticipantRequireFinancialGuaranteeTypeSuretyBond, - ParticipantRequireFinancialGuaranteeTypeLetterOfCredit, - ParticipantRequireFinancialGuaranteeTypeEscrow, - ParticipantRequireFinancialGuaranteeTypeOther, -} - -func (e ParticipantRequireFinancialGuaranteeType) IsValid() bool { - switch e { - case ParticipantRequireFinancialGuaranteeTypeSuretyBond, ParticipantRequireFinancialGuaranteeTypeLetterOfCredit, ParticipantRequireFinancialGuaranteeTypeEscrow, ParticipantRequireFinancialGuaranteeTypeOther: - return true - } - return false -} - -func (e ParticipantRequireFinancialGuaranteeType) String() string { - return string(e) -} - -func (e *ParticipantRequireFinancialGuaranteeType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ParticipantRequireFinancialGuaranteeType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ParticipantRequireFinancialGuaranteeType", str) - } - return nil -} - -func (e ParticipantRequireFinancialGuaranteeType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ParticipantSelectionType string - -const ( - ParticipantSelectionTypeModelTeamReviewApplications ParticipantSelectionType = "MODEL_TEAM_REVIEW_APPLICATIONS" - ParticipantSelectionTypeSupportFromCmmi ParticipantSelectionType = "SUPPORT_FROM_CMMI" - ParticipantSelectionTypeCmsComponentOrProcess ParticipantSelectionType = "CMS_COMPONENT_OR_PROCESS" - ParticipantSelectionTypeApplicationReviewAndScoringTool ParticipantSelectionType = "APPLICATION_REVIEW_AND_SCORING_TOOL" - ParticipantSelectionTypeApplicationSupportContractor ParticipantSelectionType = "APPLICATION_SUPPORT_CONTRACTOR" - ParticipantSelectionTypeBasicCriteria ParticipantSelectionType = "BASIC_CRITERIA" - ParticipantSelectionTypeOther ParticipantSelectionType = "OTHER" - ParticipantSelectionTypeNoSelectingParticipants ParticipantSelectionType = "NO_SELECTING_PARTICIPANTS" -) - -var AllParticipantSelectionType = []ParticipantSelectionType{ - ParticipantSelectionTypeModelTeamReviewApplications, - ParticipantSelectionTypeSupportFromCmmi, - ParticipantSelectionTypeCmsComponentOrProcess, - ParticipantSelectionTypeApplicationReviewAndScoringTool, - ParticipantSelectionTypeApplicationSupportContractor, - ParticipantSelectionTypeBasicCriteria, - ParticipantSelectionTypeOther, - ParticipantSelectionTypeNoSelectingParticipants, -} - -func (e ParticipantSelectionType) IsValid() bool { - switch e { - case ParticipantSelectionTypeModelTeamReviewApplications, ParticipantSelectionTypeSupportFromCmmi, ParticipantSelectionTypeCmsComponentOrProcess, ParticipantSelectionTypeApplicationReviewAndScoringTool, ParticipantSelectionTypeApplicationSupportContractor, ParticipantSelectionTypeBasicCriteria, ParticipantSelectionTypeOther, ParticipantSelectionTypeNoSelectingParticipants: - return true - } - return false -} - -func (e ParticipantSelectionType) String() string { - return string(e) -} - -func (e *ParticipantSelectionType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ParticipantSelectionType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ParticipantSelectionType", str) - } - return nil -} - -func (e ParticipantSelectionType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ParticipantsIDType string - -const ( - ParticipantsIDTypeTins ParticipantsIDType = "TINS" - ParticipantsIDTypeNpis ParticipantsIDType = "NPIS" - ParticipantsIDTypeCcns ParticipantsIDType = "CCNS" - ParticipantsIDTypeOther ParticipantsIDType = "OTHER" - ParticipantsIDTypeNoIDEntifiers ParticipantsIDType = "NO_IDENTIFIERS" -) - -var AllParticipantsIDType = []ParticipantsIDType{ - ParticipantsIDTypeTins, - ParticipantsIDTypeNpis, - ParticipantsIDTypeCcns, - ParticipantsIDTypeOther, - ParticipantsIDTypeNoIDEntifiers, -} - -func (e ParticipantsIDType) IsValid() bool { - switch e { - case ParticipantsIDTypeTins, ParticipantsIDTypeNpis, ParticipantsIDTypeCcns, ParticipantsIDTypeOther, ParticipantsIDTypeNoIDEntifiers: - return true - } - return false -} - -func (e ParticipantsIDType) String() string { - return string(e) -} - -func (e *ParticipantsIDType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ParticipantsIDType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ParticipantsIDType", str) - } - return nil -} - -func (e ParticipantsIDType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ParticipantsType string - -const ( - ParticipantsTypeMedicareProviders ParticipantsType = "MEDICARE_PROVIDERS" - ParticipantsTypeEntities ParticipantsType = "ENTITIES" - ParticipantsTypeConvener ParticipantsType = "CONVENER" - ParticipantsTypeMedicareAdvantagePlans ParticipantsType = "MEDICARE_ADVANTAGE_PLANS" - ParticipantsTypeStandalonePartDPlans ParticipantsType = "STANDALONE_PART_D_PLANS" - ParticipantsTypeMedicareAdvantagePrescriptionDrugPlans ParticipantsType = "MEDICARE_ADVANTAGE_PRESCRIPTION_DRUG_PLANS" - ParticipantsTypeStateMedicaidAgencies ParticipantsType = "STATE_MEDICAID_AGENCIES" - ParticipantsTypeMedicaidManagedCareOrganizations ParticipantsType = "MEDICAID_MANAGED_CARE_ORGANIZATIONS" - ParticipantsTypeMedicaidProviders ParticipantsType = "MEDICAID_PROVIDERS" - ParticipantsTypeStates ParticipantsType = "STATES" - ParticipantsTypeCommunityBasedOrganizations ParticipantsType = "COMMUNITY_BASED_ORGANIZATIONS" - ParticipantsTypeNonProfitOrganizations ParticipantsType = "NON_PROFIT_ORGANIZATIONS" - ParticipantsTypeCommercialPayers ParticipantsType = "COMMERCIAL_PAYERS" - ParticipantsTypeAccountableCareOrganization ParticipantsType = "ACCOUNTABLE_CARE_ORGANIZATION" - ParticipantsTypeOther ParticipantsType = "OTHER" -) - -var AllParticipantsType = []ParticipantsType{ - ParticipantsTypeMedicareProviders, - ParticipantsTypeEntities, - ParticipantsTypeConvener, - ParticipantsTypeMedicareAdvantagePlans, - ParticipantsTypeStandalonePartDPlans, - ParticipantsTypeMedicareAdvantagePrescriptionDrugPlans, - ParticipantsTypeStateMedicaidAgencies, - ParticipantsTypeMedicaidManagedCareOrganizations, - ParticipantsTypeMedicaidProviders, - ParticipantsTypeStates, - ParticipantsTypeCommunityBasedOrganizations, - ParticipantsTypeNonProfitOrganizations, - ParticipantsTypeCommercialPayers, - ParticipantsTypeAccountableCareOrganization, - ParticipantsTypeOther, -} - -func (e ParticipantsType) IsValid() bool { - switch e { - case ParticipantsTypeMedicareProviders, ParticipantsTypeEntities, ParticipantsTypeConvener, ParticipantsTypeMedicareAdvantagePlans, ParticipantsTypeStandalonePartDPlans, ParticipantsTypeMedicareAdvantagePrescriptionDrugPlans, ParticipantsTypeStateMedicaidAgencies, ParticipantsTypeMedicaidManagedCareOrganizations, ParticipantsTypeMedicaidProviders, ParticipantsTypeStates, ParticipantsTypeCommunityBasedOrganizations, ParticipantsTypeNonProfitOrganizations, ParticipantsTypeCommercialPayers, ParticipantsTypeAccountableCareOrganization, ParticipantsTypeOther: - return true - } - return false -} - -func (e ParticipantsType) String() string { - return string(e) -} - -func (e *ParticipantsType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ParticipantsType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ParticipantsType", str) - } - return nil -} - -func (e ParticipantsType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type PrepareForClearanceStatus string - -const ( - PrepareForClearanceStatusCannotStart PrepareForClearanceStatus = "CANNOT_START" - PrepareForClearanceStatusReady PrepareForClearanceStatus = "READY" - PrepareForClearanceStatusInProgress PrepareForClearanceStatus = "IN_PROGRESS" - PrepareForClearanceStatusReadyForClearance PrepareForClearanceStatus = "READY_FOR_CLEARANCE" -) - -var AllPrepareForClearanceStatus = []PrepareForClearanceStatus{ - PrepareForClearanceStatusCannotStart, - PrepareForClearanceStatusReady, - PrepareForClearanceStatusInProgress, - PrepareForClearanceStatusReadyForClearance, -} - -func (e PrepareForClearanceStatus) IsValid() bool { - switch e { - case PrepareForClearanceStatusCannotStart, PrepareForClearanceStatusReady, PrepareForClearanceStatusInProgress, PrepareForClearanceStatusReadyForClearance: - return true - } - return false -} - -func (e PrepareForClearanceStatus) String() string { - return string(e) -} - -func (e *PrepareForClearanceStatus) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = PrepareForClearanceStatus(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid PrepareForClearanceStatus", str) - } - return nil -} - -func (e PrepareForClearanceStatus) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ProviderAddType string - -const ( - ProviderAddTypeProspectively ProviderAddType = "PROSPECTIVELY" - ProviderAddTypeRetrospectively ProviderAddType = "RETROSPECTIVELY" - ProviderAddTypeVoluntarily ProviderAddType = "VOLUNTARILY" - ProviderAddTypeMandatorily ProviderAddType = "MANDATORILY" - ProviderAddTypeOnlineTools ProviderAddType = "ONLINE_TOOLS" - ProviderAddTypeOther ProviderAddType = "OTHER" - ProviderAddTypeNa ProviderAddType = "NA" -) - -var AllProviderAddType = []ProviderAddType{ - ProviderAddTypeProspectively, - ProviderAddTypeRetrospectively, - ProviderAddTypeVoluntarily, - ProviderAddTypeMandatorily, - ProviderAddTypeOnlineTools, - ProviderAddTypeOther, - ProviderAddTypeNa, -} - -func (e ProviderAddType) IsValid() bool { - switch e { - case ProviderAddTypeProspectively, ProviderAddTypeRetrospectively, ProviderAddTypeVoluntarily, ProviderAddTypeMandatorily, ProviderAddTypeOnlineTools, ProviderAddTypeOther, ProviderAddTypeNa: - return true - } - return false -} - -func (e ProviderAddType) String() string { - return string(e) -} - -func (e *ProviderAddType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ProviderAddType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ProviderAddType", str) - } - return nil -} - -func (e ProviderAddType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ProviderLeaveType string - -const ( - ProviderLeaveTypeVoluntarilyWithoutImplications ProviderLeaveType = "VOLUNTARILY_WITHOUT_IMPLICATIONS" - ProviderLeaveTypeAfterACertainWithImplications ProviderLeaveType = "AFTER_A_CERTAIN_WITH_IMPLICATIONS" - ProviderLeaveTypeVariesByTypeOfProvider ProviderLeaveType = "VARIES_BY_TYPE_OF_PROVIDER" - ProviderLeaveTypeNotAllowedToLeave ProviderLeaveType = "NOT_ALLOWED_TO_LEAVE" - ProviderLeaveTypeOther ProviderLeaveType = "OTHER" - ProviderLeaveTypeNotApplicable ProviderLeaveType = "NOT_APPLICABLE" -) - -var AllProviderLeaveType = []ProviderLeaveType{ - ProviderLeaveTypeVoluntarilyWithoutImplications, - ProviderLeaveTypeAfterACertainWithImplications, - ProviderLeaveTypeVariesByTypeOfProvider, - ProviderLeaveTypeNotAllowedToLeave, - ProviderLeaveTypeOther, - ProviderLeaveTypeNotApplicable, -} - -func (e ProviderLeaveType) IsValid() bool { - switch e { - case ProviderLeaveTypeVoluntarilyWithoutImplications, ProviderLeaveTypeAfterACertainWithImplications, ProviderLeaveTypeVariesByTypeOfProvider, ProviderLeaveTypeNotAllowedToLeave, ProviderLeaveTypeOther, ProviderLeaveTypeNotApplicable: - return true - } - return false -} - -func (e ProviderLeaveType) String() string { - return string(e) -} - -func (e *ProviderLeaveType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ProviderLeaveType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ProviderLeaveType", str) - } - return nil -} - -func (e ProviderLeaveType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ReportAProblemSection string - -const ( - ReportAProblemSectionReadView ReportAProblemSection = "READ_VIEW" - ReportAProblemSectionTaskList ReportAProblemSection = "TASK_LIST" - ReportAProblemSectionItSolutions ReportAProblemSection = "IT_SOLUTIONS" - ReportAProblemSectionHelpCenter ReportAProblemSection = "HELP_CENTER" - ReportAProblemSectionOther ReportAProblemSection = "OTHER" -) - -var AllReportAProblemSection = []ReportAProblemSection{ - ReportAProblemSectionReadView, - ReportAProblemSectionTaskList, - ReportAProblemSectionItSolutions, - ReportAProblemSectionHelpCenter, - ReportAProblemSectionOther, -} - -func (e ReportAProblemSection) IsValid() bool { - switch e { - case ReportAProblemSectionReadView, ReportAProblemSectionTaskList, ReportAProblemSectionItSolutions, ReportAProblemSectionHelpCenter, ReportAProblemSectionOther: - return true - } - return false -} - -func (e ReportAProblemSection) String() string { - return string(e) -} - -func (e *ReportAProblemSection) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ReportAProblemSection(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ReportAProblemSection", str) - } - return nil -} - -func (e ReportAProblemSection) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ReportAProblemSeverity string - -const ( - ReportAProblemSeverityPreventedTask ReportAProblemSeverity = "PREVENTED_TASK" - ReportAProblemSeverityDelayedTask ReportAProblemSeverity = "DELAYED_TASK" - ReportAProblemSeverityMinor ReportAProblemSeverity = "MINOR" - ReportAProblemSeverityOther ReportAProblemSeverity = "OTHER" -) - -var AllReportAProblemSeverity = []ReportAProblemSeverity{ - ReportAProblemSeverityPreventedTask, - ReportAProblemSeverityDelayedTask, - ReportAProblemSeverityMinor, - ReportAProblemSeverityOther, -} - -func (e ReportAProblemSeverity) IsValid() bool { - switch e { - case ReportAProblemSeverityPreventedTask, ReportAProblemSeverityDelayedTask, ReportAProblemSeverityMinor, ReportAProblemSeverityOther: - return true - } - return false -} - -func (e ReportAProblemSeverity) String() string { - return string(e) -} - -func (e *ReportAProblemSeverity) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ReportAProblemSeverity(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ReportAProblemSeverity", str) - } - return nil -} - -func (e ReportAProblemSeverity) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -// A user role associated with a job code -type Role string - -const ( - // A basic MINT user - RoleMintUser Role = "MINT_USER" - // A MINT assessment team user - RoleMintAssessment Role = "MINT_ASSESSMENT" - // A MINT MAC user - RoleMintMac Role = "MINT_MAC" -) - -var AllRole = []Role{ - RoleMintUser, - RoleMintAssessment, - RoleMintMac, -} - -func (e Role) IsValid() bool { - switch e { - case RoleMintUser, RoleMintAssessment, RoleMintMac: - return true - } - return false -} - -func (e Role) String() string { - return string(e) -} - -func (e *Role) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = Role(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid Role", str) - } - return nil -} - -func (e Role) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type SatisfactionLevel string - -const ( - SatisfactionLevelVerySatisfied SatisfactionLevel = "VERY_SATISFIED" - SatisfactionLevelSatisfied SatisfactionLevel = "SATISFIED" - SatisfactionLevelNeutral SatisfactionLevel = "NEUTRAL" - SatisfactionLevelDissatisfied SatisfactionLevel = "DISSATISFIED" - SatisfactionLevelVeryDissatisfied SatisfactionLevel = "VERY_DISSATISFIED" -) - -var AllSatisfactionLevel = []SatisfactionLevel{ - SatisfactionLevelVerySatisfied, - SatisfactionLevelSatisfied, - SatisfactionLevelNeutral, - SatisfactionLevelDissatisfied, - SatisfactionLevelVeryDissatisfied, -} - -func (e SatisfactionLevel) IsValid() bool { - switch e { - case SatisfactionLevelVerySatisfied, SatisfactionLevelSatisfied, SatisfactionLevelNeutral, SatisfactionLevelDissatisfied, SatisfactionLevelVeryDissatisfied: - return true - } - return false -} - -func (e SatisfactionLevel) String() string { - return string(e) -} - -func (e *SatisfactionLevel) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = SatisfactionLevel(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid SatisfactionLevel", str) - } - return nil -} - -func (e SatisfactionLevel) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type SelectionMethodType string - -const ( - SelectionMethodTypeHistorical SelectionMethodType = "HISTORICAL" - SelectionMethodTypeProspective SelectionMethodType = "PROSPECTIVE" - SelectionMethodTypeRetrospective SelectionMethodType = "RETROSPECTIVE" - SelectionMethodTypeVoluntary SelectionMethodType = "VOLUNTARY" - SelectionMethodTypeProviderSignUp SelectionMethodType = "PROVIDER_SIGN_UP" - SelectionMethodTypeOther SelectionMethodType = "OTHER" - SelectionMethodTypeNa SelectionMethodType = "NA" -) - -var AllSelectionMethodType = []SelectionMethodType{ - SelectionMethodTypeHistorical, - SelectionMethodTypeProspective, - SelectionMethodTypeRetrospective, - SelectionMethodTypeVoluntary, - SelectionMethodTypeProviderSignUp, - SelectionMethodTypeOther, - SelectionMethodTypeNa, -} - -func (e SelectionMethodType) IsValid() bool { - switch e { - case SelectionMethodTypeHistorical, SelectionMethodTypeProspective, SelectionMethodTypeRetrospective, SelectionMethodTypeVoluntary, SelectionMethodTypeProviderSignUp, SelectionMethodTypeOther, SelectionMethodTypeNa: - return true - } - return false -} - -func (e SelectionMethodType) String() string { - return string(e) -} - -func (e *SelectionMethodType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = SelectionMethodType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid SelectionMethodType", str) - } - return nil -} - -func (e SelectionMethodType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type StakeholdersType string - -const ( - StakeholdersTypeBeneficiaries StakeholdersType = "BENEFICIARIES" - StakeholdersTypeCommunityOrganizations StakeholdersType = "COMMUNITY_ORGANIZATIONS" - StakeholdersTypeParticipants StakeholdersType = "PARTICIPANTS" - StakeholdersTypeProfessionalOrganizations StakeholdersType = "PROFESSIONAL_ORGANIZATIONS" - StakeholdersTypeProviders StakeholdersType = "PROVIDERS" - StakeholdersTypeStates StakeholdersType = "STATES" - StakeholdersTypeOther StakeholdersType = "OTHER" -) - -var AllStakeholdersType = []StakeholdersType{ - StakeholdersTypeBeneficiaries, - StakeholdersTypeCommunityOrganizations, - StakeholdersTypeParticipants, - StakeholdersTypeProfessionalOrganizations, - StakeholdersTypeProviders, - StakeholdersTypeStates, - StakeholdersTypeOther, -} - -func (e StakeholdersType) IsValid() bool { - switch e { - case StakeholdersTypeBeneficiaries, StakeholdersTypeCommunityOrganizations, StakeholdersTypeParticipants, StakeholdersTypeProfessionalOrganizations, StakeholdersTypeProviders, StakeholdersTypeStates, StakeholdersTypeOther: - return true - } - return false -} - -func (e StakeholdersType) String() string { - return string(e) -} - -func (e *StakeholdersType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = StakeholdersType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid StakeholdersType", str) - } - return nil -} - -func (e StakeholdersType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type TaskStatusInput string - -const ( - TaskStatusInputInProgress TaskStatusInput = "IN_PROGRESS" - TaskStatusInputReadyForReview TaskStatusInput = "READY_FOR_REVIEW" - TaskStatusInputReadyForClearance TaskStatusInput = "READY_FOR_CLEARANCE" -) - -var AllTaskStatusInput = []TaskStatusInput{ - TaskStatusInputInProgress, - TaskStatusInputReadyForReview, - TaskStatusInputReadyForClearance, -} - -func (e TaskStatusInput) IsValid() bool { - switch e { - case TaskStatusInputInProgress, TaskStatusInputReadyForReview, TaskStatusInputReadyForClearance: - return true - } - return false -} - -func (e TaskStatusInput) String() string { - return string(e) -} - -func (e *TaskStatusInput) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = TaskStatusInput(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid TaskStatusInput", str) - } - return nil -} - -func (e TaskStatusInput) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type WaiverType string - -const ( - WaiverTypeFraudAbuse WaiverType = "FRAUD_ABUSE" - WaiverTypeProgramPayment WaiverType = "PROGRAM_PAYMENT" - WaiverTypeMedicaid WaiverType = "MEDICAID" -) - -var AllWaiverType = []WaiverType{ - WaiverTypeFraudAbuse, - WaiverTypeProgramPayment, - WaiverTypeMedicaid, -} - -func (e WaiverType) IsValid() bool { - switch e { - case WaiverTypeFraudAbuse, WaiverTypeProgramPayment, WaiverTypeMedicaid: - return true - } - return false -} - -func (e WaiverType) String() string { - return string(e) -} - -func (e *WaiverType) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = WaiverType(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid WaiverType", str) - } - return nil -} - -func (e WaiverType) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx index 9a38d700d5..0ed986d2af 100644 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx @@ -16,10 +16,7 @@ import { Select, TextInput } from '@trussworks/react-uswds'; -import { - MtoSolutionType, - useCreateMtoSolutionCustomMutation -} from 'gql/generated/graphql'; +import { useCreateMtoSolutionCustomMutation } from 'gql/generated/graphql'; // import { // useCreateMtoMilestoneCustomMutation, From 99e44658f112f92fc2be765fe5c08b717737c1ca Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Mon, 2 Dec 2024 11:53:02 -0500 Subject: [PATCH 12/19] scripts/dev gql --- pkg/graph/generated/generated.go | 165073 ++++++++++++++++++++++++++++ pkg/graph/model/models_gen.go | 2638 + 2 files changed, 167711 insertions(+) create mode 100644 pkg/graph/generated/generated.go create mode 100644 pkg/graph/model/models_gen.go diff --git a/pkg/graph/generated/generated.go b/pkg/graph/generated/generated.go new file mode 100644 index 0000000000..a80166ec03 --- /dev/null +++ b/pkg/graph/generated/generated.go @@ -0,0 +1,165073 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package generated + +import ( + "bytes" + "context" + "errors" + "fmt" + "io" + "strconv" + "sync" + "sync/atomic" + "time" + + "github.com/99designs/gqlgen/graphql" + "github.com/99designs/gqlgen/graphql/introspection" + "github.com/cms-enterprise/mint-app/pkg/authentication" + "github.com/cms-enterprise/mint-app/pkg/graph/model" + "github.com/cms-enterprise/mint-app/pkg/models" + "github.com/google/uuid" + gqlparser "github.com/vektah/gqlparser/v2" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. +func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { + return &executableSchema{ + resolvers: cfg.Resolvers, + directives: cfg.Directives, + complexity: cfg.Complexity, + } +} + +type Config struct { + Resolvers ResolverRoot + Directives DirectiveRoot + Complexity ComplexityRoot +} + +type ResolverRoot interface { + Activity() ActivityResolver + AddedAsCollaboratorMeta() AddedAsCollaboratorMetaResolver + AnalyzedModelLeadInfo() AnalyzedModelLeadInfoResolver + AuditChange() AuditChangeResolver + CurrentUser() CurrentUserResolver + DailyDigestCompleteActivityMeta() DailyDigestCompleteActivityMetaResolver + DatesChangedActivityMeta() DatesChangedActivityMetaResolver + DiscussionReply() DiscussionReplyResolver + ExistingModelLink() ExistingModelLinkResolver + ExistingModelLinks() ExistingModelLinksResolver + MTOCategory() MTOCategoryResolver + MTOCommonMilestone() MTOCommonMilestoneResolver + MTOCommonSolution() MTOCommonSolutionResolver + MTOInfo() MTOInfoResolver + MTOMilestone() MTOMilestoneResolver + MTOSolution() MTOSolutionResolver + MTOSubcategory() MTOSubcategoryResolver + ModelPlan() ModelPlanResolver + ModelPlanAndPossibleOperationalSolution() ModelPlanAndPossibleOperationalSolutionResolver + ModelPlanSharedActivityMeta() ModelPlanSharedActivityMetaResolver + ModelsToOperationMatrix() ModelsToOperationMatrixResolver + Mutation() MutationResolver + NewDiscussionRepliedActivityMeta() NewDiscussionRepliedActivityMetaResolver + NewModelPlanActivityMeta() NewModelPlanActivityMetaResolver + OperationalNeed() OperationalNeedResolver + OperationalSolution() OperationalSolutionResolver + PlanBasics() PlanBasicsResolver + PlanBeneficiaries() PlanBeneficiariesResolver + PlanCollaborator() PlanCollaboratorResolver + PlanDataExchangeApproach() PlanDataExchangeApproachResolver + PlanDataExchangeApproachMarkedCompleteActivityMeta() PlanDataExchangeApproachMarkedCompleteActivityMetaResolver + PlanDiscussion() PlanDiscussionResolver + PlanDocument() PlanDocumentResolver + PlanGeneralCharacteristics() PlanGeneralCharacteristicsResolver + PlanOpsEvalAndLearning() PlanOpsEvalAndLearningResolver + PlanParticipantsAndProviders() PlanParticipantsAndProvidersResolver + PlanPayments() PlanPaymentsResolver + PossibleOperationalNeed() PossibleOperationalNeedResolver + PossibleOperationalSolution() PossibleOperationalSolutionResolver + Query() QueryResolver + Subscription() SubscriptionResolver + Tag() TagResolver + TaggedContent() TaggedContentResolver + TaggedInDiscussionReplyActivityMeta() TaggedInDiscussionReplyActivityMetaResolver + TaggedInPlanDiscussionActivityMeta() TaggedInPlanDiscussionActivityMetaResolver + TranslatedAudit() TranslatedAuditResolver + TranslatedAuditField() TranslatedAuditFieldResolver + TranslationFieldWithOptionsAndChildren() TranslationFieldWithOptionsAndChildrenResolver + TranslationFieldWithParentAndChildren() TranslationFieldWithParentAndChildrenResolver + UserNotification() UserNotificationResolver + UserNotificationPreferences() UserNotificationPreferencesResolver + UserViewCustomization() UserViewCustomizationResolver +} + +type DirectiveRoot struct { + HasAnyRole func(ctx context.Context, obj interface{}, next graphql.Resolver, roles []model.Role) (res interface{}, err error) + HasRole func(ctx context.Context, obj interface{}, next graphql.Resolver, role model.Role) (res interface{}, err error) +} + +type ComplexityRoot struct { + Activity struct { + ActivityType func(childComplexity int) int + ActorID func(childComplexity int) int + ActorUserAccount func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + EntityID func(childComplexity int) int + ID func(childComplexity int) int + MetaData func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + } + + AddedAsCollaboratorMeta struct { + Collaborator func(childComplexity int) int + CollaboratorID func(childComplexity int) int + ModelPlan func(childComplexity int) int + ModelPlanID func(childComplexity int) int + Type func(childComplexity int) int + Version func(childComplexity int) int + } + + AnalyzedAudit struct { + Changes func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + Date func(childComplexity int) int + ID func(childComplexity int) int + ModelName func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + } + + AnalyzedAuditChange struct { + CrTdls func(childComplexity int) int + Documents func(childComplexity int) int + ModelLeads func(childComplexity int) int + ModelPlan func(childComplexity int) int + PlanDiscussions func(childComplexity int) int + PlanSections func(childComplexity int) int + } + + AnalyzedCrTdls struct { + Activity func(childComplexity int) int + } + + AnalyzedDocuments struct { + Count func(childComplexity int) int + } + + AnalyzedModelLeadInfo struct { + CommonName func(childComplexity int) int + ID func(childComplexity int) int + UserAccount func(childComplexity int) int + } + + AnalyzedModelLeads struct { + Added func(childComplexity int) int + } + + AnalyzedModelPlan struct { + OldName func(childComplexity int) int + StatusChanges func(childComplexity int) int + } + + AnalyzedPlanDiscussions struct { + Activity func(childComplexity int) int + } + + AnalyzedPlanSections struct { + DataExchangeApproachMarkedComplete func(childComplexity int) int + ReadyForClearance func(childComplexity int) int + ReadyForReview func(childComplexity int) int + Updated func(childComplexity int) int + } + + AuditChange struct { + Action func(childComplexity int) int + Fields func(childComplexity int) int + ForeignKey func(childComplexity int) int + ID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + PrimaryKey func(childComplexity int) int + TableName func(childComplexity int) int + } + + CurrentUser struct { + Account func(childComplexity int) int + LaunchDarkly func(childComplexity int) int + NotificationPreferences func(childComplexity int) int + Notifications func(childComplexity int) int + } + + DailyDigestCompleteActivityMeta struct { + AnalyzedAudits func(childComplexity int) int + Date func(childComplexity int) int + ModelPlanIDs func(childComplexity int) int + Type func(childComplexity int) int + UserID func(childComplexity int) int + Version func(childComplexity int) int + } + + DateChange struct { + Field func(childComplexity int) int + IsChanged func(childComplexity int) int + IsRange func(childComplexity int) int + NewDate func(childComplexity int) int + NewRangeEnd func(childComplexity int) int + NewRangeStart func(childComplexity int) int + OldDate func(childComplexity int) int + OldRangeEnd func(childComplexity int) int + OldRangeStart func(childComplexity int) int + } + + DatesChangedActivityMeta struct { + DateChanges func(childComplexity int) int + ModelPlan func(childComplexity int) int + ModelPlanID func(childComplexity int) int + Type func(childComplexity int) int + Version func(childComplexity int) int + } + + DiscussionReply struct { + Content func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DiscussionID func(childComplexity int) int + ID func(childComplexity int) int + IsAssessment func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + UserRole func(childComplexity int) int + UserRoleDescription func(childComplexity int) int + } + + DiscussionReplyTranslation struct { + Content func(childComplexity int) int + IsAssessment func(childComplexity int) int + UserRole func(childComplexity int) int + UserRoleDescription func(childComplexity int) int + } + + DiscussionRoleSelection struct { + UserRole func(childComplexity int) int + UserRoleDescription func(childComplexity int) int + } + + EChimpCR struct { + AssociatedModelUids func(childComplexity int) int + CrNumber func(childComplexity int) int + CrStatus func(childComplexity int) int + CrSummary func(childComplexity int) int + EmergencyCrFlag func(childComplexity int) int + FirstName func(childComplexity int) int + ImplementationDate func(childComplexity int) int + Initiator func(childComplexity int) int + LastName func(childComplexity int) int + RelatedCrNumbers func(childComplexity int) int + RelatedCrTdlNumbers func(childComplexity int) int + SensitiveFlag func(childComplexity int) int + Title func(childComplexity int) int + VersionNum func(childComplexity int) int + } + + EChimpTDL struct { + AssociatedModelUids func(childComplexity int) int + FirstName func(childComplexity int) int + Initiator func(childComplexity int) int + IssuedDate func(childComplexity int) int + LastName func(childComplexity int) int + Status func(childComplexity int) int + TdlNumber func(childComplexity int) int + Title func(childComplexity int) int + VersionNum func(childComplexity int) int + } + + EnumTranslation struct { + GeneralName func(childComplexity int) int + GroupedName func(childComplexity int) int + } + + ExistingModel struct { + Authority func(childComplexity int) int + Category func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DateBegan func(childComplexity int) int + DateEnded func(childComplexity int) int + Description func(childComplexity int) int + DisplayModelSummary func(childComplexity int) int + ID func(childComplexity int) int + Keywords func(childComplexity int) int + ModelName func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + NumberOfBeneficiariesImpacted func(childComplexity int) int + NumberOfParticipants func(childComplexity int) int + NumberOfPhysiciansImpacted func(childComplexity int) int + Stage func(childComplexity int) int + States func(childComplexity int) int + URL func(childComplexity int) int + } + + ExistingModelLink struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + CurrentModelPlanID func(childComplexity int) int + ExistingModelID func(childComplexity int) int + FieldName func(childComplexity int) int + ID func(childComplexity int) int + Model func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + } + + ExistingModelLinkTranslation struct { + CurrentModelPlanID func(childComplexity int) int + ExistingModelID func(childComplexity int) int + FieldName func(childComplexity int) int + } + + ExistingModelLinks struct { + FieldName func(childComplexity int) int + Links func(childComplexity int) int + ModelPlanID func(childComplexity int) int + Names func(childComplexity int) int + } + + LaunchDarklySettings struct { + SignedHash func(childComplexity int) int + UserKey func(childComplexity int) int + } + + LockableSectionLockStatus struct { + IsAssessment func(childComplexity int) int + LockedByUserAccount func(childComplexity int) int + ModelPlanID func(childComplexity int) int + Section func(childComplexity int) int + } + + LockableSectionLockStatusChanged struct { + ActionType func(childComplexity int) int + ChangeType func(childComplexity int) int + LockStatus func(childComplexity int) int + } + + MTOCategory struct { + ID func(childComplexity int) int + IsUncategorized func(childComplexity int) int + Name func(childComplexity int) int + Position func(childComplexity int) int + SubCategories func(childComplexity int) int + } + + MTOCategoryTranslation struct { + Name func(childComplexity int) int + } + + MTOCommonMilestone struct { + CategoryName func(childComplexity int) int + CommonSolutions func(childComplexity int) int + FacilitatedByRole func(childComplexity int) int + IsAdded func(childComplexity int) int + IsSuggested func(childComplexity int) int + Key func(childComplexity int) int + Name func(childComplexity int) int + Section func(childComplexity int) int + SubCategoryName func(childComplexity int) int + } + + MTOCommonSolution struct { + FilterView func(childComplexity int) int + IsAdded func(childComplexity int) int + Key func(childComplexity int) int + Name func(childComplexity int) int + Subjects func(childComplexity int) int + Type func(childComplexity int) int + } + + MTOInfo struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + ID func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewByUserAccount func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + } + + MTOInfoTranslation struct { + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + } + + MTOMilestone struct { + AddedFromMilestoneLibrary func(childComplexity int) int + Category func(childComplexity int) int + CommonMilestone func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + FacilitatedBy func(childComplexity int) int + ID func(childComplexity int) int + IsDraft func(childComplexity int) int + Key func(childComplexity int) int + MTOCategoryID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Name func(childComplexity int) int + NeedBy func(childComplexity int) int + RiskIndicator func(childComplexity int) int + Solutions func(childComplexity int) int + Status func(childComplexity int) int + SubCategory func(childComplexity int) int + } + + MTOMilestoneTranslation struct { + Name func(childComplexity int) int + } + + MTOSolution struct { + AddedFromSolutionLibrary func(childComplexity int) int + CommonSolution func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + FacilitatedBy func(childComplexity int) int + ID func(childComplexity int) int + Key func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Name func(childComplexity int) int + NeededBy func(childComplexity int) int + PocEmail func(childComplexity int) int + PocName func(childComplexity int) int + RelatedMilestones func(childComplexity int) int + RiskIndicator func(childComplexity int) int + Status func(childComplexity int) int + Type func(childComplexity int) int + } + + MTOSubcategory struct { + ID func(childComplexity int) int + IsUncategorized func(childComplexity int) int + Milestones func(childComplexity int) int + Name func(childComplexity int) int + Position func(childComplexity int) int + } + + ModelPlan struct { + Abbreviation func(childComplexity int) int + Archived func(childComplexity int) int + Basics func(childComplexity int) int + Beneficiaries func(childComplexity int) int + Collaborators func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + Crs func(childComplexity int) int + DataExchangeApproach func(childComplexity int) int + Discussions func(childComplexity int) int + Documents func(childComplexity int) int + EchimpCRsAndTDLs func(childComplexity int) int + GeneralCharacteristics func(childComplexity int) int + ID func(childComplexity int) int + IsCollaborator func(childComplexity int) int + IsFavorite func(childComplexity int) int + ModelBySolutionStatus func(childComplexity int) int + ModelName func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + MtoMatrix func(childComplexity int) int + NameHistory func(childComplexity int, sort models.SortDirection) int + OpSolutionLastModifiedDts func(childComplexity int) int + OperationalNeeds func(childComplexity int) int + OpsEvalAndLearning func(childComplexity int) int + ParticipantsAndProviders func(childComplexity int) int + Payments func(childComplexity int) int + PrepareForClearance func(childComplexity int) int + PreviousSuggestedPhase func(childComplexity int) int + Status func(childComplexity int) int + SuggestedPhase func(childComplexity int) int + TaskListStatus func(childComplexity int) int + Tdls func(childComplexity int) int + } + + ModelPlanAndPossibleOperationalSolution struct { + Key func(childComplexity int) int + ModelPlan func(childComplexity int) int + ModelPlanID func(childComplexity int) int + PossibleOperationalSolution func(childComplexity int) int + PossibleOperationalSolutionID func(childComplexity int) int + } + + ModelPlanSharedActivityMeta struct { + ModelPlan func(childComplexity int) int + ModelPlanID func(childComplexity int) int + OptionalMessage func(childComplexity int) int + Type func(childComplexity int) int + Version func(childComplexity int) int + } + + ModelPlanTranslation struct { + Abbreviation func(childComplexity int) int + Archived func(childComplexity int) int + ModelName func(childComplexity int) int + NameHistory func(childComplexity int) int + PreviousName func(childComplexity int) int + Status func(childComplexity int) int + } + + ModelsToOperationMatrix struct { + Categories func(childComplexity int) int + CommonMilestones func(childComplexity int) int + CommonSolutions func(childComplexity int) int + Info func(childComplexity int) int + Milestones func(childComplexity int) int + RecentEdit func(childComplexity int) int + Solutions func(childComplexity int) int + Status func(childComplexity int) int + } + + Mutation struct { + AddOrUpdateCustomOperationalNeed func(childComplexity int, modelPlanID uuid.UUID, customNeedType string, needed bool) int + AddPlanFavorite func(childComplexity int, modelPlanID uuid.UUID) int + AgreeToNda func(childComplexity int, agree bool) int + CreateDiscussionReply func(childComplexity int, input model.DiscussionReplyCreateInput) int + CreateMTOCategory func(childComplexity int, modelPlanID uuid.UUID, name string, parentID *uuid.UUID) int + CreateMTOMilestoneCommon func(childComplexity int, modelPlanID uuid.UUID, commonMilestoneKey models.MTOCommonMilestoneKey) int + CreateMTOMilestoneCustom func(childComplexity int, modelPlanID uuid.UUID, name string, mtoCategoryID *uuid.UUID) int + CreateMTOSolutionCommon func(childComplexity int, modelPlanID uuid.UUID, key models.MTOCommonSolutionKey) int + CreateMTOSolutionCustom func(childComplexity int, modelPlanID uuid.UUID, solutionType models.MTOSolutionType, name string, pocName string, pocEmail string) int + CreateModelPlan func(childComplexity int, modelName string) int + CreateOperationalSolution func(childComplexity int, operationalNeedID uuid.UUID, solutionType *models.OperationalSolutionKey, changes map[string]interface{}) int + CreateOperationalSolutionSubtasks func(childComplexity int, solutionID uuid.UUID, inputs []*model.CreateOperationalSolutionSubtaskInput) int + CreatePlanCollaborator func(childComplexity int, input model.PlanCollaboratorCreateInput) int + CreatePlanCr func(childComplexity int, input model.PlanCRCreateInput) int + CreatePlanDiscussion func(childComplexity int, input model.PlanDiscussionCreateInput) int + CreatePlanDocumentSolutionLinks func(childComplexity int, solutionID uuid.UUID, documentIDs []uuid.UUID) int + CreatePlanTdl func(childComplexity int, input model.PlanTDLCreateInput) int + DeleteOperationalSolutionSubtask func(childComplexity int, id uuid.UUID) int + DeletePlanCollaborator func(childComplexity int, id uuid.UUID) int + DeletePlanCr func(childComplexity int, id uuid.UUID) int + DeletePlanDocument func(childComplexity int, id uuid.UUID) int + DeletePlanFavorite func(childComplexity int, modelPlanID uuid.UUID) int + DeletePlanTdl func(childComplexity int, id uuid.UUID) int + LinkNewPlanDocument func(childComplexity int, input model.PlanDocumentLinkInput) int + LockLockableSection func(childComplexity int, modelPlanID uuid.UUID, section models.LockableSection) int + MarkAllNotificationsAsRead func(childComplexity int) int + MarkMTOReadyForReview func(childComplexity int, modelPlanID uuid.UUID, readyForReview bool) int + MarkNotificationAsRead func(childComplexity int, notificationID uuid.UUID) int + RemovePlanDocumentSolutionLinks func(childComplexity int, solutionID uuid.UUID, documentIDs []uuid.UUID) int + RenameMTOCategory func(childComplexity int, id uuid.UUID, name string) int + ReorderMTOCategory func(childComplexity int, id uuid.UUID, newOrder *int, parentID *uuid.UUID) int + ReportAProblem func(childComplexity int, input model.ReportAProblemInput) int + SendFeedbackEmail func(childComplexity int, input model.SendFeedbackEmailInput) int + ShareModelPlan func(childComplexity int, modelPlanID uuid.UUID, viewFilter *models.ModelViewFilter, usernames []string, optionalMessage *string) int + UnlockAllLockableSections func(childComplexity int, modelPlanID uuid.UUID) int + UnlockLockableSection func(childComplexity int, modelPlanID uuid.UUID, section models.LockableSection) int + UpdateCustomOperationalNeedByID func(childComplexity int, id uuid.UUID, customNeedType *string, needed bool) int + UpdateExistingModelLinks func(childComplexity int, modelPlanID uuid.UUID, fieldName models.ExisitingModelLinkFieldType, existingModelIDs []int, currentModelPlanIDs []uuid.UUID) int + UpdateMTOMilestone func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdateMTOSolution func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdateModelPlan func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdateOperationalSolution func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdateOperationalSolutionSubtasks func(childComplexity int, inputs []*model.UpdateOperationalSolutionSubtaskInput) int + UpdatePlanBasics func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdatePlanBeneficiaries func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdatePlanCollaborator func(childComplexity int, id uuid.UUID, newRoles []models.TeamRole) int + UpdatePlanCr func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdatePlanDataExchangeApproach func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdatePlanGeneralCharacteristics func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdatePlanOpsEvalAndLearning func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdatePlanParticipantsAndProviders func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdatePlanPayments func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdatePlanTdl func(childComplexity int, id uuid.UUID, changes map[string]interface{}) int + UpdateUserNotificationPreferences func(childComplexity int, changes map[string]interface{}) int + UpdateUserViewCustomization func(childComplexity int, changes map[string]interface{}) int + UploadNewPlanDocument func(childComplexity int, input model.PlanDocumentInput) int + } + + NDAInfo struct { + Agreed func(childComplexity int) int + AgreedDts func(childComplexity int) int + } + + NewDiscussionRepliedActivityMeta struct { + Content func(childComplexity int) int + Discussion func(childComplexity int) int + DiscussionID func(childComplexity int) int + ModelPlan func(childComplexity int) int + ModelPlanID func(childComplexity int) int + Reply func(childComplexity int) int + ReplyID func(childComplexity int) int + Type func(childComplexity int) int + Version func(childComplexity int) int + } + + NewModelPlanActivityMeta struct { + ModelPlan func(childComplexity int) int + ModelPlanID func(childComplexity int) int + Type func(childComplexity int) int + Version func(childComplexity int) int + } + + OperationalNeed struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + ID func(childComplexity int) int + Key func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Name func(childComplexity int) int + NameOther func(childComplexity int) int + Needed func(childComplexity int) int + Section func(childComplexity int) int + Solutions func(childComplexity int, includeNotNeeded bool) int + } + + OperationalNeedTranslation struct { + Key func(childComplexity int) int + Name func(childComplexity int) int + NameOther func(childComplexity int) int + Needed func(childComplexity int) int + Section func(childComplexity int) int + } + + OperationalSolution struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + Documents func(childComplexity int) int + ID func(childComplexity int) int + IsCommonSolution func(childComplexity int) int + IsOther func(childComplexity int) int + Key func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + MustFinishDts func(childComplexity int) int + MustStartDts func(childComplexity int) int + Name func(childComplexity int) int + NameOther func(childComplexity int) int + Needed func(childComplexity int) int + OperationalNeedID func(childComplexity int) int + OperationalSolutionSubtasks func(childComplexity int) int + OtherHeader func(childComplexity int) int + PocEmail func(childComplexity int) int + PocName func(childComplexity int) int + SolutionType func(childComplexity int) int + Status func(childComplexity int) int + } + + OperationalSolutionSubtask struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + ID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Name func(childComplexity int) int + SolutionID func(childComplexity int) int + Status func(childComplexity int) int + } + + OperationalSolutionSubtaskTranslation struct { + Name func(childComplexity int) int + Status func(childComplexity int) int + } + + OperationalSolutionTranslation struct { + IsOther func(childComplexity int) int + Key func(childComplexity int) int + MustFinishDts func(childComplexity int) int + MustStartDts func(childComplexity int) int + Name func(childComplexity int) int + NameOther func(childComplexity int) int + Needed func(childComplexity int) int + OtherHeader func(childComplexity int) int + PocEmail func(childComplexity int) int + PocName func(childComplexity int) int + Status func(childComplexity int) int + } + + PhaseSuggestion struct { + Phase func(childComplexity int) int + SuggestedStatuses func(childComplexity int) int + } + + PlanBasics struct { + AdditionalModelCategories func(childComplexity int) int + AmsModelID func(childComplexity int) int + Announced func(childComplexity int) int + ApplicationsEnd func(childComplexity int) int + ApplicationsStart func(childComplexity int) int + ClearanceEnds func(childComplexity int) int + ClearanceStarts func(childComplexity int) int + CmmiGroups func(childComplexity int) int + CmsCenters func(childComplexity int) int + CompleteICIP func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DemoCode func(childComplexity int) int + Goal func(childComplexity int) int + HighLevelNote func(childComplexity int) int + ID func(childComplexity int) int + ModelCategory func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModelType func(childComplexity int) int + ModelTypeOther func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Note func(childComplexity int) int + PerformancePeriodEnds func(childComplexity int) int + PerformancePeriodStarts func(childComplexity int) int + PhasedIn func(childComplexity int) int + PhasedInNote func(childComplexity int) int + Problem func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceByUserAccount func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewByUserAccount func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + Status func(childComplexity int) int + TestInterventions func(childComplexity int) int + WrapUpEnds func(childComplexity int) int + } + + PlanBasicsTranslation struct { + AdditionalModelCategories func(childComplexity int) int + AmsModelID func(childComplexity int) int + Announced func(childComplexity int) int + ApplicationsEnd func(childComplexity int) int + ApplicationsStart func(childComplexity int) int + ClearanceEnds func(childComplexity int) int + ClearanceStarts func(childComplexity int) int + CmmiGroups func(childComplexity int) int + CmsCenters func(childComplexity int) int + CompleteIcip func(childComplexity int) int + DemoCode func(childComplexity int) int + Goal func(childComplexity int) int + HighLevelNote func(childComplexity int) int + ModelCategory func(childComplexity int) int + ModelType func(childComplexity int) int + ModelTypeOther func(childComplexity int) int + Note func(childComplexity int) int + PerformancePeriodEnds func(childComplexity int) int + PerformancePeriodStarts func(childComplexity int) int + PhasedIn func(childComplexity int) int + PhasedInNote func(childComplexity int) int + Problem func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + Status func(childComplexity int) int + TestInterventions func(childComplexity int) int + WrapUpEnds func(childComplexity int) int + } + + PlanBeneficiaries struct { + Beneficiaries func(childComplexity int) int + BeneficiariesNote func(childComplexity int) int + BeneficiariesOther func(childComplexity int) int + BeneficiaryOverlap func(childComplexity int) int + BeneficiaryOverlapNote func(childComplexity int) int + BeneficiaryRemovalFrequency func(childComplexity int) int + BeneficiaryRemovalFrequencyContinually func(childComplexity int) int + BeneficiaryRemovalFrequencyNote func(childComplexity int) int + BeneficiaryRemovalFrequencyOther func(childComplexity int) int + BeneficiarySelectionFrequency func(childComplexity int) int + BeneficiarySelectionFrequencyContinually func(childComplexity int) int + BeneficiarySelectionFrequencyNote func(childComplexity int) int + BeneficiarySelectionFrequencyOther func(childComplexity int) int + BeneficiarySelectionMethod func(childComplexity int) int + BeneficiarySelectionNote func(childComplexity int) int + BeneficiarySelectionOther func(childComplexity int) int + ConfidenceNote func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DiseaseSpecificGroup func(childComplexity int) int + EstimateConfidence func(childComplexity int) int + ExcludeCertainCharacteristics func(childComplexity int) int + ExcludeCertainCharacteristicsCriteria func(childComplexity int) int + ExcludeCertainCharacteristicsNote func(childComplexity int) int + ID func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + NumberPeopleImpacted func(childComplexity int) int + PrecedenceRules func(childComplexity int) int + PrecedenceRulesNo func(childComplexity int) int + PrecedenceRulesNote func(childComplexity int) int + PrecedenceRulesYes func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceByUserAccount func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewByUserAccount func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + Status func(childComplexity int) int + TreatDualElligibleDifferent func(childComplexity int) int + TreatDualElligibleDifferentHow func(childComplexity int) int + TreatDualElligibleDifferentNote func(childComplexity int) int + } + + PlanBeneficiariesTranslation struct { + Beneficiaries func(childComplexity int) int + BeneficiariesNote func(childComplexity int) int + BeneficiariesOther func(childComplexity int) int + BeneficiaryOverlap func(childComplexity int) int + BeneficiaryOverlapNote func(childComplexity int) int + BeneficiaryRemovalFrequency func(childComplexity int) int + BeneficiaryRemovalFrequencyContinually func(childComplexity int) int + BeneficiaryRemovalFrequencyNote func(childComplexity int) int + BeneficiaryRemovalFrequencyOther func(childComplexity int) int + BeneficiarySelectionFrequency func(childComplexity int) int + BeneficiarySelectionFrequencyContinually func(childComplexity int) int + BeneficiarySelectionFrequencyNote func(childComplexity int) int + BeneficiarySelectionFrequencyOther func(childComplexity int) int + BeneficiarySelectionMethod func(childComplexity int) int + BeneficiarySelectionNote func(childComplexity int) int + BeneficiarySelectionOther func(childComplexity int) int + ConfidenceNote func(childComplexity int) int + DiseaseSpecificGroup func(childComplexity int) int + EstimateConfidence func(childComplexity int) int + ExcludeCertainCharacteristics func(childComplexity int) int + ExcludeCertainCharacteristicsCriteria func(childComplexity int) int + ExcludeCertainCharacteristicsNote func(childComplexity int) int + NumberPeopleImpacted func(childComplexity int) int + PrecedenceRules func(childComplexity int) int + PrecedenceRulesNo func(childComplexity int) int + PrecedenceRulesNote func(childComplexity int) int + PrecedenceRulesYes func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + Status func(childComplexity int) int + TreatDualElligibleDifferent func(childComplexity int) int + TreatDualElligibleDifferentHow func(childComplexity int) int + TreatDualElligibleDifferentNote func(childComplexity int) int + } + + PlanCR struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DateImplemented func(childComplexity int) int + DateInitiated func(childComplexity int) int + ID func(childComplexity int) int + IDNumber func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Note func(childComplexity int) int + Title func(childComplexity int) int + } + + PlanCRTranslation struct { + DateImplemented func(childComplexity int) int + DateInitiated func(childComplexity int) int + IDNumber func(childComplexity int) int + Note func(childComplexity int) int + Title func(childComplexity int) int + } + + PlanCollaborator struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + ID func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + TeamRoles func(childComplexity int) int + UserAccount func(childComplexity int) int + UserID func(childComplexity int) int + } + + PlanCollaboratorTranslation struct { + TeamRoles func(childComplexity int) int + UserID func(childComplexity int) int + Username func(childComplexity int) int + } + + PlanDataExchangeApproach struct { + AdditionalDataExchangeConsiderationsDescription func(childComplexity int) int + AnticipatedMultiPayerDataAvailabilityUseCase func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DataToCollectFromParticipants func(childComplexity int) int + DataToCollectFromParticipantsNote func(childComplexity int) int + DataToCollectFromParticipantsOther func(childComplexity int) int + DataToCollectFromParticipantsReportsDetails func(childComplexity int) int + DataToSendToParticipants func(childComplexity int) int + DataToSendToParticipantsNote func(childComplexity int) int + DataWillNotBeCollectedFromParticipants func(childComplexity int) int + DoesNeedToCollectAndAggregateMultiSourceData func(childComplexity int) int + DoesNeedToCollectAndAggregateMultiSourceDataNote func(childComplexity int) int + DoesNeedToMakeMultiPayerDataAvailable func(childComplexity int) int + DoesNeedToMakeMultiPayerDataAvailableNote func(childComplexity int) int + ID func(childComplexity int) int + IsDataExchangeApproachComplete func(childComplexity int) int + MarkedCompleteBy func(childComplexity int) int + MarkedCompleteByUserAccount func(childComplexity int) int + MarkedCompleteDts func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + MultiSourceDataToCollect func(childComplexity int) int + MultiSourceDataToCollectOther func(childComplexity int) int + NewDataExchangeMethodsDescription func(childComplexity int) int + NewDataExchangeMethodsNote func(childComplexity int) int + Status func(childComplexity int) int + WillImplementNewDataExchangeMethods func(childComplexity int) int + } + + PlanDataExchangeApproachMarkedCompleteActivityMeta struct { + DataExchangeApproach func(childComplexity int) int + DataExchangeApproachID func(childComplexity int) int + MarkedCompleteBy func(childComplexity int) int + MarkedCompleteByUserAccount func(childComplexity int) int + ModelPlan func(childComplexity int) int + Type func(childComplexity int) int + Version func(childComplexity int) int + } + + PlanDataExchangeApproachTranslation struct { + AdditionalDataExchangeConsiderationsDescription func(childComplexity int) int + AnticipatedMultiPayerDataAvailabilityUseCase func(childComplexity int) int + DataToCollectFromParticipants func(childComplexity int) int + DataToCollectFromParticipantsNote func(childComplexity int) int + DataToCollectFromParticipantsOther func(childComplexity int) int + DataToCollectFromParticipantsReportsDetails func(childComplexity int) int + DataToSendToParticipants func(childComplexity int) int + DataToSendToParticipantsNote func(childComplexity int) int + DataWillNotBeCollectedFromParticipants func(childComplexity int) int + DoesNeedToCollectAndAggregateMultiSourceData func(childComplexity int) int + DoesNeedToCollectAndAggregateMultiSourceDataNote func(childComplexity int) int + DoesNeedToMakeMultiPayerDataAvailable func(childComplexity int) int + DoesNeedToMakeMultiPayerDataAvailableNote func(childComplexity int) int + IsDataExchangeApproachComplete func(childComplexity int) int + MarkedCompleteBy func(childComplexity int) int + MarkedCompleteDts func(childComplexity int) int + MultiSourceDataToCollect func(childComplexity int) int + MultiSourceDataToCollectOther func(childComplexity int) int + NewDataExchangeMethodsDescription func(childComplexity int) int + NewDataExchangeMethodsNote func(childComplexity int) int + Status func(childComplexity int) int + WillImplementNewDataExchangeMethods func(childComplexity int) int + } + + PlanDiscussion struct { + Content func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + ID func(childComplexity int) int + IsAssessment func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Replies func(childComplexity int) int + UserRole func(childComplexity int) int + UserRoleDescription func(childComplexity int) int + } + + PlanDiscussionTranslation struct { + Content func(childComplexity int) int + IsAssessment func(childComplexity int) int + UserRole func(childComplexity int) int + UserRoleDescription func(childComplexity int) int + } + + PlanDocument struct { + Bucket func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DeletedAt func(childComplexity int) int + DocumentType func(childComplexity int) int + DownloadURL func(childComplexity int) int + FileKey func(childComplexity int) int + FileName func(childComplexity int) int + FileSize func(childComplexity int) int + FileType func(childComplexity int) int + ID func(childComplexity int) int + IsLink func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + NumLinkedSolutions func(childComplexity int) int + OptionalNotes func(childComplexity int) int + OtherType func(childComplexity int) int + Restricted func(childComplexity int) int + URL func(childComplexity int) int + VirusClean func(childComplexity int) int + VirusScanned func(childComplexity int) int + } + + PlanDocumentSolutionLink struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DocumentID func(childComplexity int) int + ID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + SolutionID func(childComplexity int) int + } + + PlanDocumentSolutionLinkTranslation struct { + DocumentID func(childComplexity int) int + SolutionID func(childComplexity int) int + } + + PlanDocumentTranslation struct { + DocumentType func(childComplexity int) int + FileName func(childComplexity int) int + FileType func(childComplexity int) int + IsLink func(childComplexity int) int + OptionalNotes func(childComplexity int) int + OtherType func(childComplexity int) int + Restricted func(childComplexity int) int + URL func(childComplexity int) int + } + + PlanFavorite struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + ID func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + UserAccount func(childComplexity int) int + UserID func(childComplexity int) int + } + + PlanGeneralCharacteristics struct { + AdditionalServicesInvolved func(childComplexity int) int + AdditionalServicesInvolvedDescription func(childComplexity int) int + AdditionalServicesInvolvedNote func(childComplexity int) int + AgencyOrStateHelp func(childComplexity int) int + AgencyOrStateHelpNote func(childComplexity int) int + AgencyOrStateHelpOther func(childComplexity int) int + AgreementTypes func(childComplexity int) int + AgreementTypesOther func(childComplexity int) int + AlternativePaymentModelNote func(childComplexity int) int + AlternativePaymentModelTypes func(childComplexity int) int + AuthorityAllowances func(childComplexity int) int + AuthorityAllowancesNote func(childComplexity int) int + AuthorityAllowancesOther func(childComplexity int) int + CareCoordinationInvolved func(childComplexity int) int + CareCoordinationInvolvedDescription func(childComplexity int) int + CareCoordinationInvolvedNote func(childComplexity int) int + CollectPlanBids func(childComplexity int) int + CollectPlanBidsNote func(childComplexity int) int + CommunityPartnersInvolved func(childComplexity int) int + CommunityPartnersInvolvedDescription func(childComplexity int) int + CommunityPartnersInvolvedNote func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + CurrentModelPlan func(childComplexity int) int + CurrentModelPlanID func(childComplexity int) int + ExistingModel func(childComplexity int) int + ExistingModelID func(childComplexity int) int + ExistingModelPlan func(childComplexity int) int + GeographiesRegionTypes func(childComplexity int) int + GeographiesStatesAndTerritories func(childComplexity int) int + GeographiesTargeted func(childComplexity int) int + GeographiesTargetedAppliedTo func(childComplexity int) int + GeographiesTargetedAppliedToOther func(childComplexity int) int + GeographiesTargetedNote func(childComplexity int) int + GeographiesTargetedTypes func(childComplexity int) int + GeographiesTargetedTypesOther func(childComplexity int) int + HasComponentsOrTracks func(childComplexity int) int + HasComponentsOrTracksDiffer func(childComplexity int) int + HasComponentsOrTracksNote func(childComplexity int) int + ID func(childComplexity int) int + IsNewModel func(childComplexity int) int + KeyCharacteristics func(childComplexity int) int + KeyCharacteristicsNote func(childComplexity int) int + KeyCharacteristicsOther func(childComplexity int) int + ManagePartCDEnrollment func(childComplexity int) int + ManagePartCDEnrollmentNote func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + MultiplePatricipationAgreementsNeeded func(childComplexity int) int + MultiplePatricipationAgreementsNeededNote func(childComplexity int) int + ParticipationInModelPrecondition func(childComplexity int) int + ParticipationInModelPreconditionNote func(childComplexity int) int + ParticipationInModelPreconditionOtherOption func(childComplexity int) int + ParticipationInModelPreconditionOtherSelected func(childComplexity int) int + ParticipationInModelPreconditionOtherSpecify func(childComplexity int) int + ParticipationInModelPreconditionWhich func(childComplexity int) int + ParticipationInModelPreconditionWhyHow func(childComplexity int) int + ParticipationOptions func(childComplexity int) int + ParticipationOptionsNote func(childComplexity int) int + PlanContractUpdated func(childComplexity int) int + PlanContractUpdatedNote func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceByUserAccount func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewByUserAccount func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + ResemblesExistingModel func(childComplexity int) int + ResemblesExistingModelHow func(childComplexity int) int + ResemblesExistingModelNote func(childComplexity int) int + ResemblesExistingModelOtherOption func(childComplexity int) int + ResemblesExistingModelOtherSelected func(childComplexity int) int + ResemblesExistingModelOtherSpecify func(childComplexity int) int + ResemblesExistingModelWhich func(childComplexity int) int + ResemblesExistingModelWhyHow func(childComplexity int) int + RulemakingRequired func(childComplexity int) int + RulemakingRequiredDescription func(childComplexity int) int + RulemakingRequiredNote func(childComplexity int) int + Status func(childComplexity int) int + WaiversRequired func(childComplexity int) int + WaiversRequiredNote func(childComplexity int) int + WaiversRequiredTypes func(childComplexity int) int + } + + PlanGeneralCharacteristicsTranslation struct { + AdditionalServicesInvolved func(childComplexity int) int + AdditionalServicesInvolvedDescription func(childComplexity int) int + AdditionalServicesInvolvedNote func(childComplexity int) int + AgencyOrStateHelp func(childComplexity int) int + AgencyOrStateHelpNote func(childComplexity int) int + AgencyOrStateHelpOther func(childComplexity int) int + AgreementTypes func(childComplexity int) int + AgreementTypesOther func(childComplexity int) int + AlternativePaymentModelNote func(childComplexity int) int + AlternativePaymentModelTypes func(childComplexity int) int + AuthorityAllowances func(childComplexity int) int + AuthorityAllowancesNote func(childComplexity int) int + AuthorityAllowancesOther func(childComplexity int) int + CareCoordinationInvolved func(childComplexity int) int + CareCoordinationInvolvedDescription func(childComplexity int) int + CareCoordinationInvolvedNote func(childComplexity int) int + CollectPlanBids func(childComplexity int) int + CollectPlanBidsNote func(childComplexity int) int + CommunityPartnersInvolved func(childComplexity int) int + CommunityPartnersInvolvedDescription func(childComplexity int) int + CommunityPartnersInvolvedNote func(childComplexity int) int + CurrentModelPlanID func(childComplexity int) int + ExistingModel func(childComplexity int) int + ExistingModelID func(childComplexity int) int + GeographiesRegionTypes func(childComplexity int) int + GeographiesStatesAndTerritories func(childComplexity int) int + GeographiesTargeted func(childComplexity int) int + GeographiesTargetedAppliedTo func(childComplexity int) int + GeographiesTargetedAppliedToOther func(childComplexity int) int + GeographiesTargetedNote func(childComplexity int) int + GeographiesTargetedTypes func(childComplexity int) int + GeographiesTargetedTypesOther func(childComplexity int) int + HasComponentsOrTracks func(childComplexity int) int + HasComponentsOrTracksDiffer func(childComplexity int) int + HasComponentsOrTracksNote func(childComplexity int) int + IsNewModel func(childComplexity int) int + KeyCharacteristics func(childComplexity int) int + KeyCharacteristicsNote func(childComplexity int) int + KeyCharacteristicsOther func(childComplexity int) int + ManagePartCDEnrollment func(childComplexity int) int + ManagePartCDEnrollmentNote func(childComplexity int) int + MultiplePatricipationAgreementsNeeded func(childComplexity int) int + MultiplePatricipationAgreementsNeededNote func(childComplexity int) int + ParticipationInModelPrecondition func(childComplexity int) int + ParticipationInModelPreconditionNote func(childComplexity int) int + ParticipationInModelPreconditionOtherOption func(childComplexity int) int + ParticipationInModelPreconditionOtherSpecify func(childComplexity int) int + ParticipationInModelPreconditionWhich func(childComplexity int) int + ParticipationInModelPreconditionWhyHow func(childComplexity int) int + ParticipationOptions func(childComplexity int) int + ParticipationOptionsNote func(childComplexity int) int + PlanContractUpdated func(childComplexity int) int + PlanContractUpdatedNote func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + ResemblesExistingModel func(childComplexity int) int + ResemblesExistingModelHow func(childComplexity int) int + ResemblesExistingModelNote func(childComplexity int) int + ResemblesExistingModelOtherOption func(childComplexity int) int + ResemblesExistingModelOtherSpecify func(childComplexity int) int + ResemblesExistingModelWhich func(childComplexity int) int + ResemblesExistingModelWhyHow func(childComplexity int) int + RulemakingRequired func(childComplexity int) int + RulemakingRequiredDescription func(childComplexity int) int + RulemakingRequiredNote func(childComplexity int) int + Status func(childComplexity int) int + WaiversRequired func(childComplexity int) int + WaiversRequiredNote func(childComplexity int) int + WaiversRequiredTypes func(childComplexity int) int + } + + PlanOpsEvalAndLearning struct { + AnticipatedChallenges func(childComplexity int) int + AppToSendFilesToKnown func(childComplexity int) int + AppToSendFilesToNote func(childComplexity int) int + AppToSendFilesToWhich func(childComplexity int) int + AppealFeedback func(childComplexity int) int + AppealNote func(childComplexity int) int + AppealOther func(childComplexity int) int + AppealPayments func(childComplexity int) int + AppealPerformance func(childComplexity int) int + BenchmarkForPerformance func(childComplexity int) int + BenchmarkForPerformanceNote func(childComplexity int) int + CaptureParticipantInfo func(childComplexity int) int + CaptureParticipantInfoNote func(childComplexity int) int + CcmInvolvment func(childComplexity int) int + CcmInvolvmentNote func(childComplexity int) int + CcmInvolvmentOther func(childComplexity int) int + ComputePerformanceScores func(childComplexity int) int + ComputePerformanceScoresNote func(childComplexity int) int + ContractorSupport func(childComplexity int) int + ContractorSupportHow func(childComplexity int) int + ContractorSupportNote func(childComplexity int) int + ContractorSupportOther func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DataCollectionFrequency func(childComplexity int) int + DataCollectionFrequencyContinually func(childComplexity int) int + DataCollectionFrequencyNote func(childComplexity int) int + DataCollectionFrequencyOther func(childComplexity int) int + DataCollectionStarts func(childComplexity int) int + DataCollectionStartsOther func(childComplexity int) int + DataFlowDiagramsNeeded func(childComplexity int) int + DataFullTimeOrIncremental func(childComplexity int) int + DataMonitoringFileOther func(childComplexity int) int + DataMonitoringFileTypes func(childComplexity int) int + DataMonitoringNote func(childComplexity int) int + DataNeededForMonitoring func(childComplexity int) int + DataNeededForMonitoringNote func(childComplexity int) int + DataNeededForMonitoringOther func(childComplexity int) int + DataResponseFileFrequency func(childComplexity int) int + DataResponseType func(childComplexity int) int + DataSharingFrequency func(childComplexity int) int + DataSharingFrequencyContinually func(childComplexity int) int + DataSharingFrequencyOther func(childComplexity int) int + DataSharingStarts func(childComplexity int) int + DataSharingStartsNote func(childComplexity int) int + DataSharingStartsOther func(childComplexity int) int + DataToSendParticicipants func(childComplexity int) int + DataToSendParticicipantsNote func(childComplexity int) int + DataToSendParticicipantsOther func(childComplexity int) int + DevelopNewQualityMeasures func(childComplexity int) int + DevelopNewQualityMeasuresNote func(childComplexity int) int + DraftIcdDueDate func(childComplexity int) int + EftSetUp func(childComplexity int) int + EvaluationApproachOther func(childComplexity int) int + EvaluationApproaches func(childComplexity int) int + EvalutaionApproachNote func(childComplexity int) int + FileNamingConventions func(childComplexity int) int + HelpdeskUse func(childComplexity int) int + HelpdeskUseNote func(childComplexity int) int + ID func(childComplexity int) int + IcdNote func(childComplexity int) int + IcdOwner func(childComplexity int) int + IddocSupport func(childComplexity int) int + IddocSupportNote func(childComplexity int) int + ModelLearningSystems func(childComplexity int) int + ModelLearningSystemsNote func(childComplexity int) int + ModelLearningSystemsOther func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + ProduceBenefitEnhancementFiles func(childComplexity int) int + QualityPerformanceImpactsPayment func(childComplexity int) int + QualityPerformanceImpactsPaymentNote func(childComplexity int) int + QualityPerformanceImpactsPaymentOther func(childComplexity int) int + QualityReportingFrequency func(childComplexity int) int + QualityReportingFrequencyContinually func(childComplexity int) int + QualityReportingFrequencyOther func(childComplexity int) int + QualityReportingStarts func(childComplexity int) int + QualityReportingStartsNote func(childComplexity int) int + QualityReportingStartsOther func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceByUserAccount func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewByUserAccount func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + RiskAdjustFeedback func(childComplexity int) int + RiskAdjustNote func(childComplexity int) int + RiskAdjustOther func(childComplexity int) int + RiskAdjustPayments func(childComplexity int) int + RiskAdjustPerformance func(childComplexity int) int + SendFilesBetweenCcw func(childComplexity int) int + SendFilesBetweenCcwNote func(childComplexity int) int + ShareCclfData func(childComplexity int) int + ShareCclfDataNote func(childComplexity int) int + Stakeholders func(childComplexity int) int + StakeholdersNote func(childComplexity int) int + StakeholdersOther func(childComplexity int) int + Status func(childComplexity int) int + StcNeeds func(childComplexity int) int + TechnicalContactsIdentified func(childComplexity int) int + TechnicalContactsIdentifiedDetail func(childComplexity int) int + TechnicalContactsIdentifiedNote func(childComplexity int) int + TestingNote func(childComplexity int) int + TestingTimelines func(childComplexity int) int + UatNeeds func(childComplexity int) int + UnsolicitedAdjustmentsIncluded func(childComplexity int) int + UseCcwForFileDistribiutionToParticipants func(childComplexity int) int + UseCcwForFileDistribiutionToParticipantsNote func(childComplexity int) int + } + + PlanOpsEvalAndLearningTranslation struct { + AnticipatedChallenges func(childComplexity int) int + AppToSendFilesToKnown func(childComplexity int) int + AppToSendFilesToNote func(childComplexity int) int + AppToSendFilesToWhich func(childComplexity int) int + AppealFeedback func(childComplexity int) int + AppealNote func(childComplexity int) int + AppealOther func(childComplexity int) int + AppealPayments func(childComplexity int) int + AppealPerformance func(childComplexity int) int + BenchmarkForPerformance func(childComplexity int) int + BenchmarkForPerformanceNote func(childComplexity int) int + CaptureParticipantInfo func(childComplexity int) int + CaptureParticipantInfoNote func(childComplexity int) int + CcmInvolvment func(childComplexity int) int + CcmInvolvmentNote func(childComplexity int) int + CcmInvolvmentOther func(childComplexity int) int + ComputePerformanceScores func(childComplexity int) int + ComputePerformanceScoresNote func(childComplexity int) int + ContractorSupport func(childComplexity int) int + ContractorSupportHow func(childComplexity int) int + ContractorSupportNote func(childComplexity int) int + ContractorSupportOther func(childComplexity int) int + DataCollectionFrequency func(childComplexity int) int + DataCollectionFrequencyContinually func(childComplexity int) int + DataCollectionFrequencyNote func(childComplexity int) int + DataCollectionFrequencyOther func(childComplexity int) int + DataCollectionStarts func(childComplexity int) int + DataCollectionStartsOther func(childComplexity int) int + DataFlowDiagramsNeeded func(childComplexity int) int + DataFullTimeOrIncremental func(childComplexity int) int + DataMonitoringFileOther func(childComplexity int) int + DataMonitoringFileTypes func(childComplexity int) int + DataMonitoringNote func(childComplexity int) int + DataNeededForMonitoring func(childComplexity int) int + DataNeededForMonitoringNote func(childComplexity int) int + DataNeededForMonitoringOther func(childComplexity int) int + DataResponseFileFrequency func(childComplexity int) int + DataResponseType func(childComplexity int) int + DataSharingFrequency func(childComplexity int) int + DataSharingFrequencyContinually func(childComplexity int) int + DataSharingFrequencyOther func(childComplexity int) int + DataSharingStarts func(childComplexity int) int + DataSharingStartsNote func(childComplexity int) int + DataSharingStartsOther func(childComplexity int) int + DataToSendParticicipants func(childComplexity int) int + DataToSendParticicipantsNote func(childComplexity int) int + DataToSendParticicipantsOther func(childComplexity int) int + DevelopNewQualityMeasures func(childComplexity int) int + DevelopNewQualityMeasuresNote func(childComplexity int) int + DraftIcdDueDate func(childComplexity int) int + EftSetUp func(childComplexity int) int + EvaluationApproachOther func(childComplexity int) int + EvaluationApproaches func(childComplexity int) int + EvalutaionApproachNote func(childComplexity int) int + FileNamingConventions func(childComplexity int) int + HelpdeskUse func(childComplexity int) int + HelpdeskUseNote func(childComplexity int) int + IcdNote func(childComplexity int) int + IcdOwner func(childComplexity int) int + IddocSupport func(childComplexity int) int + IddocSupportNote func(childComplexity int) int + ModelLearningSystems func(childComplexity int) int + ModelLearningSystemsNote func(childComplexity int) int + ModelLearningSystemsOther func(childComplexity int) int + ProduceBenefitEnhancementFiles func(childComplexity int) int + QualityPerformanceImpactsPayment func(childComplexity int) int + QualityPerformanceImpactsPaymentNote func(childComplexity int) int + QualityPerformanceImpactsPaymentOther func(childComplexity int) int + QualityReportingFrequency func(childComplexity int) int + QualityReportingFrequencyContinually func(childComplexity int) int + QualityReportingFrequencyOther func(childComplexity int) int + QualityReportingStarts func(childComplexity int) int + QualityReportingStartsNote func(childComplexity int) int + QualityReportingStartsOther func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + RiskAdjustFeedback func(childComplexity int) int + RiskAdjustNote func(childComplexity int) int + RiskAdjustOther func(childComplexity int) int + RiskAdjustPayments func(childComplexity int) int + RiskAdjustPerformance func(childComplexity int) int + SendFilesBetweenCcw func(childComplexity int) int + SendFilesBetweenCcwNote func(childComplexity int) int + ShareCclfData func(childComplexity int) int + ShareCclfDataNote func(childComplexity int) int + Stakeholders func(childComplexity int) int + StakeholdersNote func(childComplexity int) int + StakeholdersOther func(childComplexity int) int + Status func(childComplexity int) int + StcNeeds func(childComplexity int) int + TechnicalContactsIdentified func(childComplexity int) int + TechnicalContactsIdentifiedDetail func(childComplexity int) int + TechnicalContactsIdentifiedNote func(childComplexity int) int + TestingNote func(childComplexity int) int + TestingTimelines func(childComplexity int) int + UatNeeds func(childComplexity int) int + UnsolicitedAdjustmentsIncluded func(childComplexity int) int + UseCcwForFileDistribiutionToParticipants func(childComplexity int) int + UseCcwForFileDistribiutionToParticipantsNote func(childComplexity int) int + } + + PlanParticipantsAndProviders struct { + CommunicationMethod func(childComplexity int) int + CommunicationMethodOther func(childComplexity int) int + CommunicationNote func(childComplexity int) int + ConfidenceNote func(childComplexity int) int + CoordinateWork func(childComplexity int) int + CoordinateWorkNote func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + EstimateConfidence func(childComplexity int) int + ExpectedNumberOfParticipants func(childComplexity int) int + GainsharePayments func(childComplexity int) int + GainsharePaymentsEligibility func(childComplexity int) int + GainsharePaymentsEligibilityOther func(childComplexity int) int + GainsharePaymentsNote func(childComplexity int) int + GainsharePaymentsTrack func(childComplexity int) int + ID func(childComplexity int) int + IsNewTypeOfProvidersOrSuppliers func(childComplexity int) int + MedicareProviderType func(childComplexity int) int + ModelApplicationLevel func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + ParticipantAddedFrequency func(childComplexity int) int + ParticipantAddedFrequencyContinually func(childComplexity int) int + ParticipantAddedFrequencyNote func(childComplexity int) int + ParticipantAddedFrequencyOther func(childComplexity int) int + ParticipantRemovedFrequency func(childComplexity int) int + ParticipantRemovedFrequencyContinually func(childComplexity int) int + ParticipantRemovedFrequencyNote func(childComplexity int) int + ParticipantRemovedFrequencyOther func(childComplexity int) int + ParticipantRequireFinancialGuarantee func(childComplexity int) int + ParticipantRequireFinancialGuaranteeNote func(childComplexity int) int + ParticipantRequireFinancialGuaranteeOther func(childComplexity int) int + ParticipantRequireFinancialGuaranteeType func(childComplexity int) int + Participants func(childComplexity int) int + ParticipantsCurrentlyInModels func(childComplexity int) int + ParticipantsCurrentlyInModelsNote func(childComplexity int) int + ParticipantsIDSNote func(childComplexity int) int + ParticipantsIds func(childComplexity int) int + ParticipantsIdsOther func(childComplexity int) int + ParticipantsNote func(childComplexity int) int + ParticipantsOther func(childComplexity int) int + ProviderAddMethod func(childComplexity int) int + ProviderAddMethodNote func(childComplexity int) int + ProviderAddMethodOther func(childComplexity int) int + ProviderAdditionFrequency func(childComplexity int) int + ProviderAdditionFrequencyContinually func(childComplexity int) int + ProviderAdditionFrequencyNote func(childComplexity int) int + ProviderAdditionFrequencyOther func(childComplexity int) int + ProviderLeaveMethod func(childComplexity int) int + ProviderLeaveMethodNote func(childComplexity int) int + ProviderLeaveMethodOther func(childComplexity int) int + ProviderOverlap func(childComplexity int) int + ProviderOverlapHierarchy func(childComplexity int) int + ProviderOverlapNote func(childComplexity int) int + ProviderRemovalFrequency func(childComplexity int) int + ProviderRemovalFrequencyContinually func(childComplexity int) int + ProviderRemovalFrequencyNote func(childComplexity int) int + ProviderRemovalFrequencyOther func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceByUserAccount func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewByUserAccount func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + RecruitmentMethod func(childComplexity int) int + RecruitmentNote func(childComplexity int) int + RecruitmentOther func(childComplexity int) int + RiskNote func(childComplexity int) int + RiskOther func(childComplexity int) int + RiskType func(childComplexity int) int + SelectionMethod func(childComplexity int) int + SelectionNote func(childComplexity int) int + SelectionOther func(childComplexity int) int + StatesEngagement func(childComplexity int) int + Status func(childComplexity int) int + WillRiskChange func(childComplexity int) int + WillRiskChangeNote func(childComplexity int) int + } + + PlanParticipantsAndProvidersTranslation struct { + CommunicationMethod func(childComplexity int) int + CommunicationMethodOther func(childComplexity int) int + CommunicationNote func(childComplexity int) int + ConfidenceNote func(childComplexity int) int + CoordinateWork func(childComplexity int) int + CoordinateWorkNote func(childComplexity int) int + EstimateConfidence func(childComplexity int) int + ExpectedNumberOfParticipants func(childComplexity int) int + GainsharePayments func(childComplexity int) int + GainsharePaymentsEligibility func(childComplexity int) int + GainsharePaymentsEligibilityOther func(childComplexity int) int + GainsharePaymentsNote func(childComplexity int) int + GainsharePaymentsTrack func(childComplexity int) int + IsNewTypeOfProvidersOrSuppliers func(childComplexity int) int + MedicareProviderType func(childComplexity int) int + ModelApplicationLevel func(childComplexity int) int + ParticipantAddedFrequency func(childComplexity int) int + ParticipantAddedFrequencyContinually func(childComplexity int) int + ParticipantAddedFrequencyNote func(childComplexity int) int + ParticipantAddedFrequencyOther func(childComplexity int) int + ParticipantRemovedFrequency func(childComplexity int) int + ParticipantRemovedFrequencyContinually func(childComplexity int) int + ParticipantRemovedFrequencyNote func(childComplexity int) int + ParticipantRemovedFrequencyOther func(childComplexity int) int + ParticipantRequireFinancialGuarantee func(childComplexity int) int + ParticipantRequireFinancialGuaranteeNote func(childComplexity int) int + ParticipantRequireFinancialGuaranteeOther func(childComplexity int) int + ParticipantRequireFinancialGuaranteeType func(childComplexity int) int + Participants func(childComplexity int) int + ParticipantsCurrentlyInModels func(childComplexity int) int + ParticipantsCurrentlyInModelsNote func(childComplexity int) int + ParticipantsIDSNote func(childComplexity int) int + ParticipantsIds func(childComplexity int) int + ParticipantsIdsOther func(childComplexity int) int + ParticipantsNote func(childComplexity int) int + ParticipantsOther func(childComplexity int) int + ProviderAddMethod func(childComplexity int) int + ProviderAddMethodNote func(childComplexity int) int + ProviderAddMethodOther func(childComplexity int) int + ProviderAdditionFrequency func(childComplexity int) int + ProviderAdditionFrequencyContinually func(childComplexity int) int + ProviderAdditionFrequencyNote func(childComplexity int) int + ProviderAdditionFrequencyOther func(childComplexity int) int + ProviderLeaveMethod func(childComplexity int) int + ProviderLeaveMethodNote func(childComplexity int) int + ProviderLeaveMethodOther func(childComplexity int) int + ProviderOverlap func(childComplexity int) int + ProviderOverlapHierarchy func(childComplexity int) int + ProviderOverlapNote func(childComplexity int) int + ProviderRemovalFrequency func(childComplexity int) int + ProviderRemovalFrequencyContinually func(childComplexity int) int + ProviderRemovalFrequencyNote func(childComplexity int) int + ProviderRemovalFrequencyOther func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + RecruitmentMethod func(childComplexity int) int + RecruitmentNote func(childComplexity int) int + RecruitmentOther func(childComplexity int) int + RiskNote func(childComplexity int) int + RiskOther func(childComplexity int) int + RiskType func(childComplexity int) int + SelectionMethod func(childComplexity int) int + SelectionNote func(childComplexity int) int + SelectionOther func(childComplexity int) int + StatesEngagement func(childComplexity int) int + Status func(childComplexity int) int + WillRiskChange func(childComplexity int) int + WillRiskChangeNote func(childComplexity int) int + } + + PlanPayments struct { + AffectsMedicareSecondaryPayerClaims func(childComplexity int) int + AffectsMedicareSecondaryPayerClaimsHow func(childComplexity int) int + AffectsMedicareSecondaryPayerClaimsNote func(childComplexity int) int + AnticipateReconcilingPaymentsRetrospectively func(childComplexity int) int + AnticipateReconcilingPaymentsRetrospectivelyNote func(childComplexity int) int + AnticipatedPaymentFrequency func(childComplexity int) int + AnticipatedPaymentFrequencyContinually func(childComplexity int) int + AnticipatedPaymentFrequencyNote func(childComplexity int) int + AnticipatedPaymentFrequencyOther func(childComplexity int) int + BeneficiaryCostSharingLevelAndHandling func(childComplexity int) int + CanParticipantsSelectBetweenPaymentMechanisms func(childComplexity int) int + CanParticipantsSelectBetweenPaymentMechanismsHow func(childComplexity int) int + CanParticipantsSelectBetweenPaymentMechanismsNote func(childComplexity int) int + ChangesMedicarePhysicianFeeSchedule func(childComplexity int) int + ChangesMedicarePhysicianFeeScheduleNote func(childComplexity int) int + ClaimsProcessingPrecedence func(childComplexity int) int + ClaimsProcessingPrecedenceNote func(childComplexity int) int + ClaimsProcessingPrecedenceOther func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + CreatingDependenciesBetweenServices func(childComplexity int) int + CreatingDependenciesBetweenServicesNote func(childComplexity int) int + ExpectedCalculationComplexityLevel func(childComplexity int) int + ExpectedCalculationComplexityLevelNote func(childComplexity int) int + FundingSource func(childComplexity int) int + FundingSourceMedicareAInfo func(childComplexity int) int + FundingSourceMedicareBInfo func(childComplexity int) int + FundingSourceNote func(childComplexity int) int + FundingSourceOther func(childComplexity int) int + FundingSourcePatientProtectionInfo func(childComplexity int) int + FundingSourceR func(childComplexity int) int + FundingSourceRMedicareAInfo func(childComplexity int) int + FundingSourceRMedicareBInfo func(childComplexity int) int + FundingSourceRNote func(childComplexity int) int + FundingSourceROther func(childComplexity int) int + FundingSourceRPatientProtectionInfo func(childComplexity int) int + ID func(childComplexity int) int + IsContractorAwareTestDataRequirements func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + NeedsClaimsDataCollection func(childComplexity int) int + NeedsClaimsDataCollectionNote func(childComplexity int) int + NonClaimsPaymentOther func(childComplexity int) int + NonClaimsPayments func(childComplexity int) int + NonClaimsPaymentsNote func(childComplexity int) int + NumberPaymentsPerPayCycle func(childComplexity int) int + NumberPaymentsPerPayCycleNote func(childComplexity int) int + PayClaims func(childComplexity int) int + PayClaimsNote func(childComplexity int) int + PayClaimsOther func(childComplexity int) int + PayModelDifferentiation func(childComplexity int) int + PayRecipients func(childComplexity int) int + PayRecipientsNote func(childComplexity int) int + PayRecipientsOtherSpecification func(childComplexity int) int + PayType func(childComplexity int) int + PayTypeNote func(childComplexity int) int + PaymentCalculationOwner func(childComplexity int) int + PaymentDemandRecoupmentFrequency func(childComplexity int) int + PaymentDemandRecoupmentFrequencyContinually func(childComplexity int) int + PaymentDemandRecoupmentFrequencyNote func(childComplexity int) int + PaymentDemandRecoupmentFrequencyOther func(childComplexity int) int + PaymentReconciliationFrequency func(childComplexity int) int + PaymentReconciliationFrequencyContinually func(childComplexity int) int + PaymentReconciliationFrequencyNote func(childComplexity int) int + PaymentReconciliationFrequencyOther func(childComplexity int) int + PaymentStartDate func(childComplexity int) int + PaymentStartDateNote func(childComplexity int) int + PlanningToUseInnovationPaymentContractor func(childComplexity int) int + PlanningToUseInnovationPaymentContractorNote func(childComplexity int) int + ProvidingThirdPartyFile func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceByUserAccount func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewByUserAccount func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + SharedSystemsInvolvedAdditionalClaimPayment func(childComplexity int) int + SharedSystemsInvolvedAdditionalClaimPaymentNote func(childComplexity int) int + ShouldAnyProviderExcludedFFSSystemsNote func(childComplexity int) int + ShouldAnyProvidersExcludedFFSSystems func(childComplexity int) int + Status func(childComplexity int) int + WaiveBeneficiaryCostSharingForAnyServices func(childComplexity int) int + WaiveBeneficiaryCostSharingNote func(childComplexity int) int + WaiveBeneficiaryCostSharingServiceSpecification func(childComplexity int) int + WaiverOnlyAppliesPartOfPayment func(childComplexity int) int + WillBePaymentAdjustments func(childComplexity int) int + WillBePaymentAdjustmentsNote func(childComplexity int) int + WillRecoverPayments func(childComplexity int) int + WillRecoverPaymentsNote func(childComplexity int) int + } + + PlanPaymentsTranslation struct { + AffectsMedicareSecondaryPayerClaims func(childComplexity int) int + AffectsMedicareSecondaryPayerClaimsHow func(childComplexity int) int + AffectsMedicareSecondaryPayerClaimsNote func(childComplexity int) int + AnticipateReconcilingPaymentsRetrospectively func(childComplexity int) int + AnticipateReconcilingPaymentsRetrospectivelyNote func(childComplexity int) int + AnticipatedPaymentFrequency func(childComplexity int) int + AnticipatedPaymentFrequencyContinually func(childComplexity int) int + AnticipatedPaymentFrequencyNote func(childComplexity int) int + AnticipatedPaymentFrequencyOther func(childComplexity int) int + BeneficiaryCostSharingLevelAndHandling func(childComplexity int) int + CanParticipantsSelectBetweenPaymentMechanisms func(childComplexity int) int + CanParticipantsSelectBetweenPaymentMechanismsHow func(childComplexity int) int + CanParticipantsSelectBetweenPaymentMechanismsNote func(childComplexity int) int + ChangesMedicarePhysicianFeeSchedule func(childComplexity int) int + ChangesMedicarePhysicianFeeScheduleNote func(childComplexity int) int + ClaimsProcessingPrecedence func(childComplexity int) int + ClaimsProcessingPrecedenceNote func(childComplexity int) int + ClaimsProcessingPrecedenceOther func(childComplexity int) int + CreatingDependenciesBetweenServices func(childComplexity int) int + CreatingDependenciesBetweenServicesNote func(childComplexity int) int + ExpectedCalculationComplexityLevel func(childComplexity int) int + ExpectedCalculationComplexityLevelNote func(childComplexity int) int + FundingSource func(childComplexity int) int + FundingSourceMedicareAInfo func(childComplexity int) int + FundingSourceMedicareBInfo func(childComplexity int) int + FundingSourceNote func(childComplexity int) int + FundingSourceOther func(childComplexity int) int + FundingSourcePatientProtectionInfo func(childComplexity int) int + FundingSourceR func(childComplexity int) int + FundingSourceRMedicareAInfo func(childComplexity int) int + FundingSourceRMedicareBInfo func(childComplexity int) int + FundingSourceRNote func(childComplexity int) int + FundingSourceROther func(childComplexity int) int + FundingSourceRPatientProtectionInfo func(childComplexity int) int + IsContractorAwareTestDataRequirements func(childComplexity int) int + NeedsClaimsDataCollection func(childComplexity int) int + NeedsClaimsDataCollectionNote func(childComplexity int) int + NonClaimsPaymentOther func(childComplexity int) int + NonClaimsPayments func(childComplexity int) int + NonClaimsPaymentsNote func(childComplexity int) int + NumberPaymentsPerPayCycle func(childComplexity int) int + NumberPaymentsPerPayCycleNote func(childComplexity int) int + PayClaims func(childComplexity int) int + PayClaimsNote func(childComplexity int) int + PayClaimsOther func(childComplexity int) int + PayModelDifferentiation func(childComplexity int) int + PayRecipients func(childComplexity int) int + PayRecipientsNote func(childComplexity int) int + PayRecipientsOtherSpecification func(childComplexity int) int + PayType func(childComplexity int) int + PayTypeNote func(childComplexity int) int + PaymentCalculationOwner func(childComplexity int) int + PaymentDemandRecoupmentFrequency func(childComplexity int) int + PaymentDemandRecoupmentFrequencyContinually func(childComplexity int) int + PaymentDemandRecoupmentFrequencyNote func(childComplexity int) int + PaymentDemandRecoupmentFrequencyOther func(childComplexity int) int + PaymentReconciliationFrequency func(childComplexity int) int + PaymentReconciliationFrequencyContinually func(childComplexity int) int + PaymentReconciliationFrequencyNote func(childComplexity int) int + PaymentReconciliationFrequencyOther func(childComplexity int) int + PaymentStartDate func(childComplexity int) int + PaymentStartDateNote func(childComplexity int) int + PlanningToUseInnovationPaymentContractor func(childComplexity int) int + PlanningToUseInnovationPaymentContractorNote func(childComplexity int) int + ProvidingThirdPartyFile func(childComplexity int) int + ReadyForClearanceBy func(childComplexity int) int + ReadyForClearanceDts func(childComplexity int) int + ReadyForReviewBy func(childComplexity int) int + ReadyForReviewDts func(childComplexity int) int + SharedSystemsInvolvedAdditionalClaimPayment func(childComplexity int) int + SharedSystemsInvolvedAdditionalClaimPaymentNote func(childComplexity int) int + ShouldAnyProviderExcludedFFSSystemsNote func(childComplexity int) int + ShouldAnyProvidersExcludedFFSSystems func(childComplexity int) int + Status func(childComplexity int) int + WaiveBeneficiaryCostSharingForAnyServices func(childComplexity int) int + WaiveBeneficiaryCostSharingNote func(childComplexity int) int + WaiveBeneficiaryCostSharingServiceSpecification func(childComplexity int) int + WaiverOnlyAppliesPartOfPayment func(childComplexity int) int + WillBePaymentAdjustments func(childComplexity int) int + WillBePaymentAdjustmentsNote func(childComplexity int) int + WillRecoverPayments func(childComplexity int) int + WillRecoverPaymentsNote func(childComplexity int) int + } + + PlanTDL struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DateInitiated func(childComplexity int) int + ID func(childComplexity int) int + IDNumber func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Note func(childComplexity int) int + Title func(childComplexity int) int + } + + PlanTDLTranslation struct { + DateInitiated func(childComplexity int) int + IDNumber func(childComplexity int) int + Note func(childComplexity int) int + Title func(childComplexity int) int + } + + PossibleOperationalNeed struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + ID func(childComplexity int) int + Key func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Name func(childComplexity int) int + PossibleSolutions func(childComplexity int) int + Section func(childComplexity int) int + } + + PossibleOperationalSolution struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + FilterView func(childComplexity int) int + ID func(childComplexity int) int + Key func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Name func(childComplexity int) int + PointsOfContact func(childComplexity int) int + PrimaryContact func(childComplexity int) int + TreatAsOther func(childComplexity int) int + } + + PossibleOperationalSolutionContact struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + Email func(childComplexity int) int + ID func(childComplexity int) int + IsPrimary func(childComplexity int) int + IsTeam func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + Name func(childComplexity int) int + PossibleOperationalSolutionID func(childComplexity int) int + Role func(childComplexity int) int + } + + PrepareForClearance struct { + LatestClearanceDts func(childComplexity int) int + Status func(childComplexity int) int + } + + Query struct { + AnalyzedAudits func(childComplexity int, dateAnalyzed time.Time) int + AuditChanges func(childComplexity int, tableName models.TableName, primaryKey uuid.UUID) int + CurrentUser func(childComplexity int) int + ExistingModelCollection func(childComplexity int) int + ExistingModelLink func(childComplexity int, id uuid.UUID) int + LockableSectionLocks func(childComplexity int, modelPlanID uuid.UUID) int + ModelPlan func(childComplexity int, id uuid.UUID) int + ModelPlanCollection func(childComplexity int, filter model.ModelPlanFilter) int + ModelPlansByOperationalSolutionKey func(childComplexity int, operationalSolutionKey models.OperationalSolutionKey) int + MostRecentDiscussionRoleSelection func(childComplexity int) int + NdaInfo func(childComplexity int) int + OperationalNeed func(childComplexity int, id uuid.UUID) int + OperationalSolution func(childComplexity int, id uuid.UUID) int + OperationalSolutions func(childComplexity int, operationalNeedID uuid.UUID, includeNotNeeded bool) int + PlanCollaboratorByID func(childComplexity int, id uuid.UUID) int + PlanCr func(childComplexity int, id uuid.UUID) int + PlanDocument func(childComplexity int, id uuid.UUID) int + PlanPayments func(childComplexity int, id uuid.UUID) int + PlanTdl func(childComplexity int, id uuid.UUID) int + PossibleOperationalNeeds func(childComplexity int) int + PossibleOperationalSolutions func(childComplexity int) int + SearchOktaUsers func(childComplexity int, searchTerm string) int + TranslatedAuditCollection func(childComplexity int, modelPlanID uuid.UUID, limit *int, offset *int) int + UserAccount func(childComplexity int, username string) int + UserViewCustomization func(childComplexity int) int + } + + RecentModification struct { + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + } + + Subscription struct { + OnLockLockableSectionContext func(childComplexity int, modelPlanID uuid.UUID) int + OnLockableSectionLocksChanged func(childComplexity int, modelPlanID uuid.UUID) int + } + + Tag struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + Entity func(childComplexity int) int + EntityIntID func(childComplexity int) int + EntityUUID func(childComplexity int) int + ID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + TagType func(childComplexity int) int + TaggedContentID func(childComplexity int) int + TaggedContentTable func(childComplexity int) int + TaggedField func(childComplexity int) int + } + + TaggedContent struct { + RawContent func(childComplexity int) int + Tags func(childComplexity int) int + } + + TaggedInDiscussionReplyActivityMeta struct { + Content func(childComplexity int) int + Discussion func(childComplexity int) int + DiscussionID func(childComplexity int) int + ModelPlan func(childComplexity int) int + ModelPlanID func(childComplexity int) int + Reply func(childComplexity int) int + ReplyID func(childComplexity int) int + Type func(childComplexity int) int + Version func(childComplexity int) int + } + + TaggedInPlanDiscussionActivityMeta struct { + Content func(childComplexity int) int + Discussion func(childComplexity int) int + DiscussionID func(childComplexity int) int + ModelPlan func(childComplexity int) int + ModelPlanID func(childComplexity int) int + Type func(childComplexity int) int + Version func(childComplexity int) int + } + + TranslatedAudit struct { + Action func(childComplexity int) int + ActorID func(childComplexity int) int + ActorName func(childComplexity int) int + ChangeID func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + Date func(childComplexity int) int + ID func(childComplexity int) int + MetaData func(childComplexity int) int + MetaDataType func(childComplexity int) int + ModelPlanID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + PrimaryKey func(childComplexity int) int + Restricted func(childComplexity int) int + TableID func(childComplexity int) int + TableName func(childComplexity int) int + TranslatedFields func(childComplexity int) int + } + + TranslatedAuditField struct { + ChangeType func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DataType func(childComplexity int) int + FieldName func(childComplexity int) int + FieldNameTranslated func(childComplexity int) int + FieldOrder func(childComplexity int) int + FormType func(childComplexity int) int + ID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + New func(childComplexity int) int + NewTranslated func(childComplexity int) int + NotApplicableQuestions func(childComplexity int) int + Old func(childComplexity int) int + OldTranslated func(childComplexity int) int + QuestionType func(childComplexity int) int + ReferenceLabel func(childComplexity int) int + TranslatedAuditID func(childComplexity int) int + } + + TranslatedAuditMetaBaseStruct struct { + TableName func(childComplexity int) int + Version func(childComplexity int) int + } + + TranslatedAuditMetaDiscussionReply struct { + DiscussionContent func(childComplexity int) int + DiscussionID func(childComplexity int) int + NumberOfReplies func(childComplexity int) int + TableName func(childComplexity int) int + Version func(childComplexity int) int + } + + TranslatedAuditMetaDocumentSolutionLink struct { + DocumentID func(childComplexity int) int + DocumentName func(childComplexity int) int + DocumentNote func(childComplexity int) int + DocumentOtherType func(childComplexity int) int + DocumentRestricted func(childComplexity int) int + DocumentType func(childComplexity int) int + DocumentURL func(childComplexity int) int + DocumentVisibility func(childComplexity int) int + NeedIsOther func(childComplexity int) int + NeedName func(childComplexity int) int + SolutionIsOther func(childComplexity int) int + SolutionName func(childComplexity int) int + SolutionOtherHeader func(childComplexity int) int + TableName func(childComplexity int) int + Version func(childComplexity int) int + } + + TranslatedAuditMetaGeneric struct { + Relation func(childComplexity int) int + RelationContent func(childComplexity int) int + TableName func(childComplexity int) int + Version func(childComplexity int) int + } + + TranslatedAuditMetaOperationalNeed struct { + IsOther func(childComplexity int) int + NeedName func(childComplexity int) int + TableName func(childComplexity int) int + Version func(childComplexity int) int + } + + TranslatedAuditMetaOperationalSolution struct { + NeedIsOther func(childComplexity int) int + NeedName func(childComplexity int) int + NumberOfSubtasks func(childComplexity int) int + SolutionIsOther func(childComplexity int) int + SolutionMustFinish func(childComplexity int) int + SolutionMustStart func(childComplexity int) int + SolutionName func(childComplexity int) int + SolutionOtherHeader func(childComplexity int) int + SolutionStatus func(childComplexity int) int + TableName func(childComplexity int) int + Version func(childComplexity int) int + } + + TranslatedAuditMetaOperationalSolutionSubtask struct { + NeedIsOther func(childComplexity int) int + NeedName func(childComplexity int) int + NumberOfSubtasks func(childComplexity int) int + SolutionIsOther func(childComplexity int) int + SolutionName func(childComplexity int) int + SolutionOtherHeader func(childComplexity int) int + SubtaskName func(childComplexity int) int + TableName func(childComplexity int) int + Version func(childComplexity int) int + } + + TranslationField struct { + DBField func(childComplexity int) int + DataType func(childComplexity int) int + ExportLabel func(childComplexity int) int + FormType func(childComplexity int) int + GoField func(childComplexity int) int + GqlField func(childComplexity int) int + IsArray func(childComplexity int) int + IsNote func(childComplexity int) int + IsOtherType func(childComplexity int) int + Label func(childComplexity int) int + MultiSelectLabel func(childComplexity int) int + Order func(childComplexity int) int + OtherParentField func(childComplexity int) int + ParentReferencesLabel func(childComplexity int) int + ReadOnlyLabel func(childComplexity int) int + SubLabel func(childComplexity int) int + TableReference func(childComplexity int) int + } + + TranslationFieldWithOptions struct { + DBField func(childComplexity int) int + DataType func(childComplexity int) int + ExportLabel func(childComplexity int) int + ExportOptions func(childComplexity int) int + FormType func(childComplexity int) int + GoField func(childComplexity int) int + GqlField func(childComplexity int) int + IsArray func(childComplexity int) int + IsNote func(childComplexity int) int + IsOtherType func(childComplexity int) int + Label func(childComplexity int) int + MultiSelectLabel func(childComplexity int) int + Options func(childComplexity int) int + Order func(childComplexity int) int + OtherParentField func(childComplexity int) int + ParentReferencesLabel func(childComplexity int) int + ReadOnlyLabel func(childComplexity int) int + SubLabel func(childComplexity int) int + TableReference func(childComplexity int) int + } + + TranslationFieldWithOptionsAndChildren struct { + ChildRelation func(childComplexity int) int + DBField func(childComplexity int) int + DataType func(childComplexity int) int + ExportLabel func(childComplexity int) int + ExportOptions func(childComplexity int) int + FormType func(childComplexity int) int + GoField func(childComplexity int) int + GqlField func(childComplexity int) int + IsArray func(childComplexity int) int + IsNote func(childComplexity int) int + IsOtherType func(childComplexity int) int + Label func(childComplexity int) int + MultiSelectLabel func(childComplexity int) int + Options func(childComplexity int) int + Order func(childComplexity int) int + OtherParentField func(childComplexity int) int + ParentReferencesLabel func(childComplexity int) int + ReadOnlyLabel func(childComplexity int) int + SubLabel func(childComplexity int) int + TableReference func(childComplexity int) int + } + + TranslationFieldWithOptionsAndParent struct { + DBField func(childComplexity int) int + DataType func(childComplexity int) int + ExportLabel func(childComplexity int) int + ExportOptions func(childComplexity int) int + FormType func(childComplexity int) int + GoField func(childComplexity int) int + GqlField func(childComplexity int) int + IsArray func(childComplexity int) int + IsNote func(childComplexity int) int + IsOtherType func(childComplexity int) int + Label func(childComplexity int) int + MultiSelectLabel func(childComplexity int) int + Options func(childComplexity int) int + Order func(childComplexity int) int + OtherParentField func(childComplexity int) int + ParentReferencesLabel func(childComplexity int) int + ParentRelation func(childComplexity int) int + ReadOnlyLabel func(childComplexity int) int + SubLabel func(childComplexity int) int + TableReference func(childComplexity int) int + } + + TranslationFieldWithParent struct { + DBField func(childComplexity int) int + DataType func(childComplexity int) int + ExportLabel func(childComplexity int) int + FormType func(childComplexity int) int + GoField func(childComplexity int) int + GqlField func(childComplexity int) int + IsArray func(childComplexity int) int + IsNote func(childComplexity int) int + IsOtherType func(childComplexity int) int + Label func(childComplexity int) int + MultiSelectLabel func(childComplexity int) int + Order func(childComplexity int) int + OtherParentField func(childComplexity int) int + ParentReferencesLabel func(childComplexity int) int + ParentRelation func(childComplexity int) int + ReadOnlyLabel func(childComplexity int) int + SubLabel func(childComplexity int) int + TableReference func(childComplexity int) int + } + + TranslationFieldWithParentAndChildren struct { + ChildRelation func(childComplexity int) int + DBField func(childComplexity int) int + DataType func(childComplexity int) int + ExportLabel func(childComplexity int) int + ExportOptions func(childComplexity int) int + FormType func(childComplexity int) int + GoField func(childComplexity int) int + GqlField func(childComplexity int) int + IsArray func(childComplexity int) int + IsNote func(childComplexity int) int + IsOtherType func(childComplexity int) int + Label func(childComplexity int) int + MultiSelectLabel func(childComplexity int) int + Options func(childComplexity int) int + Order func(childComplexity int) int + OtherParentField func(childComplexity int) int + ParentReferencesLabel func(childComplexity int) int + ParentRelation func(childComplexity int) int + ReadOnlyLabel func(childComplexity int) int + SubLabel func(childComplexity int) int + TableReference func(childComplexity int) int + } + + UserAccount struct { + CommonName func(childComplexity int) int + Email func(childComplexity int) int + FamilyName func(childComplexity int) int + GivenName func(childComplexity int) int + HasLoggedIn func(childComplexity int) int + ID func(childComplexity int) int + IsEUAID func(childComplexity int) int + Locale func(childComplexity int) int + Username func(childComplexity int) int + ZoneInfo func(childComplexity int) int + } + + UserInfo struct { + DisplayName func(childComplexity int) int + Email func(childComplexity int) int + FirstName func(childComplexity int) int + LastName func(childComplexity int) int + Username func(childComplexity int) int + } + + UserNotification struct { + Activity func(childComplexity int) int + ActivityID func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + EmailSent func(childComplexity int) int + ID func(childComplexity int) int + InAppSent func(childComplexity int) int + IsRead func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + UserID func(childComplexity int) int + } + + UserNotificationPreferences struct { + AddedAsCollaborator func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + DailyDigestComplete func(childComplexity int) int + DataExchangeApproachMarkedComplete func(childComplexity int) int + DataExchangeApproachMarkedCompleteNotificationType func(childComplexity int) int + DatesChanged func(childComplexity int) int + DatesChangedNotificationType func(childComplexity int) int + ID func(childComplexity int) int + ModelPlanShared func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + NewDiscussionReply func(childComplexity int) int + NewModelPlan func(childComplexity int) int + TaggedInDiscussion func(childComplexity int) int + TaggedInDiscussionReply func(childComplexity int) int + UserID func(childComplexity int) int + } + + UserNotifications struct { + Notifications func(childComplexity int) int + NumUnreadNotifications func(childComplexity int) int + UnreadNotifications func(childComplexity int) int + } + + UserViewCustomization struct { + CreatedBy func(childComplexity int) int + CreatedByUserAccount func(childComplexity int) int + CreatedDts func(childComplexity int) int + ID func(childComplexity int) int + ModifiedBy func(childComplexity int) int + ModifiedByUserAccount func(childComplexity int) int + ModifiedDts func(childComplexity int) int + PossibleOperationalSolutions func(childComplexity int) int + UserAccount func(childComplexity int) int + UserID func(childComplexity int) int + ViewCustomization func(childComplexity int) int + } +} + +type ActivityResolver interface { + ActorUserAccount(ctx context.Context, obj *models.Activity) (*authentication.UserAccount, error) +} +type AddedAsCollaboratorMetaResolver interface { + ModelPlan(ctx context.Context, obj *models.AddedAsCollaboratorMeta) (*models.ModelPlan, error) + + Collaborator(ctx context.Context, obj *models.AddedAsCollaboratorMeta) (*models.PlanCollaborator, error) +} +type AnalyzedModelLeadInfoResolver interface { + UserAccount(ctx context.Context, obj *models.AnalyzedModelLeadInfo) (*authentication.UserAccount, error) +} +type AuditChangeResolver interface { + Fields(ctx context.Context, obj *models.AuditChange) (map[string]interface{}, error) +} +type CurrentUserResolver interface { + LaunchDarkly(ctx context.Context, obj *models.CurrentUser) (*model.LaunchDarklySettings, error) + Account(ctx context.Context, obj *models.CurrentUser) (*authentication.UserAccount, error) + Notifications(ctx context.Context, obj *models.CurrentUser) (*models.UserNotifications, error) + NotificationPreferences(ctx context.Context, obj *models.CurrentUser) (*models.UserNotificationPreferences, error) +} +type DailyDigestCompleteActivityMetaResolver interface { + AnalyzedAudits(ctx context.Context, obj *models.DailyDigestCompleteActivityMeta) ([]*models.AnalyzedAudit, error) +} +type DatesChangedActivityMetaResolver interface { + ModelPlan(ctx context.Context, obj *models.DatesChangedActivityMeta) (*models.ModelPlan, error) +} +type DiscussionReplyResolver interface { + Content(ctx context.Context, obj *models.DiscussionReply) (*models.TaggedContent, error) +} +type ExistingModelLinkResolver interface { + Model(ctx context.Context, obj *models.ExistingModelLink) (models.LinkedExistingModel, error) +} +type ExistingModelLinksResolver interface { + Names(ctx context.Context, obj *models.ExistingModelLinks) ([]string, error) +} +type MTOCategoryResolver interface { + SubCategories(ctx context.Context, obj *models.MTOCategory) ([]*models.MTOSubcategory, error) +} +type MTOCommonMilestoneResolver interface { + FacilitatedByRole(ctx context.Context, obj *models.MTOCommonMilestone) ([]models.MTOFacilitator, error) + + IsSuggested(ctx context.Context, obj *models.MTOCommonMilestone) (bool, error) + CommonSolutions(ctx context.Context, obj *models.MTOCommonMilestone) ([]*models.MTOCommonSolution, error) +} +type MTOCommonSolutionResolver interface { + Subjects(ctx context.Context, obj *models.MTOCommonSolution) ([]models.MTOCommonSolutionSubject, error) +} +type MTOInfoResolver interface { + ReadyForReviewByUserAccount(ctx context.Context, obj *models.MTOInfo) (*authentication.UserAccount, error) +} +type MTOMilestoneResolver interface { + FacilitatedBy(ctx context.Context, obj *models.MTOMilestone) ([]models.MTOFacilitator, error) + + CommonMilestone(ctx context.Context, obj *models.MTOMilestone) (*models.MTOCommonMilestone, error) + Solutions(ctx context.Context, obj *models.MTOMilestone) ([]*models.MTOSolution, error) + Category(ctx context.Context, obj *models.MTOMilestone) (*models.MTOCategory, error) + SubCategory(ctx context.Context, obj *models.MTOMilestone) (*models.MTOSubcategory, error) +} +type MTOSolutionResolver interface { + FacilitatedBy(ctx context.Context, obj *models.MTOSolution) ([]models.MTOFacilitator, error) + + RelatedMilestones(ctx context.Context, obj *models.MTOSolution) ([]*models.MTOMilestone, error) + + CommonSolution(ctx context.Context, obj *models.MTOSolution) (*models.MTOCommonSolution, error) +} +type MTOSubcategoryResolver interface { + Milestones(ctx context.Context, obj *models.MTOSubcategory) ([]*models.MTOMilestone, error) +} +type ModelPlanResolver interface { + Basics(ctx context.Context, obj *models.ModelPlan) (*models.PlanBasics, error) + GeneralCharacteristics(ctx context.Context, obj *models.ModelPlan) (*models.PlanGeneralCharacteristics, error) + ParticipantsAndProviders(ctx context.Context, obj *models.ModelPlan) (*models.PlanParticipantsAndProviders, error) + Beneficiaries(ctx context.Context, obj *models.ModelPlan) (*models.PlanBeneficiaries, error) + OpsEvalAndLearning(ctx context.Context, obj *models.ModelPlan) (*models.PlanOpsEvalAndLearning, error) + Collaborators(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanCollaborator, error) + Documents(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanDocument, error) + Discussions(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanDiscussion, error) + Payments(ctx context.Context, obj *models.ModelPlan) (*models.PlanPayments, error) + DataExchangeApproach(ctx context.Context, obj *models.ModelPlan) (*models.PlanDataExchangeApproach, error) + + TaskListStatus(ctx context.Context, obj *models.ModelPlan) (models.TaskStatus, error) + SuggestedPhase(ctx context.Context, obj *models.ModelPlan) (*model.PhaseSuggestion, error) + IsFavorite(ctx context.Context, obj *models.ModelPlan) (bool, error) + IsCollaborator(ctx context.Context, obj *models.ModelPlan) (bool, error) + Crs(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanCR, error) + Tdls(ctx context.Context, obj *models.ModelPlan) ([]*models.PlanTDL, error) + EchimpCRsAndTDLs(ctx context.Context, obj *models.ModelPlan) ([]models.EChimpCRAndTDLS, error) + PrepareForClearance(ctx context.Context, obj *models.ModelPlan) (*model.PrepareForClearance, error) + NameHistory(ctx context.Context, obj *models.ModelPlan, sort models.SortDirection) ([]string, error) + OperationalNeeds(ctx context.Context, obj *models.ModelPlan) ([]*models.OperationalNeed, error) + OpSolutionLastModifiedDts(ctx context.Context, obj *models.ModelPlan) (*time.Time, error) + + MtoMatrix(ctx context.Context, obj *models.ModelPlan) (*models.ModelsToOperationMatrix, error) + ModelBySolutionStatus(ctx context.Context, obj *models.ModelPlan) (models.ModelBySolutionStatus, error) +} +type ModelPlanAndPossibleOperationalSolutionResolver interface { + PossibleOperationalSolution(ctx context.Context, obj *models.ModelPlanAndPossibleOperationalSolution) (*models.PossibleOperationalSolution, error) + + ModelPlan(ctx context.Context, obj *models.ModelPlanAndPossibleOperationalSolution) (*models.ModelPlan, error) +} +type ModelPlanSharedActivityMetaResolver interface { + ModelPlan(ctx context.Context, obj *models.ModelPlanSharedActivityMeta) (*models.ModelPlan, error) +} +type ModelsToOperationMatrixResolver interface { + Categories(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOCategory, error) + CommonMilestones(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOCommonMilestone, error) + CommonSolutions(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOCommonSolution, error) + Milestones(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOMilestone, error) + Solutions(ctx context.Context, obj *models.ModelsToOperationMatrix) ([]*models.MTOSolution, error) + Status(ctx context.Context, obj *models.ModelsToOperationMatrix) (models.MTOStatus, error) + RecentEdit(ctx context.Context, obj *models.ModelsToOperationMatrix) (*models.RecentModification, error) + Info(ctx context.Context, obj *models.ModelsToOperationMatrix) (*models.MTOInfo, error) +} +type MutationResolver interface { + CreateDiscussionReply(ctx context.Context, input model.DiscussionReplyCreateInput) (*models.DiscussionReply, error) + UpdateExistingModelLinks(ctx context.Context, modelPlanID uuid.UUID, fieldName models.ExisitingModelLinkFieldType, existingModelIDs []int, currentModelPlanIDs []uuid.UUID) (*models.ExistingModelLinks, error) + LockLockableSection(ctx context.Context, modelPlanID uuid.UUID, section models.LockableSection) (bool, error) + UnlockLockableSection(ctx context.Context, modelPlanID uuid.UUID, section models.LockableSection) (bool, error) + UnlockAllLockableSections(ctx context.Context, modelPlanID uuid.UUID) ([]*model.LockableSectionLockStatus, error) + CreateModelPlan(ctx context.Context, modelName string) (*models.ModelPlan, error) + UpdateModelPlan(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.ModelPlan, error) + ShareModelPlan(ctx context.Context, modelPlanID uuid.UUID, viewFilter *models.ModelViewFilter, usernames []string, optionalMessage *string) (bool, error) + MarkMTOReadyForReview(ctx context.Context, modelPlanID uuid.UUID, readyForReview bool) (*models.MTOInfo, error) + CreateMTOCategory(ctx context.Context, modelPlanID uuid.UUID, name string, parentID *uuid.UUID) (*models.MTOCategory, error) + RenameMTOCategory(ctx context.Context, id uuid.UUID, name string) (*models.MTOCategory, error) + ReorderMTOCategory(ctx context.Context, id uuid.UUID, newOrder *int, parentID *uuid.UUID) (*models.MTOCategory, error) + CreateMTOMilestoneCustom(ctx context.Context, modelPlanID uuid.UUID, name string, mtoCategoryID *uuid.UUID) (*models.MTOMilestone, error) + CreateMTOMilestoneCommon(ctx context.Context, modelPlanID uuid.UUID, commonMilestoneKey models.MTOCommonMilestoneKey) (*models.MTOMilestone, error) + UpdateMTOMilestone(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.MTOMilestone, error) + CreateMTOSolutionCustom(ctx context.Context, modelPlanID uuid.UUID, solutionType models.MTOSolutionType, name string, pocName string, pocEmail string) (*models.MTOSolution, error) + CreateMTOSolutionCommon(ctx context.Context, modelPlanID uuid.UUID, key models.MTOCommonSolutionKey) (*models.MTOSolution, error) + UpdateMTOSolution(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.MTOSolution, error) + AgreeToNda(ctx context.Context, agree bool) (*model.NDAInfo, error) + AddOrUpdateCustomOperationalNeed(ctx context.Context, modelPlanID uuid.UUID, customNeedType string, needed bool) (*models.OperationalNeed, error) + UpdateCustomOperationalNeedByID(ctx context.Context, id uuid.UUID, customNeedType *string, needed bool) (*models.OperationalNeed, error) + CreateOperationalSolution(ctx context.Context, operationalNeedID uuid.UUID, solutionType *models.OperationalSolutionKey, changes map[string]interface{}) (*models.OperationalSolution, error) + UpdateOperationalSolution(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.OperationalSolution, error) + CreateOperationalSolutionSubtasks(ctx context.Context, solutionID uuid.UUID, inputs []*model.CreateOperationalSolutionSubtaskInput) ([]*models.OperationalSolutionSubtask, error) + UpdateOperationalSolutionSubtasks(ctx context.Context, inputs []*model.UpdateOperationalSolutionSubtaskInput) ([]*models.OperationalSolutionSubtask, error) + DeleteOperationalSolutionSubtask(ctx context.Context, id uuid.UUID) (int, error) + UpdatePlanBasics(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanBasics, error) + UpdatePlanBeneficiaries(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanBeneficiaries, error) + CreatePlanCollaborator(ctx context.Context, input model.PlanCollaboratorCreateInput) (*models.PlanCollaborator, error) + UpdatePlanCollaborator(ctx context.Context, id uuid.UUID, newRoles []models.TeamRole) (*models.PlanCollaborator, error) + DeletePlanCollaborator(ctx context.Context, id uuid.UUID) (*models.PlanCollaborator, error) + CreatePlanCr(ctx context.Context, input model.PlanCRCreateInput) (*models.PlanCR, error) + UpdatePlanCr(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanCR, error) + DeletePlanCr(ctx context.Context, id uuid.UUID) (*models.PlanCR, error) + UpdatePlanDataExchangeApproach(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanDataExchangeApproach, error) + CreatePlanDiscussion(ctx context.Context, input model.PlanDiscussionCreateInput) (*models.PlanDiscussion, error) + UploadNewPlanDocument(ctx context.Context, input model.PlanDocumentInput) (*models.PlanDocument, error) + LinkNewPlanDocument(ctx context.Context, input model.PlanDocumentLinkInput) (*models.PlanDocument, error) + DeletePlanDocument(ctx context.Context, id uuid.UUID) (int, error) + CreatePlanDocumentSolutionLinks(ctx context.Context, solutionID uuid.UUID, documentIDs []uuid.UUID) ([]*models.PlanDocumentSolutionLink, error) + RemovePlanDocumentSolutionLinks(ctx context.Context, solutionID uuid.UUID, documentIDs []uuid.UUID) (bool, error) + AddPlanFavorite(ctx context.Context, modelPlanID uuid.UUID) (*models.PlanFavorite, error) + DeletePlanFavorite(ctx context.Context, modelPlanID uuid.UUID) (*models.PlanFavorite, error) + UpdatePlanGeneralCharacteristics(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanGeneralCharacteristics, error) + UpdatePlanOpsEvalAndLearning(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanOpsEvalAndLearning, error) + UpdatePlanParticipantsAndProviders(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanParticipantsAndProviders, error) + UpdatePlanPayments(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanPayments, error) + CreatePlanTdl(ctx context.Context, input model.PlanTDLCreateInput) (*models.PlanTDL, error) + UpdatePlanTdl(ctx context.Context, id uuid.UUID, changes map[string]interface{}) (*models.PlanTDL, error) + DeletePlanTdl(ctx context.Context, id uuid.UUID) (*models.PlanTDL, error) + ReportAProblem(ctx context.Context, input model.ReportAProblemInput) (bool, error) + SendFeedbackEmail(ctx context.Context, input model.SendFeedbackEmailInput) (bool, error) + MarkNotificationAsRead(ctx context.Context, notificationID uuid.UUID) (*models.UserNotification, error) + MarkAllNotificationsAsRead(ctx context.Context) ([]*models.UserNotification, error) + UpdateUserNotificationPreferences(ctx context.Context, changes map[string]interface{}) (*models.UserNotificationPreferences, error) + UpdateUserViewCustomization(ctx context.Context, changes map[string]interface{}) (*models.UserViewCustomization, error) +} +type NewDiscussionRepliedActivityMetaResolver interface { + ModelPlan(ctx context.Context, obj *models.NewDiscussionRepliedActivityMeta) (*models.ModelPlan, error) + + Discussion(ctx context.Context, obj *models.NewDiscussionRepliedActivityMeta) (*models.PlanDiscussion, error) + + Reply(ctx context.Context, obj *models.NewDiscussionRepliedActivityMeta) (*models.DiscussionReply, error) +} +type NewModelPlanActivityMetaResolver interface { + ModelPlan(ctx context.Context, obj *models.NewModelPlanActivityMeta) (*models.ModelPlan, error) +} +type OperationalNeedResolver interface { + Solutions(ctx context.Context, obj *models.OperationalNeed, includeNotNeeded bool) ([]*models.OperationalSolution, error) +} +type OperationalSolutionResolver interface { + Documents(ctx context.Context, obj *models.OperationalSolution) ([]*models.PlanDocument, error) + OperationalSolutionSubtasks(ctx context.Context, obj *models.OperationalSolution) ([]*models.OperationalSolutionSubtask, error) +} +type PlanBasicsResolver interface { + AdditionalModelCategories(ctx context.Context, obj *models.PlanBasics) ([]models.ModelCategory, error) + CmsCenters(ctx context.Context, obj *models.PlanBasics) ([]model.CMSCenter, error) + CmmiGroups(ctx context.Context, obj *models.PlanBasics) ([]model.CMMIGroup, error) + ModelType(ctx context.Context, obj *models.PlanBasics) ([]models.ModelType, error) +} +type PlanBeneficiariesResolver interface { + Beneficiaries(ctx context.Context, obj *models.PlanBeneficiaries) ([]model.BeneficiariesType, error) + + BeneficiarySelectionMethod(ctx context.Context, obj *models.PlanBeneficiaries) ([]model.SelectionMethodType, error) + + BeneficiarySelectionFrequency(ctx context.Context, obj *models.PlanBeneficiaries) ([]models.FrequencyType, error) + + BeneficiaryRemovalFrequency(ctx context.Context, obj *models.PlanBeneficiaries) ([]models.FrequencyType, error) + + PrecedenceRules(ctx context.Context, obj *models.PlanBeneficiaries) ([]models.YesNoType, error) +} +type PlanCollaboratorResolver interface { + TeamRoles(ctx context.Context, obj *models.PlanCollaborator) ([]models.TeamRole, error) +} +type PlanDataExchangeApproachResolver interface { + DataToCollectFromParticipants(ctx context.Context, obj *models.PlanDataExchangeApproach) ([]models.DataToCollectFromParticipants, error) + + DataToSendToParticipants(ctx context.Context, obj *models.PlanDataExchangeApproach) ([]models.DataToSendToParticipants, error) + + AnticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, obj *models.PlanDataExchangeApproach) ([]models.AnticipatedMultiPayerDataAvailabilityUseCase, error) + + MultiSourceDataToCollect(ctx context.Context, obj *models.PlanDataExchangeApproach) ([]models.MultiSourceDataToCollect, error) +} +type PlanDataExchangeApproachMarkedCompleteActivityMetaResolver interface { + DataExchangeApproach(ctx context.Context, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (*models.PlanDataExchangeApproach, error) + ModelPlan(ctx context.Context, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (*models.ModelPlan, error) + + MarkedCompleteByUserAccount(ctx context.Context, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (*authentication.UserAccount, error) +} +type PlanDiscussionResolver interface { + Content(ctx context.Context, obj *models.PlanDiscussion) (*models.TaggedContent, error) + + Replies(ctx context.Context, obj *models.PlanDiscussion) ([]*models.DiscussionReply, error) +} +type PlanDocumentResolver interface { + URL(ctx context.Context, obj *models.PlanDocument) (*string, error) + + OtherType(ctx context.Context, obj *models.PlanDocument) (*string, error) + OptionalNotes(ctx context.Context, obj *models.PlanDocument) (*string, error) + DownloadURL(ctx context.Context, obj *models.PlanDocument) (*string, error) + + NumLinkedSolutions(ctx context.Context, obj *models.PlanDocument) (int, error) +} +type PlanGeneralCharacteristicsResolver interface { + ExistingModel(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*string, error) + + CurrentModelPlan(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*models.ModelPlan, error) + + ExistingModelPlan(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*models.ExistingModel, error) + + ResemblesExistingModelWhich(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*models.ExistingModelLinks, error) + + ParticipationInModelPreconditionWhich(ctx context.Context, obj *models.PlanGeneralCharacteristics) (*models.ExistingModelLinks, error) + + AgencyOrStateHelp(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.AgencyOrStateHelpType, error) + + AlternativePaymentModelTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.AlternativePaymentModelType, error) + + KeyCharacteristics(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.KeyCharacteristic, error) + + GeographiesTargetedTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.GeographyType, error) + GeographiesStatesAndTerritories(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]models.StatesAndTerritories, error) + GeographiesRegionTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]models.GeographyRegionType, error) + + GeographiesTargetedAppliedTo(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.GeographyApplication, error) + + AgreementTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.AgreementType, error) + + AuthorityAllowances(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.AuthorityAllowance, error) + + WaiversRequiredTypes(ctx context.Context, obj *models.PlanGeneralCharacteristics) ([]model.WaiverType, error) +} +type PlanOpsEvalAndLearningResolver interface { + Stakeholders(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.StakeholdersType, error) + + ContractorSupport(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.ContractorSupportType, error) + + DataMonitoringFileTypes(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.MonitoringFileType, error) + + EvaluationApproaches(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.EvaluationApproachType, error) + + CcmInvolvment(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.CcmInvolvmentType, error) + + DataNeededForMonitoring(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.DataForMonitoringType, error) + + DataToSendParticicipants(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.DataToSendParticipantsType, error) + + DataSharingFrequency(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]models.FrequencyType, error) + + DataCollectionFrequency(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]models.FrequencyType, error) + + QualityReportingFrequency(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]models.FrequencyType, error) + + ModelLearningSystems(ctx context.Context, obj *models.PlanOpsEvalAndLearning) ([]model.ModelLearningSystemType, error) +} +type PlanParticipantsAndProvidersResolver interface { + Participants(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantsType, error) + + SelectionMethod(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantSelectionType, error) + + ParticipantAddedFrequency(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.FrequencyType, error) + + ParticipantRemovedFrequency(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.FrequencyType, error) + + CommunicationMethod(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantCommunicationType, error) + + RiskType(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.ParticipantRiskType, error) + + ParticipantRequireFinancialGuaranteeType(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantRequireFinancialGuaranteeType, error) + + GainsharePaymentsEligibility(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.GainshareArrangementEligibility, error) + + ParticipantsIds(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ParticipantsIDType, error) + + ProviderAdditionFrequency(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.FrequencyType, error) + + ProviderAddMethod(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ProviderAddType, error) + + ProviderLeaveMethod(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]model.ProviderLeaveType, error) + + ProviderRemovalFrequency(ctx context.Context, obj *models.PlanParticipantsAndProviders) ([]models.FrequencyType, error) +} +type PlanPaymentsResolver interface { + FundingSource(ctx context.Context, obj *models.PlanPayments) ([]models.FundingSource, error) + + FundingSourceR(ctx context.Context, obj *models.PlanPayments) ([]models.FundingSource, error) + + PayRecipients(ctx context.Context, obj *models.PlanPayments) ([]models.PayRecipient, error) + + PayType(ctx context.Context, obj *models.PlanPayments) ([]models.PayType, error) + + PayClaims(ctx context.Context, obj *models.PlanPayments) ([]models.ClaimsBasedPayType, error) + + NonClaimsPayments(ctx context.Context, obj *models.PlanPayments) ([]model.NonClaimsBasedPayType, error) + NonClaimsPaymentOther(ctx context.Context, obj *models.PlanPayments) (*string, error) + + AnticipatedPaymentFrequency(ctx context.Context, obj *models.PlanPayments) ([]models.FrequencyType, error) + + PaymentReconciliationFrequency(ctx context.Context, obj *models.PlanPayments) ([]models.FrequencyType, error) + + PaymentDemandRecoupmentFrequency(ctx context.Context, obj *models.PlanPayments) ([]models.FrequencyType, error) +} +type PossibleOperationalNeedResolver interface { + PossibleSolutions(ctx context.Context, obj *models.PossibleOperationalNeed) ([]*models.PossibleOperationalSolution, error) +} +type PossibleOperationalSolutionResolver interface { + PointsOfContact(ctx context.Context, obj *models.PossibleOperationalSolution) ([]*models.PossibleOperationalSolutionContact, error) + PrimaryContact(ctx context.Context, obj *models.PossibleOperationalSolution) (*models.PossibleOperationalSolutionContact, error) +} +type QueryResolver interface { + AnalyzedAudits(ctx context.Context, dateAnalyzed time.Time) ([]*models.AnalyzedAudit, error) + AuditChanges(ctx context.Context, tableName models.TableName, primaryKey uuid.UUID) ([]*models.AuditChange, error) + CurrentUser(ctx context.Context) (*models.CurrentUser, error) + MostRecentDiscussionRoleSelection(ctx context.Context) (*models.DiscussionRoleSelection, error) + ExistingModelCollection(ctx context.Context) ([]*models.ExistingModel, error) + ExistingModelLink(ctx context.Context, id uuid.UUID) (*models.ExistingModelLink, error) + LockableSectionLocks(ctx context.Context, modelPlanID uuid.UUID) ([]*model.LockableSectionLockStatus, error) + ModelPlan(ctx context.Context, id uuid.UUID) (*models.ModelPlan, error) + ModelPlanCollection(ctx context.Context, filter model.ModelPlanFilter) ([]*models.ModelPlan, error) + ModelPlansByOperationalSolutionKey(ctx context.Context, operationalSolutionKey models.OperationalSolutionKey) ([]*models.ModelPlanAndPossibleOperationalSolution, error) + NdaInfo(ctx context.Context) (*model.NDAInfo, error) + OperationalNeed(ctx context.Context, id uuid.UUID) (*models.OperationalNeed, error) + OperationalSolutions(ctx context.Context, operationalNeedID uuid.UUID, includeNotNeeded bool) ([]*models.OperationalSolution, error) + OperationalSolution(ctx context.Context, id uuid.UUID) (*models.OperationalSolution, error) + PlanCollaboratorByID(ctx context.Context, id uuid.UUID) (*models.PlanCollaborator, error) + PlanCr(ctx context.Context, id uuid.UUID) (*models.PlanCR, error) + PlanDocument(ctx context.Context, id uuid.UUID) (*models.PlanDocument, error) + PlanPayments(ctx context.Context, id uuid.UUID) (*models.PlanPayments, error) + PlanTdl(ctx context.Context, id uuid.UUID) (*models.PlanTDL, error) + PossibleOperationalNeeds(ctx context.Context) ([]*models.PossibleOperationalNeed, error) + PossibleOperationalSolutions(ctx context.Context) ([]*models.PossibleOperationalSolution, error) + TranslatedAuditCollection(ctx context.Context, modelPlanID uuid.UUID, limit *int, offset *int) ([]*models.TranslatedAudit, error) + UserAccount(ctx context.Context, username string) (*authentication.UserAccount, error) + SearchOktaUsers(ctx context.Context, searchTerm string) ([]*models.UserInfo, error) + UserViewCustomization(ctx context.Context) (*models.UserViewCustomization, error) +} +type SubscriptionResolver interface { + OnLockableSectionLocksChanged(ctx context.Context, modelPlanID uuid.UUID) (<-chan *model.LockableSectionLockStatusChanged, error) + OnLockLockableSectionContext(ctx context.Context, modelPlanID uuid.UUID) (<-chan *model.LockableSectionLockStatusChanged, error) +} +type TagResolver interface { + Entity(ctx context.Context, obj *models.Tag) (models.TaggedEntity, error) +} +type TaggedContentResolver interface { + RawContent(ctx context.Context, obj *models.TaggedContent) (string, error) +} +type TaggedInDiscussionReplyActivityMetaResolver interface { + ModelPlan(ctx context.Context, obj *models.TaggedInDiscussionReplyActivityMeta) (*models.ModelPlan, error) + + Discussion(ctx context.Context, obj *models.TaggedInDiscussionReplyActivityMeta) (*models.PlanDiscussion, error) + + Reply(ctx context.Context, obj *models.TaggedInDiscussionReplyActivityMeta) (*models.DiscussionReply, error) +} +type TaggedInPlanDiscussionActivityMetaResolver interface { + ModelPlan(ctx context.Context, obj *models.TaggedInPlanDiscussionActivityMeta) (*models.ModelPlan, error) + + Discussion(ctx context.Context, obj *models.TaggedInPlanDiscussionActivityMeta) (*models.PlanDiscussion, error) +} +type TranslatedAuditResolver interface { + TranslatedFields(ctx context.Context, obj *models.TranslatedAudit) ([]*models.TranslatedAuditField, error) +} +type TranslatedAuditFieldResolver interface { + NotApplicableQuestions(ctx context.Context, obj *models.TranslatedAuditField) ([]string, error) +} +type TranslationFieldWithOptionsAndChildrenResolver interface { + ChildRelation(ctx context.Context, obj *models.TranslationFieldWithOptionsAndChildren) (map[string]interface{}, error) +} +type TranslationFieldWithParentAndChildrenResolver interface { + ChildRelation(ctx context.Context, obj *models.TranslationFieldWithParentAndChildren) (map[string]interface{}, error) +} +type UserNotificationResolver interface { + Activity(ctx context.Context, obj *models.UserNotification) (*models.Activity, error) +} +type UserNotificationPreferencesResolver interface { + DailyDigestComplete(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) + AddedAsCollaborator(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) + TaggedInDiscussion(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) + TaggedInDiscussionReply(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) + NewDiscussionReply(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) + ModelPlanShared(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) + NewModelPlan(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) + DatesChanged(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) + + DataExchangeApproachMarkedComplete(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) +} +type UserViewCustomizationResolver interface { + ViewCustomization(ctx context.Context, obj *models.UserViewCustomization) ([]models.ViewCustomizationType, error) + PossibleOperationalSolutions(ctx context.Context, obj *models.UserViewCustomization) ([]models.OperationalSolutionKey, error) +} + +type executableSchema struct { + resolvers ResolverRoot + directives DirectiveRoot + complexity ComplexityRoot +} + +func (e *executableSchema) Schema() *ast.Schema { + return parsedSchema +} + +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { + ec := executionContext{nil, e, 0, 0, nil} + _ = ec + switch typeName + "." + field { + + case "Activity.activityType": + if e.complexity.Activity.ActivityType == nil { + break + } + + return e.complexity.Activity.ActivityType(childComplexity), true + + case "Activity.actorID": + if e.complexity.Activity.ActorID == nil { + break + } + + return e.complexity.Activity.ActorID(childComplexity), true + + case "Activity.actorUserAccount": + if e.complexity.Activity.ActorUserAccount == nil { + break + } + + return e.complexity.Activity.ActorUserAccount(childComplexity), true + + case "Activity.createdBy": + if e.complexity.Activity.CreatedBy == nil { + break + } + + return e.complexity.Activity.CreatedBy(childComplexity), true + + case "Activity.createdByUserAccount": + if e.complexity.Activity.CreatedByUserAccount == nil { + break + } + + return e.complexity.Activity.CreatedByUserAccount(childComplexity), true + + case "Activity.createdDts": + if e.complexity.Activity.CreatedDts == nil { + break + } + + return e.complexity.Activity.CreatedDts(childComplexity), true + + case "Activity.entityID": + if e.complexity.Activity.EntityID == nil { + break + } + + return e.complexity.Activity.EntityID(childComplexity), true + + case "Activity.id": + if e.complexity.Activity.ID == nil { + break + } + + return e.complexity.Activity.ID(childComplexity), true + + case "Activity.metaData": + if e.complexity.Activity.MetaData == nil { + break + } + + return e.complexity.Activity.MetaData(childComplexity), true + + case "Activity.modifiedBy": + if e.complexity.Activity.ModifiedBy == nil { + break + } + + return e.complexity.Activity.ModifiedBy(childComplexity), true + + case "Activity.modifiedByUserAccount": + if e.complexity.Activity.ModifiedByUserAccount == nil { + break + } + + return e.complexity.Activity.ModifiedByUserAccount(childComplexity), true + + case "Activity.modifiedDts": + if e.complexity.Activity.ModifiedDts == nil { + break + } + + return e.complexity.Activity.ModifiedDts(childComplexity), true + + case "AddedAsCollaboratorMeta.collaborator": + if e.complexity.AddedAsCollaboratorMeta.Collaborator == nil { + break + } + + return e.complexity.AddedAsCollaboratorMeta.Collaborator(childComplexity), true + + case "AddedAsCollaboratorMeta.collaboratorID": + if e.complexity.AddedAsCollaboratorMeta.CollaboratorID == nil { + break + } + + return e.complexity.AddedAsCollaboratorMeta.CollaboratorID(childComplexity), true + + case "AddedAsCollaboratorMeta.modelPlan": + if e.complexity.AddedAsCollaboratorMeta.ModelPlan == nil { + break + } + + return e.complexity.AddedAsCollaboratorMeta.ModelPlan(childComplexity), true + + case "AddedAsCollaboratorMeta.modelPlanID": + if e.complexity.AddedAsCollaboratorMeta.ModelPlanID == nil { + break + } + + return e.complexity.AddedAsCollaboratorMeta.ModelPlanID(childComplexity), true + + case "AddedAsCollaboratorMeta.type": + if e.complexity.AddedAsCollaboratorMeta.Type == nil { + break + } + + return e.complexity.AddedAsCollaboratorMeta.Type(childComplexity), true + + case "AddedAsCollaboratorMeta.version": + if e.complexity.AddedAsCollaboratorMeta.Version == nil { + break + } + + return e.complexity.AddedAsCollaboratorMeta.Version(childComplexity), true + + case "AnalyzedAudit.changes": + if e.complexity.AnalyzedAudit.Changes == nil { + break + } + + return e.complexity.AnalyzedAudit.Changes(childComplexity), true + + case "AnalyzedAudit.createdBy": + if e.complexity.AnalyzedAudit.CreatedBy == nil { + break + } + + return e.complexity.AnalyzedAudit.CreatedBy(childComplexity), true + + case "AnalyzedAudit.createdByUserAccount": + if e.complexity.AnalyzedAudit.CreatedByUserAccount == nil { + break + } + + return e.complexity.AnalyzedAudit.CreatedByUserAccount(childComplexity), true + + case "AnalyzedAudit.createdDts": + if e.complexity.AnalyzedAudit.CreatedDts == nil { + break + } + + return e.complexity.AnalyzedAudit.CreatedDts(childComplexity), true + + case "AnalyzedAudit.date": + if e.complexity.AnalyzedAudit.Date == nil { + break + } + + return e.complexity.AnalyzedAudit.Date(childComplexity), true + + case "AnalyzedAudit.id": + if e.complexity.AnalyzedAudit.ID == nil { + break + } + + return e.complexity.AnalyzedAudit.ID(childComplexity), true + + case "AnalyzedAudit.modelName": + if e.complexity.AnalyzedAudit.ModelName == nil { + break + } + + return e.complexity.AnalyzedAudit.ModelName(childComplexity), true + + case "AnalyzedAudit.modelPlanID": + if e.complexity.AnalyzedAudit.ModelPlanID == nil { + break + } + + return e.complexity.AnalyzedAudit.ModelPlanID(childComplexity), true + + case "AnalyzedAudit.modifiedBy": + if e.complexity.AnalyzedAudit.ModifiedBy == nil { + break + } + + return e.complexity.AnalyzedAudit.ModifiedBy(childComplexity), true + + case "AnalyzedAudit.modifiedByUserAccount": + if e.complexity.AnalyzedAudit.ModifiedByUserAccount == nil { + break + } + + return e.complexity.AnalyzedAudit.ModifiedByUserAccount(childComplexity), true + + case "AnalyzedAudit.modifiedDts": + if e.complexity.AnalyzedAudit.ModifiedDts == nil { + break + } + + return e.complexity.AnalyzedAudit.ModifiedDts(childComplexity), true + + case "AnalyzedAuditChange.crTdls": + if e.complexity.AnalyzedAuditChange.CrTdls == nil { + break + } + + return e.complexity.AnalyzedAuditChange.CrTdls(childComplexity), true + + case "AnalyzedAuditChange.documents": + if e.complexity.AnalyzedAuditChange.Documents == nil { + break + } + + return e.complexity.AnalyzedAuditChange.Documents(childComplexity), true + + case "AnalyzedAuditChange.modelLeads": + if e.complexity.AnalyzedAuditChange.ModelLeads == nil { + break + } + + return e.complexity.AnalyzedAuditChange.ModelLeads(childComplexity), true + + case "AnalyzedAuditChange.modelPlan": + if e.complexity.AnalyzedAuditChange.ModelPlan == nil { + break + } + + return e.complexity.AnalyzedAuditChange.ModelPlan(childComplexity), true + + case "AnalyzedAuditChange.planDiscussions": + if e.complexity.AnalyzedAuditChange.PlanDiscussions == nil { + break + } + + return e.complexity.AnalyzedAuditChange.PlanDiscussions(childComplexity), true + + case "AnalyzedAuditChange.planSections": + if e.complexity.AnalyzedAuditChange.PlanSections == nil { + break + } + + return e.complexity.AnalyzedAuditChange.PlanSections(childComplexity), true + + case "AnalyzedCrTdls.activity": + if e.complexity.AnalyzedCrTdls.Activity == nil { + break + } + + return e.complexity.AnalyzedCrTdls.Activity(childComplexity), true + + case "AnalyzedDocuments.count": + if e.complexity.AnalyzedDocuments.Count == nil { + break + } + + return e.complexity.AnalyzedDocuments.Count(childComplexity), true + + case "AnalyzedModelLeadInfo.commonName": + if e.complexity.AnalyzedModelLeadInfo.CommonName == nil { + break + } + + return e.complexity.AnalyzedModelLeadInfo.CommonName(childComplexity), true + + case "AnalyzedModelLeadInfo.id": + if e.complexity.AnalyzedModelLeadInfo.ID == nil { + break + } + + return e.complexity.AnalyzedModelLeadInfo.ID(childComplexity), true + + case "AnalyzedModelLeadInfo.userAccount": + if e.complexity.AnalyzedModelLeadInfo.UserAccount == nil { + break + } + + return e.complexity.AnalyzedModelLeadInfo.UserAccount(childComplexity), true + + case "AnalyzedModelLeads.added": + if e.complexity.AnalyzedModelLeads.Added == nil { + break + } + + return e.complexity.AnalyzedModelLeads.Added(childComplexity), true + + case "AnalyzedModelPlan.oldName": + if e.complexity.AnalyzedModelPlan.OldName == nil { + break + } + + return e.complexity.AnalyzedModelPlan.OldName(childComplexity), true + + case "AnalyzedModelPlan.statusChanges": + if e.complexity.AnalyzedModelPlan.StatusChanges == nil { + break + } + + return e.complexity.AnalyzedModelPlan.StatusChanges(childComplexity), true + + case "AnalyzedPlanDiscussions.activity": + if e.complexity.AnalyzedPlanDiscussions.Activity == nil { + break + } + + return e.complexity.AnalyzedPlanDiscussions.Activity(childComplexity), true + + case "AnalyzedPlanSections.dataExchangeApproachMarkedComplete": + if e.complexity.AnalyzedPlanSections.DataExchangeApproachMarkedComplete == nil { + break + } + + return e.complexity.AnalyzedPlanSections.DataExchangeApproachMarkedComplete(childComplexity), true + + case "AnalyzedPlanSections.readyForClearance": + if e.complexity.AnalyzedPlanSections.ReadyForClearance == nil { + break + } + + return e.complexity.AnalyzedPlanSections.ReadyForClearance(childComplexity), true + + case "AnalyzedPlanSections.readyForReview": + if e.complexity.AnalyzedPlanSections.ReadyForReview == nil { + break + } + + return e.complexity.AnalyzedPlanSections.ReadyForReview(childComplexity), true + + case "AnalyzedPlanSections.updated": + if e.complexity.AnalyzedPlanSections.Updated == nil { + break + } + + return e.complexity.AnalyzedPlanSections.Updated(childComplexity), true + + case "AuditChange.action": + if e.complexity.AuditChange.Action == nil { + break + } + + return e.complexity.AuditChange.Action(childComplexity), true + + case "AuditChange.fields": + if e.complexity.AuditChange.Fields == nil { + break + } + + return e.complexity.AuditChange.Fields(childComplexity), true + + case "AuditChange.foreignKey": + if e.complexity.AuditChange.ForeignKey == nil { + break + } + + return e.complexity.AuditChange.ForeignKey(childComplexity), true + + case "AuditChange.id": + if e.complexity.AuditChange.ID == nil { + break + } + + return e.complexity.AuditChange.ID(childComplexity), true + + case "AuditChange.modifiedBy": + if e.complexity.AuditChange.ModifiedBy == nil { + break + } + + return e.complexity.AuditChange.ModifiedBy(childComplexity), true + + case "AuditChange.modifiedByUserAccount": + if e.complexity.AuditChange.ModifiedByUserAccount == nil { + break + } + + return e.complexity.AuditChange.ModifiedByUserAccount(childComplexity), true + + case "AuditChange.modifiedDts": + if e.complexity.AuditChange.ModifiedDts == nil { + break + } + + return e.complexity.AuditChange.ModifiedDts(childComplexity), true + + case "AuditChange.primaryKey": + if e.complexity.AuditChange.PrimaryKey == nil { + break + } + + return e.complexity.AuditChange.PrimaryKey(childComplexity), true + + case "AuditChange.tableName": + if e.complexity.AuditChange.TableName == nil { + break + } + + return e.complexity.AuditChange.TableName(childComplexity), true + + case "CurrentUser.account": + if e.complexity.CurrentUser.Account == nil { + break + } + + return e.complexity.CurrentUser.Account(childComplexity), true + + case "CurrentUser.launchDarkly": + if e.complexity.CurrentUser.LaunchDarkly == nil { + break + } + + return e.complexity.CurrentUser.LaunchDarkly(childComplexity), true + + case "CurrentUser.notificationPreferences": + if e.complexity.CurrentUser.NotificationPreferences == nil { + break + } + + return e.complexity.CurrentUser.NotificationPreferences(childComplexity), true + + case "CurrentUser.notifications": + if e.complexity.CurrentUser.Notifications == nil { + break + } + + return e.complexity.CurrentUser.Notifications(childComplexity), true + + case "DailyDigestCompleteActivityMeta.analyzedAudits": + if e.complexity.DailyDigestCompleteActivityMeta.AnalyzedAudits == nil { + break + } + + return e.complexity.DailyDigestCompleteActivityMeta.AnalyzedAudits(childComplexity), true + + case "DailyDigestCompleteActivityMeta.date": + if e.complexity.DailyDigestCompleteActivityMeta.Date == nil { + break + } + + return e.complexity.DailyDigestCompleteActivityMeta.Date(childComplexity), true + + case "DailyDigestCompleteActivityMeta.modelPlanIDs": + if e.complexity.DailyDigestCompleteActivityMeta.ModelPlanIDs == nil { + break + } + + return e.complexity.DailyDigestCompleteActivityMeta.ModelPlanIDs(childComplexity), true + + case "DailyDigestCompleteActivityMeta.type": + if e.complexity.DailyDigestCompleteActivityMeta.Type == nil { + break + } + + return e.complexity.DailyDigestCompleteActivityMeta.Type(childComplexity), true + + case "DailyDigestCompleteActivityMeta.userID": + if e.complexity.DailyDigestCompleteActivityMeta.UserID == nil { + break + } + + return e.complexity.DailyDigestCompleteActivityMeta.UserID(childComplexity), true + + case "DailyDigestCompleteActivityMeta.version": + if e.complexity.DailyDigestCompleteActivityMeta.Version == nil { + break + } + + return e.complexity.DailyDigestCompleteActivityMeta.Version(childComplexity), true + + case "DateChange.field": + if e.complexity.DateChange.Field == nil { + break + } + + return e.complexity.DateChange.Field(childComplexity), true + + case "DateChange.isChanged": + if e.complexity.DateChange.IsChanged == nil { + break + } + + return e.complexity.DateChange.IsChanged(childComplexity), true + + case "DateChange.isRange": + if e.complexity.DateChange.IsRange == nil { + break + } + + return e.complexity.DateChange.IsRange(childComplexity), true + + case "DateChange.newDate": + if e.complexity.DateChange.NewDate == nil { + break + } + + return e.complexity.DateChange.NewDate(childComplexity), true + + case "DateChange.newRangeEnd": + if e.complexity.DateChange.NewRangeEnd == nil { + break + } + + return e.complexity.DateChange.NewRangeEnd(childComplexity), true + + case "DateChange.newRangeStart": + if e.complexity.DateChange.NewRangeStart == nil { + break + } + + return e.complexity.DateChange.NewRangeStart(childComplexity), true + + case "DateChange.oldDate": + if e.complexity.DateChange.OldDate == nil { + break + } + + return e.complexity.DateChange.OldDate(childComplexity), true + + case "DateChange.oldRangeEnd": + if e.complexity.DateChange.OldRangeEnd == nil { + break + } + + return e.complexity.DateChange.OldRangeEnd(childComplexity), true + + case "DateChange.oldRangeStart": + if e.complexity.DateChange.OldRangeStart == nil { + break + } + + return e.complexity.DateChange.OldRangeStart(childComplexity), true + + case "DatesChangedActivityMeta.dateChanges": + if e.complexity.DatesChangedActivityMeta.DateChanges == nil { + break + } + + return e.complexity.DatesChangedActivityMeta.DateChanges(childComplexity), true + + case "DatesChangedActivityMeta.modelPlan": + if e.complexity.DatesChangedActivityMeta.ModelPlan == nil { + break + } + + return e.complexity.DatesChangedActivityMeta.ModelPlan(childComplexity), true + + case "DatesChangedActivityMeta.modelPlanID": + if e.complexity.DatesChangedActivityMeta.ModelPlanID == nil { + break + } + + return e.complexity.DatesChangedActivityMeta.ModelPlanID(childComplexity), true + + case "DatesChangedActivityMeta.type": + if e.complexity.DatesChangedActivityMeta.Type == nil { + break + } + + return e.complexity.DatesChangedActivityMeta.Type(childComplexity), true + + case "DatesChangedActivityMeta.version": + if e.complexity.DatesChangedActivityMeta.Version == nil { + break + } + + return e.complexity.DatesChangedActivityMeta.Version(childComplexity), true + + case "DiscussionReply.content": + if e.complexity.DiscussionReply.Content == nil { + break + } + + return e.complexity.DiscussionReply.Content(childComplexity), true + + case "DiscussionReply.createdBy": + if e.complexity.DiscussionReply.CreatedBy == nil { + break + } + + return e.complexity.DiscussionReply.CreatedBy(childComplexity), true + + case "DiscussionReply.createdByUserAccount": + if e.complexity.DiscussionReply.CreatedByUserAccount == nil { + break + } + + return e.complexity.DiscussionReply.CreatedByUserAccount(childComplexity), true + + case "DiscussionReply.createdDts": + if e.complexity.DiscussionReply.CreatedDts == nil { + break + } + + return e.complexity.DiscussionReply.CreatedDts(childComplexity), true + + case "DiscussionReply.discussionID": + if e.complexity.DiscussionReply.DiscussionID == nil { + break + } + + return e.complexity.DiscussionReply.DiscussionID(childComplexity), true + + case "DiscussionReply.id": + if e.complexity.DiscussionReply.ID == nil { + break + } + + return e.complexity.DiscussionReply.ID(childComplexity), true + + case "DiscussionReply.isAssessment": + if e.complexity.DiscussionReply.IsAssessment == nil { + break + } + + return e.complexity.DiscussionReply.IsAssessment(childComplexity), true + + case "DiscussionReply.modifiedBy": + if e.complexity.DiscussionReply.ModifiedBy == nil { + break + } + + return e.complexity.DiscussionReply.ModifiedBy(childComplexity), true + + case "DiscussionReply.modifiedByUserAccount": + if e.complexity.DiscussionReply.ModifiedByUserAccount == nil { + break + } + + return e.complexity.DiscussionReply.ModifiedByUserAccount(childComplexity), true + + case "DiscussionReply.modifiedDts": + if e.complexity.DiscussionReply.ModifiedDts == nil { + break + } + + return e.complexity.DiscussionReply.ModifiedDts(childComplexity), true + + case "DiscussionReply.userRole": + if e.complexity.DiscussionReply.UserRole == nil { + break + } + + return e.complexity.DiscussionReply.UserRole(childComplexity), true + + case "DiscussionReply.userRoleDescription": + if e.complexity.DiscussionReply.UserRoleDescription == nil { + break + } + + return e.complexity.DiscussionReply.UserRoleDescription(childComplexity), true + + case "DiscussionReplyTranslation.content": + if e.complexity.DiscussionReplyTranslation.Content == nil { + break + } + + return e.complexity.DiscussionReplyTranslation.Content(childComplexity), true + + case "DiscussionReplyTranslation.isAssessment": + if e.complexity.DiscussionReplyTranslation.IsAssessment == nil { + break + } + + return e.complexity.DiscussionReplyTranslation.IsAssessment(childComplexity), true + + case "DiscussionReplyTranslation.userRole": + if e.complexity.DiscussionReplyTranslation.UserRole == nil { + break + } + + return e.complexity.DiscussionReplyTranslation.UserRole(childComplexity), true + + case "DiscussionReplyTranslation.userRoleDescription": + if e.complexity.DiscussionReplyTranslation.UserRoleDescription == nil { + break + } + + return e.complexity.DiscussionReplyTranslation.UserRoleDescription(childComplexity), true + + case "DiscussionRoleSelection.userRole": + if e.complexity.DiscussionRoleSelection.UserRole == nil { + break + } + + return e.complexity.DiscussionRoleSelection.UserRole(childComplexity), true + + case "DiscussionRoleSelection.userRoleDescription": + if e.complexity.DiscussionRoleSelection.UserRoleDescription == nil { + break + } + + return e.complexity.DiscussionRoleSelection.UserRoleDescription(childComplexity), true + + case "EChimpCR.associatedModelUids": + if e.complexity.EChimpCR.AssociatedModelUids == nil { + break + } + + return e.complexity.EChimpCR.AssociatedModelUids(childComplexity), true + + case "EChimpCR.id": + if e.complexity.EChimpCR.CrNumber == nil { + break + } + + return e.complexity.EChimpCR.CrNumber(childComplexity), true + + case "EChimpCR.crStatus": + if e.complexity.EChimpCR.CrStatus == nil { + break + } + + return e.complexity.EChimpCR.CrStatus(childComplexity), true + + case "EChimpCR.crSummary": + if e.complexity.EChimpCR.CrSummary == nil { + break + } + + return e.complexity.EChimpCR.CrSummary(childComplexity), true + + case "EChimpCR.emergencyCrFlag": + if e.complexity.EChimpCR.EmergencyCrFlag == nil { + break + } + + return e.complexity.EChimpCR.EmergencyCrFlag(childComplexity), true + + case "EChimpCR.firstName": + if e.complexity.EChimpCR.FirstName == nil { + break + } + + return e.complexity.EChimpCR.FirstName(childComplexity), true + + case "EChimpCR.implementationDate": + if e.complexity.EChimpCR.ImplementationDate == nil { + break + } + + return e.complexity.EChimpCR.ImplementationDate(childComplexity), true + + case "EChimpCR.initiator": + if e.complexity.EChimpCR.Initiator == nil { + break + } + + return e.complexity.EChimpCR.Initiator(childComplexity), true + + case "EChimpCR.lastName": + if e.complexity.EChimpCR.LastName == nil { + break + } + + return e.complexity.EChimpCR.LastName(childComplexity), true + + case "EChimpCR.relatedCrNumbers": + if e.complexity.EChimpCR.RelatedCrNumbers == nil { + break + } + + return e.complexity.EChimpCR.RelatedCrNumbers(childComplexity), true + + case "EChimpCR.relatedCrTdlNumbers": + if e.complexity.EChimpCR.RelatedCrTdlNumbers == nil { + break + } + + return e.complexity.EChimpCR.RelatedCrTdlNumbers(childComplexity), true + + case "EChimpCR.sensitiveFlag": + if e.complexity.EChimpCR.SensitiveFlag == nil { + break + } + + return e.complexity.EChimpCR.SensitiveFlag(childComplexity), true + + case "EChimpCR.title": + if e.complexity.EChimpCR.Title == nil { + break + } + + return e.complexity.EChimpCR.Title(childComplexity), true + + case "EChimpCR.versionNum": + if e.complexity.EChimpCR.VersionNum == nil { + break + } + + return e.complexity.EChimpCR.VersionNum(childComplexity), true + + case "EChimpTDL.associatedModelUids": + if e.complexity.EChimpTDL.AssociatedModelUids == nil { + break + } + + return e.complexity.EChimpTDL.AssociatedModelUids(childComplexity), true + + case "EChimpTDL.firstName": + if e.complexity.EChimpTDL.FirstName == nil { + break + } + + return e.complexity.EChimpTDL.FirstName(childComplexity), true + + case "EChimpTDL.initiator": + if e.complexity.EChimpTDL.Initiator == nil { + break + } + + return e.complexity.EChimpTDL.Initiator(childComplexity), true + + case "EChimpTDL.issuedDate": + if e.complexity.EChimpTDL.IssuedDate == nil { + break + } + + return e.complexity.EChimpTDL.IssuedDate(childComplexity), true + + case "EChimpTDL.lastName": + if e.complexity.EChimpTDL.LastName == nil { + break + } + + return e.complexity.EChimpTDL.LastName(childComplexity), true + + case "EChimpTDL.status": + if e.complexity.EChimpTDL.Status == nil { + break + } + + return e.complexity.EChimpTDL.Status(childComplexity), true + + case "EChimpTDL.id": + if e.complexity.EChimpTDL.TdlNumber == nil { + break + } + + return e.complexity.EChimpTDL.TdlNumber(childComplexity), true + + case "EChimpTDL.title": + if e.complexity.EChimpTDL.Title == nil { + break + } + + return e.complexity.EChimpTDL.Title(childComplexity), true + + case "EChimpTDL.versionNum": + if e.complexity.EChimpTDL.VersionNum == nil { + break + } + + return e.complexity.EChimpTDL.VersionNum(childComplexity), true + + case "EnumTranslation.generalName": + if e.complexity.EnumTranslation.GeneralName == nil { + break + } + + return e.complexity.EnumTranslation.GeneralName(childComplexity), true + + case "EnumTranslation.groupedName": + if e.complexity.EnumTranslation.GroupedName == nil { + break + } + + return e.complexity.EnumTranslation.GroupedName(childComplexity), true + + case "ExistingModel.authority": + if e.complexity.ExistingModel.Authority == nil { + break + } + + return e.complexity.ExistingModel.Authority(childComplexity), true + + case "ExistingModel.category": + if e.complexity.ExistingModel.Category == nil { + break + } + + return e.complexity.ExistingModel.Category(childComplexity), true + + case "ExistingModel.createdBy": + if e.complexity.ExistingModel.CreatedBy == nil { + break + } + + return e.complexity.ExistingModel.CreatedBy(childComplexity), true + + case "ExistingModel.createdByUserAccount": + if e.complexity.ExistingModel.CreatedByUserAccount == nil { + break + } + + return e.complexity.ExistingModel.CreatedByUserAccount(childComplexity), true + + case "ExistingModel.createdDts": + if e.complexity.ExistingModel.CreatedDts == nil { + break + } + + return e.complexity.ExistingModel.CreatedDts(childComplexity), true + + case "ExistingModel.dateBegan": + if e.complexity.ExistingModel.DateBegan == nil { + break + } + + return e.complexity.ExistingModel.DateBegan(childComplexity), true + + case "ExistingModel.dateEnded": + if e.complexity.ExistingModel.DateEnded == nil { + break + } + + return e.complexity.ExistingModel.DateEnded(childComplexity), true + + case "ExistingModel.description": + if e.complexity.ExistingModel.Description == nil { + break + } + + return e.complexity.ExistingModel.Description(childComplexity), true + + case "ExistingModel.displayModelSummary": + if e.complexity.ExistingModel.DisplayModelSummary == nil { + break + } + + return e.complexity.ExistingModel.DisplayModelSummary(childComplexity), true + + case "ExistingModel.id": + if e.complexity.ExistingModel.ID == nil { + break + } + + return e.complexity.ExistingModel.ID(childComplexity), true + + case "ExistingModel.keywords": + if e.complexity.ExistingModel.Keywords == nil { + break + } + + return e.complexity.ExistingModel.Keywords(childComplexity), true + + case "ExistingModel.modelName": + if e.complexity.ExistingModel.ModelName == nil { + break + } + + return e.complexity.ExistingModel.ModelName(childComplexity), true + + case "ExistingModel.modifiedBy": + if e.complexity.ExistingModel.ModifiedBy == nil { + break + } + + return e.complexity.ExistingModel.ModifiedBy(childComplexity), true + + case "ExistingModel.modifiedByUserAccount": + if e.complexity.ExistingModel.ModifiedByUserAccount == nil { + break + } + + return e.complexity.ExistingModel.ModifiedByUserAccount(childComplexity), true + + case "ExistingModel.modifiedDts": + if e.complexity.ExistingModel.ModifiedDts == nil { + break + } + + return e.complexity.ExistingModel.ModifiedDts(childComplexity), true + + case "ExistingModel.numberOfBeneficiariesImpacted": + if e.complexity.ExistingModel.NumberOfBeneficiariesImpacted == nil { + break + } + + return e.complexity.ExistingModel.NumberOfBeneficiariesImpacted(childComplexity), true + + case "ExistingModel.numberOfParticipants": + if e.complexity.ExistingModel.NumberOfParticipants == nil { + break + } + + return e.complexity.ExistingModel.NumberOfParticipants(childComplexity), true + + case "ExistingModel.numberOfPhysiciansImpacted": + if e.complexity.ExistingModel.NumberOfPhysiciansImpacted == nil { + break + } + + return e.complexity.ExistingModel.NumberOfPhysiciansImpacted(childComplexity), true + + case "ExistingModel.stage": + if e.complexity.ExistingModel.Stage == nil { + break + } + + return e.complexity.ExistingModel.Stage(childComplexity), true + + case "ExistingModel.states": + if e.complexity.ExistingModel.States == nil { + break + } + + return e.complexity.ExistingModel.States(childComplexity), true + + case "ExistingModel.url": + if e.complexity.ExistingModel.URL == nil { + break + } + + return e.complexity.ExistingModel.URL(childComplexity), true + + case "ExistingModelLink.createdBy": + if e.complexity.ExistingModelLink.CreatedBy == nil { + break + } + + return e.complexity.ExistingModelLink.CreatedBy(childComplexity), true + + case "ExistingModelLink.createdByUserAccount": + if e.complexity.ExistingModelLink.CreatedByUserAccount == nil { + break + } + + return e.complexity.ExistingModelLink.CreatedByUserAccount(childComplexity), true + + case "ExistingModelLink.createdDts": + if e.complexity.ExistingModelLink.CreatedDts == nil { + break + } + + return e.complexity.ExistingModelLink.CreatedDts(childComplexity), true + + case "ExistingModelLink.currentModelPlanID": + if e.complexity.ExistingModelLink.CurrentModelPlanID == nil { + break + } + + return e.complexity.ExistingModelLink.CurrentModelPlanID(childComplexity), true + + case "ExistingModelLink.existingModelID": + if e.complexity.ExistingModelLink.ExistingModelID == nil { + break + } + + return e.complexity.ExistingModelLink.ExistingModelID(childComplexity), true + + case "ExistingModelLink.fieldName": + if e.complexity.ExistingModelLink.FieldName == nil { + break + } + + return e.complexity.ExistingModelLink.FieldName(childComplexity), true + + case "ExistingModelLink.id": + if e.complexity.ExistingModelLink.ID == nil { + break + } + + return e.complexity.ExistingModelLink.ID(childComplexity), true + + case "ExistingModelLink.model": + if e.complexity.ExistingModelLink.Model == nil { + break + } + + return e.complexity.ExistingModelLink.Model(childComplexity), true + + case "ExistingModelLink.modelPlanID": + if e.complexity.ExistingModelLink.ModelPlanID == nil { + break + } + + return e.complexity.ExistingModelLink.ModelPlanID(childComplexity), true + + case "ExistingModelLink.modifiedBy": + if e.complexity.ExistingModelLink.ModifiedBy == nil { + break + } + + return e.complexity.ExistingModelLink.ModifiedBy(childComplexity), true + + case "ExistingModelLink.modifiedByUserAccount": + if e.complexity.ExistingModelLink.ModifiedByUserAccount == nil { + break + } + + return e.complexity.ExistingModelLink.ModifiedByUserAccount(childComplexity), true + + case "ExistingModelLink.modifiedDts": + if e.complexity.ExistingModelLink.ModifiedDts == nil { + break + } + + return e.complexity.ExistingModelLink.ModifiedDts(childComplexity), true + + case "ExistingModelLinkTranslation.currentModelPlanID": + if e.complexity.ExistingModelLinkTranslation.CurrentModelPlanID == nil { + break + } + + return e.complexity.ExistingModelLinkTranslation.CurrentModelPlanID(childComplexity), true + + case "ExistingModelLinkTranslation.existingModelID": + if e.complexity.ExistingModelLinkTranslation.ExistingModelID == nil { + break + } + + return e.complexity.ExistingModelLinkTranslation.ExistingModelID(childComplexity), true + + case "ExistingModelLinkTranslation.fieldName": + if e.complexity.ExistingModelLinkTranslation.FieldName == nil { + break + } + + return e.complexity.ExistingModelLinkTranslation.FieldName(childComplexity), true + + case "ExistingModelLinks.fieldName": + if e.complexity.ExistingModelLinks.FieldName == nil { + break + } + + return e.complexity.ExistingModelLinks.FieldName(childComplexity), true + + case "ExistingModelLinks.links": + if e.complexity.ExistingModelLinks.Links == nil { + break + } + + return e.complexity.ExistingModelLinks.Links(childComplexity), true + + case "ExistingModelLinks.modelPlanID": + if e.complexity.ExistingModelLinks.ModelPlanID == nil { + break + } + + return e.complexity.ExistingModelLinks.ModelPlanID(childComplexity), true + + case "ExistingModelLinks.names": + if e.complexity.ExistingModelLinks.Names == nil { + break + } + + return e.complexity.ExistingModelLinks.Names(childComplexity), true + + case "LaunchDarklySettings.signedHash": + if e.complexity.LaunchDarklySettings.SignedHash == nil { + break + } + + return e.complexity.LaunchDarklySettings.SignedHash(childComplexity), true + + case "LaunchDarklySettings.userKey": + if e.complexity.LaunchDarklySettings.UserKey == nil { + break + } + + return e.complexity.LaunchDarklySettings.UserKey(childComplexity), true + + case "LockableSectionLockStatus.isAssessment": + if e.complexity.LockableSectionLockStatus.IsAssessment == nil { + break + } + + return e.complexity.LockableSectionLockStatus.IsAssessment(childComplexity), true + + case "LockableSectionLockStatus.lockedByUserAccount": + if e.complexity.LockableSectionLockStatus.LockedByUserAccount == nil { + break + } + + return e.complexity.LockableSectionLockStatus.LockedByUserAccount(childComplexity), true + + case "LockableSectionLockStatus.modelPlanID": + if e.complexity.LockableSectionLockStatus.ModelPlanID == nil { + break + } + + return e.complexity.LockableSectionLockStatus.ModelPlanID(childComplexity), true + + case "LockableSectionLockStatus.section": + if e.complexity.LockableSectionLockStatus.Section == nil { + break + } + + return e.complexity.LockableSectionLockStatus.Section(childComplexity), true + + case "LockableSectionLockStatusChanged.actionType": + if e.complexity.LockableSectionLockStatusChanged.ActionType == nil { + break + } + + return e.complexity.LockableSectionLockStatusChanged.ActionType(childComplexity), true + + case "LockableSectionLockStatusChanged.changeType": + if e.complexity.LockableSectionLockStatusChanged.ChangeType == nil { + break + } + + return e.complexity.LockableSectionLockStatusChanged.ChangeType(childComplexity), true + + case "LockableSectionLockStatusChanged.lockStatus": + if e.complexity.LockableSectionLockStatusChanged.LockStatus == nil { + break + } + + return e.complexity.LockableSectionLockStatusChanged.LockStatus(childComplexity), true + + case "MTOCategory.id": + if e.complexity.MTOCategory.ID == nil { + break + } + + return e.complexity.MTOCategory.ID(childComplexity), true + + case "MTOCategory.isUncategorized": + if e.complexity.MTOCategory.IsUncategorized == nil { + break + } + + return e.complexity.MTOCategory.IsUncategorized(childComplexity), true + + case "MTOCategory.name": + if e.complexity.MTOCategory.Name == nil { + break + } + + return e.complexity.MTOCategory.Name(childComplexity), true + + case "MTOCategory.position": + if e.complexity.MTOCategory.Position == nil { + break + } + + return e.complexity.MTOCategory.Position(childComplexity), true + + case "MTOCategory.subCategories": + if e.complexity.MTOCategory.SubCategories == nil { + break + } + + return e.complexity.MTOCategory.SubCategories(childComplexity), true + + case "MTOCategoryTranslation.name": + if e.complexity.MTOCategoryTranslation.Name == nil { + break + } + + return e.complexity.MTOCategoryTranslation.Name(childComplexity), true + + case "MTOCommonMilestone.categoryName": + if e.complexity.MTOCommonMilestone.CategoryName == nil { + break + } + + return e.complexity.MTOCommonMilestone.CategoryName(childComplexity), true + + case "MTOCommonMilestone.commonSolutions": + if e.complexity.MTOCommonMilestone.CommonSolutions == nil { + break + } + + return e.complexity.MTOCommonMilestone.CommonSolutions(childComplexity), true + + case "MTOCommonMilestone.facilitatedByRole": + if e.complexity.MTOCommonMilestone.FacilitatedByRole == nil { + break + } + + return e.complexity.MTOCommonMilestone.FacilitatedByRole(childComplexity), true + + case "MTOCommonMilestone.isAdded": + if e.complexity.MTOCommonMilestone.IsAdded == nil { + break + } + + return e.complexity.MTOCommonMilestone.IsAdded(childComplexity), true + + case "MTOCommonMilestone.isSuggested": + if e.complexity.MTOCommonMilestone.IsSuggested == nil { + break + } + + return e.complexity.MTOCommonMilestone.IsSuggested(childComplexity), true + + case "MTOCommonMilestone.key": + if e.complexity.MTOCommonMilestone.Key == nil { + break + } + + return e.complexity.MTOCommonMilestone.Key(childComplexity), true + + case "MTOCommonMilestone.name": + if e.complexity.MTOCommonMilestone.Name == nil { + break + } + + return e.complexity.MTOCommonMilestone.Name(childComplexity), true + + case "MTOCommonMilestone.section": + if e.complexity.MTOCommonMilestone.Section == nil { + break + } + + return e.complexity.MTOCommonMilestone.Section(childComplexity), true + + case "MTOCommonMilestone.subCategoryName": + if e.complexity.MTOCommonMilestone.SubCategoryName == nil { + break + } + + return e.complexity.MTOCommonMilestone.SubCategoryName(childComplexity), true + + case "MTOCommonSolution.filterView": + if e.complexity.MTOCommonSolution.FilterView == nil { + break + } + + return e.complexity.MTOCommonSolution.FilterView(childComplexity), true + + case "MTOCommonSolution.isAdded": + if e.complexity.MTOCommonSolution.IsAdded == nil { + break + } + + return e.complexity.MTOCommonSolution.IsAdded(childComplexity), true + + case "MTOCommonSolution.key": + if e.complexity.MTOCommonSolution.Key == nil { + break + } + + return e.complexity.MTOCommonSolution.Key(childComplexity), true + + case "MTOCommonSolution.name": + if e.complexity.MTOCommonSolution.Name == nil { + break + } + + return e.complexity.MTOCommonSolution.Name(childComplexity), true + + case "MTOCommonSolution.subjects": + if e.complexity.MTOCommonSolution.Subjects == nil { + break + } + + return e.complexity.MTOCommonSolution.Subjects(childComplexity), true + + case "MTOCommonSolution.type": + if e.complexity.MTOCommonSolution.Type == nil { + break + } + + return e.complexity.MTOCommonSolution.Type(childComplexity), true + + case "MTOInfo.createdBy": + if e.complexity.MTOInfo.CreatedBy == nil { + break + } + + return e.complexity.MTOInfo.CreatedBy(childComplexity), true + + case "MTOInfo.createdByUserAccount": + if e.complexity.MTOInfo.CreatedByUserAccount == nil { + break + } + + return e.complexity.MTOInfo.CreatedByUserAccount(childComplexity), true + + case "MTOInfo.createdDts": + if e.complexity.MTOInfo.CreatedDts == nil { + break + } + + return e.complexity.MTOInfo.CreatedDts(childComplexity), true + + case "MTOInfo.id": + if e.complexity.MTOInfo.ID == nil { + break + } + + return e.complexity.MTOInfo.ID(childComplexity), true + + case "MTOInfo.modelPlanID": + if e.complexity.MTOInfo.ModelPlanID == nil { + break + } + + return e.complexity.MTOInfo.ModelPlanID(childComplexity), true + + case "MTOInfo.modifiedBy": + if e.complexity.MTOInfo.ModifiedBy == nil { + break + } + + return e.complexity.MTOInfo.ModifiedBy(childComplexity), true + + case "MTOInfo.modifiedByUserAccount": + if e.complexity.MTOInfo.ModifiedByUserAccount == nil { + break + } + + return e.complexity.MTOInfo.ModifiedByUserAccount(childComplexity), true + + case "MTOInfo.modifiedDts": + if e.complexity.MTOInfo.ModifiedDts == nil { + break + } + + return e.complexity.MTOInfo.ModifiedDts(childComplexity), true + + case "MTOInfo.readyForReviewBy": + if e.complexity.MTOInfo.ReadyForReviewBy == nil { + break + } + + return e.complexity.MTOInfo.ReadyForReviewBy(childComplexity), true + + case "MTOInfo.readyForReviewByUserAccount": + if e.complexity.MTOInfo.ReadyForReviewByUserAccount == nil { + break + } + + return e.complexity.MTOInfo.ReadyForReviewByUserAccount(childComplexity), true + + case "MTOInfo.readyForReviewDTS": + if e.complexity.MTOInfo.ReadyForReviewDts == nil { + break + } + + return e.complexity.MTOInfo.ReadyForReviewDts(childComplexity), true + + case "MTOInfoTranslation.readyForReviewBy": + if e.complexity.MTOInfoTranslation.ReadyForReviewBy == nil { + break + } + + return e.complexity.MTOInfoTranslation.ReadyForReviewBy(childComplexity), true + + case "MTOInfoTranslation.readyForReviewDTS": + if e.complexity.MTOInfoTranslation.ReadyForReviewDts == nil { + break + } + + return e.complexity.MTOInfoTranslation.ReadyForReviewDts(childComplexity), true + + case "MTOMilestone.addedFromMilestoneLibrary": + if e.complexity.MTOMilestone.AddedFromMilestoneLibrary == nil { + break + } + + return e.complexity.MTOMilestone.AddedFromMilestoneLibrary(childComplexity), true + + case "MTOMilestone.category": + if e.complexity.MTOMilestone.Category == nil { + break + } + + return e.complexity.MTOMilestone.Category(childComplexity), true + + case "MTOMilestone.commonMilestone": + if e.complexity.MTOMilestone.CommonMilestone == nil { + break + } + + return e.complexity.MTOMilestone.CommonMilestone(childComplexity), true + + case "MTOMilestone.createdBy": + if e.complexity.MTOMilestone.CreatedBy == nil { + break + } + + return e.complexity.MTOMilestone.CreatedBy(childComplexity), true + + case "MTOMilestone.createdByUserAccount": + if e.complexity.MTOMilestone.CreatedByUserAccount == nil { + break + } + + return e.complexity.MTOMilestone.CreatedByUserAccount(childComplexity), true + + case "MTOMilestone.createdDts": + if e.complexity.MTOMilestone.CreatedDts == nil { + break + } + + return e.complexity.MTOMilestone.CreatedDts(childComplexity), true + + case "MTOMilestone.facilitatedBy": + if e.complexity.MTOMilestone.FacilitatedBy == nil { + break + } + + return e.complexity.MTOMilestone.FacilitatedBy(childComplexity), true + + case "MTOMilestone.id": + if e.complexity.MTOMilestone.ID == nil { + break + } + + return e.complexity.MTOMilestone.ID(childComplexity), true + + case "MTOMilestone.isDraft": + if e.complexity.MTOMilestone.IsDraft == nil { + break + } + + return e.complexity.MTOMilestone.IsDraft(childComplexity), true + + case "MTOMilestone.key": + if e.complexity.MTOMilestone.Key == nil { + break + } + + return e.complexity.MTOMilestone.Key(childComplexity), true + + case "MTOMilestone.mtoCategoryID": + if e.complexity.MTOMilestone.MTOCategoryID == nil { + break + } + + return e.complexity.MTOMilestone.MTOCategoryID(childComplexity), true + + case "MTOMilestone.modifiedBy": + if e.complexity.MTOMilestone.ModifiedBy == nil { + break + } + + return e.complexity.MTOMilestone.ModifiedBy(childComplexity), true + + case "MTOMilestone.modifiedByUserAccount": + if e.complexity.MTOMilestone.ModifiedByUserAccount == nil { + break + } + + return e.complexity.MTOMilestone.ModifiedByUserAccount(childComplexity), true + + case "MTOMilestone.modifiedDts": + if e.complexity.MTOMilestone.ModifiedDts == nil { + break + } + + return e.complexity.MTOMilestone.ModifiedDts(childComplexity), true + + case "MTOMilestone.name": + if e.complexity.MTOMilestone.Name == nil { + break + } + + return e.complexity.MTOMilestone.Name(childComplexity), true + + case "MTOMilestone.needBy": + if e.complexity.MTOMilestone.NeedBy == nil { + break + } + + return e.complexity.MTOMilestone.NeedBy(childComplexity), true + + case "MTOMilestone.riskIndicator": + if e.complexity.MTOMilestone.RiskIndicator == nil { + break + } + + return e.complexity.MTOMilestone.RiskIndicator(childComplexity), true + + case "MTOMilestone.solutions": + if e.complexity.MTOMilestone.Solutions == nil { + break + } + + return e.complexity.MTOMilestone.Solutions(childComplexity), true + + case "MTOMilestone.status": + if e.complexity.MTOMilestone.Status == nil { + break + } + + return e.complexity.MTOMilestone.Status(childComplexity), true + + case "MTOMilestone.subCategory": + if e.complexity.MTOMilestone.SubCategory == nil { + break + } + + return e.complexity.MTOMilestone.SubCategory(childComplexity), true + + case "MTOMilestoneTranslation.name": + if e.complexity.MTOMilestoneTranslation.Name == nil { + break + } + + return e.complexity.MTOMilestoneTranslation.Name(childComplexity), true + + case "MTOSolution.addedFromSolutionLibrary": + if e.complexity.MTOSolution.AddedFromSolutionLibrary == nil { + break + } + + return e.complexity.MTOSolution.AddedFromSolutionLibrary(childComplexity), true + + case "MTOSolution.commonSolution": + if e.complexity.MTOSolution.CommonSolution == nil { + break + } + + return e.complexity.MTOSolution.CommonSolution(childComplexity), true + + case "MTOSolution.createdBy": + if e.complexity.MTOSolution.CreatedBy == nil { + break + } + + return e.complexity.MTOSolution.CreatedBy(childComplexity), true + + case "MTOSolution.createdByUserAccount": + if e.complexity.MTOSolution.CreatedByUserAccount == nil { + break + } + + return e.complexity.MTOSolution.CreatedByUserAccount(childComplexity), true + + case "MTOSolution.createdDts": + if e.complexity.MTOSolution.CreatedDts == nil { + break + } + + return e.complexity.MTOSolution.CreatedDts(childComplexity), true + + case "MTOSolution.facilitatedBy": + if e.complexity.MTOSolution.FacilitatedBy == nil { + break + } + + return e.complexity.MTOSolution.FacilitatedBy(childComplexity), true + + case "MTOSolution.id": + if e.complexity.MTOSolution.ID == nil { + break + } + + return e.complexity.MTOSolution.ID(childComplexity), true + + case "MTOSolution.key": + if e.complexity.MTOSolution.Key == nil { + break + } + + return e.complexity.MTOSolution.Key(childComplexity), true + + case "MTOSolution.modifiedBy": + if e.complexity.MTOSolution.ModifiedBy == nil { + break + } + + return e.complexity.MTOSolution.ModifiedBy(childComplexity), true + + case "MTOSolution.modifiedByUserAccount": + if e.complexity.MTOSolution.ModifiedByUserAccount == nil { + break + } + + return e.complexity.MTOSolution.ModifiedByUserAccount(childComplexity), true + + case "MTOSolution.modifiedDts": + if e.complexity.MTOSolution.ModifiedDts == nil { + break + } + + return e.complexity.MTOSolution.ModifiedDts(childComplexity), true + + case "MTOSolution.name": + if e.complexity.MTOSolution.Name == nil { + break + } + + return e.complexity.MTOSolution.Name(childComplexity), true + + case "MTOSolution.neededBy": + if e.complexity.MTOSolution.NeededBy == nil { + break + } + + return e.complexity.MTOSolution.NeededBy(childComplexity), true + + case "MTOSolution.pocEmail": + if e.complexity.MTOSolution.PocEmail == nil { + break + } + + return e.complexity.MTOSolution.PocEmail(childComplexity), true + + case "MTOSolution.pocName": + if e.complexity.MTOSolution.PocName == nil { + break + } + + return e.complexity.MTOSolution.PocName(childComplexity), true + + case "MTOSolution.relatedMilestones": + if e.complexity.MTOSolution.RelatedMilestones == nil { + break + } + + return e.complexity.MTOSolution.RelatedMilestones(childComplexity), true + + case "MTOSolution.riskIndicator": + if e.complexity.MTOSolution.RiskIndicator == nil { + break + } + + return e.complexity.MTOSolution.RiskIndicator(childComplexity), true + + case "MTOSolution.status": + if e.complexity.MTOSolution.Status == nil { + break + } + + return e.complexity.MTOSolution.Status(childComplexity), true + + case "MTOSolution.type": + if e.complexity.MTOSolution.Type == nil { + break + } + + return e.complexity.MTOSolution.Type(childComplexity), true + + case "MTOSubcategory.id": + if e.complexity.MTOSubcategory.ID == nil { + break + } + + return e.complexity.MTOSubcategory.ID(childComplexity), true + + case "MTOSubcategory.isUncategorized": + if e.complexity.MTOSubcategory.IsUncategorized == nil { + break + } + + return e.complexity.MTOSubcategory.IsUncategorized(childComplexity), true + + case "MTOSubcategory.milestones": + if e.complexity.MTOSubcategory.Milestones == nil { + break + } + + return e.complexity.MTOSubcategory.Milestones(childComplexity), true + + case "MTOSubcategory.name": + if e.complexity.MTOSubcategory.Name == nil { + break + } + + return e.complexity.MTOSubcategory.Name(childComplexity), true + + case "MTOSubcategory.position": + if e.complexity.MTOSubcategory.Position == nil { + break + } + + return e.complexity.MTOSubcategory.Position(childComplexity), true + + case "ModelPlan.abbreviation": + if e.complexity.ModelPlan.Abbreviation == nil { + break + } + + return e.complexity.ModelPlan.Abbreviation(childComplexity), true + + case "ModelPlan.archived": + if e.complexity.ModelPlan.Archived == nil { + break + } + + return e.complexity.ModelPlan.Archived(childComplexity), true + + case "ModelPlan.basics": + if e.complexity.ModelPlan.Basics == nil { + break + } + + return e.complexity.ModelPlan.Basics(childComplexity), true + + case "ModelPlan.beneficiaries": + if e.complexity.ModelPlan.Beneficiaries == nil { + break + } + + return e.complexity.ModelPlan.Beneficiaries(childComplexity), true + + case "ModelPlan.collaborators": + if e.complexity.ModelPlan.Collaborators == nil { + break + } + + return e.complexity.ModelPlan.Collaborators(childComplexity), true + + case "ModelPlan.createdBy": + if e.complexity.ModelPlan.CreatedBy == nil { + break + } + + return e.complexity.ModelPlan.CreatedBy(childComplexity), true + + case "ModelPlan.createdByUserAccount": + if e.complexity.ModelPlan.CreatedByUserAccount == nil { + break + } + + return e.complexity.ModelPlan.CreatedByUserAccount(childComplexity), true + + case "ModelPlan.createdDts": + if e.complexity.ModelPlan.CreatedDts == nil { + break + } + + return e.complexity.ModelPlan.CreatedDts(childComplexity), true + + case "ModelPlan.crs": + if e.complexity.ModelPlan.Crs == nil { + break + } + + return e.complexity.ModelPlan.Crs(childComplexity), true + + case "ModelPlan.dataExchangeApproach": + if e.complexity.ModelPlan.DataExchangeApproach == nil { + break + } + + return e.complexity.ModelPlan.DataExchangeApproach(childComplexity), true + + case "ModelPlan.discussions": + if e.complexity.ModelPlan.Discussions == nil { + break + } + + return e.complexity.ModelPlan.Discussions(childComplexity), true + + case "ModelPlan.documents": + if e.complexity.ModelPlan.Documents == nil { + break + } + + return e.complexity.ModelPlan.Documents(childComplexity), true + + case "ModelPlan.echimpCRsAndTDLs": + if e.complexity.ModelPlan.EchimpCRsAndTDLs == nil { + break + } + + return e.complexity.ModelPlan.EchimpCRsAndTDLs(childComplexity), true + + case "ModelPlan.generalCharacteristics": + if e.complexity.ModelPlan.GeneralCharacteristics == nil { + break + } + + return e.complexity.ModelPlan.GeneralCharacteristics(childComplexity), true + + case "ModelPlan.id": + if e.complexity.ModelPlan.ID == nil { + break + } + + return e.complexity.ModelPlan.ID(childComplexity), true + + case "ModelPlan.isCollaborator": + if e.complexity.ModelPlan.IsCollaborator == nil { + break + } + + return e.complexity.ModelPlan.IsCollaborator(childComplexity), true + + case "ModelPlan.isFavorite": + if e.complexity.ModelPlan.IsFavorite == nil { + break + } + + return e.complexity.ModelPlan.IsFavorite(childComplexity), true + + case "ModelPlan.modelBySolutionStatus": + if e.complexity.ModelPlan.ModelBySolutionStatus == nil { + break + } + + return e.complexity.ModelPlan.ModelBySolutionStatus(childComplexity), true + + case "ModelPlan.modelName": + if e.complexity.ModelPlan.ModelName == nil { + break + } + + return e.complexity.ModelPlan.ModelName(childComplexity), true + + case "ModelPlan.modifiedBy": + if e.complexity.ModelPlan.ModifiedBy == nil { + break + } + + return e.complexity.ModelPlan.ModifiedBy(childComplexity), true + + case "ModelPlan.modifiedByUserAccount": + if e.complexity.ModelPlan.ModifiedByUserAccount == nil { + break + } + + return e.complexity.ModelPlan.ModifiedByUserAccount(childComplexity), true + + case "ModelPlan.modifiedDts": + if e.complexity.ModelPlan.ModifiedDts == nil { + break + } + + return e.complexity.ModelPlan.ModifiedDts(childComplexity), true + + case "ModelPlan.mtoMatrix": + if e.complexity.ModelPlan.MtoMatrix == nil { + break + } + + return e.complexity.ModelPlan.MtoMatrix(childComplexity), true + + case "ModelPlan.nameHistory": + if e.complexity.ModelPlan.NameHistory == nil { + break + } + + args, err := ec.field_ModelPlan_nameHistory_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.ModelPlan.NameHistory(childComplexity, args["sort"].(models.SortDirection)), true + + case "ModelPlan.opSolutionLastModifiedDts": + if e.complexity.ModelPlan.OpSolutionLastModifiedDts == nil { + break + } + + return e.complexity.ModelPlan.OpSolutionLastModifiedDts(childComplexity), true + + case "ModelPlan.operationalNeeds": + if e.complexity.ModelPlan.OperationalNeeds == nil { + break + } + + return e.complexity.ModelPlan.OperationalNeeds(childComplexity), true + + case "ModelPlan.opsEvalAndLearning": + if e.complexity.ModelPlan.OpsEvalAndLearning == nil { + break + } + + return e.complexity.ModelPlan.OpsEvalAndLearning(childComplexity), true + + case "ModelPlan.participantsAndProviders": + if e.complexity.ModelPlan.ParticipantsAndProviders == nil { + break + } + + return e.complexity.ModelPlan.ParticipantsAndProviders(childComplexity), true + + case "ModelPlan.payments": + if e.complexity.ModelPlan.Payments == nil { + break + } + + return e.complexity.ModelPlan.Payments(childComplexity), true + + case "ModelPlan.prepareForClearance": + if e.complexity.ModelPlan.PrepareForClearance == nil { + break + } + + return e.complexity.ModelPlan.PrepareForClearance(childComplexity), true + + case "ModelPlan.previousSuggestedPhase": + if e.complexity.ModelPlan.PreviousSuggestedPhase == nil { + break + } + + return e.complexity.ModelPlan.PreviousSuggestedPhase(childComplexity), true + + case "ModelPlan.status": + if e.complexity.ModelPlan.Status == nil { + break + } + + return e.complexity.ModelPlan.Status(childComplexity), true + + case "ModelPlan.suggestedPhase": + if e.complexity.ModelPlan.SuggestedPhase == nil { + break + } + + return e.complexity.ModelPlan.SuggestedPhase(childComplexity), true + + case "ModelPlan.taskListStatus": + if e.complexity.ModelPlan.TaskListStatus == nil { + break + } + + return e.complexity.ModelPlan.TaskListStatus(childComplexity), true + + case "ModelPlan.tdls": + if e.complexity.ModelPlan.Tdls == nil { + break + } + + return e.complexity.ModelPlan.Tdls(childComplexity), true + + case "ModelPlanAndPossibleOperationalSolution.key": + if e.complexity.ModelPlanAndPossibleOperationalSolution.Key == nil { + break + } + + return e.complexity.ModelPlanAndPossibleOperationalSolution.Key(childComplexity), true + + case "ModelPlanAndPossibleOperationalSolution.modelPlan": + if e.complexity.ModelPlanAndPossibleOperationalSolution.ModelPlan == nil { + break + } + + return e.complexity.ModelPlanAndPossibleOperationalSolution.ModelPlan(childComplexity), true + + case "ModelPlanAndPossibleOperationalSolution.modelPlanID": + if e.complexity.ModelPlanAndPossibleOperationalSolution.ModelPlanID == nil { + break + } + + return e.complexity.ModelPlanAndPossibleOperationalSolution.ModelPlanID(childComplexity), true + + case "ModelPlanAndPossibleOperationalSolution.possibleOperationalSolution": + if e.complexity.ModelPlanAndPossibleOperationalSolution.PossibleOperationalSolution == nil { + break + } + + return e.complexity.ModelPlanAndPossibleOperationalSolution.PossibleOperationalSolution(childComplexity), true + + case "ModelPlanAndPossibleOperationalSolution.possibleOperationalSolutionID": + if e.complexity.ModelPlanAndPossibleOperationalSolution.PossibleOperationalSolutionID == nil { + break + } + + return e.complexity.ModelPlanAndPossibleOperationalSolution.PossibleOperationalSolutionID(childComplexity), true + + case "ModelPlanSharedActivityMeta.modelPlan": + if e.complexity.ModelPlanSharedActivityMeta.ModelPlan == nil { + break + } + + return e.complexity.ModelPlanSharedActivityMeta.ModelPlan(childComplexity), true + + case "ModelPlanSharedActivityMeta.modelPlanID": + if e.complexity.ModelPlanSharedActivityMeta.ModelPlanID == nil { + break + } + + return e.complexity.ModelPlanSharedActivityMeta.ModelPlanID(childComplexity), true + + case "ModelPlanSharedActivityMeta.optionalMessage": + if e.complexity.ModelPlanSharedActivityMeta.OptionalMessage == nil { + break + } + + return e.complexity.ModelPlanSharedActivityMeta.OptionalMessage(childComplexity), true + + case "ModelPlanSharedActivityMeta.type": + if e.complexity.ModelPlanSharedActivityMeta.Type == nil { + break + } + + return e.complexity.ModelPlanSharedActivityMeta.Type(childComplexity), true + + case "ModelPlanSharedActivityMeta.version": + if e.complexity.ModelPlanSharedActivityMeta.Version == nil { + break + } + + return e.complexity.ModelPlanSharedActivityMeta.Version(childComplexity), true + + case "ModelPlanTranslation.abbreviation": + if e.complexity.ModelPlanTranslation.Abbreviation == nil { + break + } + + return e.complexity.ModelPlanTranslation.Abbreviation(childComplexity), true + + case "ModelPlanTranslation.archived": + if e.complexity.ModelPlanTranslation.Archived == nil { + break + } + + return e.complexity.ModelPlanTranslation.Archived(childComplexity), true + + case "ModelPlanTranslation.modelName": + if e.complexity.ModelPlanTranslation.ModelName == nil { + break + } + + return e.complexity.ModelPlanTranslation.ModelName(childComplexity), true + + case "ModelPlanTranslation.nameHistory": + if e.complexity.ModelPlanTranslation.NameHistory == nil { + break + } + + return e.complexity.ModelPlanTranslation.NameHistory(childComplexity), true + + case "ModelPlanTranslation.previousName": + if e.complexity.ModelPlanTranslation.PreviousName == nil { + break + } + + return e.complexity.ModelPlanTranslation.PreviousName(childComplexity), true + + case "ModelPlanTranslation.status": + if e.complexity.ModelPlanTranslation.Status == nil { + break + } + + return e.complexity.ModelPlanTranslation.Status(childComplexity), true + + case "ModelsToOperationMatrix.categories": + if e.complexity.ModelsToOperationMatrix.Categories == nil { + break + } + + return e.complexity.ModelsToOperationMatrix.Categories(childComplexity), true + + case "ModelsToOperationMatrix.commonMilestones": + if e.complexity.ModelsToOperationMatrix.CommonMilestones == nil { + break + } + + return e.complexity.ModelsToOperationMatrix.CommonMilestones(childComplexity), true + + case "ModelsToOperationMatrix.commonSolutions": + if e.complexity.ModelsToOperationMatrix.CommonSolutions == nil { + break + } + + return e.complexity.ModelsToOperationMatrix.CommonSolutions(childComplexity), true + + case "ModelsToOperationMatrix.info": + if e.complexity.ModelsToOperationMatrix.Info == nil { + break + } + + return e.complexity.ModelsToOperationMatrix.Info(childComplexity), true + + case "ModelsToOperationMatrix.milestones": + if e.complexity.ModelsToOperationMatrix.Milestones == nil { + break + } + + return e.complexity.ModelsToOperationMatrix.Milestones(childComplexity), true + + case "ModelsToOperationMatrix.recentEdit": + if e.complexity.ModelsToOperationMatrix.RecentEdit == nil { + break + } + + return e.complexity.ModelsToOperationMatrix.RecentEdit(childComplexity), true + + case "ModelsToOperationMatrix.solutions": + if e.complexity.ModelsToOperationMatrix.Solutions == nil { + break + } + + return e.complexity.ModelsToOperationMatrix.Solutions(childComplexity), true + + case "ModelsToOperationMatrix.status": + if e.complexity.ModelsToOperationMatrix.Status == nil { + break + } + + return e.complexity.ModelsToOperationMatrix.Status(childComplexity), true + + case "Mutation.addOrUpdateCustomOperationalNeed": + if e.complexity.Mutation.AddOrUpdateCustomOperationalNeed == nil { + break + } + + args, err := ec.field_Mutation_addOrUpdateCustomOperationalNeed_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.AddOrUpdateCustomOperationalNeed(childComplexity, args["modelPlanID"].(uuid.UUID), args["customNeedType"].(string), args["needed"].(bool)), true + + case "Mutation.addPlanFavorite": + if e.complexity.Mutation.AddPlanFavorite == nil { + break + } + + args, err := ec.field_Mutation_addPlanFavorite_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.AddPlanFavorite(childComplexity, args["modelPlanID"].(uuid.UUID)), true + + case "Mutation.agreeToNDA": + if e.complexity.Mutation.AgreeToNda == nil { + break + } + + args, err := ec.field_Mutation_agreeToNDA_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.AgreeToNda(childComplexity, args["agree"].(bool)), true + + case "Mutation.createDiscussionReply": + if e.complexity.Mutation.CreateDiscussionReply == nil { + break + } + + args, err := ec.field_Mutation_createDiscussionReply_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateDiscussionReply(childComplexity, args["input"].(model.DiscussionReplyCreateInput)), true + + case "Mutation.createMTOCategory": + if e.complexity.Mutation.CreateMTOCategory == nil { + break + } + + args, err := ec.field_Mutation_createMTOCategory_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateMTOCategory(childComplexity, args["modelPlanID"].(uuid.UUID), args["name"].(string), args["parentID"].(*uuid.UUID)), true + + case "Mutation.createMTOMilestoneCommon": + if e.complexity.Mutation.CreateMTOMilestoneCommon == nil { + break + } + + args, err := ec.field_Mutation_createMTOMilestoneCommon_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateMTOMilestoneCommon(childComplexity, args["modelPlanID"].(uuid.UUID), args["commonMilestoneKey"].(models.MTOCommonMilestoneKey)), true + + case "Mutation.createMTOMilestoneCustom": + if e.complexity.Mutation.CreateMTOMilestoneCustom == nil { + break + } + + args, err := ec.field_Mutation_createMTOMilestoneCustom_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateMTOMilestoneCustom(childComplexity, args["modelPlanID"].(uuid.UUID), args["name"].(string), args["mtoCategoryID"].(*uuid.UUID)), true + + case "Mutation.createMTOSolutionCommon": + if e.complexity.Mutation.CreateMTOSolutionCommon == nil { + break + } + + args, err := ec.field_Mutation_createMTOSolutionCommon_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateMTOSolutionCommon(childComplexity, args["modelPlanID"].(uuid.UUID), args["key"].(models.MTOCommonSolutionKey)), true + + case "Mutation.createMTOSolutionCustom": + if e.complexity.Mutation.CreateMTOSolutionCustom == nil { + break + } + + args, err := ec.field_Mutation_createMTOSolutionCustom_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateMTOSolutionCustom(childComplexity, args["modelPlanID"].(uuid.UUID), args["solutionType"].(models.MTOSolutionType), args["name"].(string), args["pocName"].(string), args["pocEmail"].(string)), true + + case "Mutation.createModelPlan": + if e.complexity.Mutation.CreateModelPlan == nil { + break + } + + args, err := ec.field_Mutation_createModelPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateModelPlan(childComplexity, args["modelName"].(string)), true + + case "Mutation.createOperationalSolution": + if e.complexity.Mutation.CreateOperationalSolution == nil { + break + } + + args, err := ec.field_Mutation_createOperationalSolution_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateOperationalSolution(childComplexity, args["operationalNeedID"].(uuid.UUID), args["solutionType"].(*models.OperationalSolutionKey), args["changes"].(map[string]interface{})), true + + case "Mutation.createOperationalSolutionSubtasks": + if e.complexity.Mutation.CreateOperationalSolutionSubtasks == nil { + break + } + + args, err := ec.field_Mutation_createOperationalSolutionSubtasks_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateOperationalSolutionSubtasks(childComplexity, args["solutionID"].(uuid.UUID), args["inputs"].([]*model.CreateOperationalSolutionSubtaskInput)), true + + case "Mutation.createPlanCollaborator": + if e.complexity.Mutation.CreatePlanCollaborator == nil { + break + } + + args, err := ec.field_Mutation_createPlanCollaborator_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreatePlanCollaborator(childComplexity, args["input"].(model.PlanCollaboratorCreateInput)), true + + case "Mutation.createPlanCR": + if e.complexity.Mutation.CreatePlanCr == nil { + break + } + + args, err := ec.field_Mutation_createPlanCR_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreatePlanCr(childComplexity, args["input"].(model.PlanCRCreateInput)), true + + case "Mutation.createPlanDiscussion": + if e.complexity.Mutation.CreatePlanDiscussion == nil { + break + } + + args, err := ec.field_Mutation_createPlanDiscussion_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreatePlanDiscussion(childComplexity, args["input"].(model.PlanDiscussionCreateInput)), true + + case "Mutation.createPlanDocumentSolutionLinks": + if e.complexity.Mutation.CreatePlanDocumentSolutionLinks == nil { + break + } + + args, err := ec.field_Mutation_createPlanDocumentSolutionLinks_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreatePlanDocumentSolutionLinks(childComplexity, args["solutionID"].(uuid.UUID), args["documentIDs"].([]uuid.UUID)), true + + case "Mutation.createPlanTDL": + if e.complexity.Mutation.CreatePlanTdl == nil { + break + } + + args, err := ec.field_Mutation_createPlanTDL_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreatePlanTdl(childComplexity, args["input"].(model.PlanTDLCreateInput)), true + + case "Mutation.deleteOperationalSolutionSubtask": + if e.complexity.Mutation.DeleteOperationalSolutionSubtask == nil { + break + } + + args, err := ec.field_Mutation_deleteOperationalSolutionSubtask_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteOperationalSolutionSubtask(childComplexity, args["id"].(uuid.UUID)), true + + case "Mutation.deletePlanCollaborator": + if e.complexity.Mutation.DeletePlanCollaborator == nil { + break + } + + args, err := ec.field_Mutation_deletePlanCollaborator_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeletePlanCollaborator(childComplexity, args["id"].(uuid.UUID)), true + + case "Mutation.deletePlanCR": + if e.complexity.Mutation.DeletePlanCr == nil { + break + } + + args, err := ec.field_Mutation_deletePlanCR_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeletePlanCr(childComplexity, args["id"].(uuid.UUID)), true + + case "Mutation.deletePlanDocument": + if e.complexity.Mutation.DeletePlanDocument == nil { + break + } + + args, err := ec.field_Mutation_deletePlanDocument_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeletePlanDocument(childComplexity, args["id"].(uuid.UUID)), true + + case "Mutation.deletePlanFavorite": + if e.complexity.Mutation.DeletePlanFavorite == nil { + break + } + + args, err := ec.field_Mutation_deletePlanFavorite_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeletePlanFavorite(childComplexity, args["modelPlanID"].(uuid.UUID)), true + + case "Mutation.deletePlanTDL": + if e.complexity.Mutation.DeletePlanTdl == nil { + break + } + + args, err := ec.field_Mutation_deletePlanTDL_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeletePlanTdl(childComplexity, args["id"].(uuid.UUID)), true + + case "Mutation.linkNewPlanDocument": + if e.complexity.Mutation.LinkNewPlanDocument == nil { + break + } + + args, err := ec.field_Mutation_linkNewPlanDocument_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.LinkNewPlanDocument(childComplexity, args["input"].(model.PlanDocumentLinkInput)), true + + case "Mutation.lockLockableSection": + if e.complexity.Mutation.LockLockableSection == nil { + break + } + + args, err := ec.field_Mutation_lockLockableSection_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.LockLockableSection(childComplexity, args["modelPlanID"].(uuid.UUID), args["section"].(models.LockableSection)), true + + case "Mutation.markAllNotificationsAsRead": + if e.complexity.Mutation.MarkAllNotificationsAsRead == nil { + break + } + + return e.complexity.Mutation.MarkAllNotificationsAsRead(childComplexity), true + + case "Mutation.markMTOReadyForReview": + if e.complexity.Mutation.MarkMTOReadyForReview == nil { + break + } + + args, err := ec.field_Mutation_markMTOReadyForReview_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.MarkMTOReadyForReview(childComplexity, args["modelPlanID"].(uuid.UUID), args["readyForReview"].(bool)), true + + case "Mutation.markNotificationAsRead": + if e.complexity.Mutation.MarkNotificationAsRead == nil { + break + } + + args, err := ec.field_Mutation_markNotificationAsRead_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.MarkNotificationAsRead(childComplexity, args["notificationID"].(uuid.UUID)), true + + case "Mutation.removePlanDocumentSolutionLinks": + if e.complexity.Mutation.RemovePlanDocumentSolutionLinks == nil { + break + } + + args, err := ec.field_Mutation_removePlanDocumentSolutionLinks_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.RemovePlanDocumentSolutionLinks(childComplexity, args["solutionID"].(uuid.UUID), args["documentIDs"].([]uuid.UUID)), true + + case "Mutation.renameMTOCategory": + if e.complexity.Mutation.RenameMTOCategory == nil { + break + } + + args, err := ec.field_Mutation_renameMTOCategory_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.RenameMTOCategory(childComplexity, args["id"].(uuid.UUID), args["name"].(string)), true + + case "Mutation.reorderMTOCategory": + if e.complexity.Mutation.ReorderMTOCategory == nil { + break + } + + args, err := ec.field_Mutation_reorderMTOCategory_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.ReorderMTOCategory(childComplexity, args["id"].(uuid.UUID), args["newOrder"].(*int), args["parentID"].(*uuid.UUID)), true + + case "Mutation.reportAProblem": + if e.complexity.Mutation.ReportAProblem == nil { + break + } + + args, err := ec.field_Mutation_reportAProblem_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.ReportAProblem(childComplexity, args["input"].(model.ReportAProblemInput)), true + + case "Mutation.sendFeedbackEmail": + if e.complexity.Mutation.SendFeedbackEmail == nil { + break + } + + args, err := ec.field_Mutation_sendFeedbackEmail_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.SendFeedbackEmail(childComplexity, args["input"].(model.SendFeedbackEmailInput)), true + + case "Mutation.shareModelPlan": + if e.complexity.Mutation.ShareModelPlan == nil { + break + } + + args, err := ec.field_Mutation_shareModelPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.ShareModelPlan(childComplexity, args["modelPlanID"].(uuid.UUID), args["viewFilter"].(*models.ModelViewFilter), args["usernames"].([]string), args["optionalMessage"].(*string)), true + + case "Mutation.unlockAllLockableSections": + if e.complexity.Mutation.UnlockAllLockableSections == nil { + break + } + + args, err := ec.field_Mutation_unlockAllLockableSections_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UnlockAllLockableSections(childComplexity, args["modelPlanID"].(uuid.UUID)), true + + case "Mutation.unlockLockableSection": + if e.complexity.Mutation.UnlockLockableSection == nil { + break + } + + args, err := ec.field_Mutation_unlockLockableSection_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UnlockLockableSection(childComplexity, args["modelPlanID"].(uuid.UUID), args["section"].(models.LockableSection)), true + + case "Mutation.updateCustomOperationalNeedByID": + if e.complexity.Mutation.UpdateCustomOperationalNeedByID == nil { + break + } + + args, err := ec.field_Mutation_updateCustomOperationalNeedByID_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateCustomOperationalNeedByID(childComplexity, args["id"].(uuid.UUID), args["customNeedType"].(*string), args["needed"].(bool)), true + + case "Mutation.updateExistingModelLinks": + if e.complexity.Mutation.UpdateExistingModelLinks == nil { + break + } + + args, err := ec.field_Mutation_updateExistingModelLinks_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateExistingModelLinks(childComplexity, args["modelPlanID"].(uuid.UUID), args["fieldName"].(models.ExisitingModelLinkFieldType), args["existingModelIDs"].([]int), args["currentModelPlanIDs"].([]uuid.UUID)), true + + case "Mutation.updateMTOMilestone": + if e.complexity.Mutation.UpdateMTOMilestone == nil { + break + } + + args, err := ec.field_Mutation_updateMTOMilestone_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateMTOMilestone(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updateMTOSolution": + if e.complexity.Mutation.UpdateMTOSolution == nil { + break + } + + args, err := ec.field_Mutation_updateMTOSolution_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateMTOSolution(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updateModelPlan": + if e.complexity.Mutation.UpdateModelPlan == nil { + break + } + + args, err := ec.field_Mutation_updateModelPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateModelPlan(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updateOperationalSolution": + if e.complexity.Mutation.UpdateOperationalSolution == nil { + break + } + + args, err := ec.field_Mutation_updateOperationalSolution_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateOperationalSolution(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updateOperationalSolutionSubtasks": + if e.complexity.Mutation.UpdateOperationalSolutionSubtasks == nil { + break + } + + args, err := ec.field_Mutation_updateOperationalSolutionSubtasks_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateOperationalSolutionSubtasks(childComplexity, args["inputs"].([]*model.UpdateOperationalSolutionSubtaskInput)), true + + case "Mutation.updatePlanBasics": + if e.complexity.Mutation.UpdatePlanBasics == nil { + break + } + + args, err := ec.field_Mutation_updatePlanBasics_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanBasics(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updatePlanBeneficiaries": + if e.complexity.Mutation.UpdatePlanBeneficiaries == nil { + break + } + + args, err := ec.field_Mutation_updatePlanBeneficiaries_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanBeneficiaries(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updatePlanCollaborator": + if e.complexity.Mutation.UpdatePlanCollaborator == nil { + break + } + + args, err := ec.field_Mutation_updatePlanCollaborator_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanCollaborator(childComplexity, args["id"].(uuid.UUID), args["newRoles"].([]models.TeamRole)), true + + case "Mutation.updatePlanCR": + if e.complexity.Mutation.UpdatePlanCr == nil { + break + } + + args, err := ec.field_Mutation_updatePlanCR_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanCr(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updatePlanDataExchangeApproach": + if e.complexity.Mutation.UpdatePlanDataExchangeApproach == nil { + break + } + + args, err := ec.field_Mutation_updatePlanDataExchangeApproach_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanDataExchangeApproach(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updatePlanGeneralCharacteristics": + if e.complexity.Mutation.UpdatePlanGeneralCharacteristics == nil { + break + } + + args, err := ec.field_Mutation_updatePlanGeneralCharacteristics_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanGeneralCharacteristics(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updatePlanOpsEvalAndLearning": + if e.complexity.Mutation.UpdatePlanOpsEvalAndLearning == nil { + break + } + + args, err := ec.field_Mutation_updatePlanOpsEvalAndLearning_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanOpsEvalAndLearning(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updatePlanParticipantsAndProviders": + if e.complexity.Mutation.UpdatePlanParticipantsAndProviders == nil { + break + } + + args, err := ec.field_Mutation_updatePlanParticipantsAndProviders_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanParticipantsAndProviders(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updatePlanPayments": + if e.complexity.Mutation.UpdatePlanPayments == nil { + break + } + + args, err := ec.field_Mutation_updatePlanPayments_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanPayments(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updatePlanTDL": + if e.complexity.Mutation.UpdatePlanTdl == nil { + break + } + + args, err := ec.field_Mutation_updatePlanTDL_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePlanTdl(childComplexity, args["id"].(uuid.UUID), args["changes"].(map[string]interface{})), true + + case "Mutation.updateUserNotificationPreferences": + if e.complexity.Mutation.UpdateUserNotificationPreferences == nil { + break + } + + args, err := ec.field_Mutation_updateUserNotificationPreferences_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateUserNotificationPreferences(childComplexity, args["changes"].(map[string]interface{})), true + + case "Mutation.updateUserViewCustomization": + if e.complexity.Mutation.UpdateUserViewCustomization == nil { + break + } + + args, err := ec.field_Mutation_updateUserViewCustomization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateUserViewCustomization(childComplexity, args["changes"].(map[string]interface{})), true + + case "Mutation.uploadNewPlanDocument": + if e.complexity.Mutation.UploadNewPlanDocument == nil { + break + } + + args, err := ec.field_Mutation_uploadNewPlanDocument_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UploadNewPlanDocument(childComplexity, args["input"].(model.PlanDocumentInput)), true + + case "NDAInfo.agreed": + if e.complexity.NDAInfo.Agreed == nil { + break + } + + return e.complexity.NDAInfo.Agreed(childComplexity), true + + case "NDAInfo.agreedDts": + if e.complexity.NDAInfo.AgreedDts == nil { + break + } + + return e.complexity.NDAInfo.AgreedDts(childComplexity), true + + case "NewDiscussionRepliedActivityMeta.content": + if e.complexity.NewDiscussionRepliedActivityMeta.Content == nil { + break + } + + return e.complexity.NewDiscussionRepliedActivityMeta.Content(childComplexity), true + + case "NewDiscussionRepliedActivityMeta.discussion": + if e.complexity.NewDiscussionRepliedActivityMeta.Discussion == nil { + break + } + + return e.complexity.NewDiscussionRepliedActivityMeta.Discussion(childComplexity), true + + case "NewDiscussionRepliedActivityMeta.discussionID": + if e.complexity.NewDiscussionRepliedActivityMeta.DiscussionID == nil { + break + } + + return e.complexity.NewDiscussionRepliedActivityMeta.DiscussionID(childComplexity), true + + case "NewDiscussionRepliedActivityMeta.modelPlan": + if e.complexity.NewDiscussionRepliedActivityMeta.ModelPlan == nil { + break + } + + return e.complexity.NewDiscussionRepliedActivityMeta.ModelPlan(childComplexity), true + + case "NewDiscussionRepliedActivityMeta.modelPlanID": + if e.complexity.NewDiscussionRepliedActivityMeta.ModelPlanID == nil { + break + } + + return e.complexity.NewDiscussionRepliedActivityMeta.ModelPlanID(childComplexity), true + + case "NewDiscussionRepliedActivityMeta.reply": + if e.complexity.NewDiscussionRepliedActivityMeta.Reply == nil { + break + } + + return e.complexity.NewDiscussionRepliedActivityMeta.Reply(childComplexity), true + + case "NewDiscussionRepliedActivityMeta.replyID": + if e.complexity.NewDiscussionRepliedActivityMeta.ReplyID == nil { + break + } + + return e.complexity.NewDiscussionRepliedActivityMeta.ReplyID(childComplexity), true + + case "NewDiscussionRepliedActivityMeta.type": + if e.complexity.NewDiscussionRepliedActivityMeta.Type == nil { + break + } + + return e.complexity.NewDiscussionRepliedActivityMeta.Type(childComplexity), true + + case "NewDiscussionRepliedActivityMeta.version": + if e.complexity.NewDiscussionRepliedActivityMeta.Version == nil { + break + } + + return e.complexity.NewDiscussionRepliedActivityMeta.Version(childComplexity), true + + case "NewModelPlanActivityMeta.modelPlan": + if e.complexity.NewModelPlanActivityMeta.ModelPlan == nil { + break + } + + return e.complexity.NewModelPlanActivityMeta.ModelPlan(childComplexity), true + + case "NewModelPlanActivityMeta.modelPlanID": + if e.complexity.NewModelPlanActivityMeta.ModelPlanID == nil { + break + } + + return e.complexity.NewModelPlanActivityMeta.ModelPlanID(childComplexity), true + + case "NewModelPlanActivityMeta.type": + if e.complexity.NewModelPlanActivityMeta.Type == nil { + break + } + + return e.complexity.NewModelPlanActivityMeta.Type(childComplexity), true + + case "NewModelPlanActivityMeta.version": + if e.complexity.NewModelPlanActivityMeta.Version == nil { + break + } + + return e.complexity.NewModelPlanActivityMeta.Version(childComplexity), true + + case "OperationalNeed.createdBy": + if e.complexity.OperationalNeed.CreatedBy == nil { + break + } + + return e.complexity.OperationalNeed.CreatedBy(childComplexity), true + + case "OperationalNeed.createdByUserAccount": + if e.complexity.OperationalNeed.CreatedByUserAccount == nil { + break + } + + return e.complexity.OperationalNeed.CreatedByUserAccount(childComplexity), true + + case "OperationalNeed.createdDts": + if e.complexity.OperationalNeed.CreatedDts == nil { + break + } + + return e.complexity.OperationalNeed.CreatedDts(childComplexity), true + + case "OperationalNeed.id": + if e.complexity.OperationalNeed.ID == nil { + break + } + + return e.complexity.OperationalNeed.ID(childComplexity), true + + case "OperationalNeed.key": + if e.complexity.OperationalNeed.Key == nil { + break + } + + return e.complexity.OperationalNeed.Key(childComplexity), true + + case "OperationalNeed.modelPlanID": + if e.complexity.OperationalNeed.ModelPlanID == nil { + break + } + + return e.complexity.OperationalNeed.ModelPlanID(childComplexity), true + + case "OperationalNeed.modifiedBy": + if e.complexity.OperationalNeed.ModifiedBy == nil { + break + } + + return e.complexity.OperationalNeed.ModifiedBy(childComplexity), true + + case "OperationalNeed.modifiedByUserAccount": + if e.complexity.OperationalNeed.ModifiedByUserAccount == nil { + break + } + + return e.complexity.OperationalNeed.ModifiedByUserAccount(childComplexity), true + + case "OperationalNeed.modifiedDts": + if e.complexity.OperationalNeed.ModifiedDts == nil { + break + } + + return e.complexity.OperationalNeed.ModifiedDts(childComplexity), true + + case "OperationalNeed.name": + if e.complexity.OperationalNeed.Name == nil { + break + } + + return e.complexity.OperationalNeed.Name(childComplexity), true + + case "OperationalNeed.nameOther": + if e.complexity.OperationalNeed.NameOther == nil { + break + } + + return e.complexity.OperationalNeed.NameOther(childComplexity), true + + case "OperationalNeed.needed": + if e.complexity.OperationalNeed.Needed == nil { + break + } + + return e.complexity.OperationalNeed.Needed(childComplexity), true + + case "OperationalNeed.section": + if e.complexity.OperationalNeed.Section == nil { + break + } + + return e.complexity.OperationalNeed.Section(childComplexity), true + + case "OperationalNeed.solutions": + if e.complexity.OperationalNeed.Solutions == nil { + break + } + + args, err := ec.field_OperationalNeed_solutions_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.OperationalNeed.Solutions(childComplexity, args["includeNotNeeded"].(bool)), true + + case "OperationalNeedTranslation.key": + if e.complexity.OperationalNeedTranslation.Key == nil { + break + } + + return e.complexity.OperationalNeedTranslation.Key(childComplexity), true + + case "OperationalNeedTranslation.name": + if e.complexity.OperationalNeedTranslation.Name == nil { + break + } + + return e.complexity.OperationalNeedTranslation.Name(childComplexity), true + + case "OperationalNeedTranslation.nameOther": + if e.complexity.OperationalNeedTranslation.NameOther == nil { + break + } + + return e.complexity.OperationalNeedTranslation.NameOther(childComplexity), true + + case "OperationalNeedTranslation.needed": + if e.complexity.OperationalNeedTranslation.Needed == nil { + break + } + + return e.complexity.OperationalNeedTranslation.Needed(childComplexity), true + + case "OperationalNeedTranslation.section": + if e.complexity.OperationalNeedTranslation.Section == nil { + break + } + + return e.complexity.OperationalNeedTranslation.Section(childComplexity), true + + case "OperationalSolution.createdBy": + if e.complexity.OperationalSolution.CreatedBy == nil { + break + } + + return e.complexity.OperationalSolution.CreatedBy(childComplexity), true + + case "OperationalSolution.createdByUserAccount": + if e.complexity.OperationalSolution.CreatedByUserAccount == nil { + break + } + + return e.complexity.OperationalSolution.CreatedByUserAccount(childComplexity), true + + case "OperationalSolution.createdDts": + if e.complexity.OperationalSolution.CreatedDts == nil { + break + } + + return e.complexity.OperationalSolution.CreatedDts(childComplexity), true + + case "OperationalSolution.documents": + if e.complexity.OperationalSolution.Documents == nil { + break + } + + return e.complexity.OperationalSolution.Documents(childComplexity), true + + case "OperationalSolution.id": + if e.complexity.OperationalSolution.ID == nil { + break + } + + return e.complexity.OperationalSolution.ID(childComplexity), true + + case "OperationalSolution.isCommonSolution": + if e.complexity.OperationalSolution.IsCommonSolution == nil { + break + } + + return e.complexity.OperationalSolution.IsCommonSolution(childComplexity), true + + case "OperationalSolution.isOther": + if e.complexity.OperationalSolution.IsOther == nil { + break + } + + return e.complexity.OperationalSolution.IsOther(childComplexity), true + + case "OperationalSolution.key": + if e.complexity.OperationalSolution.Key == nil { + break + } + + return e.complexity.OperationalSolution.Key(childComplexity), true + + case "OperationalSolution.modifiedBy": + if e.complexity.OperationalSolution.ModifiedBy == nil { + break + } + + return e.complexity.OperationalSolution.ModifiedBy(childComplexity), true + + case "OperationalSolution.modifiedByUserAccount": + if e.complexity.OperationalSolution.ModifiedByUserAccount == nil { + break + } + + return e.complexity.OperationalSolution.ModifiedByUserAccount(childComplexity), true + + case "OperationalSolution.modifiedDts": + if e.complexity.OperationalSolution.ModifiedDts == nil { + break + } + + return e.complexity.OperationalSolution.ModifiedDts(childComplexity), true + + case "OperationalSolution.mustFinishDts": + if e.complexity.OperationalSolution.MustFinishDts == nil { + break + } + + return e.complexity.OperationalSolution.MustFinishDts(childComplexity), true + + case "OperationalSolution.mustStartDts": + if e.complexity.OperationalSolution.MustStartDts == nil { + break + } + + return e.complexity.OperationalSolution.MustStartDts(childComplexity), true + + case "OperationalSolution.name": + if e.complexity.OperationalSolution.Name == nil { + break + } + + return e.complexity.OperationalSolution.Name(childComplexity), true + + case "OperationalSolution.nameOther": + if e.complexity.OperationalSolution.NameOther == nil { + break + } + + return e.complexity.OperationalSolution.NameOther(childComplexity), true + + case "OperationalSolution.needed": + if e.complexity.OperationalSolution.Needed == nil { + break + } + + return e.complexity.OperationalSolution.Needed(childComplexity), true + + case "OperationalSolution.operationalNeedID": + if e.complexity.OperationalSolution.OperationalNeedID == nil { + break + } + + return e.complexity.OperationalSolution.OperationalNeedID(childComplexity), true + + case "OperationalSolution.operationalSolutionSubtasks": + if e.complexity.OperationalSolution.OperationalSolutionSubtasks == nil { + break + } + + return e.complexity.OperationalSolution.OperationalSolutionSubtasks(childComplexity), true + + case "OperationalSolution.otherHeader": + if e.complexity.OperationalSolution.OtherHeader == nil { + break + } + + return e.complexity.OperationalSolution.OtherHeader(childComplexity), true + + case "OperationalSolution.pocEmail": + if e.complexity.OperationalSolution.PocEmail == nil { + break + } + + return e.complexity.OperationalSolution.PocEmail(childComplexity), true + + case "OperationalSolution.pocName": + if e.complexity.OperationalSolution.PocName == nil { + break + } + + return e.complexity.OperationalSolution.PocName(childComplexity), true + + case "OperationalSolution.solutionType": + if e.complexity.OperationalSolution.SolutionType == nil { + break + } + + return e.complexity.OperationalSolution.SolutionType(childComplexity), true + + case "OperationalSolution.status": + if e.complexity.OperationalSolution.Status == nil { + break + } + + return e.complexity.OperationalSolution.Status(childComplexity), true + + case "OperationalSolutionSubtask.createdBy": + if e.complexity.OperationalSolutionSubtask.CreatedBy == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.CreatedBy(childComplexity), true + + case "OperationalSolutionSubtask.createdByUserAccount": + if e.complexity.OperationalSolutionSubtask.CreatedByUserAccount == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.CreatedByUserAccount(childComplexity), true + + case "OperationalSolutionSubtask.createdDts": + if e.complexity.OperationalSolutionSubtask.CreatedDts == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.CreatedDts(childComplexity), true + + case "OperationalSolutionSubtask.id": + if e.complexity.OperationalSolutionSubtask.ID == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.ID(childComplexity), true + + case "OperationalSolutionSubtask.modifiedBy": + if e.complexity.OperationalSolutionSubtask.ModifiedBy == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.ModifiedBy(childComplexity), true + + case "OperationalSolutionSubtask.modifiedByUserAccount": + if e.complexity.OperationalSolutionSubtask.ModifiedByUserAccount == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.ModifiedByUserAccount(childComplexity), true + + case "OperationalSolutionSubtask.modifiedDts": + if e.complexity.OperationalSolutionSubtask.ModifiedDts == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.ModifiedDts(childComplexity), true + + case "OperationalSolutionSubtask.name": + if e.complexity.OperationalSolutionSubtask.Name == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.Name(childComplexity), true + + case "OperationalSolutionSubtask.solutionID": + if e.complexity.OperationalSolutionSubtask.SolutionID == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.SolutionID(childComplexity), true + + case "OperationalSolutionSubtask.status": + if e.complexity.OperationalSolutionSubtask.Status == nil { + break + } + + return e.complexity.OperationalSolutionSubtask.Status(childComplexity), true + + case "OperationalSolutionSubtaskTranslation.name": + if e.complexity.OperationalSolutionSubtaskTranslation.Name == nil { + break + } + + return e.complexity.OperationalSolutionSubtaskTranslation.Name(childComplexity), true + + case "OperationalSolutionSubtaskTranslation.status": + if e.complexity.OperationalSolutionSubtaskTranslation.Status == nil { + break + } + + return e.complexity.OperationalSolutionSubtaskTranslation.Status(childComplexity), true + + case "OperationalSolutionTranslation.isOther": + if e.complexity.OperationalSolutionTranslation.IsOther == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.IsOther(childComplexity), true + + case "OperationalSolutionTranslation.key": + if e.complexity.OperationalSolutionTranslation.Key == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.Key(childComplexity), true + + case "OperationalSolutionTranslation.mustFinishDts": + if e.complexity.OperationalSolutionTranslation.MustFinishDts == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.MustFinishDts(childComplexity), true + + case "OperationalSolutionTranslation.mustStartDts": + if e.complexity.OperationalSolutionTranslation.MustStartDts == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.MustStartDts(childComplexity), true + + case "OperationalSolutionTranslation.name": + if e.complexity.OperationalSolutionTranslation.Name == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.Name(childComplexity), true + + case "OperationalSolutionTranslation.nameOther": + if e.complexity.OperationalSolutionTranslation.NameOther == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.NameOther(childComplexity), true + + case "OperationalSolutionTranslation.needed": + if e.complexity.OperationalSolutionTranslation.Needed == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.Needed(childComplexity), true + + case "OperationalSolutionTranslation.otherHeader": + if e.complexity.OperationalSolutionTranslation.OtherHeader == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.OtherHeader(childComplexity), true + + case "OperationalSolutionTranslation.pocEmail": + if e.complexity.OperationalSolutionTranslation.PocEmail == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.PocEmail(childComplexity), true + + case "OperationalSolutionTranslation.pocName": + if e.complexity.OperationalSolutionTranslation.PocName == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.PocName(childComplexity), true + + case "OperationalSolutionTranslation.status": + if e.complexity.OperationalSolutionTranslation.Status == nil { + break + } + + return e.complexity.OperationalSolutionTranslation.Status(childComplexity), true + + case "PhaseSuggestion.phase": + if e.complexity.PhaseSuggestion.Phase == nil { + break + } + + return e.complexity.PhaseSuggestion.Phase(childComplexity), true + + case "PhaseSuggestion.suggestedStatuses": + if e.complexity.PhaseSuggestion.SuggestedStatuses == nil { + break + } + + return e.complexity.PhaseSuggestion.SuggestedStatuses(childComplexity), true + + case "PlanBasics.additionalModelCategories": + if e.complexity.PlanBasics.AdditionalModelCategories == nil { + break + } + + return e.complexity.PlanBasics.AdditionalModelCategories(childComplexity), true + + case "PlanBasics.amsModelID": + if e.complexity.PlanBasics.AmsModelID == nil { + break + } + + return e.complexity.PlanBasics.AmsModelID(childComplexity), true + + case "PlanBasics.announced": + if e.complexity.PlanBasics.Announced == nil { + break + } + + return e.complexity.PlanBasics.Announced(childComplexity), true + + case "PlanBasics.applicationsEnd": + if e.complexity.PlanBasics.ApplicationsEnd == nil { + break + } + + return e.complexity.PlanBasics.ApplicationsEnd(childComplexity), true + + case "PlanBasics.applicationsStart": + if e.complexity.PlanBasics.ApplicationsStart == nil { + break + } + + return e.complexity.PlanBasics.ApplicationsStart(childComplexity), true + + case "PlanBasics.clearanceEnds": + if e.complexity.PlanBasics.ClearanceEnds == nil { + break + } + + return e.complexity.PlanBasics.ClearanceEnds(childComplexity), true + + case "PlanBasics.clearanceStarts": + if e.complexity.PlanBasics.ClearanceStarts == nil { + break + } + + return e.complexity.PlanBasics.ClearanceStarts(childComplexity), true + + case "PlanBasics.cmmiGroups": + if e.complexity.PlanBasics.CmmiGroups == nil { + break + } + + return e.complexity.PlanBasics.CmmiGroups(childComplexity), true + + case "PlanBasics.cmsCenters": + if e.complexity.PlanBasics.CmsCenters == nil { + break + } + + return e.complexity.PlanBasics.CmsCenters(childComplexity), true + + case "PlanBasics.completeICIP": + if e.complexity.PlanBasics.CompleteICIP == nil { + break + } + + return e.complexity.PlanBasics.CompleteICIP(childComplexity), true + + case "PlanBasics.createdBy": + if e.complexity.PlanBasics.CreatedBy == nil { + break + } + + return e.complexity.PlanBasics.CreatedBy(childComplexity), true + + case "PlanBasics.createdByUserAccount": + if e.complexity.PlanBasics.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanBasics.CreatedByUserAccount(childComplexity), true + + case "PlanBasics.createdDts": + if e.complexity.PlanBasics.CreatedDts == nil { + break + } + + return e.complexity.PlanBasics.CreatedDts(childComplexity), true + + case "PlanBasics.demoCode": + if e.complexity.PlanBasics.DemoCode == nil { + break + } + + return e.complexity.PlanBasics.DemoCode(childComplexity), true + + case "PlanBasics.goal": + if e.complexity.PlanBasics.Goal == nil { + break + } + + return e.complexity.PlanBasics.Goal(childComplexity), true + + case "PlanBasics.highLevelNote": + if e.complexity.PlanBasics.HighLevelNote == nil { + break + } + + return e.complexity.PlanBasics.HighLevelNote(childComplexity), true + + case "PlanBasics.id": + if e.complexity.PlanBasics.ID == nil { + break + } + + return e.complexity.PlanBasics.ID(childComplexity), true + + case "PlanBasics.modelCategory": + if e.complexity.PlanBasics.ModelCategory == nil { + break + } + + return e.complexity.PlanBasics.ModelCategory(childComplexity), true + + case "PlanBasics.modelPlanID": + if e.complexity.PlanBasics.ModelPlanID == nil { + break + } + + return e.complexity.PlanBasics.ModelPlanID(childComplexity), true + + case "PlanBasics.modelType": + if e.complexity.PlanBasics.ModelType == nil { + break + } + + return e.complexity.PlanBasics.ModelType(childComplexity), true + + case "PlanBasics.modelTypeOther": + if e.complexity.PlanBasics.ModelTypeOther == nil { + break + } + + return e.complexity.PlanBasics.ModelTypeOther(childComplexity), true + + case "PlanBasics.modifiedBy": + if e.complexity.PlanBasics.ModifiedBy == nil { + break + } + + return e.complexity.PlanBasics.ModifiedBy(childComplexity), true + + case "PlanBasics.modifiedByUserAccount": + if e.complexity.PlanBasics.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanBasics.ModifiedByUserAccount(childComplexity), true + + case "PlanBasics.modifiedDts": + if e.complexity.PlanBasics.ModifiedDts == nil { + break + } + + return e.complexity.PlanBasics.ModifiedDts(childComplexity), true + + case "PlanBasics.note": + if e.complexity.PlanBasics.Note == nil { + break + } + + return e.complexity.PlanBasics.Note(childComplexity), true + + case "PlanBasics.performancePeriodEnds": + if e.complexity.PlanBasics.PerformancePeriodEnds == nil { + break + } + + return e.complexity.PlanBasics.PerformancePeriodEnds(childComplexity), true + + case "PlanBasics.performancePeriodStarts": + if e.complexity.PlanBasics.PerformancePeriodStarts == nil { + break + } + + return e.complexity.PlanBasics.PerformancePeriodStarts(childComplexity), true + + case "PlanBasics.phasedIn": + if e.complexity.PlanBasics.PhasedIn == nil { + break + } + + return e.complexity.PlanBasics.PhasedIn(childComplexity), true + + case "PlanBasics.phasedInNote": + if e.complexity.PlanBasics.PhasedInNote == nil { + break + } + + return e.complexity.PlanBasics.PhasedInNote(childComplexity), true + + case "PlanBasics.problem": + if e.complexity.PlanBasics.Problem == nil { + break + } + + return e.complexity.PlanBasics.Problem(childComplexity), true + + case "PlanBasics.readyForClearanceBy": + if e.complexity.PlanBasics.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanBasics.ReadyForClearanceBy(childComplexity), true + + case "PlanBasics.readyForClearanceByUserAccount": + if e.complexity.PlanBasics.ReadyForClearanceByUserAccount == nil { + break + } + + return e.complexity.PlanBasics.ReadyForClearanceByUserAccount(childComplexity), true + + case "PlanBasics.readyForClearanceDts": + if e.complexity.PlanBasics.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanBasics.ReadyForClearanceDts(childComplexity), true + + case "PlanBasics.readyForReviewBy": + if e.complexity.PlanBasics.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanBasics.ReadyForReviewBy(childComplexity), true + + case "PlanBasics.readyForReviewByUserAccount": + if e.complexity.PlanBasics.ReadyForReviewByUserAccount == nil { + break + } + + return e.complexity.PlanBasics.ReadyForReviewByUserAccount(childComplexity), true + + case "PlanBasics.readyForReviewDts": + if e.complexity.PlanBasics.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanBasics.ReadyForReviewDts(childComplexity), true + + case "PlanBasics.status": + if e.complexity.PlanBasics.Status == nil { + break + } + + return e.complexity.PlanBasics.Status(childComplexity), true + + case "PlanBasics.testInterventions": + if e.complexity.PlanBasics.TestInterventions == nil { + break + } + + return e.complexity.PlanBasics.TestInterventions(childComplexity), true + + case "PlanBasics.wrapUpEnds": + if e.complexity.PlanBasics.WrapUpEnds == nil { + break + } + + return e.complexity.PlanBasics.WrapUpEnds(childComplexity), true + + case "PlanBasicsTranslation.additionalModelCategories": + if e.complexity.PlanBasicsTranslation.AdditionalModelCategories == nil { + break + } + + return e.complexity.PlanBasicsTranslation.AdditionalModelCategories(childComplexity), true + + case "PlanBasicsTranslation.amsModelID": + if e.complexity.PlanBasicsTranslation.AmsModelID == nil { + break + } + + return e.complexity.PlanBasicsTranslation.AmsModelID(childComplexity), true + + case "PlanBasicsTranslation.announced": + if e.complexity.PlanBasicsTranslation.Announced == nil { + break + } + + return e.complexity.PlanBasicsTranslation.Announced(childComplexity), true + + case "PlanBasicsTranslation.applicationsEnd": + if e.complexity.PlanBasicsTranslation.ApplicationsEnd == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ApplicationsEnd(childComplexity), true + + case "PlanBasicsTranslation.applicationsStart": + if e.complexity.PlanBasicsTranslation.ApplicationsStart == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ApplicationsStart(childComplexity), true + + case "PlanBasicsTranslation.clearanceEnds": + if e.complexity.PlanBasicsTranslation.ClearanceEnds == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ClearanceEnds(childComplexity), true + + case "PlanBasicsTranslation.clearanceStarts": + if e.complexity.PlanBasicsTranslation.ClearanceStarts == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ClearanceStarts(childComplexity), true + + case "PlanBasicsTranslation.cmmiGroups": + if e.complexity.PlanBasicsTranslation.CmmiGroups == nil { + break + } + + return e.complexity.PlanBasicsTranslation.CmmiGroups(childComplexity), true + + case "PlanBasicsTranslation.cmsCenters": + if e.complexity.PlanBasicsTranslation.CmsCenters == nil { + break + } + + return e.complexity.PlanBasicsTranslation.CmsCenters(childComplexity), true + + case "PlanBasicsTranslation.completeICIP": + if e.complexity.PlanBasicsTranslation.CompleteIcip == nil { + break + } + + return e.complexity.PlanBasicsTranslation.CompleteIcip(childComplexity), true + + case "PlanBasicsTranslation.demoCode": + if e.complexity.PlanBasicsTranslation.DemoCode == nil { + break + } + + return e.complexity.PlanBasicsTranslation.DemoCode(childComplexity), true + + case "PlanBasicsTranslation.goal": + if e.complexity.PlanBasicsTranslation.Goal == nil { + break + } + + return e.complexity.PlanBasicsTranslation.Goal(childComplexity), true + + case "PlanBasicsTranslation.highLevelNote": + if e.complexity.PlanBasicsTranslation.HighLevelNote == nil { + break + } + + return e.complexity.PlanBasicsTranslation.HighLevelNote(childComplexity), true + + case "PlanBasicsTranslation.modelCategory": + if e.complexity.PlanBasicsTranslation.ModelCategory == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ModelCategory(childComplexity), true + + case "PlanBasicsTranslation.modelType": + if e.complexity.PlanBasicsTranslation.ModelType == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ModelType(childComplexity), true + + case "PlanBasicsTranslation.modelTypeOther": + if e.complexity.PlanBasicsTranslation.ModelTypeOther == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ModelTypeOther(childComplexity), true + + case "PlanBasicsTranslation.note": + if e.complexity.PlanBasicsTranslation.Note == nil { + break + } + + return e.complexity.PlanBasicsTranslation.Note(childComplexity), true + + case "PlanBasicsTranslation.performancePeriodEnds": + if e.complexity.PlanBasicsTranslation.PerformancePeriodEnds == nil { + break + } + + return e.complexity.PlanBasicsTranslation.PerformancePeriodEnds(childComplexity), true + + case "PlanBasicsTranslation.performancePeriodStarts": + if e.complexity.PlanBasicsTranslation.PerformancePeriodStarts == nil { + break + } + + return e.complexity.PlanBasicsTranslation.PerformancePeriodStarts(childComplexity), true + + case "PlanBasicsTranslation.phasedIn": + if e.complexity.PlanBasicsTranslation.PhasedIn == nil { + break + } + + return e.complexity.PlanBasicsTranslation.PhasedIn(childComplexity), true + + case "PlanBasicsTranslation.phasedInNote": + if e.complexity.PlanBasicsTranslation.PhasedInNote == nil { + break + } + + return e.complexity.PlanBasicsTranslation.PhasedInNote(childComplexity), true + + case "PlanBasicsTranslation.problem": + if e.complexity.PlanBasicsTranslation.Problem == nil { + break + } + + return e.complexity.PlanBasicsTranslation.Problem(childComplexity), true + + case "PlanBasicsTranslation.readyForClearanceBy": + if e.complexity.PlanBasicsTranslation.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ReadyForClearanceBy(childComplexity), true + + case "PlanBasicsTranslation.readyForClearanceDts": + if e.complexity.PlanBasicsTranslation.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ReadyForClearanceDts(childComplexity), true + + case "PlanBasicsTranslation.readyForReviewBy": + if e.complexity.PlanBasicsTranslation.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ReadyForReviewBy(childComplexity), true + + case "PlanBasicsTranslation.readyForReviewDts": + if e.complexity.PlanBasicsTranslation.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanBasicsTranslation.ReadyForReviewDts(childComplexity), true + + case "PlanBasicsTranslation.status": + if e.complexity.PlanBasicsTranslation.Status == nil { + break + } + + return e.complexity.PlanBasicsTranslation.Status(childComplexity), true + + case "PlanBasicsTranslation.testInterventions": + if e.complexity.PlanBasicsTranslation.TestInterventions == nil { + break + } + + return e.complexity.PlanBasicsTranslation.TestInterventions(childComplexity), true + + case "PlanBasicsTranslation.wrapUpEnds": + if e.complexity.PlanBasicsTranslation.WrapUpEnds == nil { + break + } + + return e.complexity.PlanBasicsTranslation.WrapUpEnds(childComplexity), true + + case "PlanBeneficiaries.beneficiaries": + if e.complexity.PlanBeneficiaries.Beneficiaries == nil { + break + } + + return e.complexity.PlanBeneficiaries.Beneficiaries(childComplexity), true + + case "PlanBeneficiaries.beneficiariesNote": + if e.complexity.PlanBeneficiaries.BeneficiariesNote == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiariesNote(childComplexity), true + + case "PlanBeneficiaries.beneficiariesOther": + if e.complexity.PlanBeneficiaries.BeneficiariesOther == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiariesOther(childComplexity), true + + case "PlanBeneficiaries.beneficiaryOverlap": + if e.complexity.PlanBeneficiaries.BeneficiaryOverlap == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiaryOverlap(childComplexity), true + + case "PlanBeneficiaries.beneficiaryOverlapNote": + if e.complexity.PlanBeneficiaries.BeneficiaryOverlapNote == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiaryOverlapNote(childComplexity), true + + case "PlanBeneficiaries.beneficiaryRemovalFrequency": + if e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequency == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequency(childComplexity), true + + case "PlanBeneficiaries.beneficiaryRemovalFrequencyContinually": + if e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyContinually == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyContinually(childComplexity), true + + case "PlanBeneficiaries.beneficiaryRemovalFrequencyNote": + if e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyNote == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyNote(childComplexity), true + + case "PlanBeneficiaries.beneficiaryRemovalFrequencyOther": + if e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyOther == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiaryRemovalFrequencyOther(childComplexity), true + + case "PlanBeneficiaries.beneficiarySelectionFrequency": + if e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequency == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequency(childComplexity), true + + case "PlanBeneficiaries.beneficiarySelectionFrequencyContinually": + if e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyContinually == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyContinually(childComplexity), true + + case "PlanBeneficiaries.beneficiarySelectionFrequencyNote": + if e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyNote == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyNote(childComplexity), true + + case "PlanBeneficiaries.beneficiarySelectionFrequencyOther": + if e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyOther == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiarySelectionFrequencyOther(childComplexity), true + + case "PlanBeneficiaries.beneficiarySelectionMethod": + if e.complexity.PlanBeneficiaries.BeneficiarySelectionMethod == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiarySelectionMethod(childComplexity), true + + case "PlanBeneficiaries.beneficiarySelectionNote": + if e.complexity.PlanBeneficiaries.BeneficiarySelectionNote == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiarySelectionNote(childComplexity), true + + case "PlanBeneficiaries.beneficiarySelectionOther": + if e.complexity.PlanBeneficiaries.BeneficiarySelectionOther == nil { + break + } + + return e.complexity.PlanBeneficiaries.BeneficiarySelectionOther(childComplexity), true + + case "PlanBeneficiaries.confidenceNote": + if e.complexity.PlanBeneficiaries.ConfidenceNote == nil { + break + } + + return e.complexity.PlanBeneficiaries.ConfidenceNote(childComplexity), true + + case "PlanBeneficiaries.createdBy": + if e.complexity.PlanBeneficiaries.CreatedBy == nil { + break + } + + return e.complexity.PlanBeneficiaries.CreatedBy(childComplexity), true + + case "PlanBeneficiaries.createdByUserAccount": + if e.complexity.PlanBeneficiaries.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanBeneficiaries.CreatedByUserAccount(childComplexity), true + + case "PlanBeneficiaries.createdDts": + if e.complexity.PlanBeneficiaries.CreatedDts == nil { + break + } + + return e.complexity.PlanBeneficiaries.CreatedDts(childComplexity), true + + case "PlanBeneficiaries.diseaseSpecificGroup": + if e.complexity.PlanBeneficiaries.DiseaseSpecificGroup == nil { + break + } + + return e.complexity.PlanBeneficiaries.DiseaseSpecificGroup(childComplexity), true + + case "PlanBeneficiaries.estimateConfidence": + if e.complexity.PlanBeneficiaries.EstimateConfidence == nil { + break + } + + return e.complexity.PlanBeneficiaries.EstimateConfidence(childComplexity), true + + case "PlanBeneficiaries.excludeCertainCharacteristics": + if e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristics == nil { + break + } + + return e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristics(childComplexity), true + + case "PlanBeneficiaries.excludeCertainCharacteristicsCriteria": + if e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristicsCriteria == nil { + break + } + + return e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristicsCriteria(childComplexity), true + + case "PlanBeneficiaries.excludeCertainCharacteristicsNote": + if e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristicsNote == nil { + break + } + + return e.complexity.PlanBeneficiaries.ExcludeCertainCharacteristicsNote(childComplexity), true + + case "PlanBeneficiaries.id": + if e.complexity.PlanBeneficiaries.ID == nil { + break + } + + return e.complexity.PlanBeneficiaries.ID(childComplexity), true + + case "PlanBeneficiaries.modelPlanID": + if e.complexity.PlanBeneficiaries.ModelPlanID == nil { + break + } + + return e.complexity.PlanBeneficiaries.ModelPlanID(childComplexity), true + + case "PlanBeneficiaries.modifiedBy": + if e.complexity.PlanBeneficiaries.ModifiedBy == nil { + break + } + + return e.complexity.PlanBeneficiaries.ModifiedBy(childComplexity), true + + case "PlanBeneficiaries.modifiedByUserAccount": + if e.complexity.PlanBeneficiaries.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanBeneficiaries.ModifiedByUserAccount(childComplexity), true + + case "PlanBeneficiaries.modifiedDts": + if e.complexity.PlanBeneficiaries.ModifiedDts == nil { + break + } + + return e.complexity.PlanBeneficiaries.ModifiedDts(childComplexity), true + + case "PlanBeneficiaries.numberPeopleImpacted": + if e.complexity.PlanBeneficiaries.NumberPeopleImpacted == nil { + break + } + + return e.complexity.PlanBeneficiaries.NumberPeopleImpacted(childComplexity), true + + case "PlanBeneficiaries.precedenceRules": + if e.complexity.PlanBeneficiaries.PrecedenceRules == nil { + break + } + + return e.complexity.PlanBeneficiaries.PrecedenceRules(childComplexity), true + + case "PlanBeneficiaries.precedenceRulesNo": + if e.complexity.PlanBeneficiaries.PrecedenceRulesNo == nil { + break + } + + return e.complexity.PlanBeneficiaries.PrecedenceRulesNo(childComplexity), true + + case "PlanBeneficiaries.precedenceRulesNote": + if e.complexity.PlanBeneficiaries.PrecedenceRulesNote == nil { + break + } + + return e.complexity.PlanBeneficiaries.PrecedenceRulesNote(childComplexity), true + + case "PlanBeneficiaries.precedenceRulesYes": + if e.complexity.PlanBeneficiaries.PrecedenceRulesYes == nil { + break + } + + return e.complexity.PlanBeneficiaries.PrecedenceRulesYes(childComplexity), true + + case "PlanBeneficiaries.readyForClearanceBy": + if e.complexity.PlanBeneficiaries.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanBeneficiaries.ReadyForClearanceBy(childComplexity), true + + case "PlanBeneficiaries.readyForClearanceByUserAccount": + if e.complexity.PlanBeneficiaries.ReadyForClearanceByUserAccount == nil { + break + } + + return e.complexity.PlanBeneficiaries.ReadyForClearanceByUserAccount(childComplexity), true + + case "PlanBeneficiaries.readyForClearanceDts": + if e.complexity.PlanBeneficiaries.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanBeneficiaries.ReadyForClearanceDts(childComplexity), true + + case "PlanBeneficiaries.readyForReviewBy": + if e.complexity.PlanBeneficiaries.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanBeneficiaries.ReadyForReviewBy(childComplexity), true + + case "PlanBeneficiaries.readyForReviewByUserAccount": + if e.complexity.PlanBeneficiaries.ReadyForReviewByUserAccount == nil { + break + } + + return e.complexity.PlanBeneficiaries.ReadyForReviewByUserAccount(childComplexity), true + + case "PlanBeneficiaries.readyForReviewDts": + if e.complexity.PlanBeneficiaries.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanBeneficiaries.ReadyForReviewDts(childComplexity), true + + case "PlanBeneficiaries.status": + if e.complexity.PlanBeneficiaries.Status == nil { + break + } + + return e.complexity.PlanBeneficiaries.Status(childComplexity), true + + case "PlanBeneficiaries.treatDualElligibleDifferent": + if e.complexity.PlanBeneficiaries.TreatDualElligibleDifferent == nil { + break + } + + return e.complexity.PlanBeneficiaries.TreatDualElligibleDifferent(childComplexity), true + + case "PlanBeneficiaries.treatDualElligibleDifferentHow": + if e.complexity.PlanBeneficiaries.TreatDualElligibleDifferentHow == nil { + break + } + + return e.complexity.PlanBeneficiaries.TreatDualElligibleDifferentHow(childComplexity), true + + case "PlanBeneficiaries.treatDualElligibleDifferentNote": + if e.complexity.PlanBeneficiaries.TreatDualElligibleDifferentNote == nil { + break + } + + return e.complexity.PlanBeneficiaries.TreatDualElligibleDifferentNote(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiaries": + if e.complexity.PlanBeneficiariesTranslation.Beneficiaries == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.Beneficiaries(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiariesNote": + if e.complexity.PlanBeneficiariesTranslation.BeneficiariesNote == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiariesNote(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiariesOther": + if e.complexity.PlanBeneficiariesTranslation.BeneficiariesOther == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiariesOther(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiaryOverlap": + if e.complexity.PlanBeneficiariesTranslation.BeneficiaryOverlap == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiaryOverlap(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiaryOverlapNote": + if e.complexity.PlanBeneficiariesTranslation.BeneficiaryOverlapNote == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiaryOverlapNote(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiaryRemovalFrequency": + if e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequency == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequency(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiaryRemovalFrequencyContinually": + if e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyContinually == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyContinually(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiaryRemovalFrequencyNote": + if e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyNote == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyNote(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiaryRemovalFrequencyOther": + if e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyOther == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiaryRemovalFrequencyOther(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiarySelectionFrequency": + if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequency == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequency(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiarySelectionFrequencyContinually": + if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyContinually == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyContinually(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiarySelectionFrequencyNote": + if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyNote == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyNote(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiarySelectionFrequencyOther": + if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyOther == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionFrequencyOther(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiarySelectionMethod": + if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionMethod == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionMethod(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiarySelectionNote": + if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionNote == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionNote(childComplexity), true + + case "PlanBeneficiariesTranslation.beneficiarySelectionOther": + if e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionOther == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.BeneficiarySelectionOther(childComplexity), true + + case "PlanBeneficiariesTranslation.confidenceNote": + if e.complexity.PlanBeneficiariesTranslation.ConfidenceNote == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.ConfidenceNote(childComplexity), true + + case "PlanBeneficiariesTranslation.diseaseSpecificGroup": + if e.complexity.PlanBeneficiariesTranslation.DiseaseSpecificGroup == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.DiseaseSpecificGroup(childComplexity), true + + case "PlanBeneficiariesTranslation.estimateConfidence": + if e.complexity.PlanBeneficiariesTranslation.EstimateConfidence == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.EstimateConfidence(childComplexity), true + + case "PlanBeneficiariesTranslation.excludeCertainCharacteristics": + if e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristics == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristics(childComplexity), true + + case "PlanBeneficiariesTranslation.excludeCertainCharacteristicsCriteria": + if e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristicsCriteria == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristicsCriteria(childComplexity), true + + case "PlanBeneficiariesTranslation.excludeCertainCharacteristicsNote": + if e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristicsNote == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.ExcludeCertainCharacteristicsNote(childComplexity), true + + case "PlanBeneficiariesTranslation.numberPeopleImpacted": + if e.complexity.PlanBeneficiariesTranslation.NumberPeopleImpacted == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.NumberPeopleImpacted(childComplexity), true + + case "PlanBeneficiariesTranslation.precedenceRules": + if e.complexity.PlanBeneficiariesTranslation.PrecedenceRules == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.PrecedenceRules(childComplexity), true + + case "PlanBeneficiariesTranslation.precedenceRulesNo": + if e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesNo == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesNo(childComplexity), true + + case "PlanBeneficiariesTranslation.precedenceRulesNote": + if e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesNote == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesNote(childComplexity), true + + case "PlanBeneficiariesTranslation.precedenceRulesYes": + if e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesYes == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.PrecedenceRulesYes(childComplexity), true + + case "PlanBeneficiariesTranslation.readyForClearanceBy": + if e.complexity.PlanBeneficiariesTranslation.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.ReadyForClearanceBy(childComplexity), true + + case "PlanBeneficiariesTranslation.readyForClearanceDts": + if e.complexity.PlanBeneficiariesTranslation.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.ReadyForClearanceDts(childComplexity), true + + case "PlanBeneficiariesTranslation.readyForReviewBy": + if e.complexity.PlanBeneficiariesTranslation.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.ReadyForReviewBy(childComplexity), true + + case "PlanBeneficiariesTranslation.readyForReviewDts": + if e.complexity.PlanBeneficiariesTranslation.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.ReadyForReviewDts(childComplexity), true + + case "PlanBeneficiariesTranslation.status": + if e.complexity.PlanBeneficiariesTranslation.Status == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.Status(childComplexity), true + + case "PlanBeneficiariesTranslation.treatDualElligibleDifferent": + if e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferent == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferent(childComplexity), true + + case "PlanBeneficiariesTranslation.treatDualElligibleDifferentHow": + if e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferentHow == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferentHow(childComplexity), true + + case "PlanBeneficiariesTranslation.treatDualElligibleDifferentNote": + if e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferentNote == nil { + break + } + + return e.complexity.PlanBeneficiariesTranslation.TreatDualElligibleDifferentNote(childComplexity), true + + case "PlanCR.createdBy": + if e.complexity.PlanCR.CreatedBy == nil { + break + } + + return e.complexity.PlanCR.CreatedBy(childComplexity), true + + case "PlanCR.createdByUserAccount": + if e.complexity.PlanCR.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanCR.CreatedByUserAccount(childComplexity), true + + case "PlanCR.createdDts": + if e.complexity.PlanCR.CreatedDts == nil { + break + } + + return e.complexity.PlanCR.CreatedDts(childComplexity), true + + case "PlanCR.dateImplemented": + if e.complexity.PlanCR.DateImplemented == nil { + break + } + + return e.complexity.PlanCR.DateImplemented(childComplexity), true + + case "PlanCR.dateInitiated": + if e.complexity.PlanCR.DateInitiated == nil { + break + } + + return e.complexity.PlanCR.DateInitiated(childComplexity), true + + case "PlanCR.id": + if e.complexity.PlanCR.ID == nil { + break + } + + return e.complexity.PlanCR.ID(childComplexity), true + + case "PlanCR.idNumber": + if e.complexity.PlanCR.IDNumber == nil { + break + } + + return e.complexity.PlanCR.IDNumber(childComplexity), true + + case "PlanCR.modelPlanID": + if e.complexity.PlanCR.ModelPlanID == nil { + break + } + + return e.complexity.PlanCR.ModelPlanID(childComplexity), true + + case "PlanCR.modifiedBy": + if e.complexity.PlanCR.ModifiedBy == nil { + break + } + + return e.complexity.PlanCR.ModifiedBy(childComplexity), true + + case "PlanCR.modifiedByUserAccount": + if e.complexity.PlanCR.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanCR.ModifiedByUserAccount(childComplexity), true + + case "PlanCR.modifiedDts": + if e.complexity.PlanCR.ModifiedDts == nil { + break + } + + return e.complexity.PlanCR.ModifiedDts(childComplexity), true + + case "PlanCR.note": + if e.complexity.PlanCR.Note == nil { + break + } + + return e.complexity.PlanCR.Note(childComplexity), true + + case "PlanCR.title": + if e.complexity.PlanCR.Title == nil { + break + } + + return e.complexity.PlanCR.Title(childComplexity), true + + case "PlanCRTranslation.dateImplemented": + if e.complexity.PlanCRTranslation.DateImplemented == nil { + break + } + + return e.complexity.PlanCRTranslation.DateImplemented(childComplexity), true + + case "PlanCRTranslation.dateInitiated": + if e.complexity.PlanCRTranslation.DateInitiated == nil { + break + } + + return e.complexity.PlanCRTranslation.DateInitiated(childComplexity), true + + case "PlanCRTranslation.idNumber": + if e.complexity.PlanCRTranslation.IDNumber == nil { + break + } + + return e.complexity.PlanCRTranslation.IDNumber(childComplexity), true + + case "PlanCRTranslation.note": + if e.complexity.PlanCRTranslation.Note == nil { + break + } + + return e.complexity.PlanCRTranslation.Note(childComplexity), true + + case "PlanCRTranslation.title": + if e.complexity.PlanCRTranslation.Title == nil { + break + } + + return e.complexity.PlanCRTranslation.Title(childComplexity), true + + case "PlanCollaborator.createdBy": + if e.complexity.PlanCollaborator.CreatedBy == nil { + break + } + + return e.complexity.PlanCollaborator.CreatedBy(childComplexity), true + + case "PlanCollaborator.createdByUserAccount": + if e.complexity.PlanCollaborator.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanCollaborator.CreatedByUserAccount(childComplexity), true + + case "PlanCollaborator.createdDts": + if e.complexity.PlanCollaborator.CreatedDts == nil { + break + } + + return e.complexity.PlanCollaborator.CreatedDts(childComplexity), true + + case "PlanCollaborator.id": + if e.complexity.PlanCollaborator.ID == nil { + break + } + + return e.complexity.PlanCollaborator.ID(childComplexity), true + + case "PlanCollaborator.modelPlanID": + if e.complexity.PlanCollaborator.ModelPlanID == nil { + break + } + + return e.complexity.PlanCollaborator.ModelPlanID(childComplexity), true + + case "PlanCollaborator.modifiedBy": + if e.complexity.PlanCollaborator.ModifiedBy == nil { + break + } + + return e.complexity.PlanCollaborator.ModifiedBy(childComplexity), true + + case "PlanCollaborator.modifiedByUserAccount": + if e.complexity.PlanCollaborator.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanCollaborator.ModifiedByUserAccount(childComplexity), true + + case "PlanCollaborator.modifiedDts": + if e.complexity.PlanCollaborator.ModifiedDts == nil { + break + } + + return e.complexity.PlanCollaborator.ModifiedDts(childComplexity), true + + case "PlanCollaborator.teamRoles": + if e.complexity.PlanCollaborator.TeamRoles == nil { + break + } + + return e.complexity.PlanCollaborator.TeamRoles(childComplexity), true + + case "PlanCollaborator.userAccount": + if e.complexity.PlanCollaborator.UserAccount == nil { + break + } + + return e.complexity.PlanCollaborator.UserAccount(childComplexity), true + + case "PlanCollaborator.userID": + if e.complexity.PlanCollaborator.UserID == nil { + break + } + + return e.complexity.PlanCollaborator.UserID(childComplexity), true + + case "PlanCollaboratorTranslation.teamRoles": + if e.complexity.PlanCollaboratorTranslation.TeamRoles == nil { + break + } + + return e.complexity.PlanCollaboratorTranslation.TeamRoles(childComplexity), true + + case "PlanCollaboratorTranslation.userID": + if e.complexity.PlanCollaboratorTranslation.UserID == nil { + break + } + + return e.complexity.PlanCollaboratorTranslation.UserID(childComplexity), true + + case "PlanCollaboratorTranslation.username": + if e.complexity.PlanCollaboratorTranslation.Username == nil { + break + } + + return e.complexity.PlanCollaboratorTranslation.Username(childComplexity), true + + case "PlanDataExchangeApproach.additionalDataExchangeConsiderationsDescription": + if e.complexity.PlanDataExchangeApproach.AdditionalDataExchangeConsiderationsDescription == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.AdditionalDataExchangeConsiderationsDescription(childComplexity), true + + case "PlanDataExchangeApproach.anticipatedMultiPayerDataAvailabilityUseCase": + if e.complexity.PlanDataExchangeApproach.AnticipatedMultiPayerDataAvailabilityUseCase == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.AnticipatedMultiPayerDataAvailabilityUseCase(childComplexity), true + + case "PlanDataExchangeApproach.createdBy": + if e.complexity.PlanDataExchangeApproach.CreatedBy == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.CreatedBy(childComplexity), true + + case "PlanDataExchangeApproach.createdByUserAccount": + if e.complexity.PlanDataExchangeApproach.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.CreatedByUserAccount(childComplexity), true + + case "PlanDataExchangeApproach.createdDts": + if e.complexity.PlanDataExchangeApproach.CreatedDts == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.CreatedDts(childComplexity), true + + case "PlanDataExchangeApproach.dataToCollectFromParticipants": + if e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipants == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipants(childComplexity), true + + case "PlanDataExchangeApproach.dataToCollectFromParticipantsNote": + if e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsNote(childComplexity), true + + case "PlanDataExchangeApproach.dataToCollectFromParticipantsOther": + if e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsOther == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsOther(childComplexity), true + + case "PlanDataExchangeApproach.dataToCollectFromParticipantsReportsDetails": + if e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsReportsDetails == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DataToCollectFromParticipantsReportsDetails(childComplexity), true + + case "PlanDataExchangeApproach.dataToSendToParticipants": + if e.complexity.PlanDataExchangeApproach.DataToSendToParticipants == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DataToSendToParticipants(childComplexity), true + + case "PlanDataExchangeApproach.dataToSendToParticipantsNote": + if e.complexity.PlanDataExchangeApproach.DataToSendToParticipantsNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DataToSendToParticipantsNote(childComplexity), true + + case "PlanDataExchangeApproach.dataWillNotBeCollectedFromParticipants": + if e.complexity.PlanDataExchangeApproach.DataWillNotBeCollectedFromParticipants == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DataWillNotBeCollectedFromParticipants(childComplexity), true + + case "PlanDataExchangeApproach.doesNeedToCollectAndAggregateMultiSourceData": + if e.complexity.PlanDataExchangeApproach.DoesNeedToCollectAndAggregateMultiSourceData == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DoesNeedToCollectAndAggregateMultiSourceData(childComplexity), true + + case "PlanDataExchangeApproach.doesNeedToCollectAndAggregateMultiSourceDataNote": + if e.complexity.PlanDataExchangeApproach.DoesNeedToCollectAndAggregateMultiSourceDataNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DoesNeedToCollectAndAggregateMultiSourceDataNote(childComplexity), true + + case "PlanDataExchangeApproach.doesNeedToMakeMultiPayerDataAvailable": + if e.complexity.PlanDataExchangeApproach.DoesNeedToMakeMultiPayerDataAvailable == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DoesNeedToMakeMultiPayerDataAvailable(childComplexity), true + + case "PlanDataExchangeApproach.doesNeedToMakeMultiPayerDataAvailableNote": + if e.complexity.PlanDataExchangeApproach.DoesNeedToMakeMultiPayerDataAvailableNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.DoesNeedToMakeMultiPayerDataAvailableNote(childComplexity), true + + case "PlanDataExchangeApproach.id": + if e.complexity.PlanDataExchangeApproach.ID == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.ID(childComplexity), true + + case "PlanDataExchangeApproach.isDataExchangeApproachComplete": + if e.complexity.PlanDataExchangeApproach.IsDataExchangeApproachComplete == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.IsDataExchangeApproachComplete(childComplexity), true + + case "PlanDataExchangeApproach.markedCompleteBy": + if e.complexity.PlanDataExchangeApproach.MarkedCompleteBy == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.MarkedCompleteBy(childComplexity), true + + case "PlanDataExchangeApproach.markedCompleteByUserAccount": + if e.complexity.PlanDataExchangeApproach.MarkedCompleteByUserAccount == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.MarkedCompleteByUserAccount(childComplexity), true + + case "PlanDataExchangeApproach.markedCompleteDts": + if e.complexity.PlanDataExchangeApproach.MarkedCompleteDts == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.MarkedCompleteDts(childComplexity), true + + case "PlanDataExchangeApproach.modelPlanID": + if e.complexity.PlanDataExchangeApproach.ModelPlanID == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.ModelPlanID(childComplexity), true + + case "PlanDataExchangeApproach.modifiedBy": + if e.complexity.PlanDataExchangeApproach.ModifiedBy == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.ModifiedBy(childComplexity), true + + case "PlanDataExchangeApproach.modifiedByUserAccount": + if e.complexity.PlanDataExchangeApproach.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.ModifiedByUserAccount(childComplexity), true + + case "PlanDataExchangeApproach.modifiedDts": + if e.complexity.PlanDataExchangeApproach.ModifiedDts == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.ModifiedDts(childComplexity), true + + case "PlanDataExchangeApproach.multiSourceDataToCollect": + if e.complexity.PlanDataExchangeApproach.MultiSourceDataToCollect == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.MultiSourceDataToCollect(childComplexity), true + + case "PlanDataExchangeApproach.multiSourceDataToCollectOther": + if e.complexity.PlanDataExchangeApproach.MultiSourceDataToCollectOther == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.MultiSourceDataToCollectOther(childComplexity), true + + case "PlanDataExchangeApproach.newDataExchangeMethodsDescription": + if e.complexity.PlanDataExchangeApproach.NewDataExchangeMethodsDescription == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.NewDataExchangeMethodsDescription(childComplexity), true + + case "PlanDataExchangeApproach.newDataExchangeMethodsNote": + if e.complexity.PlanDataExchangeApproach.NewDataExchangeMethodsNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.NewDataExchangeMethodsNote(childComplexity), true + + case "PlanDataExchangeApproach.status": + if e.complexity.PlanDataExchangeApproach.Status == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.Status(childComplexity), true + + case "PlanDataExchangeApproach.willImplementNewDataExchangeMethods": + if e.complexity.PlanDataExchangeApproach.WillImplementNewDataExchangeMethods == nil { + break + } + + return e.complexity.PlanDataExchangeApproach.WillImplementNewDataExchangeMethods(childComplexity), true + + case "PlanDataExchangeApproachMarkedCompleteActivityMeta.dataExchangeApproach": + if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.DataExchangeApproach == nil { + break + } + + return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.DataExchangeApproach(childComplexity), true + + case "PlanDataExchangeApproachMarkedCompleteActivityMeta.dataExchangeApproachID": + if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.DataExchangeApproachID == nil { + break + } + + return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.DataExchangeApproachID(childComplexity), true + + case "PlanDataExchangeApproachMarkedCompleteActivityMeta.markedCompleteBy": + if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.MarkedCompleteBy == nil { + break + } + + return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.MarkedCompleteBy(childComplexity), true + + case "PlanDataExchangeApproachMarkedCompleteActivityMeta.markedCompleteByUserAccount": + if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.MarkedCompleteByUserAccount == nil { + break + } + + return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.MarkedCompleteByUserAccount(childComplexity), true + + case "PlanDataExchangeApproachMarkedCompleteActivityMeta.modelPlan": + if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.ModelPlan == nil { + break + } + + return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.ModelPlan(childComplexity), true + + case "PlanDataExchangeApproachMarkedCompleteActivityMeta.type": + if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.Type == nil { + break + } + + return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.Type(childComplexity), true + + case "PlanDataExchangeApproachMarkedCompleteActivityMeta.version": + if e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.Version == nil { + break + } + + return e.complexity.PlanDataExchangeApproachMarkedCompleteActivityMeta.Version(childComplexity), true + + case "PlanDataExchangeApproachTranslation.additionalDataExchangeConsiderationsDescription": + if e.complexity.PlanDataExchangeApproachTranslation.AdditionalDataExchangeConsiderationsDescription == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.AdditionalDataExchangeConsiderationsDescription(childComplexity), true + + case "PlanDataExchangeApproachTranslation.anticipatedMultiPayerDataAvailabilityUseCase": + if e.complexity.PlanDataExchangeApproachTranslation.AnticipatedMultiPayerDataAvailabilityUseCase == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.AnticipatedMultiPayerDataAvailabilityUseCase(childComplexity), true + + case "PlanDataExchangeApproachTranslation.dataToCollectFromParticipants": + if e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipants == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipants(childComplexity), true + + case "PlanDataExchangeApproachTranslation.dataToCollectFromParticipantsNote": + if e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsNote(childComplexity), true + + case "PlanDataExchangeApproachTranslation.dataToCollectFromParticipantsOther": + if e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsOther == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsOther(childComplexity), true + + case "PlanDataExchangeApproachTranslation.dataToCollectFromParticipantsReportsDetails": + if e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsReportsDetails == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DataToCollectFromParticipantsReportsDetails(childComplexity), true + + case "PlanDataExchangeApproachTranslation.dataToSendToParticipants": + if e.complexity.PlanDataExchangeApproachTranslation.DataToSendToParticipants == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DataToSendToParticipants(childComplexity), true + + case "PlanDataExchangeApproachTranslation.dataToSendToParticipantsNote": + if e.complexity.PlanDataExchangeApproachTranslation.DataToSendToParticipantsNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DataToSendToParticipantsNote(childComplexity), true + + case "PlanDataExchangeApproachTranslation.dataWillNotBeCollectedFromParticipants": + if e.complexity.PlanDataExchangeApproachTranslation.DataWillNotBeCollectedFromParticipants == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DataWillNotBeCollectedFromParticipants(childComplexity), true + + case "PlanDataExchangeApproachTranslation.doesNeedToCollectAndAggregateMultiSourceData": + if e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToCollectAndAggregateMultiSourceData == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToCollectAndAggregateMultiSourceData(childComplexity), true + + case "PlanDataExchangeApproachTranslation.doesNeedToCollectAndAggregateMultiSourceDataNote": + if e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToCollectAndAggregateMultiSourceDataNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToCollectAndAggregateMultiSourceDataNote(childComplexity), true + + case "PlanDataExchangeApproachTranslation.doesNeedToMakeMultiPayerDataAvailable": + if e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToMakeMultiPayerDataAvailable == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToMakeMultiPayerDataAvailable(childComplexity), true + + case "PlanDataExchangeApproachTranslation.doesNeedToMakeMultiPayerDataAvailableNote": + if e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToMakeMultiPayerDataAvailableNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.DoesNeedToMakeMultiPayerDataAvailableNote(childComplexity), true + + case "PlanDataExchangeApproachTranslation.isDataExchangeApproachComplete": + if e.complexity.PlanDataExchangeApproachTranslation.IsDataExchangeApproachComplete == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.IsDataExchangeApproachComplete(childComplexity), true + + case "PlanDataExchangeApproachTranslation.markedCompleteBy": + if e.complexity.PlanDataExchangeApproachTranslation.MarkedCompleteBy == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.MarkedCompleteBy(childComplexity), true + + case "PlanDataExchangeApproachTranslation.markedCompleteDts": + if e.complexity.PlanDataExchangeApproachTranslation.MarkedCompleteDts == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.MarkedCompleteDts(childComplexity), true + + case "PlanDataExchangeApproachTranslation.multiSourceDataToCollect": + if e.complexity.PlanDataExchangeApproachTranslation.MultiSourceDataToCollect == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.MultiSourceDataToCollect(childComplexity), true + + case "PlanDataExchangeApproachTranslation.multiSourceDataToCollectOther": + if e.complexity.PlanDataExchangeApproachTranslation.MultiSourceDataToCollectOther == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.MultiSourceDataToCollectOther(childComplexity), true + + case "PlanDataExchangeApproachTranslation.newDataExchangeMethodsDescription": + if e.complexity.PlanDataExchangeApproachTranslation.NewDataExchangeMethodsDescription == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.NewDataExchangeMethodsDescription(childComplexity), true + + case "PlanDataExchangeApproachTranslation.newDataExchangeMethodsNote": + if e.complexity.PlanDataExchangeApproachTranslation.NewDataExchangeMethodsNote == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.NewDataExchangeMethodsNote(childComplexity), true + + case "PlanDataExchangeApproachTranslation.status": + if e.complexity.PlanDataExchangeApproachTranslation.Status == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.Status(childComplexity), true + + case "PlanDataExchangeApproachTranslation.willImplementNewDataExchangeMethods": + if e.complexity.PlanDataExchangeApproachTranslation.WillImplementNewDataExchangeMethods == nil { + break + } + + return e.complexity.PlanDataExchangeApproachTranslation.WillImplementNewDataExchangeMethods(childComplexity), true + + case "PlanDiscussion.content": + if e.complexity.PlanDiscussion.Content == nil { + break + } + + return e.complexity.PlanDiscussion.Content(childComplexity), true + + case "PlanDiscussion.createdBy": + if e.complexity.PlanDiscussion.CreatedBy == nil { + break + } + + return e.complexity.PlanDiscussion.CreatedBy(childComplexity), true + + case "PlanDiscussion.createdByUserAccount": + if e.complexity.PlanDiscussion.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanDiscussion.CreatedByUserAccount(childComplexity), true + + case "PlanDiscussion.createdDts": + if e.complexity.PlanDiscussion.CreatedDts == nil { + break + } + + return e.complexity.PlanDiscussion.CreatedDts(childComplexity), true + + case "PlanDiscussion.id": + if e.complexity.PlanDiscussion.ID == nil { + break + } + + return e.complexity.PlanDiscussion.ID(childComplexity), true + + case "PlanDiscussion.isAssessment": + if e.complexity.PlanDiscussion.IsAssessment == nil { + break + } + + return e.complexity.PlanDiscussion.IsAssessment(childComplexity), true + + case "PlanDiscussion.modelPlanID": + if e.complexity.PlanDiscussion.ModelPlanID == nil { + break + } + + return e.complexity.PlanDiscussion.ModelPlanID(childComplexity), true + + case "PlanDiscussion.modifiedBy": + if e.complexity.PlanDiscussion.ModifiedBy == nil { + break + } + + return e.complexity.PlanDiscussion.ModifiedBy(childComplexity), true + + case "PlanDiscussion.modifiedByUserAccount": + if e.complexity.PlanDiscussion.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanDiscussion.ModifiedByUserAccount(childComplexity), true + + case "PlanDiscussion.modifiedDts": + if e.complexity.PlanDiscussion.ModifiedDts == nil { + break + } + + return e.complexity.PlanDiscussion.ModifiedDts(childComplexity), true + + case "PlanDiscussion.replies": + if e.complexity.PlanDiscussion.Replies == nil { + break + } + + return e.complexity.PlanDiscussion.Replies(childComplexity), true + + case "PlanDiscussion.userRole": + if e.complexity.PlanDiscussion.UserRole == nil { + break + } + + return e.complexity.PlanDiscussion.UserRole(childComplexity), true + + case "PlanDiscussion.userRoleDescription": + if e.complexity.PlanDiscussion.UserRoleDescription == nil { + break + } + + return e.complexity.PlanDiscussion.UserRoleDescription(childComplexity), true + + case "PlanDiscussionTranslation.content": + if e.complexity.PlanDiscussionTranslation.Content == nil { + break + } + + return e.complexity.PlanDiscussionTranslation.Content(childComplexity), true + + case "PlanDiscussionTranslation.isAssessment": + if e.complexity.PlanDiscussionTranslation.IsAssessment == nil { + break + } + + return e.complexity.PlanDiscussionTranslation.IsAssessment(childComplexity), true + + case "PlanDiscussionTranslation.userRole": + if e.complexity.PlanDiscussionTranslation.UserRole == nil { + break + } + + return e.complexity.PlanDiscussionTranslation.UserRole(childComplexity), true + + case "PlanDiscussionTranslation.userRoleDescription": + if e.complexity.PlanDiscussionTranslation.UserRoleDescription == nil { + break + } + + return e.complexity.PlanDiscussionTranslation.UserRoleDescription(childComplexity), true + + case "PlanDocument.bucket": + if e.complexity.PlanDocument.Bucket == nil { + break + } + + return e.complexity.PlanDocument.Bucket(childComplexity), true + + case "PlanDocument.createdBy": + if e.complexity.PlanDocument.CreatedBy == nil { + break + } + + return e.complexity.PlanDocument.CreatedBy(childComplexity), true + + case "PlanDocument.createdByUserAccount": + if e.complexity.PlanDocument.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanDocument.CreatedByUserAccount(childComplexity), true + + case "PlanDocument.createdDts": + if e.complexity.PlanDocument.CreatedDts == nil { + break + } + + return e.complexity.PlanDocument.CreatedDts(childComplexity), true + + case "PlanDocument.deletedAt": + if e.complexity.PlanDocument.DeletedAt == nil { + break + } + + return e.complexity.PlanDocument.DeletedAt(childComplexity), true + + case "PlanDocument.documentType": + if e.complexity.PlanDocument.DocumentType == nil { + break + } + + return e.complexity.PlanDocument.DocumentType(childComplexity), true + + case "PlanDocument.downloadUrl": + if e.complexity.PlanDocument.DownloadURL == nil { + break + } + + return e.complexity.PlanDocument.DownloadURL(childComplexity), true + + case "PlanDocument.fileKey": + if e.complexity.PlanDocument.FileKey == nil { + break + } + + return e.complexity.PlanDocument.FileKey(childComplexity), true + + case "PlanDocument.fileName": + if e.complexity.PlanDocument.FileName == nil { + break + } + + return e.complexity.PlanDocument.FileName(childComplexity), true + + case "PlanDocument.fileSize": + if e.complexity.PlanDocument.FileSize == nil { + break + } + + return e.complexity.PlanDocument.FileSize(childComplexity), true + + case "PlanDocument.fileType": + if e.complexity.PlanDocument.FileType == nil { + break + } + + return e.complexity.PlanDocument.FileType(childComplexity), true + + case "PlanDocument.id": + if e.complexity.PlanDocument.ID == nil { + break + } + + return e.complexity.PlanDocument.ID(childComplexity), true + + case "PlanDocument.isLink": + if e.complexity.PlanDocument.IsLink == nil { + break + } + + return e.complexity.PlanDocument.IsLink(childComplexity), true + + case "PlanDocument.modelPlanID": + if e.complexity.PlanDocument.ModelPlanID == nil { + break + } + + return e.complexity.PlanDocument.ModelPlanID(childComplexity), true + + case "PlanDocument.modifiedBy": + if e.complexity.PlanDocument.ModifiedBy == nil { + break + } + + return e.complexity.PlanDocument.ModifiedBy(childComplexity), true + + case "PlanDocument.modifiedByUserAccount": + if e.complexity.PlanDocument.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanDocument.ModifiedByUserAccount(childComplexity), true + + case "PlanDocument.modifiedDts": + if e.complexity.PlanDocument.ModifiedDts == nil { + break + } + + return e.complexity.PlanDocument.ModifiedDts(childComplexity), true + + case "PlanDocument.numLinkedSolutions": + if e.complexity.PlanDocument.NumLinkedSolutions == nil { + break + } + + return e.complexity.PlanDocument.NumLinkedSolutions(childComplexity), true + + case "PlanDocument.optionalNotes": + if e.complexity.PlanDocument.OptionalNotes == nil { + break + } + + return e.complexity.PlanDocument.OptionalNotes(childComplexity), true + + case "PlanDocument.otherType": + if e.complexity.PlanDocument.OtherType == nil { + break + } + + return e.complexity.PlanDocument.OtherType(childComplexity), true + + case "PlanDocument.restricted": + if e.complexity.PlanDocument.Restricted == nil { + break + } + + return e.complexity.PlanDocument.Restricted(childComplexity), true + + case "PlanDocument.url": + if e.complexity.PlanDocument.URL == nil { + break + } + + return e.complexity.PlanDocument.URL(childComplexity), true + + case "PlanDocument.virusClean": + if e.complexity.PlanDocument.VirusClean == nil { + break + } + + return e.complexity.PlanDocument.VirusClean(childComplexity), true + + case "PlanDocument.virusScanned": + if e.complexity.PlanDocument.VirusScanned == nil { + break + } + + return e.complexity.PlanDocument.VirusScanned(childComplexity), true + + case "PlanDocumentSolutionLink.createdBy": + if e.complexity.PlanDocumentSolutionLink.CreatedBy == nil { + break + } + + return e.complexity.PlanDocumentSolutionLink.CreatedBy(childComplexity), true + + case "PlanDocumentSolutionLink.createdByUserAccount": + if e.complexity.PlanDocumentSolutionLink.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanDocumentSolutionLink.CreatedByUserAccount(childComplexity), true + + case "PlanDocumentSolutionLink.createdDts": + if e.complexity.PlanDocumentSolutionLink.CreatedDts == nil { + break + } + + return e.complexity.PlanDocumentSolutionLink.CreatedDts(childComplexity), true + + case "PlanDocumentSolutionLink.documentID": + if e.complexity.PlanDocumentSolutionLink.DocumentID == nil { + break + } + + return e.complexity.PlanDocumentSolutionLink.DocumentID(childComplexity), true + + case "PlanDocumentSolutionLink.id": + if e.complexity.PlanDocumentSolutionLink.ID == nil { + break + } + + return e.complexity.PlanDocumentSolutionLink.ID(childComplexity), true + + case "PlanDocumentSolutionLink.modifiedBy": + if e.complexity.PlanDocumentSolutionLink.ModifiedBy == nil { + break + } + + return e.complexity.PlanDocumentSolutionLink.ModifiedBy(childComplexity), true + + case "PlanDocumentSolutionLink.modifiedByUserAccount": + if e.complexity.PlanDocumentSolutionLink.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanDocumentSolutionLink.ModifiedByUserAccount(childComplexity), true + + case "PlanDocumentSolutionLink.modifiedDts": + if e.complexity.PlanDocumentSolutionLink.ModifiedDts == nil { + break + } + + return e.complexity.PlanDocumentSolutionLink.ModifiedDts(childComplexity), true + + case "PlanDocumentSolutionLink.solutionID": + if e.complexity.PlanDocumentSolutionLink.SolutionID == nil { + break + } + + return e.complexity.PlanDocumentSolutionLink.SolutionID(childComplexity), true + + case "PlanDocumentSolutionLinkTranslation.documentID": + if e.complexity.PlanDocumentSolutionLinkTranslation.DocumentID == nil { + break + } + + return e.complexity.PlanDocumentSolutionLinkTranslation.DocumentID(childComplexity), true + + case "PlanDocumentSolutionLinkTranslation.solutionID": + if e.complexity.PlanDocumentSolutionLinkTranslation.SolutionID == nil { + break + } + + return e.complexity.PlanDocumentSolutionLinkTranslation.SolutionID(childComplexity), true + + case "PlanDocumentTranslation.documentType": + if e.complexity.PlanDocumentTranslation.DocumentType == nil { + break + } + + return e.complexity.PlanDocumentTranslation.DocumentType(childComplexity), true + + case "PlanDocumentTranslation.fileName": + if e.complexity.PlanDocumentTranslation.FileName == nil { + break + } + + return e.complexity.PlanDocumentTranslation.FileName(childComplexity), true + + case "PlanDocumentTranslation.fileType": + if e.complexity.PlanDocumentTranslation.FileType == nil { + break + } + + return e.complexity.PlanDocumentTranslation.FileType(childComplexity), true + + case "PlanDocumentTranslation.isLink": + if e.complexity.PlanDocumentTranslation.IsLink == nil { + break + } + + return e.complexity.PlanDocumentTranslation.IsLink(childComplexity), true + + case "PlanDocumentTranslation.optionalNotes": + if e.complexity.PlanDocumentTranslation.OptionalNotes == nil { + break + } + + return e.complexity.PlanDocumentTranslation.OptionalNotes(childComplexity), true + + case "PlanDocumentTranslation.otherType": + if e.complexity.PlanDocumentTranslation.OtherType == nil { + break + } + + return e.complexity.PlanDocumentTranslation.OtherType(childComplexity), true + + case "PlanDocumentTranslation.restricted": + if e.complexity.PlanDocumentTranslation.Restricted == nil { + break + } + + return e.complexity.PlanDocumentTranslation.Restricted(childComplexity), true + + case "PlanDocumentTranslation.url": + if e.complexity.PlanDocumentTranslation.URL == nil { + break + } + + return e.complexity.PlanDocumentTranslation.URL(childComplexity), true + + case "PlanFavorite.createdBy": + if e.complexity.PlanFavorite.CreatedBy == nil { + break + } + + return e.complexity.PlanFavorite.CreatedBy(childComplexity), true + + case "PlanFavorite.createdByUserAccount": + if e.complexity.PlanFavorite.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanFavorite.CreatedByUserAccount(childComplexity), true + + case "PlanFavorite.createdDts": + if e.complexity.PlanFavorite.CreatedDts == nil { + break + } + + return e.complexity.PlanFavorite.CreatedDts(childComplexity), true + + case "PlanFavorite.id": + if e.complexity.PlanFavorite.ID == nil { + break + } + + return e.complexity.PlanFavorite.ID(childComplexity), true + + case "PlanFavorite.modelPlanID": + if e.complexity.PlanFavorite.ModelPlanID == nil { + break + } + + return e.complexity.PlanFavorite.ModelPlanID(childComplexity), true + + case "PlanFavorite.modifiedBy": + if e.complexity.PlanFavorite.ModifiedBy == nil { + break + } + + return e.complexity.PlanFavorite.ModifiedBy(childComplexity), true + + case "PlanFavorite.modifiedByUserAccount": + if e.complexity.PlanFavorite.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanFavorite.ModifiedByUserAccount(childComplexity), true + + case "PlanFavorite.modifiedDts": + if e.complexity.PlanFavorite.ModifiedDts == nil { + break + } + + return e.complexity.PlanFavorite.ModifiedDts(childComplexity), true + + case "PlanFavorite.userAccount": + if e.complexity.PlanFavorite.UserAccount == nil { + break + } + + return e.complexity.PlanFavorite.UserAccount(childComplexity), true + + case "PlanFavorite.userID": + if e.complexity.PlanFavorite.UserID == nil { + break + } + + return e.complexity.PlanFavorite.UserID(childComplexity), true + + case "PlanGeneralCharacteristics.additionalServicesInvolved": + if e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolved == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolved(childComplexity), true + + case "PlanGeneralCharacteristics.additionalServicesInvolvedDescription": + if e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolvedDescription == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolvedDescription(childComplexity), true + + case "PlanGeneralCharacteristics.additionalServicesInvolvedNote": + if e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolvedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AdditionalServicesInvolvedNote(childComplexity), true + + case "PlanGeneralCharacteristics.agencyOrStateHelp": + if e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelp == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelp(childComplexity), true + + case "PlanGeneralCharacteristics.agencyOrStateHelpNote": + if e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelpNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelpNote(childComplexity), true + + case "PlanGeneralCharacteristics.agencyOrStateHelpOther": + if e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelpOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AgencyOrStateHelpOther(childComplexity), true + + case "PlanGeneralCharacteristics.agreementTypes": + if e.complexity.PlanGeneralCharacteristics.AgreementTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AgreementTypes(childComplexity), true + + case "PlanGeneralCharacteristics.agreementTypesOther": + if e.complexity.PlanGeneralCharacteristics.AgreementTypesOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AgreementTypesOther(childComplexity), true + + case "PlanGeneralCharacteristics.alternativePaymentModelNote": + if e.complexity.PlanGeneralCharacteristics.AlternativePaymentModelNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AlternativePaymentModelNote(childComplexity), true + + case "PlanGeneralCharacteristics.alternativePaymentModelTypes": + if e.complexity.PlanGeneralCharacteristics.AlternativePaymentModelTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AlternativePaymentModelTypes(childComplexity), true + + case "PlanGeneralCharacteristics.authorityAllowances": + if e.complexity.PlanGeneralCharacteristics.AuthorityAllowances == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AuthorityAllowances(childComplexity), true + + case "PlanGeneralCharacteristics.authorityAllowancesNote": + if e.complexity.PlanGeneralCharacteristics.AuthorityAllowancesNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AuthorityAllowancesNote(childComplexity), true + + case "PlanGeneralCharacteristics.authorityAllowancesOther": + if e.complexity.PlanGeneralCharacteristics.AuthorityAllowancesOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.AuthorityAllowancesOther(childComplexity), true + + case "PlanGeneralCharacteristics.careCoordinationInvolved": + if e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolved == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolved(childComplexity), true + + case "PlanGeneralCharacteristics.careCoordinationInvolvedDescription": + if e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolvedDescription == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolvedDescription(childComplexity), true + + case "PlanGeneralCharacteristics.careCoordinationInvolvedNote": + if e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolvedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CareCoordinationInvolvedNote(childComplexity), true + + case "PlanGeneralCharacteristics.collectPlanBids": + if e.complexity.PlanGeneralCharacteristics.CollectPlanBids == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CollectPlanBids(childComplexity), true + + case "PlanGeneralCharacteristics.collectPlanBidsNote": + if e.complexity.PlanGeneralCharacteristics.CollectPlanBidsNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CollectPlanBidsNote(childComplexity), true + + case "PlanGeneralCharacteristics.communityPartnersInvolved": + if e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolved == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolved(childComplexity), true + + case "PlanGeneralCharacteristics.communityPartnersInvolvedDescription": + if e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolvedDescription == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolvedDescription(childComplexity), true + + case "PlanGeneralCharacteristics.communityPartnersInvolvedNote": + if e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolvedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CommunityPartnersInvolvedNote(childComplexity), true + + case "PlanGeneralCharacteristics.createdBy": + if e.complexity.PlanGeneralCharacteristics.CreatedBy == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CreatedBy(childComplexity), true + + case "PlanGeneralCharacteristics.createdByUserAccount": + if e.complexity.PlanGeneralCharacteristics.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CreatedByUserAccount(childComplexity), true + + case "PlanGeneralCharacteristics.createdDts": + if e.complexity.PlanGeneralCharacteristics.CreatedDts == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CreatedDts(childComplexity), true + + case "PlanGeneralCharacteristics.currentModelPlan": + if e.complexity.PlanGeneralCharacteristics.CurrentModelPlan == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CurrentModelPlan(childComplexity), true + + case "PlanGeneralCharacteristics.currentModelPlanID": + if e.complexity.PlanGeneralCharacteristics.CurrentModelPlanID == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.CurrentModelPlanID(childComplexity), true + + case "PlanGeneralCharacteristics.existingModel": + if e.complexity.PlanGeneralCharacteristics.ExistingModel == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ExistingModel(childComplexity), true + + case "PlanGeneralCharacteristics.existingModelID": + if e.complexity.PlanGeneralCharacteristics.ExistingModelID == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ExistingModelID(childComplexity), true + + case "PlanGeneralCharacteristics.existingModelPlan": + if e.complexity.PlanGeneralCharacteristics.ExistingModelPlan == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ExistingModelPlan(childComplexity), true + + case "PlanGeneralCharacteristics.geographiesRegionTypes": + if e.complexity.PlanGeneralCharacteristics.GeographiesRegionTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.GeographiesRegionTypes(childComplexity), true + + case "PlanGeneralCharacteristics.geographiesStatesAndTerritories": + if e.complexity.PlanGeneralCharacteristics.GeographiesStatesAndTerritories == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.GeographiesStatesAndTerritories(childComplexity), true + + case "PlanGeneralCharacteristics.geographiesTargeted": + if e.complexity.PlanGeneralCharacteristics.GeographiesTargeted == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.GeographiesTargeted(childComplexity), true + + case "PlanGeneralCharacteristics.geographiesTargetedAppliedTo": + if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedAppliedTo == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedAppliedTo(childComplexity), true + + case "PlanGeneralCharacteristics.geographiesTargetedAppliedToOther": + if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedAppliedToOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedAppliedToOther(childComplexity), true + + case "PlanGeneralCharacteristics.geographiesTargetedNote": + if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedNote(childComplexity), true + + case "PlanGeneralCharacteristics.geographiesTargetedTypes": + if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedTypes(childComplexity), true + + case "PlanGeneralCharacteristics.geographiesTargetedTypesOther": + if e.complexity.PlanGeneralCharacteristics.GeographiesTargetedTypesOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.GeographiesTargetedTypesOther(childComplexity), true + + case "PlanGeneralCharacteristics.hasComponentsOrTracks": + if e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracks == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracks(childComplexity), true + + case "PlanGeneralCharacteristics.hasComponentsOrTracksDiffer": + if e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracksDiffer == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracksDiffer(childComplexity), true + + case "PlanGeneralCharacteristics.hasComponentsOrTracksNote": + if e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracksNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.HasComponentsOrTracksNote(childComplexity), true + + case "PlanGeneralCharacteristics.id": + if e.complexity.PlanGeneralCharacteristics.ID == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ID(childComplexity), true + + case "PlanGeneralCharacteristics.isNewModel": + if e.complexity.PlanGeneralCharacteristics.IsNewModel == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.IsNewModel(childComplexity), true + + case "PlanGeneralCharacteristics.keyCharacteristics": + if e.complexity.PlanGeneralCharacteristics.KeyCharacteristics == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.KeyCharacteristics(childComplexity), true + + case "PlanGeneralCharacteristics.keyCharacteristicsNote": + if e.complexity.PlanGeneralCharacteristics.KeyCharacteristicsNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.KeyCharacteristicsNote(childComplexity), true + + case "PlanGeneralCharacteristics.keyCharacteristicsOther": + if e.complexity.PlanGeneralCharacteristics.KeyCharacteristicsOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.KeyCharacteristicsOther(childComplexity), true + + case "PlanGeneralCharacteristics.managePartCDEnrollment": + if e.complexity.PlanGeneralCharacteristics.ManagePartCDEnrollment == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ManagePartCDEnrollment(childComplexity), true + + case "PlanGeneralCharacteristics.managePartCDEnrollmentNote": + if e.complexity.PlanGeneralCharacteristics.ManagePartCDEnrollmentNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ManagePartCDEnrollmentNote(childComplexity), true + + case "PlanGeneralCharacteristics.modelPlanID": + if e.complexity.PlanGeneralCharacteristics.ModelPlanID == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ModelPlanID(childComplexity), true + + case "PlanGeneralCharacteristics.modifiedBy": + if e.complexity.PlanGeneralCharacteristics.ModifiedBy == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ModifiedBy(childComplexity), true + + case "PlanGeneralCharacteristics.modifiedByUserAccount": + if e.complexity.PlanGeneralCharacteristics.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ModifiedByUserAccount(childComplexity), true + + case "PlanGeneralCharacteristics.modifiedDts": + if e.complexity.PlanGeneralCharacteristics.ModifiedDts == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ModifiedDts(childComplexity), true + + case "PlanGeneralCharacteristics.multiplePatricipationAgreementsNeeded": + if e.complexity.PlanGeneralCharacteristics.MultiplePatricipationAgreementsNeeded == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.MultiplePatricipationAgreementsNeeded(childComplexity), true + + case "PlanGeneralCharacteristics.multiplePatricipationAgreementsNeededNote": + if e.complexity.PlanGeneralCharacteristics.MultiplePatricipationAgreementsNeededNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.MultiplePatricipationAgreementsNeededNote(childComplexity), true + + case "PlanGeneralCharacteristics.participationInModelPrecondition": + if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPrecondition == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPrecondition(childComplexity), true + + case "PlanGeneralCharacteristics.participationInModelPreconditionNote": + if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionNote(childComplexity), true + + case "PlanGeneralCharacteristics.participationInModelPreconditionOtherOption": + if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherOption == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherOption(childComplexity), true + + case "PlanGeneralCharacteristics.participationInModelPreconditionOtherSelected": + if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherSelected == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherSelected(childComplexity), true + + case "PlanGeneralCharacteristics.participationInModelPreconditionOtherSpecify": + if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherSpecify == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionOtherSpecify(childComplexity), true + + case "PlanGeneralCharacteristics.participationInModelPreconditionWhich": + if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionWhich == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionWhich(childComplexity), true + + case "PlanGeneralCharacteristics.participationInModelPreconditionWhyHow": + if e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionWhyHow == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ParticipationInModelPreconditionWhyHow(childComplexity), true + + case "PlanGeneralCharacteristics.participationOptions": + if e.complexity.PlanGeneralCharacteristics.ParticipationOptions == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ParticipationOptions(childComplexity), true + + case "PlanGeneralCharacteristics.participationOptionsNote": + if e.complexity.PlanGeneralCharacteristics.ParticipationOptionsNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ParticipationOptionsNote(childComplexity), true + + case "PlanGeneralCharacteristics.planContractUpdated": + if e.complexity.PlanGeneralCharacteristics.PlanContractUpdated == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.PlanContractUpdated(childComplexity), true + + case "PlanGeneralCharacteristics.planContractUpdatedNote": + if e.complexity.PlanGeneralCharacteristics.PlanContractUpdatedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.PlanContractUpdatedNote(childComplexity), true + + case "PlanGeneralCharacteristics.readyForClearanceBy": + if e.complexity.PlanGeneralCharacteristics.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ReadyForClearanceBy(childComplexity), true + + case "PlanGeneralCharacteristics.readyForClearanceByUserAccount": + if e.complexity.PlanGeneralCharacteristics.ReadyForClearanceByUserAccount == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ReadyForClearanceByUserAccount(childComplexity), true + + case "PlanGeneralCharacteristics.readyForClearanceDts": + if e.complexity.PlanGeneralCharacteristics.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ReadyForClearanceDts(childComplexity), true + + case "PlanGeneralCharacteristics.readyForReviewBy": + if e.complexity.PlanGeneralCharacteristics.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ReadyForReviewBy(childComplexity), true + + case "PlanGeneralCharacteristics.readyForReviewByUserAccount": + if e.complexity.PlanGeneralCharacteristics.ReadyForReviewByUserAccount == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ReadyForReviewByUserAccount(childComplexity), true + + case "PlanGeneralCharacteristics.readyForReviewDts": + if e.complexity.PlanGeneralCharacteristics.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ReadyForReviewDts(childComplexity), true + + case "PlanGeneralCharacteristics.resemblesExistingModel": + if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModel == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModel(childComplexity), true + + case "PlanGeneralCharacteristics.resemblesExistingModelHow": + if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelHow == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelHow(childComplexity), true + + case "PlanGeneralCharacteristics.resemblesExistingModelNote": + if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelNote(childComplexity), true + + case "PlanGeneralCharacteristics.resemblesExistingModelOtherOption": + if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherOption == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherOption(childComplexity), true + + case "PlanGeneralCharacteristics.resemblesExistingModelOtherSelected": + if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherSelected == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherSelected(childComplexity), true + + case "PlanGeneralCharacteristics.resemblesExistingModelOtherSpecify": + if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherSpecify == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelOtherSpecify(childComplexity), true + + case "PlanGeneralCharacteristics.resemblesExistingModelWhich": + if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelWhich == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelWhich(childComplexity), true + + case "PlanGeneralCharacteristics.resemblesExistingModelWhyHow": + if e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelWhyHow == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.ResemblesExistingModelWhyHow(childComplexity), true + + case "PlanGeneralCharacteristics.rulemakingRequired": + if e.complexity.PlanGeneralCharacteristics.RulemakingRequired == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.RulemakingRequired(childComplexity), true + + case "PlanGeneralCharacteristics.rulemakingRequiredDescription": + if e.complexity.PlanGeneralCharacteristics.RulemakingRequiredDescription == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.RulemakingRequiredDescription(childComplexity), true + + case "PlanGeneralCharacteristics.rulemakingRequiredNote": + if e.complexity.PlanGeneralCharacteristics.RulemakingRequiredNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.RulemakingRequiredNote(childComplexity), true + + case "PlanGeneralCharacteristics.status": + if e.complexity.PlanGeneralCharacteristics.Status == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.Status(childComplexity), true + + case "PlanGeneralCharacteristics.waiversRequired": + if e.complexity.PlanGeneralCharacteristics.WaiversRequired == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.WaiversRequired(childComplexity), true + + case "PlanGeneralCharacteristics.waiversRequiredNote": + if e.complexity.PlanGeneralCharacteristics.WaiversRequiredNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.WaiversRequiredNote(childComplexity), true + + case "PlanGeneralCharacteristics.waiversRequiredTypes": + if e.complexity.PlanGeneralCharacteristics.WaiversRequiredTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristics.WaiversRequiredTypes(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.additionalServicesInvolved": + if e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolved == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolved(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.additionalServicesInvolvedDescription": + if e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolvedDescription == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolvedDescription(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.additionalServicesInvolvedNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolvedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AdditionalServicesInvolvedNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.agencyOrStateHelp": + if e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelp == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelp(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.agencyOrStateHelpNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelpNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelpNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.agencyOrStateHelpOther": + if e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelpOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AgencyOrStateHelpOther(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.agreementTypes": + if e.complexity.PlanGeneralCharacteristicsTranslation.AgreementTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AgreementTypes(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.agreementTypesOther": + if e.complexity.PlanGeneralCharacteristicsTranslation.AgreementTypesOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AgreementTypesOther(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.alternativePaymentModelNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.AlternativePaymentModelNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AlternativePaymentModelNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.alternativePaymentModelTypes": + if e.complexity.PlanGeneralCharacteristicsTranslation.AlternativePaymentModelTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AlternativePaymentModelTypes(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.authorityAllowances": + if e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowances == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowances(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.authorityAllowancesNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowancesNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowancesNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.authorityAllowancesOther": + if e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowancesOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.AuthorityAllowancesOther(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.careCoordinationInvolved": + if e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolved == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolved(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.careCoordinationInvolvedDescription": + if e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolvedDescription == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolvedDescription(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.careCoordinationInvolvedNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolvedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.CareCoordinationInvolvedNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.collectPlanBids": + if e.complexity.PlanGeneralCharacteristicsTranslation.CollectPlanBids == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.CollectPlanBids(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.collectPlanBidsNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.CollectPlanBidsNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.CollectPlanBidsNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.communityPartnersInvolved": + if e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolved == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolved(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.communityPartnersInvolvedDescription": + if e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolvedDescription == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolvedDescription(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.communityPartnersInvolvedNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolvedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.CommunityPartnersInvolvedNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.currentModelPlanID": + if e.complexity.PlanGeneralCharacteristicsTranslation.CurrentModelPlanID == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.CurrentModelPlanID(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.existingModel": + if e.complexity.PlanGeneralCharacteristicsTranslation.ExistingModel == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ExistingModel(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.existingModelID": + if e.complexity.PlanGeneralCharacteristicsTranslation.ExistingModelID == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ExistingModelID(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.geographiesRegionTypes": + if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesRegionTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesRegionTypes(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.geographiesStatesAndTerritories": + if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesStatesAndTerritories == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesStatesAndTerritories(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.geographiesTargeted": + if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargeted == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargeted(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.geographiesTargetedAppliedTo": + if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedAppliedTo == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedAppliedTo(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.geographiesTargetedAppliedToOther": + if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedAppliedToOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedAppliedToOther(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.geographiesTargetedNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.geographiesTargetedTypes": + if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedTypes(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.geographiesTargetedTypesOther": + if e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedTypesOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.GeographiesTargetedTypesOther(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.hasComponentsOrTracks": + if e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracks == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracks(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.hasComponentsOrTracksDiffer": + if e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracksDiffer == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracksDiffer(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.hasComponentsOrTracksNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracksNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.HasComponentsOrTracksNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.isNewModel": + if e.complexity.PlanGeneralCharacteristicsTranslation.IsNewModel == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.IsNewModel(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.keyCharacteristics": + if e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristics == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristics(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.keyCharacteristicsNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristicsNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristicsNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.keyCharacteristicsOther": + if e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristicsOther == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.KeyCharacteristicsOther(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.managePartCDEnrollment": + if e.complexity.PlanGeneralCharacteristicsTranslation.ManagePartCDEnrollment == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ManagePartCDEnrollment(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.managePartCDEnrollmentNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.ManagePartCDEnrollmentNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ManagePartCDEnrollmentNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.multiplePatricipationAgreementsNeeded": + if e.complexity.PlanGeneralCharacteristicsTranslation.MultiplePatricipationAgreementsNeeded == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.MultiplePatricipationAgreementsNeeded(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.multiplePatricipationAgreementsNeededNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.MultiplePatricipationAgreementsNeededNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.MultiplePatricipationAgreementsNeededNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.participationInModelPrecondition": + if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPrecondition == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPrecondition(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionOtherOption": + if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionOtherOption == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionOtherOption(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionOtherSpecify": + if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionOtherSpecify == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionOtherSpecify(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionWhich": + if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionWhich == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionWhich(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.participationInModelPreconditionWhyHow": + if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionWhyHow == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationInModelPreconditionWhyHow(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.participationOptions": + if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationOptions == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationOptions(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.participationOptionsNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationOptionsNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ParticipationOptionsNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.planContractUpdated": + if e.complexity.PlanGeneralCharacteristicsTranslation.PlanContractUpdated == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.PlanContractUpdated(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.planContractUpdatedNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.PlanContractUpdatedNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.PlanContractUpdatedNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.readyForClearanceBy": + if e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForClearanceBy(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.readyForClearanceDts": + if e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForClearanceDts(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.readyForReviewBy": + if e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForReviewBy(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.readyForReviewDts": + if e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ReadyForReviewDts(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.resemblesExistingModel": + if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModel == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModel(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelHow": + if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelHow == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelHow(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelOtherOption": + if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelOtherOption == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelOtherOption(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelOtherSpecify": + if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelOtherSpecify == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelOtherSpecify(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelWhich": + if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelWhich == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelWhich(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.resemblesExistingModelWhyHow": + if e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelWhyHow == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.ResemblesExistingModelWhyHow(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.rulemakingRequired": + if e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequired == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequired(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.rulemakingRequiredDescription": + if e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequiredDescription == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequiredDescription(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.rulemakingRequiredNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequiredNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.RulemakingRequiredNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.status": + if e.complexity.PlanGeneralCharacteristicsTranslation.Status == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.Status(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.waiversRequired": + if e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequired == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequired(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.waiversRequiredNote": + if e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequiredNote == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequiredNote(childComplexity), true + + case "PlanGeneralCharacteristicsTranslation.waiversRequiredTypes": + if e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequiredTypes == nil { + break + } + + return e.complexity.PlanGeneralCharacteristicsTranslation.WaiversRequiredTypes(childComplexity), true + + case "PlanOpsEvalAndLearning.anticipatedChallenges": + if e.complexity.PlanOpsEvalAndLearning.AnticipatedChallenges == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.AnticipatedChallenges(childComplexity), true + + case "PlanOpsEvalAndLearning.appToSendFilesToKnown": + if e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToKnown == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToKnown(childComplexity), true + + case "PlanOpsEvalAndLearning.appToSendFilesToNote": + if e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToNote(childComplexity), true + + case "PlanOpsEvalAndLearning.appToSendFilesToWhich": + if e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToWhich == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.AppToSendFilesToWhich(childComplexity), true + + case "PlanOpsEvalAndLearning.appealFeedback": + if e.complexity.PlanOpsEvalAndLearning.AppealFeedback == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.AppealFeedback(childComplexity), true + + case "PlanOpsEvalAndLearning.appealNote": + if e.complexity.PlanOpsEvalAndLearning.AppealNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.AppealNote(childComplexity), true + + case "PlanOpsEvalAndLearning.appealOther": + if e.complexity.PlanOpsEvalAndLearning.AppealOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.AppealOther(childComplexity), true + + case "PlanOpsEvalAndLearning.appealPayments": + if e.complexity.PlanOpsEvalAndLearning.AppealPayments == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.AppealPayments(childComplexity), true + + case "PlanOpsEvalAndLearning.appealPerformance": + if e.complexity.PlanOpsEvalAndLearning.AppealPerformance == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.AppealPerformance(childComplexity), true + + case "PlanOpsEvalAndLearning.benchmarkForPerformance": + if e.complexity.PlanOpsEvalAndLearning.BenchmarkForPerformance == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.BenchmarkForPerformance(childComplexity), true + + case "PlanOpsEvalAndLearning.benchmarkForPerformanceNote": + if e.complexity.PlanOpsEvalAndLearning.BenchmarkForPerformanceNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.BenchmarkForPerformanceNote(childComplexity), true + + case "PlanOpsEvalAndLearning.captureParticipantInfo": + if e.complexity.PlanOpsEvalAndLearning.CaptureParticipantInfo == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.CaptureParticipantInfo(childComplexity), true + + case "PlanOpsEvalAndLearning.captureParticipantInfoNote": + if e.complexity.PlanOpsEvalAndLearning.CaptureParticipantInfoNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.CaptureParticipantInfoNote(childComplexity), true + + case "PlanOpsEvalAndLearning.ccmInvolvment": + if e.complexity.PlanOpsEvalAndLearning.CcmInvolvment == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.CcmInvolvment(childComplexity), true + + case "PlanOpsEvalAndLearning.ccmInvolvmentNote": + if e.complexity.PlanOpsEvalAndLearning.CcmInvolvmentNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.CcmInvolvmentNote(childComplexity), true + + case "PlanOpsEvalAndLearning.ccmInvolvmentOther": + if e.complexity.PlanOpsEvalAndLearning.CcmInvolvmentOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.CcmInvolvmentOther(childComplexity), true + + case "PlanOpsEvalAndLearning.computePerformanceScores": + if e.complexity.PlanOpsEvalAndLearning.ComputePerformanceScores == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ComputePerformanceScores(childComplexity), true + + case "PlanOpsEvalAndLearning.computePerformanceScoresNote": + if e.complexity.PlanOpsEvalAndLearning.ComputePerformanceScoresNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ComputePerformanceScoresNote(childComplexity), true + + case "PlanOpsEvalAndLearning.contractorSupport": + if e.complexity.PlanOpsEvalAndLearning.ContractorSupport == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ContractorSupport(childComplexity), true + + case "PlanOpsEvalAndLearning.contractorSupportHow": + if e.complexity.PlanOpsEvalAndLearning.ContractorSupportHow == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ContractorSupportHow(childComplexity), true + + case "PlanOpsEvalAndLearning.contractorSupportNote": + if e.complexity.PlanOpsEvalAndLearning.ContractorSupportNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ContractorSupportNote(childComplexity), true + + case "PlanOpsEvalAndLearning.contractorSupportOther": + if e.complexity.PlanOpsEvalAndLearning.ContractorSupportOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ContractorSupportOther(childComplexity), true + + case "PlanOpsEvalAndLearning.createdBy": + if e.complexity.PlanOpsEvalAndLearning.CreatedBy == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.CreatedBy(childComplexity), true + + case "PlanOpsEvalAndLearning.createdByUserAccount": + if e.complexity.PlanOpsEvalAndLearning.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.CreatedByUserAccount(childComplexity), true + + case "PlanOpsEvalAndLearning.createdDts": + if e.complexity.PlanOpsEvalAndLearning.CreatedDts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.CreatedDts(childComplexity), true + + case "PlanOpsEvalAndLearning.dataCollectionFrequency": + if e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequency == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequency(childComplexity), true + + case "PlanOpsEvalAndLearning.dataCollectionFrequencyContinually": + if e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyContinually == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyContinually(childComplexity), true + + case "PlanOpsEvalAndLearning.dataCollectionFrequencyNote": + if e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyNote(childComplexity), true + + case "PlanOpsEvalAndLearning.dataCollectionFrequencyOther": + if e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataCollectionFrequencyOther(childComplexity), true + + case "PlanOpsEvalAndLearning.dataCollectionStarts": + if e.complexity.PlanOpsEvalAndLearning.DataCollectionStarts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataCollectionStarts(childComplexity), true + + case "PlanOpsEvalAndLearning.dataCollectionStartsOther": + if e.complexity.PlanOpsEvalAndLearning.DataCollectionStartsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataCollectionStartsOther(childComplexity), true + + case "PlanOpsEvalAndLearning.dataFlowDiagramsNeeded": + if e.complexity.PlanOpsEvalAndLearning.DataFlowDiagramsNeeded == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataFlowDiagramsNeeded(childComplexity), true + + case "PlanOpsEvalAndLearning.dataFullTimeOrIncremental": + if e.complexity.PlanOpsEvalAndLearning.DataFullTimeOrIncremental == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataFullTimeOrIncremental(childComplexity), true + + case "PlanOpsEvalAndLearning.dataMonitoringFileOther": + if e.complexity.PlanOpsEvalAndLearning.DataMonitoringFileOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataMonitoringFileOther(childComplexity), true + + case "PlanOpsEvalAndLearning.dataMonitoringFileTypes": + if e.complexity.PlanOpsEvalAndLearning.DataMonitoringFileTypes == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataMonitoringFileTypes(childComplexity), true + + case "PlanOpsEvalAndLearning.dataMonitoringNote": + if e.complexity.PlanOpsEvalAndLearning.DataMonitoringNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataMonitoringNote(childComplexity), true + + case "PlanOpsEvalAndLearning.dataNeededForMonitoring": + if e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoring == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoring(childComplexity), true + + case "PlanOpsEvalAndLearning.dataNeededForMonitoringNote": + if e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoringNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoringNote(childComplexity), true + + case "PlanOpsEvalAndLearning.dataNeededForMonitoringOther": + if e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoringOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataNeededForMonitoringOther(childComplexity), true + + case "PlanOpsEvalAndLearning.dataResponseFileFrequency": + if e.complexity.PlanOpsEvalAndLearning.DataResponseFileFrequency == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataResponseFileFrequency(childComplexity), true + + case "PlanOpsEvalAndLearning.dataResponseType": + if e.complexity.PlanOpsEvalAndLearning.DataResponseType == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataResponseType(childComplexity), true + + case "PlanOpsEvalAndLearning.dataSharingFrequency": + if e.complexity.PlanOpsEvalAndLearning.DataSharingFrequency == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataSharingFrequency(childComplexity), true + + case "PlanOpsEvalAndLearning.dataSharingFrequencyContinually": + if e.complexity.PlanOpsEvalAndLearning.DataSharingFrequencyContinually == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataSharingFrequencyContinually(childComplexity), true + + case "PlanOpsEvalAndLearning.dataSharingFrequencyOther": + if e.complexity.PlanOpsEvalAndLearning.DataSharingFrequencyOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataSharingFrequencyOther(childComplexity), true + + case "PlanOpsEvalAndLearning.dataSharingStarts": + if e.complexity.PlanOpsEvalAndLearning.DataSharingStarts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataSharingStarts(childComplexity), true + + case "PlanOpsEvalAndLearning.dataSharingStartsNote": + if e.complexity.PlanOpsEvalAndLearning.DataSharingStartsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataSharingStartsNote(childComplexity), true + + case "PlanOpsEvalAndLearning.dataSharingStartsOther": + if e.complexity.PlanOpsEvalAndLearning.DataSharingStartsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataSharingStartsOther(childComplexity), true + + case "PlanOpsEvalAndLearning.dataToSendParticicipants": + if e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipants == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipants(childComplexity), true + + case "PlanOpsEvalAndLearning.dataToSendParticicipantsNote": + if e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipantsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipantsNote(childComplexity), true + + case "PlanOpsEvalAndLearning.dataToSendParticicipantsOther": + if e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipantsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DataToSendParticicipantsOther(childComplexity), true + + case "PlanOpsEvalAndLearning.developNewQualityMeasures": + if e.complexity.PlanOpsEvalAndLearning.DevelopNewQualityMeasures == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DevelopNewQualityMeasures(childComplexity), true + + case "PlanOpsEvalAndLearning.developNewQualityMeasuresNote": + if e.complexity.PlanOpsEvalAndLearning.DevelopNewQualityMeasuresNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DevelopNewQualityMeasuresNote(childComplexity), true + + case "PlanOpsEvalAndLearning.draftIcdDueDate": + if e.complexity.PlanOpsEvalAndLearning.DraftIcdDueDate == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.DraftIcdDueDate(childComplexity), true + + case "PlanOpsEvalAndLearning.eftSetUp": + if e.complexity.PlanOpsEvalAndLearning.EftSetUp == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.EftSetUp(childComplexity), true + + case "PlanOpsEvalAndLearning.evaluationApproachOther": + if e.complexity.PlanOpsEvalAndLearning.EvaluationApproachOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.EvaluationApproachOther(childComplexity), true + + case "PlanOpsEvalAndLearning.evaluationApproaches": + if e.complexity.PlanOpsEvalAndLearning.EvaluationApproaches == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.EvaluationApproaches(childComplexity), true + + case "PlanOpsEvalAndLearning.evalutaionApproachNote": + if e.complexity.PlanOpsEvalAndLearning.EvalutaionApproachNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.EvalutaionApproachNote(childComplexity), true + + case "PlanOpsEvalAndLearning.fileNamingConventions": + if e.complexity.PlanOpsEvalAndLearning.FileNamingConventions == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.FileNamingConventions(childComplexity), true + + case "PlanOpsEvalAndLearning.helpdeskUse": + if e.complexity.PlanOpsEvalAndLearning.HelpdeskUse == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.HelpdeskUse(childComplexity), true + + case "PlanOpsEvalAndLearning.helpdeskUseNote": + if e.complexity.PlanOpsEvalAndLearning.HelpdeskUseNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.HelpdeskUseNote(childComplexity), true + + case "PlanOpsEvalAndLearning.id": + if e.complexity.PlanOpsEvalAndLearning.ID == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ID(childComplexity), true + + case "PlanOpsEvalAndLearning.icdNote": + if e.complexity.PlanOpsEvalAndLearning.IcdNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.IcdNote(childComplexity), true + + case "PlanOpsEvalAndLearning.icdOwner": + if e.complexity.PlanOpsEvalAndLearning.IcdOwner == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.IcdOwner(childComplexity), true + + case "PlanOpsEvalAndLearning.iddocSupport": + if e.complexity.PlanOpsEvalAndLearning.IddocSupport == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.IddocSupport(childComplexity), true + + case "PlanOpsEvalAndLearning.iddocSupportNote": + if e.complexity.PlanOpsEvalAndLearning.IddocSupportNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.IddocSupportNote(childComplexity), true + + case "PlanOpsEvalAndLearning.modelLearningSystems": + if e.complexity.PlanOpsEvalAndLearning.ModelLearningSystems == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ModelLearningSystems(childComplexity), true + + case "PlanOpsEvalAndLearning.modelLearningSystemsNote": + if e.complexity.PlanOpsEvalAndLearning.ModelLearningSystemsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ModelLearningSystemsNote(childComplexity), true + + case "PlanOpsEvalAndLearning.modelLearningSystemsOther": + if e.complexity.PlanOpsEvalAndLearning.ModelLearningSystemsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ModelLearningSystemsOther(childComplexity), true + + case "PlanOpsEvalAndLearning.modelPlanID": + if e.complexity.PlanOpsEvalAndLearning.ModelPlanID == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ModelPlanID(childComplexity), true + + case "PlanOpsEvalAndLearning.modifiedBy": + if e.complexity.PlanOpsEvalAndLearning.ModifiedBy == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ModifiedBy(childComplexity), true + + case "PlanOpsEvalAndLearning.modifiedByUserAccount": + if e.complexity.PlanOpsEvalAndLearning.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ModifiedByUserAccount(childComplexity), true + + case "PlanOpsEvalAndLearning.modifiedDts": + if e.complexity.PlanOpsEvalAndLearning.ModifiedDts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ModifiedDts(childComplexity), true + + case "PlanOpsEvalAndLearning.produceBenefitEnhancementFiles": + if e.complexity.PlanOpsEvalAndLearning.ProduceBenefitEnhancementFiles == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ProduceBenefitEnhancementFiles(childComplexity), true + + case "PlanOpsEvalAndLearning.qualityPerformanceImpactsPayment": + if e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPayment == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPayment(childComplexity), true + + case "PlanOpsEvalAndLearning.qualityPerformanceImpactsPaymentNote": + if e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPaymentNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPaymentNote(childComplexity), true + + case "PlanOpsEvalAndLearning.qualityPerformanceImpactsPaymentOther": + if e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPaymentOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.QualityPerformanceImpactsPaymentOther(childComplexity), true + + case "PlanOpsEvalAndLearning.qualityReportingFrequency": + if e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequency == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequency(childComplexity), true + + case "PlanOpsEvalAndLearning.qualityReportingFrequencyContinually": + if e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequencyContinually == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequencyContinually(childComplexity), true + + case "PlanOpsEvalAndLearning.qualityReportingFrequencyOther": + if e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequencyOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.QualityReportingFrequencyOther(childComplexity), true + + case "PlanOpsEvalAndLearning.qualityReportingStarts": + if e.complexity.PlanOpsEvalAndLearning.QualityReportingStarts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.QualityReportingStarts(childComplexity), true + + case "PlanOpsEvalAndLearning.qualityReportingStartsNote": + if e.complexity.PlanOpsEvalAndLearning.QualityReportingStartsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.QualityReportingStartsNote(childComplexity), true + + case "PlanOpsEvalAndLearning.qualityReportingStartsOther": + if e.complexity.PlanOpsEvalAndLearning.QualityReportingStartsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.QualityReportingStartsOther(childComplexity), true + + case "PlanOpsEvalAndLearning.readyForClearanceBy": + if e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceBy(childComplexity), true + + case "PlanOpsEvalAndLearning.readyForClearanceByUserAccount": + if e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceByUserAccount == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceByUserAccount(childComplexity), true + + case "PlanOpsEvalAndLearning.readyForClearanceDts": + if e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ReadyForClearanceDts(childComplexity), true + + case "PlanOpsEvalAndLearning.readyForReviewBy": + if e.complexity.PlanOpsEvalAndLearning.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ReadyForReviewBy(childComplexity), true + + case "PlanOpsEvalAndLearning.readyForReviewByUserAccount": + if e.complexity.PlanOpsEvalAndLearning.ReadyForReviewByUserAccount == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ReadyForReviewByUserAccount(childComplexity), true + + case "PlanOpsEvalAndLearning.readyForReviewDts": + if e.complexity.PlanOpsEvalAndLearning.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ReadyForReviewDts(childComplexity), true + + case "PlanOpsEvalAndLearning.riskAdjustFeedback": + if e.complexity.PlanOpsEvalAndLearning.RiskAdjustFeedback == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.RiskAdjustFeedback(childComplexity), true + + case "PlanOpsEvalAndLearning.riskAdjustNote": + if e.complexity.PlanOpsEvalAndLearning.RiskAdjustNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.RiskAdjustNote(childComplexity), true + + case "PlanOpsEvalAndLearning.riskAdjustOther": + if e.complexity.PlanOpsEvalAndLearning.RiskAdjustOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.RiskAdjustOther(childComplexity), true + + case "PlanOpsEvalAndLearning.riskAdjustPayments": + if e.complexity.PlanOpsEvalAndLearning.RiskAdjustPayments == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.RiskAdjustPayments(childComplexity), true + + case "PlanOpsEvalAndLearning.riskAdjustPerformance": + if e.complexity.PlanOpsEvalAndLearning.RiskAdjustPerformance == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.RiskAdjustPerformance(childComplexity), true + + case "PlanOpsEvalAndLearning.sendFilesBetweenCcw": + if e.complexity.PlanOpsEvalAndLearning.SendFilesBetweenCcw == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.SendFilesBetweenCcw(childComplexity), true + + case "PlanOpsEvalAndLearning.sendFilesBetweenCcwNote": + if e.complexity.PlanOpsEvalAndLearning.SendFilesBetweenCcwNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.SendFilesBetweenCcwNote(childComplexity), true + + case "PlanOpsEvalAndLearning.shareCclfData": + if e.complexity.PlanOpsEvalAndLearning.ShareCclfData == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ShareCclfData(childComplexity), true + + case "PlanOpsEvalAndLearning.shareCclfDataNote": + if e.complexity.PlanOpsEvalAndLearning.ShareCclfDataNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.ShareCclfDataNote(childComplexity), true + + case "PlanOpsEvalAndLearning.stakeholders": + if e.complexity.PlanOpsEvalAndLearning.Stakeholders == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.Stakeholders(childComplexity), true + + case "PlanOpsEvalAndLearning.stakeholdersNote": + if e.complexity.PlanOpsEvalAndLearning.StakeholdersNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.StakeholdersNote(childComplexity), true + + case "PlanOpsEvalAndLearning.stakeholdersOther": + if e.complexity.PlanOpsEvalAndLearning.StakeholdersOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.StakeholdersOther(childComplexity), true + + case "PlanOpsEvalAndLearning.status": + if e.complexity.PlanOpsEvalAndLearning.Status == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.Status(childComplexity), true + + case "PlanOpsEvalAndLearning.stcNeeds": + if e.complexity.PlanOpsEvalAndLearning.StcNeeds == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.StcNeeds(childComplexity), true + + case "PlanOpsEvalAndLearning.technicalContactsIdentified": + if e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentified == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentified(childComplexity), true + + case "PlanOpsEvalAndLearning.technicalContactsIdentifiedDetail": + if e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentifiedDetail == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentifiedDetail(childComplexity), true + + case "PlanOpsEvalAndLearning.technicalContactsIdentifiedNote": + if e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentifiedNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.TechnicalContactsIdentifiedNote(childComplexity), true + + case "PlanOpsEvalAndLearning.testingNote": + if e.complexity.PlanOpsEvalAndLearning.TestingNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.TestingNote(childComplexity), true + + case "PlanOpsEvalAndLearning.testingTimelines": + if e.complexity.PlanOpsEvalAndLearning.TestingTimelines == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.TestingTimelines(childComplexity), true + + case "PlanOpsEvalAndLearning.uatNeeds": + if e.complexity.PlanOpsEvalAndLearning.UatNeeds == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.UatNeeds(childComplexity), true + + case "PlanOpsEvalAndLearning.unsolicitedAdjustmentsIncluded": + if e.complexity.PlanOpsEvalAndLearning.UnsolicitedAdjustmentsIncluded == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.UnsolicitedAdjustmentsIncluded(childComplexity), true + + case "PlanOpsEvalAndLearning.useCcwForFileDistribiutionToParticipants": + if e.complexity.PlanOpsEvalAndLearning.UseCcwForFileDistribiutionToParticipants == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.UseCcwForFileDistribiutionToParticipants(childComplexity), true + + case "PlanOpsEvalAndLearning.useCcwForFileDistribiutionToParticipantsNote": + if e.complexity.PlanOpsEvalAndLearning.UseCcwForFileDistribiutionToParticipantsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearning.UseCcwForFileDistribiutionToParticipantsNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.anticipatedChallenges": + if e.complexity.PlanOpsEvalAndLearningTranslation.AnticipatedChallenges == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.AnticipatedChallenges(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.appToSendFilesToKnown": + if e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToKnown == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToKnown(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.appToSendFilesToNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.appToSendFilesToWhich": + if e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToWhich == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.AppToSendFilesToWhich(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.appealFeedback": + if e.complexity.PlanOpsEvalAndLearningTranslation.AppealFeedback == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.AppealFeedback(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.appealNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.AppealNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.AppealNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.appealOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.AppealOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.AppealOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.appealPayments": + if e.complexity.PlanOpsEvalAndLearningTranslation.AppealPayments == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.AppealPayments(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.appealPerformance": + if e.complexity.PlanOpsEvalAndLearningTranslation.AppealPerformance == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.AppealPerformance(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.benchmarkForPerformance": + if e.complexity.PlanOpsEvalAndLearningTranslation.BenchmarkForPerformance == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.BenchmarkForPerformance(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.benchmarkForPerformanceNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.BenchmarkForPerformanceNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.BenchmarkForPerformanceNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.captureParticipantInfo": + if e.complexity.PlanOpsEvalAndLearningTranslation.CaptureParticipantInfo == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.CaptureParticipantInfo(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.captureParticipantInfoNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.CaptureParticipantInfoNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.CaptureParticipantInfoNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.ccmInvolvment": + if e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvment == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvment(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.ccmInvolvmentNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvmentNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvmentNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.ccmInvolvmentOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvmentOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.CcmInvolvmentOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.computePerformanceScores": + if e.complexity.PlanOpsEvalAndLearningTranslation.ComputePerformanceScores == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ComputePerformanceScores(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.computePerformanceScoresNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.ComputePerformanceScoresNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ComputePerformanceScoresNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.contractorSupport": + if e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupport == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupport(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.contractorSupportHow": + if e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportHow == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportHow(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.contractorSupportNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.contractorSupportOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ContractorSupportOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataCollectionFrequency": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequency == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequency(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataCollectionFrequencyContinually": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyContinually == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyContinually(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataCollectionFrequencyNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataCollectionFrequencyOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionFrequencyOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataCollectionStarts": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionStarts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionStarts(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataCollectionStartsOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionStartsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataCollectionStartsOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataFlowDiagramsNeeded": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataFlowDiagramsNeeded == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataFlowDiagramsNeeded(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataFullTimeOrIncremental": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataFullTimeOrIncremental == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataFullTimeOrIncremental(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataMonitoringFileOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringFileOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringFileOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataMonitoringFileTypes": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringFileTypes == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringFileTypes(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataMonitoringNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataMonitoringNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataNeededForMonitoring": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoring == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoring(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataNeededForMonitoringNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoringNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoringNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataNeededForMonitoringOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoringOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataNeededForMonitoringOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataResponseFileFrequency": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataResponseFileFrequency == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataResponseFileFrequency(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataResponseType": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataResponseType == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataResponseType(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataSharingFrequency": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequency == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequency(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataSharingFrequencyContinually": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequencyContinually == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequencyContinually(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataSharingFrequencyOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequencyOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingFrequencyOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataSharingStarts": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStarts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStarts(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataSharingStartsNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStartsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStartsNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataSharingStartsOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStartsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataSharingStartsOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataToSendParticicipants": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipants == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipants(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataToSendParticicipantsNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipantsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipantsNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.dataToSendParticicipantsOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipantsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DataToSendParticicipantsOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.developNewQualityMeasures": + if e.complexity.PlanOpsEvalAndLearningTranslation.DevelopNewQualityMeasures == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DevelopNewQualityMeasures(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.developNewQualityMeasuresNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.DevelopNewQualityMeasuresNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DevelopNewQualityMeasuresNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.draftIcdDueDate": + if e.complexity.PlanOpsEvalAndLearningTranslation.DraftIcdDueDate == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.DraftIcdDueDate(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.eftSetUp": + if e.complexity.PlanOpsEvalAndLearningTranslation.EftSetUp == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.EftSetUp(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.evaluationApproachOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.EvaluationApproachOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.EvaluationApproachOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.evaluationApproaches": + if e.complexity.PlanOpsEvalAndLearningTranslation.EvaluationApproaches == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.EvaluationApproaches(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.evalutaionApproachNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.EvalutaionApproachNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.EvalutaionApproachNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.fileNamingConventions": + if e.complexity.PlanOpsEvalAndLearningTranslation.FileNamingConventions == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.FileNamingConventions(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.helpdeskUse": + if e.complexity.PlanOpsEvalAndLearningTranslation.HelpdeskUse == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.HelpdeskUse(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.helpdeskUseNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.HelpdeskUseNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.HelpdeskUseNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.icdNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.IcdNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.IcdNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.icdOwner": + if e.complexity.PlanOpsEvalAndLearningTranslation.IcdOwner == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.IcdOwner(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.iddocSupport": + if e.complexity.PlanOpsEvalAndLearningTranslation.IddocSupport == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.IddocSupport(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.iddocSupportNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.IddocSupportNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.IddocSupportNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.modelLearningSystems": + if e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystems == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystems(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.modelLearningSystemsNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystemsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystemsNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.modelLearningSystemsOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystemsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ModelLearningSystemsOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.produceBenefitEnhancementFiles": + if e.complexity.PlanOpsEvalAndLearningTranslation.ProduceBenefitEnhancementFiles == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ProduceBenefitEnhancementFiles(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.qualityPerformanceImpactsPayment": + if e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPayment == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPayment(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.qualityPerformanceImpactsPaymentNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPaymentNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPaymentNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.qualityPerformanceImpactsPaymentOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPaymentOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.QualityPerformanceImpactsPaymentOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.qualityReportingFrequency": + if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequency == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequency(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.qualityReportingFrequencyContinually": + if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequencyContinually == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequencyContinually(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.qualityReportingFrequencyOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequencyOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingFrequencyOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.qualityReportingStarts": + if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStarts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStarts(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.qualityReportingStartsNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStartsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStartsNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.qualityReportingStartsOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStartsOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.QualityReportingStartsOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.readyForClearanceBy": + if e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForClearanceBy(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.readyForClearanceDts": + if e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForClearanceDts(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.readyForReviewBy": + if e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForReviewBy(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.readyForReviewDts": + if e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ReadyForReviewDts(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.riskAdjustFeedback": + if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustFeedback == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustFeedback(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.riskAdjustNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.riskAdjustOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.riskAdjustPayments": + if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustPayments == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustPayments(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.riskAdjustPerformance": + if e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustPerformance == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.RiskAdjustPerformance(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.sendFilesBetweenCcw": + if e.complexity.PlanOpsEvalAndLearningTranslation.SendFilesBetweenCcw == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.SendFilesBetweenCcw(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.sendFilesBetweenCcwNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.SendFilesBetweenCcwNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.SendFilesBetweenCcwNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.shareCclfData": + if e.complexity.PlanOpsEvalAndLearningTranslation.ShareCclfData == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ShareCclfData(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.shareCclfDataNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.ShareCclfDataNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.ShareCclfDataNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.stakeholders": + if e.complexity.PlanOpsEvalAndLearningTranslation.Stakeholders == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.Stakeholders(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.stakeholdersNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.StakeholdersNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.StakeholdersNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.stakeholdersOther": + if e.complexity.PlanOpsEvalAndLearningTranslation.StakeholdersOther == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.StakeholdersOther(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.status": + if e.complexity.PlanOpsEvalAndLearningTranslation.Status == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.Status(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.stcNeeds": + if e.complexity.PlanOpsEvalAndLearningTranslation.StcNeeds == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.StcNeeds(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.technicalContactsIdentified": + if e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentified == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentified(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.technicalContactsIdentifiedDetail": + if e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentifiedDetail == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentifiedDetail(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.technicalContactsIdentifiedNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentifiedNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.TechnicalContactsIdentifiedNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.testingNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.TestingNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.TestingNote(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.testingTimelines": + if e.complexity.PlanOpsEvalAndLearningTranslation.TestingTimelines == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.TestingTimelines(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.uatNeeds": + if e.complexity.PlanOpsEvalAndLearningTranslation.UatNeeds == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.UatNeeds(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.unsolicitedAdjustmentsIncluded": + if e.complexity.PlanOpsEvalAndLearningTranslation.UnsolicitedAdjustmentsIncluded == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.UnsolicitedAdjustmentsIncluded(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.useCcwForFileDistribiutionToParticipants": + if e.complexity.PlanOpsEvalAndLearningTranslation.UseCcwForFileDistribiutionToParticipants == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.UseCcwForFileDistribiutionToParticipants(childComplexity), true + + case "PlanOpsEvalAndLearningTranslation.useCcwForFileDistribiutionToParticipantsNote": + if e.complexity.PlanOpsEvalAndLearningTranslation.UseCcwForFileDistribiutionToParticipantsNote == nil { + break + } + + return e.complexity.PlanOpsEvalAndLearningTranslation.UseCcwForFileDistribiutionToParticipantsNote(childComplexity), true + + case "PlanParticipantsAndProviders.communicationMethod": + if e.complexity.PlanParticipantsAndProviders.CommunicationMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.CommunicationMethod(childComplexity), true + + case "PlanParticipantsAndProviders.communicationMethodOther": + if e.complexity.PlanParticipantsAndProviders.CommunicationMethodOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.CommunicationMethodOther(childComplexity), true + + case "PlanParticipantsAndProviders.communicationNote": + if e.complexity.PlanParticipantsAndProviders.CommunicationNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.CommunicationNote(childComplexity), true + + case "PlanParticipantsAndProviders.confidenceNote": + if e.complexity.PlanParticipantsAndProviders.ConfidenceNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ConfidenceNote(childComplexity), true + + case "PlanParticipantsAndProviders.coordinateWork": + if e.complexity.PlanParticipantsAndProviders.CoordinateWork == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.CoordinateWork(childComplexity), true + + case "PlanParticipantsAndProviders.coordinateWorkNote": + if e.complexity.PlanParticipantsAndProviders.CoordinateWorkNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.CoordinateWorkNote(childComplexity), true + + case "PlanParticipantsAndProviders.createdBy": + if e.complexity.PlanParticipantsAndProviders.CreatedBy == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.CreatedBy(childComplexity), true + + case "PlanParticipantsAndProviders.createdByUserAccount": + if e.complexity.PlanParticipantsAndProviders.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.CreatedByUserAccount(childComplexity), true + + case "PlanParticipantsAndProviders.createdDts": + if e.complexity.PlanParticipantsAndProviders.CreatedDts == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.CreatedDts(childComplexity), true + + case "PlanParticipantsAndProviders.estimateConfidence": + if e.complexity.PlanParticipantsAndProviders.EstimateConfidence == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.EstimateConfidence(childComplexity), true + + case "PlanParticipantsAndProviders.expectedNumberOfParticipants": + if e.complexity.PlanParticipantsAndProviders.ExpectedNumberOfParticipants == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ExpectedNumberOfParticipants(childComplexity), true + + case "PlanParticipantsAndProviders.gainsharePayments": + if e.complexity.PlanParticipantsAndProviders.GainsharePayments == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.GainsharePayments(childComplexity), true + + case "PlanParticipantsAndProviders.gainsharePaymentsEligibility": + if e.complexity.PlanParticipantsAndProviders.GainsharePaymentsEligibility == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.GainsharePaymentsEligibility(childComplexity), true + + case "PlanParticipantsAndProviders.gainsharePaymentsEligibilityOther": + if e.complexity.PlanParticipantsAndProviders.GainsharePaymentsEligibilityOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.GainsharePaymentsEligibilityOther(childComplexity), true + + case "PlanParticipantsAndProviders.gainsharePaymentsNote": + if e.complexity.PlanParticipantsAndProviders.GainsharePaymentsNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.GainsharePaymentsNote(childComplexity), true + + case "PlanParticipantsAndProviders.gainsharePaymentsTrack": + if e.complexity.PlanParticipantsAndProviders.GainsharePaymentsTrack == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.GainsharePaymentsTrack(childComplexity), true + + case "PlanParticipantsAndProviders.id": + if e.complexity.PlanParticipantsAndProviders.ID == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ID(childComplexity), true + + case "PlanParticipantsAndProviders.isNewTypeOfProvidersOrSuppliers": + if e.complexity.PlanParticipantsAndProviders.IsNewTypeOfProvidersOrSuppliers == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.IsNewTypeOfProvidersOrSuppliers(childComplexity), true + + case "PlanParticipantsAndProviders.medicareProviderType": + if e.complexity.PlanParticipantsAndProviders.MedicareProviderType == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.MedicareProviderType(childComplexity), true + + case "PlanParticipantsAndProviders.modelApplicationLevel": + if e.complexity.PlanParticipantsAndProviders.ModelApplicationLevel == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ModelApplicationLevel(childComplexity), true + + case "PlanParticipantsAndProviders.modelPlanID": + if e.complexity.PlanParticipantsAndProviders.ModelPlanID == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ModelPlanID(childComplexity), true + + case "PlanParticipantsAndProviders.modifiedBy": + if e.complexity.PlanParticipantsAndProviders.ModifiedBy == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ModifiedBy(childComplexity), true + + case "PlanParticipantsAndProviders.modifiedByUserAccount": + if e.complexity.PlanParticipantsAndProviders.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ModifiedByUserAccount(childComplexity), true + + case "PlanParticipantsAndProviders.modifiedDts": + if e.complexity.PlanParticipantsAndProviders.ModifiedDts == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ModifiedDts(childComplexity), true + + case "PlanParticipantsAndProviders.participantAddedFrequency": + if e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequency == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequency(childComplexity), true + + case "PlanParticipantsAndProviders.participantAddedFrequencyContinually": + if e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyContinually == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyContinually(childComplexity), true + + case "PlanParticipantsAndProviders.participantAddedFrequencyNote": + if e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyNote(childComplexity), true + + case "PlanParticipantsAndProviders.participantAddedFrequencyOther": + if e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantAddedFrequencyOther(childComplexity), true + + case "PlanParticipantsAndProviders.participantRemovedFrequency": + if e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequency == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequency(childComplexity), true + + case "PlanParticipantsAndProviders.participantRemovedFrequencyContinually": + if e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyContinually == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyContinually(childComplexity), true + + case "PlanParticipantsAndProviders.participantRemovedFrequencyNote": + if e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyNote(childComplexity), true + + case "PlanParticipantsAndProviders.participantRemovedFrequencyOther": + if e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantRemovedFrequencyOther(childComplexity), true + + case "PlanParticipantsAndProviders.participantRequireFinancialGuarantee": + if e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuarantee == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuarantee(childComplexity), true + + case "PlanParticipantsAndProviders.participantRequireFinancialGuaranteeNote": + if e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeNote(childComplexity), true + + case "PlanParticipantsAndProviders.participantRequireFinancialGuaranteeOther": + if e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeOther(childComplexity), true + + case "PlanParticipantsAndProviders.participantRequireFinancialGuaranteeType": + if e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeType == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantRequireFinancialGuaranteeType(childComplexity), true + + case "PlanParticipantsAndProviders.participants": + if e.complexity.PlanParticipantsAndProviders.Participants == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.Participants(childComplexity), true + + case "PlanParticipantsAndProviders.participantsCurrentlyInModels": + if e.complexity.PlanParticipantsAndProviders.ParticipantsCurrentlyInModels == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantsCurrentlyInModels(childComplexity), true + + case "PlanParticipantsAndProviders.participantsCurrentlyInModelsNote": + if e.complexity.PlanParticipantsAndProviders.ParticipantsCurrentlyInModelsNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantsCurrentlyInModelsNote(childComplexity), true + + case "PlanParticipantsAndProviders.participantsIDSNote": + if e.complexity.PlanParticipantsAndProviders.ParticipantsIDSNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantsIDSNote(childComplexity), true + + case "PlanParticipantsAndProviders.participantsIds": + if e.complexity.PlanParticipantsAndProviders.ParticipantsIds == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantsIds(childComplexity), true + + case "PlanParticipantsAndProviders.participantsIdsOther": + if e.complexity.PlanParticipantsAndProviders.ParticipantsIdsOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantsIdsOther(childComplexity), true + + case "PlanParticipantsAndProviders.participantsNote": + if e.complexity.PlanParticipantsAndProviders.ParticipantsNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantsNote(childComplexity), true + + case "PlanParticipantsAndProviders.participantsOther": + if e.complexity.PlanParticipantsAndProviders.ParticipantsOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ParticipantsOther(childComplexity), true + + case "PlanParticipantsAndProviders.providerAddMethod": + if e.complexity.PlanParticipantsAndProviders.ProviderAddMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderAddMethod(childComplexity), true + + case "PlanParticipantsAndProviders.providerAddMethodNote": + if e.complexity.PlanParticipantsAndProviders.ProviderAddMethodNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderAddMethodNote(childComplexity), true + + case "PlanParticipantsAndProviders.providerAddMethodOther": + if e.complexity.PlanParticipantsAndProviders.ProviderAddMethodOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderAddMethodOther(childComplexity), true + + case "PlanParticipantsAndProviders.providerAdditionFrequency": + if e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequency == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequency(childComplexity), true + + case "PlanParticipantsAndProviders.providerAdditionFrequencyContinually": + if e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyContinually == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyContinually(childComplexity), true + + case "PlanParticipantsAndProviders.providerAdditionFrequencyNote": + if e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyNote(childComplexity), true + + case "PlanParticipantsAndProviders.providerAdditionFrequencyOther": + if e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderAdditionFrequencyOther(childComplexity), true + + case "PlanParticipantsAndProviders.providerLeaveMethod": + if e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethod(childComplexity), true + + case "PlanParticipantsAndProviders.providerLeaveMethodNote": + if e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethodNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethodNote(childComplexity), true + + case "PlanParticipantsAndProviders.providerLeaveMethodOther": + if e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethodOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderLeaveMethodOther(childComplexity), true + + case "PlanParticipantsAndProviders.providerOverlap": + if e.complexity.PlanParticipantsAndProviders.ProviderOverlap == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderOverlap(childComplexity), true + + case "PlanParticipantsAndProviders.providerOverlapHierarchy": + if e.complexity.PlanParticipantsAndProviders.ProviderOverlapHierarchy == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderOverlapHierarchy(childComplexity), true + + case "PlanParticipantsAndProviders.providerOverlapNote": + if e.complexity.PlanParticipantsAndProviders.ProviderOverlapNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderOverlapNote(childComplexity), true + + case "PlanParticipantsAndProviders.providerRemovalFrequency": + if e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequency == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequency(childComplexity), true + + case "PlanParticipantsAndProviders.providerRemovalFrequencyContinually": + if e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyContinually == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyContinually(childComplexity), true + + case "PlanParticipantsAndProviders.providerRemovalFrequencyNote": + if e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyNote(childComplexity), true + + case "PlanParticipantsAndProviders.providerRemovalFrequencyOther": + if e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ProviderRemovalFrequencyOther(childComplexity), true + + case "PlanParticipantsAndProviders.readyForClearanceBy": + if e.complexity.PlanParticipantsAndProviders.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ReadyForClearanceBy(childComplexity), true + + case "PlanParticipantsAndProviders.readyForClearanceByUserAccount": + if e.complexity.PlanParticipantsAndProviders.ReadyForClearanceByUserAccount == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ReadyForClearanceByUserAccount(childComplexity), true + + case "PlanParticipantsAndProviders.readyForClearanceDts": + if e.complexity.PlanParticipantsAndProviders.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ReadyForClearanceDts(childComplexity), true + + case "PlanParticipantsAndProviders.readyForReviewBy": + if e.complexity.PlanParticipantsAndProviders.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ReadyForReviewBy(childComplexity), true + + case "PlanParticipantsAndProviders.readyForReviewByUserAccount": + if e.complexity.PlanParticipantsAndProviders.ReadyForReviewByUserAccount == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ReadyForReviewByUserAccount(childComplexity), true + + case "PlanParticipantsAndProviders.readyForReviewDts": + if e.complexity.PlanParticipantsAndProviders.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.ReadyForReviewDts(childComplexity), true + + case "PlanParticipantsAndProviders.recruitmentMethod": + if e.complexity.PlanParticipantsAndProviders.RecruitmentMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.RecruitmentMethod(childComplexity), true + + case "PlanParticipantsAndProviders.recruitmentNote": + if e.complexity.PlanParticipantsAndProviders.RecruitmentNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.RecruitmentNote(childComplexity), true + + case "PlanParticipantsAndProviders.recruitmentOther": + if e.complexity.PlanParticipantsAndProviders.RecruitmentOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.RecruitmentOther(childComplexity), true + + case "PlanParticipantsAndProviders.riskNote": + if e.complexity.PlanParticipantsAndProviders.RiskNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.RiskNote(childComplexity), true + + case "PlanParticipantsAndProviders.riskOther": + if e.complexity.PlanParticipantsAndProviders.RiskOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.RiskOther(childComplexity), true + + case "PlanParticipantsAndProviders.riskType": + if e.complexity.PlanParticipantsAndProviders.RiskType == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.RiskType(childComplexity), true + + case "PlanParticipantsAndProviders.selectionMethod": + if e.complexity.PlanParticipantsAndProviders.SelectionMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.SelectionMethod(childComplexity), true + + case "PlanParticipantsAndProviders.selectionNote": + if e.complexity.PlanParticipantsAndProviders.SelectionNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.SelectionNote(childComplexity), true + + case "PlanParticipantsAndProviders.selectionOther": + if e.complexity.PlanParticipantsAndProviders.SelectionOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.SelectionOther(childComplexity), true + + case "PlanParticipantsAndProviders.statesEngagement": + if e.complexity.PlanParticipantsAndProviders.StatesEngagement == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.StatesEngagement(childComplexity), true + + case "PlanParticipantsAndProviders.status": + if e.complexity.PlanParticipantsAndProviders.Status == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.Status(childComplexity), true + + case "PlanParticipantsAndProviders.willRiskChange": + if e.complexity.PlanParticipantsAndProviders.WillRiskChange == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.WillRiskChange(childComplexity), true + + case "PlanParticipantsAndProviders.willRiskChangeNote": + if e.complexity.PlanParticipantsAndProviders.WillRiskChangeNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProviders.WillRiskChangeNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.communicationMethod": + if e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationMethod(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.communicationMethodOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationMethodOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationMethodOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.communicationNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.CommunicationNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.confidenceNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ConfidenceNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ConfidenceNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.coordinateWork": + if e.complexity.PlanParticipantsAndProvidersTranslation.CoordinateWork == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.CoordinateWork(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.coordinateWorkNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.CoordinateWorkNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.CoordinateWorkNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.estimateConfidence": + if e.complexity.PlanParticipantsAndProvidersTranslation.EstimateConfidence == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.EstimateConfidence(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.expectedNumberOfParticipants": + if e.complexity.PlanParticipantsAndProvidersTranslation.ExpectedNumberOfParticipants == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ExpectedNumberOfParticipants(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.gainsharePayments": + if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePayments == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePayments(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.gainsharePaymentsEligibility": + if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsEligibility == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsEligibility(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.gainsharePaymentsEligibilityOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsEligibilityOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsEligibilityOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.gainsharePaymentsNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.gainsharePaymentsTrack": + if e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsTrack == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.GainsharePaymentsTrack(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.isNewTypeOfProvidersOrSuppliers": + if e.complexity.PlanParticipantsAndProvidersTranslation.IsNewTypeOfProvidersOrSuppliers == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.IsNewTypeOfProvidersOrSuppliers(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.medicareProviderType": + if e.complexity.PlanParticipantsAndProvidersTranslation.MedicareProviderType == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.MedicareProviderType(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.modelApplicationLevel": + if e.complexity.PlanParticipantsAndProvidersTranslation.ModelApplicationLevel == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ModelApplicationLevel(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantAddedFrequency": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequency == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequency(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantAddedFrequencyContinually": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyContinually == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyContinually(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantAddedFrequencyNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantAddedFrequencyOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantAddedFrequencyOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantRemovedFrequency": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequency == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequency(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantRemovedFrequencyContinually": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyContinually == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyContinually(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantRemovedFrequencyNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantRemovedFrequencyOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRemovedFrequencyOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantRequireFinancialGuarantee": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuarantee == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuarantee(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantRequireFinancialGuaranteeNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantRequireFinancialGuaranteeOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantRequireFinancialGuaranteeType": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeType == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantRequireFinancialGuaranteeType(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participants": + if e.complexity.PlanParticipantsAndProvidersTranslation.Participants == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.Participants(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantsCurrentlyInModels": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsCurrentlyInModels == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsCurrentlyInModels(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantsCurrentlyInModelsNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsCurrentlyInModelsNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsCurrentlyInModelsNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantsIDSNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIDSNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIDSNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantsIds": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIds == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIds(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantsIdsOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIdsOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsIdsOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantsNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.participantsOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ParticipantsOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerAddMethod": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethod(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerAddMethodNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethodNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethodNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerAddMethodOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethodOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAddMethodOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerAdditionFrequency": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequency == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequency(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerAdditionFrequencyContinually": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyContinually == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyContinually(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerAdditionFrequencyNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerAdditionFrequencyOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderAdditionFrequencyOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerLeaveMethod": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethod(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerLeaveMethodNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethodNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethodNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerLeaveMethodOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethodOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderLeaveMethodOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerOverlap": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlap == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlap(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerOverlapHierarchy": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlapHierarchy == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlapHierarchy(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerOverlapNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlapNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderOverlapNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerRemovalFrequency": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequency == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequency(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerRemovalFrequencyContinually": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyContinually == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyContinually(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerRemovalFrequencyNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.providerRemovalFrequencyOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ProviderRemovalFrequencyOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.readyForClearanceBy": + if e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForClearanceBy(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.readyForClearanceDts": + if e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForClearanceDts(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.readyForReviewBy": + if e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForReviewBy(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.readyForReviewDts": + if e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.ReadyForReviewDts(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.recruitmentMethod": + if e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentMethod(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.recruitmentNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.recruitmentOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.RecruitmentOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.riskNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.RiskNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.RiskNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.riskOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.RiskOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.RiskOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.riskType": + if e.complexity.PlanParticipantsAndProvidersTranslation.RiskType == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.RiskType(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.selectionMethod": + if e.complexity.PlanParticipantsAndProvidersTranslation.SelectionMethod == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.SelectionMethod(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.selectionNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.SelectionNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.SelectionNote(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.selectionOther": + if e.complexity.PlanParticipantsAndProvidersTranslation.SelectionOther == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.SelectionOther(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.statesEngagement": + if e.complexity.PlanParticipantsAndProvidersTranslation.StatesEngagement == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.StatesEngagement(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.status": + if e.complexity.PlanParticipantsAndProvidersTranslation.Status == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.Status(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.willRiskChange": + if e.complexity.PlanParticipantsAndProvidersTranslation.WillRiskChange == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.WillRiskChange(childComplexity), true + + case "PlanParticipantsAndProvidersTranslation.willRiskChangeNote": + if e.complexity.PlanParticipantsAndProvidersTranslation.WillRiskChangeNote == nil { + break + } + + return e.complexity.PlanParticipantsAndProvidersTranslation.WillRiskChangeNote(childComplexity), true + + case "PlanPayments.affectsMedicareSecondaryPayerClaims": + if e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaims == nil { + break + } + + return e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaims(childComplexity), true + + case "PlanPayments.affectsMedicareSecondaryPayerClaimsHow": + if e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaimsHow == nil { + break + } + + return e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaimsHow(childComplexity), true + + case "PlanPayments.affectsMedicareSecondaryPayerClaimsNote": + if e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaimsNote == nil { + break + } + + return e.complexity.PlanPayments.AffectsMedicareSecondaryPayerClaimsNote(childComplexity), true + + case "PlanPayments.anticipateReconcilingPaymentsRetrospectively": + if e.complexity.PlanPayments.AnticipateReconcilingPaymentsRetrospectively == nil { + break + } + + return e.complexity.PlanPayments.AnticipateReconcilingPaymentsRetrospectively(childComplexity), true + + case "PlanPayments.anticipateReconcilingPaymentsRetrospectivelyNote": + if e.complexity.PlanPayments.AnticipateReconcilingPaymentsRetrospectivelyNote == nil { + break + } + + return e.complexity.PlanPayments.AnticipateReconcilingPaymentsRetrospectivelyNote(childComplexity), true + + case "PlanPayments.anticipatedPaymentFrequency": + if e.complexity.PlanPayments.AnticipatedPaymentFrequency == nil { + break + } + + return e.complexity.PlanPayments.AnticipatedPaymentFrequency(childComplexity), true + + case "PlanPayments.anticipatedPaymentFrequencyContinually": + if e.complexity.PlanPayments.AnticipatedPaymentFrequencyContinually == nil { + break + } + + return e.complexity.PlanPayments.AnticipatedPaymentFrequencyContinually(childComplexity), true + + case "PlanPayments.anticipatedPaymentFrequencyNote": + if e.complexity.PlanPayments.AnticipatedPaymentFrequencyNote == nil { + break + } + + return e.complexity.PlanPayments.AnticipatedPaymentFrequencyNote(childComplexity), true + + case "PlanPayments.anticipatedPaymentFrequencyOther": + if e.complexity.PlanPayments.AnticipatedPaymentFrequencyOther == nil { + break + } + + return e.complexity.PlanPayments.AnticipatedPaymentFrequencyOther(childComplexity), true + + case "PlanPayments.beneficiaryCostSharingLevelAndHandling": + if e.complexity.PlanPayments.BeneficiaryCostSharingLevelAndHandling == nil { + break + } + + return e.complexity.PlanPayments.BeneficiaryCostSharingLevelAndHandling(childComplexity), true + + case "PlanPayments.canParticipantsSelectBetweenPaymentMechanisms": + if e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanisms == nil { + break + } + + return e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanisms(childComplexity), true + + case "PlanPayments.canParticipantsSelectBetweenPaymentMechanismsHow": + if e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanismsHow == nil { + break + } + + return e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanismsHow(childComplexity), true + + case "PlanPayments.canParticipantsSelectBetweenPaymentMechanismsNote": + if e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanismsNote == nil { + break + } + + return e.complexity.PlanPayments.CanParticipantsSelectBetweenPaymentMechanismsNote(childComplexity), true + + case "PlanPayments.changesMedicarePhysicianFeeSchedule": + if e.complexity.PlanPayments.ChangesMedicarePhysicianFeeSchedule == nil { + break + } + + return e.complexity.PlanPayments.ChangesMedicarePhysicianFeeSchedule(childComplexity), true + + case "PlanPayments.changesMedicarePhysicianFeeScheduleNote": + if e.complexity.PlanPayments.ChangesMedicarePhysicianFeeScheduleNote == nil { + break + } + + return e.complexity.PlanPayments.ChangesMedicarePhysicianFeeScheduleNote(childComplexity), true + + case "PlanPayments.claimsProcessingPrecedence": + if e.complexity.PlanPayments.ClaimsProcessingPrecedence == nil { + break + } + + return e.complexity.PlanPayments.ClaimsProcessingPrecedence(childComplexity), true + + case "PlanPayments.claimsProcessingPrecedenceNote": + if e.complexity.PlanPayments.ClaimsProcessingPrecedenceNote == nil { + break + } + + return e.complexity.PlanPayments.ClaimsProcessingPrecedenceNote(childComplexity), true + + case "PlanPayments.claimsProcessingPrecedenceOther": + if e.complexity.PlanPayments.ClaimsProcessingPrecedenceOther == nil { + break + } + + return e.complexity.PlanPayments.ClaimsProcessingPrecedenceOther(childComplexity), true + + case "PlanPayments.createdBy": + if e.complexity.PlanPayments.CreatedBy == nil { + break + } + + return e.complexity.PlanPayments.CreatedBy(childComplexity), true + + case "PlanPayments.createdByUserAccount": + if e.complexity.PlanPayments.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanPayments.CreatedByUserAccount(childComplexity), true + + case "PlanPayments.createdDts": + if e.complexity.PlanPayments.CreatedDts == nil { + break + } + + return e.complexity.PlanPayments.CreatedDts(childComplexity), true + + case "PlanPayments.creatingDependenciesBetweenServices": + if e.complexity.PlanPayments.CreatingDependenciesBetweenServices == nil { + break + } + + return e.complexity.PlanPayments.CreatingDependenciesBetweenServices(childComplexity), true + + case "PlanPayments.creatingDependenciesBetweenServicesNote": + if e.complexity.PlanPayments.CreatingDependenciesBetweenServicesNote == nil { + break + } + + return e.complexity.PlanPayments.CreatingDependenciesBetweenServicesNote(childComplexity), true + + case "PlanPayments.expectedCalculationComplexityLevel": + if e.complexity.PlanPayments.ExpectedCalculationComplexityLevel == nil { + break + } + + return e.complexity.PlanPayments.ExpectedCalculationComplexityLevel(childComplexity), true + + case "PlanPayments.expectedCalculationComplexityLevelNote": + if e.complexity.PlanPayments.ExpectedCalculationComplexityLevelNote == nil { + break + } + + return e.complexity.PlanPayments.ExpectedCalculationComplexityLevelNote(childComplexity), true + + case "PlanPayments.fundingSource": + if e.complexity.PlanPayments.FundingSource == nil { + break + } + + return e.complexity.PlanPayments.FundingSource(childComplexity), true + + case "PlanPayments.fundingSourceMedicareAInfo": + if e.complexity.PlanPayments.FundingSourceMedicareAInfo == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceMedicareAInfo(childComplexity), true + + case "PlanPayments.fundingSourceMedicareBInfo": + if e.complexity.PlanPayments.FundingSourceMedicareBInfo == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceMedicareBInfo(childComplexity), true + + case "PlanPayments.fundingSourceNote": + if e.complexity.PlanPayments.FundingSourceNote == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceNote(childComplexity), true + + case "PlanPayments.fundingSourceOther": + if e.complexity.PlanPayments.FundingSourceOther == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceOther(childComplexity), true + + case "PlanPayments.fundingSourcePatientProtectionInfo": + if e.complexity.PlanPayments.FundingSourcePatientProtectionInfo == nil { + break + } + + return e.complexity.PlanPayments.FundingSourcePatientProtectionInfo(childComplexity), true + + case "PlanPayments.fundingSourceR": + if e.complexity.PlanPayments.FundingSourceR == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceR(childComplexity), true + + case "PlanPayments.fundingSourceRMedicareAInfo": + if e.complexity.PlanPayments.FundingSourceRMedicareAInfo == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceRMedicareAInfo(childComplexity), true + + case "PlanPayments.fundingSourceRMedicareBInfo": + if e.complexity.PlanPayments.FundingSourceRMedicareBInfo == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceRMedicareBInfo(childComplexity), true + + case "PlanPayments.fundingSourceRNote": + if e.complexity.PlanPayments.FundingSourceRNote == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceRNote(childComplexity), true + + case "PlanPayments.fundingSourceROther": + if e.complexity.PlanPayments.FundingSourceROther == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceROther(childComplexity), true + + case "PlanPayments.fundingSourceRPatientProtectionInfo": + if e.complexity.PlanPayments.FundingSourceRPatientProtectionInfo == nil { + break + } + + return e.complexity.PlanPayments.FundingSourceRPatientProtectionInfo(childComplexity), true + + case "PlanPayments.id": + if e.complexity.PlanPayments.ID == nil { + break + } + + return e.complexity.PlanPayments.ID(childComplexity), true + + case "PlanPayments.isContractorAwareTestDataRequirements": + if e.complexity.PlanPayments.IsContractorAwareTestDataRequirements == nil { + break + } + + return e.complexity.PlanPayments.IsContractorAwareTestDataRequirements(childComplexity), true + + case "PlanPayments.modelPlanID": + if e.complexity.PlanPayments.ModelPlanID == nil { + break + } + + return e.complexity.PlanPayments.ModelPlanID(childComplexity), true + + case "PlanPayments.modifiedBy": + if e.complexity.PlanPayments.ModifiedBy == nil { + break + } + + return e.complexity.PlanPayments.ModifiedBy(childComplexity), true + + case "PlanPayments.modifiedByUserAccount": + if e.complexity.PlanPayments.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanPayments.ModifiedByUserAccount(childComplexity), true + + case "PlanPayments.modifiedDts": + if e.complexity.PlanPayments.ModifiedDts == nil { + break + } + + return e.complexity.PlanPayments.ModifiedDts(childComplexity), true + + case "PlanPayments.needsClaimsDataCollection": + if e.complexity.PlanPayments.NeedsClaimsDataCollection == nil { + break + } + + return e.complexity.PlanPayments.NeedsClaimsDataCollection(childComplexity), true + + case "PlanPayments.needsClaimsDataCollectionNote": + if e.complexity.PlanPayments.NeedsClaimsDataCollectionNote == nil { + break + } + + return e.complexity.PlanPayments.NeedsClaimsDataCollectionNote(childComplexity), true + + case "PlanPayments.nonClaimsPaymentOther": + if e.complexity.PlanPayments.NonClaimsPaymentOther == nil { + break + } + + return e.complexity.PlanPayments.NonClaimsPaymentOther(childComplexity), true + + case "PlanPayments.nonClaimsPayments": + if e.complexity.PlanPayments.NonClaimsPayments == nil { + break + } + + return e.complexity.PlanPayments.NonClaimsPayments(childComplexity), true + + case "PlanPayments.nonClaimsPaymentsNote": + if e.complexity.PlanPayments.NonClaimsPaymentsNote == nil { + break + } + + return e.complexity.PlanPayments.NonClaimsPaymentsNote(childComplexity), true + + case "PlanPayments.numberPaymentsPerPayCycle": + if e.complexity.PlanPayments.NumberPaymentsPerPayCycle == nil { + break + } + + return e.complexity.PlanPayments.NumberPaymentsPerPayCycle(childComplexity), true + + case "PlanPayments.numberPaymentsPerPayCycleNote": + if e.complexity.PlanPayments.NumberPaymentsPerPayCycleNote == nil { + break + } + + return e.complexity.PlanPayments.NumberPaymentsPerPayCycleNote(childComplexity), true + + case "PlanPayments.payClaims": + if e.complexity.PlanPayments.PayClaims == nil { + break + } + + return e.complexity.PlanPayments.PayClaims(childComplexity), true + + case "PlanPayments.payClaimsNote": + if e.complexity.PlanPayments.PayClaimsNote == nil { + break + } + + return e.complexity.PlanPayments.PayClaimsNote(childComplexity), true + + case "PlanPayments.payClaimsOther": + if e.complexity.PlanPayments.PayClaimsOther == nil { + break + } + + return e.complexity.PlanPayments.PayClaimsOther(childComplexity), true + + case "PlanPayments.payModelDifferentiation": + if e.complexity.PlanPayments.PayModelDifferentiation == nil { + break + } + + return e.complexity.PlanPayments.PayModelDifferentiation(childComplexity), true + + case "PlanPayments.payRecipients": + if e.complexity.PlanPayments.PayRecipients == nil { + break + } + + return e.complexity.PlanPayments.PayRecipients(childComplexity), true + + case "PlanPayments.payRecipientsNote": + if e.complexity.PlanPayments.PayRecipientsNote == nil { + break + } + + return e.complexity.PlanPayments.PayRecipientsNote(childComplexity), true + + case "PlanPayments.payRecipientsOtherSpecification": + if e.complexity.PlanPayments.PayRecipientsOtherSpecification == nil { + break + } + + return e.complexity.PlanPayments.PayRecipientsOtherSpecification(childComplexity), true + + case "PlanPayments.payType": + if e.complexity.PlanPayments.PayType == nil { + break + } + + return e.complexity.PlanPayments.PayType(childComplexity), true + + case "PlanPayments.payTypeNote": + if e.complexity.PlanPayments.PayTypeNote == nil { + break + } + + return e.complexity.PlanPayments.PayTypeNote(childComplexity), true + + case "PlanPayments.paymentCalculationOwner": + if e.complexity.PlanPayments.PaymentCalculationOwner == nil { + break + } + + return e.complexity.PlanPayments.PaymentCalculationOwner(childComplexity), true + + case "PlanPayments.paymentDemandRecoupmentFrequency": + if e.complexity.PlanPayments.PaymentDemandRecoupmentFrequency == nil { + break + } + + return e.complexity.PlanPayments.PaymentDemandRecoupmentFrequency(childComplexity), true + + case "PlanPayments.paymentDemandRecoupmentFrequencyContinually": + if e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyContinually == nil { + break + } + + return e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyContinually(childComplexity), true + + case "PlanPayments.paymentDemandRecoupmentFrequencyNote": + if e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyNote == nil { + break + } + + return e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyNote(childComplexity), true + + case "PlanPayments.paymentDemandRecoupmentFrequencyOther": + if e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyOther == nil { + break + } + + return e.complexity.PlanPayments.PaymentDemandRecoupmentFrequencyOther(childComplexity), true + + case "PlanPayments.paymentReconciliationFrequency": + if e.complexity.PlanPayments.PaymentReconciliationFrequency == nil { + break + } + + return e.complexity.PlanPayments.PaymentReconciliationFrequency(childComplexity), true + + case "PlanPayments.paymentReconciliationFrequencyContinually": + if e.complexity.PlanPayments.PaymentReconciliationFrequencyContinually == nil { + break + } + + return e.complexity.PlanPayments.PaymentReconciliationFrequencyContinually(childComplexity), true + + case "PlanPayments.paymentReconciliationFrequencyNote": + if e.complexity.PlanPayments.PaymentReconciliationFrequencyNote == nil { + break + } + + return e.complexity.PlanPayments.PaymentReconciliationFrequencyNote(childComplexity), true + + case "PlanPayments.paymentReconciliationFrequencyOther": + if e.complexity.PlanPayments.PaymentReconciliationFrequencyOther == nil { + break + } + + return e.complexity.PlanPayments.PaymentReconciliationFrequencyOther(childComplexity), true + + case "PlanPayments.paymentStartDate": + if e.complexity.PlanPayments.PaymentStartDate == nil { + break + } + + return e.complexity.PlanPayments.PaymentStartDate(childComplexity), true + + case "PlanPayments.paymentStartDateNote": + if e.complexity.PlanPayments.PaymentStartDateNote == nil { + break + } + + return e.complexity.PlanPayments.PaymentStartDateNote(childComplexity), true + + case "PlanPayments.planningToUseInnovationPaymentContractor": + if e.complexity.PlanPayments.PlanningToUseInnovationPaymentContractor == nil { + break + } + + return e.complexity.PlanPayments.PlanningToUseInnovationPaymentContractor(childComplexity), true + + case "PlanPayments.planningToUseInnovationPaymentContractorNote": + if e.complexity.PlanPayments.PlanningToUseInnovationPaymentContractorNote == nil { + break + } + + return e.complexity.PlanPayments.PlanningToUseInnovationPaymentContractorNote(childComplexity), true + + case "PlanPayments.providingThirdPartyFile": + if e.complexity.PlanPayments.ProvidingThirdPartyFile == nil { + break + } + + return e.complexity.PlanPayments.ProvidingThirdPartyFile(childComplexity), true + + case "PlanPayments.readyForClearanceBy": + if e.complexity.PlanPayments.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanPayments.ReadyForClearanceBy(childComplexity), true + + case "PlanPayments.readyForClearanceByUserAccount": + if e.complexity.PlanPayments.ReadyForClearanceByUserAccount == nil { + break + } + + return e.complexity.PlanPayments.ReadyForClearanceByUserAccount(childComplexity), true + + case "PlanPayments.readyForClearanceDts": + if e.complexity.PlanPayments.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanPayments.ReadyForClearanceDts(childComplexity), true + + case "PlanPayments.readyForReviewBy": + if e.complexity.PlanPayments.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanPayments.ReadyForReviewBy(childComplexity), true + + case "PlanPayments.readyForReviewByUserAccount": + if e.complexity.PlanPayments.ReadyForReviewByUserAccount == nil { + break + } + + return e.complexity.PlanPayments.ReadyForReviewByUserAccount(childComplexity), true + + case "PlanPayments.readyForReviewDts": + if e.complexity.PlanPayments.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanPayments.ReadyForReviewDts(childComplexity), true + + case "PlanPayments.sharedSystemsInvolvedAdditionalClaimPayment": + if e.complexity.PlanPayments.SharedSystemsInvolvedAdditionalClaimPayment == nil { + break + } + + return e.complexity.PlanPayments.SharedSystemsInvolvedAdditionalClaimPayment(childComplexity), true + + case "PlanPayments.sharedSystemsInvolvedAdditionalClaimPaymentNote": + if e.complexity.PlanPayments.SharedSystemsInvolvedAdditionalClaimPaymentNote == nil { + break + } + + return e.complexity.PlanPayments.SharedSystemsInvolvedAdditionalClaimPaymentNote(childComplexity), true + + case "PlanPayments.shouldAnyProviderExcludedFFSSystemsNote": + if e.complexity.PlanPayments.ShouldAnyProviderExcludedFFSSystemsNote == nil { + break + } + + return e.complexity.PlanPayments.ShouldAnyProviderExcludedFFSSystemsNote(childComplexity), true + + case "PlanPayments.shouldAnyProvidersExcludedFFSSystems": + if e.complexity.PlanPayments.ShouldAnyProvidersExcludedFFSSystems == nil { + break + } + + return e.complexity.PlanPayments.ShouldAnyProvidersExcludedFFSSystems(childComplexity), true + + case "PlanPayments.status": + if e.complexity.PlanPayments.Status == nil { + break + } + + return e.complexity.PlanPayments.Status(childComplexity), true + + case "PlanPayments.waiveBeneficiaryCostSharingForAnyServices": + if e.complexity.PlanPayments.WaiveBeneficiaryCostSharingForAnyServices == nil { + break + } + + return e.complexity.PlanPayments.WaiveBeneficiaryCostSharingForAnyServices(childComplexity), true + + case "PlanPayments.waiveBeneficiaryCostSharingNote": + if e.complexity.PlanPayments.WaiveBeneficiaryCostSharingNote == nil { + break + } + + return e.complexity.PlanPayments.WaiveBeneficiaryCostSharingNote(childComplexity), true + + case "PlanPayments.waiveBeneficiaryCostSharingServiceSpecification": + if e.complexity.PlanPayments.WaiveBeneficiaryCostSharingServiceSpecification == nil { + break + } + + return e.complexity.PlanPayments.WaiveBeneficiaryCostSharingServiceSpecification(childComplexity), true + + case "PlanPayments.waiverOnlyAppliesPartOfPayment": + if e.complexity.PlanPayments.WaiverOnlyAppliesPartOfPayment == nil { + break + } + + return e.complexity.PlanPayments.WaiverOnlyAppliesPartOfPayment(childComplexity), true + + case "PlanPayments.willBePaymentAdjustments": + if e.complexity.PlanPayments.WillBePaymentAdjustments == nil { + break + } + + return e.complexity.PlanPayments.WillBePaymentAdjustments(childComplexity), true + + case "PlanPayments.willBePaymentAdjustmentsNote": + if e.complexity.PlanPayments.WillBePaymentAdjustmentsNote == nil { + break + } + + return e.complexity.PlanPayments.WillBePaymentAdjustmentsNote(childComplexity), true + + case "PlanPayments.willRecoverPayments": + if e.complexity.PlanPayments.WillRecoverPayments == nil { + break + } + + return e.complexity.PlanPayments.WillRecoverPayments(childComplexity), true + + case "PlanPayments.willRecoverPaymentsNote": + if e.complexity.PlanPayments.WillRecoverPaymentsNote == nil { + break + } + + return e.complexity.PlanPayments.WillRecoverPaymentsNote(childComplexity), true + + case "PlanPaymentsTranslation.affectsMedicareSecondaryPayerClaims": + if e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaims == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaims(childComplexity), true + + case "PlanPaymentsTranslation.affectsMedicareSecondaryPayerClaimsHow": + if e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaimsHow == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaimsHow(childComplexity), true + + case "PlanPaymentsTranslation.affectsMedicareSecondaryPayerClaimsNote": + if e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaimsNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.AffectsMedicareSecondaryPayerClaimsNote(childComplexity), true + + case "PlanPaymentsTranslation.anticipateReconcilingPaymentsRetrospectively": + if e.complexity.PlanPaymentsTranslation.AnticipateReconcilingPaymentsRetrospectively == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.AnticipateReconcilingPaymentsRetrospectively(childComplexity), true + + case "PlanPaymentsTranslation.anticipateReconcilingPaymentsRetrospectivelyNote": + if e.complexity.PlanPaymentsTranslation.AnticipateReconcilingPaymentsRetrospectivelyNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.AnticipateReconcilingPaymentsRetrospectivelyNote(childComplexity), true + + case "PlanPaymentsTranslation.anticipatedPaymentFrequency": + if e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequency == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequency(childComplexity), true + + case "PlanPaymentsTranslation.anticipatedPaymentFrequencyContinually": + if e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyContinually == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyContinually(childComplexity), true + + case "PlanPaymentsTranslation.anticipatedPaymentFrequencyNote": + if e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyNote(childComplexity), true + + case "PlanPaymentsTranslation.anticipatedPaymentFrequencyOther": + if e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyOther == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.AnticipatedPaymentFrequencyOther(childComplexity), true + + case "PlanPaymentsTranslation.beneficiaryCostSharingLevelAndHandling": + if e.complexity.PlanPaymentsTranslation.BeneficiaryCostSharingLevelAndHandling == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.BeneficiaryCostSharingLevelAndHandling(childComplexity), true + + case "PlanPaymentsTranslation.canParticipantsSelectBetweenPaymentMechanisms": + if e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanisms == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanisms(childComplexity), true + + case "PlanPaymentsTranslation.canParticipantsSelectBetweenPaymentMechanismsHow": + if e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanismsHow == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanismsHow(childComplexity), true + + case "PlanPaymentsTranslation.canParticipantsSelectBetweenPaymentMechanismsNote": + if e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanismsNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.CanParticipantsSelectBetweenPaymentMechanismsNote(childComplexity), true + + case "PlanPaymentsTranslation.changesMedicarePhysicianFeeSchedule": + if e.complexity.PlanPaymentsTranslation.ChangesMedicarePhysicianFeeSchedule == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ChangesMedicarePhysicianFeeSchedule(childComplexity), true + + case "PlanPaymentsTranslation.changesMedicarePhysicianFeeScheduleNote": + if e.complexity.PlanPaymentsTranslation.ChangesMedicarePhysicianFeeScheduleNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ChangesMedicarePhysicianFeeScheduleNote(childComplexity), true + + case "PlanPaymentsTranslation.claimsProcessingPrecedence": + if e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedence == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedence(childComplexity), true + + case "PlanPaymentsTranslation.claimsProcessingPrecedenceNote": + if e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedenceNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedenceNote(childComplexity), true + + case "PlanPaymentsTranslation.claimsProcessingPrecedenceOther": + if e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedenceOther == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ClaimsProcessingPrecedenceOther(childComplexity), true + + case "PlanPaymentsTranslation.creatingDependenciesBetweenServices": + if e.complexity.PlanPaymentsTranslation.CreatingDependenciesBetweenServices == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.CreatingDependenciesBetweenServices(childComplexity), true + + case "PlanPaymentsTranslation.creatingDependenciesBetweenServicesNote": + if e.complexity.PlanPaymentsTranslation.CreatingDependenciesBetweenServicesNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.CreatingDependenciesBetweenServicesNote(childComplexity), true + + case "PlanPaymentsTranslation.expectedCalculationComplexityLevel": + if e.complexity.PlanPaymentsTranslation.ExpectedCalculationComplexityLevel == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ExpectedCalculationComplexityLevel(childComplexity), true + + case "PlanPaymentsTranslation.expectedCalculationComplexityLevelNote": + if e.complexity.PlanPaymentsTranslation.ExpectedCalculationComplexityLevelNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ExpectedCalculationComplexityLevelNote(childComplexity), true + + case "PlanPaymentsTranslation.fundingSource": + if e.complexity.PlanPaymentsTranslation.FundingSource == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSource(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceMedicareAInfo": + if e.complexity.PlanPaymentsTranslation.FundingSourceMedicareAInfo == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceMedicareAInfo(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceMedicareBInfo": + if e.complexity.PlanPaymentsTranslation.FundingSourceMedicareBInfo == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceMedicareBInfo(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceNote": + if e.complexity.PlanPaymentsTranslation.FundingSourceNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceNote(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceOther": + if e.complexity.PlanPaymentsTranslation.FundingSourceOther == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceOther(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourcePatientProtectionInfo": + if e.complexity.PlanPaymentsTranslation.FundingSourcePatientProtectionInfo == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourcePatientProtectionInfo(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceR": + if e.complexity.PlanPaymentsTranslation.FundingSourceR == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceR(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceRMedicareAInfo": + if e.complexity.PlanPaymentsTranslation.FundingSourceRMedicareAInfo == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceRMedicareAInfo(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceRMedicareBInfo": + if e.complexity.PlanPaymentsTranslation.FundingSourceRMedicareBInfo == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceRMedicareBInfo(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceRNote": + if e.complexity.PlanPaymentsTranslation.FundingSourceRNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceRNote(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceROther": + if e.complexity.PlanPaymentsTranslation.FundingSourceROther == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceROther(childComplexity), true + + case "PlanPaymentsTranslation.fundingSourceRPatientProtectionInfo": + if e.complexity.PlanPaymentsTranslation.FundingSourceRPatientProtectionInfo == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.FundingSourceRPatientProtectionInfo(childComplexity), true + + case "PlanPaymentsTranslation.isContractorAwareTestDataRequirements": + if e.complexity.PlanPaymentsTranslation.IsContractorAwareTestDataRequirements == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.IsContractorAwareTestDataRequirements(childComplexity), true + + case "PlanPaymentsTranslation.needsClaimsDataCollection": + if e.complexity.PlanPaymentsTranslation.NeedsClaimsDataCollection == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.NeedsClaimsDataCollection(childComplexity), true + + case "PlanPaymentsTranslation.needsClaimsDataCollectionNote": + if e.complexity.PlanPaymentsTranslation.NeedsClaimsDataCollectionNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.NeedsClaimsDataCollectionNote(childComplexity), true + + case "PlanPaymentsTranslation.nonClaimsPaymentOther": + if e.complexity.PlanPaymentsTranslation.NonClaimsPaymentOther == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.NonClaimsPaymentOther(childComplexity), true + + case "PlanPaymentsTranslation.nonClaimsPayments": + if e.complexity.PlanPaymentsTranslation.NonClaimsPayments == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.NonClaimsPayments(childComplexity), true + + case "PlanPaymentsTranslation.nonClaimsPaymentsNote": + if e.complexity.PlanPaymentsTranslation.NonClaimsPaymentsNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.NonClaimsPaymentsNote(childComplexity), true + + case "PlanPaymentsTranslation.numberPaymentsPerPayCycle": + if e.complexity.PlanPaymentsTranslation.NumberPaymentsPerPayCycle == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.NumberPaymentsPerPayCycle(childComplexity), true + + case "PlanPaymentsTranslation.numberPaymentsPerPayCycleNote": + if e.complexity.PlanPaymentsTranslation.NumberPaymentsPerPayCycleNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.NumberPaymentsPerPayCycleNote(childComplexity), true + + case "PlanPaymentsTranslation.payClaims": + if e.complexity.PlanPaymentsTranslation.PayClaims == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PayClaims(childComplexity), true + + case "PlanPaymentsTranslation.payClaimsNote": + if e.complexity.PlanPaymentsTranslation.PayClaimsNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PayClaimsNote(childComplexity), true + + case "PlanPaymentsTranslation.payClaimsOther": + if e.complexity.PlanPaymentsTranslation.PayClaimsOther == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PayClaimsOther(childComplexity), true + + case "PlanPaymentsTranslation.payModelDifferentiation": + if e.complexity.PlanPaymentsTranslation.PayModelDifferentiation == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PayModelDifferentiation(childComplexity), true + + case "PlanPaymentsTranslation.payRecipients": + if e.complexity.PlanPaymentsTranslation.PayRecipients == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PayRecipients(childComplexity), true + + case "PlanPaymentsTranslation.payRecipientsNote": + if e.complexity.PlanPaymentsTranslation.PayRecipientsNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PayRecipientsNote(childComplexity), true + + case "PlanPaymentsTranslation.payRecipientsOtherSpecification": + if e.complexity.PlanPaymentsTranslation.PayRecipientsOtherSpecification == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PayRecipientsOtherSpecification(childComplexity), true + + case "PlanPaymentsTranslation.payType": + if e.complexity.PlanPaymentsTranslation.PayType == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PayType(childComplexity), true + + case "PlanPaymentsTranslation.payTypeNote": + if e.complexity.PlanPaymentsTranslation.PayTypeNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PayTypeNote(childComplexity), true + + case "PlanPaymentsTranslation.paymentCalculationOwner": + if e.complexity.PlanPaymentsTranslation.PaymentCalculationOwner == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentCalculationOwner(childComplexity), true + + case "PlanPaymentsTranslation.paymentDemandRecoupmentFrequency": + if e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequency == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequency(childComplexity), true + + case "PlanPaymentsTranslation.paymentDemandRecoupmentFrequencyContinually": + if e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyContinually == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyContinually(childComplexity), true + + case "PlanPaymentsTranslation.paymentDemandRecoupmentFrequencyNote": + if e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyNote(childComplexity), true + + case "PlanPaymentsTranslation.paymentDemandRecoupmentFrequencyOther": + if e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyOther == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentDemandRecoupmentFrequencyOther(childComplexity), true + + case "PlanPaymentsTranslation.paymentReconciliationFrequency": + if e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequency == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequency(childComplexity), true + + case "PlanPaymentsTranslation.paymentReconciliationFrequencyContinually": + if e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyContinually == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyContinually(childComplexity), true + + case "PlanPaymentsTranslation.paymentReconciliationFrequencyNote": + if e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyNote(childComplexity), true + + case "PlanPaymentsTranslation.paymentReconciliationFrequencyOther": + if e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyOther == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentReconciliationFrequencyOther(childComplexity), true + + case "PlanPaymentsTranslation.paymentStartDate": + if e.complexity.PlanPaymentsTranslation.PaymentStartDate == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentStartDate(childComplexity), true + + case "PlanPaymentsTranslation.paymentStartDateNote": + if e.complexity.PlanPaymentsTranslation.PaymentStartDateNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PaymentStartDateNote(childComplexity), true + + case "PlanPaymentsTranslation.planningToUseInnovationPaymentContractor": + if e.complexity.PlanPaymentsTranslation.PlanningToUseInnovationPaymentContractor == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PlanningToUseInnovationPaymentContractor(childComplexity), true + + case "PlanPaymentsTranslation.planningToUseInnovationPaymentContractorNote": + if e.complexity.PlanPaymentsTranslation.PlanningToUseInnovationPaymentContractorNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.PlanningToUseInnovationPaymentContractorNote(childComplexity), true + + case "PlanPaymentsTranslation.providingThirdPartyFile": + if e.complexity.PlanPaymentsTranslation.ProvidingThirdPartyFile == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ProvidingThirdPartyFile(childComplexity), true + + case "PlanPaymentsTranslation.readyForClearanceBy": + if e.complexity.PlanPaymentsTranslation.ReadyForClearanceBy == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ReadyForClearanceBy(childComplexity), true + + case "PlanPaymentsTranslation.readyForClearanceDts": + if e.complexity.PlanPaymentsTranslation.ReadyForClearanceDts == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ReadyForClearanceDts(childComplexity), true + + case "PlanPaymentsTranslation.readyForReviewBy": + if e.complexity.PlanPaymentsTranslation.ReadyForReviewBy == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ReadyForReviewBy(childComplexity), true + + case "PlanPaymentsTranslation.readyForReviewDts": + if e.complexity.PlanPaymentsTranslation.ReadyForReviewDts == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ReadyForReviewDts(childComplexity), true + + case "PlanPaymentsTranslation.sharedSystemsInvolvedAdditionalClaimPayment": + if e.complexity.PlanPaymentsTranslation.SharedSystemsInvolvedAdditionalClaimPayment == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.SharedSystemsInvolvedAdditionalClaimPayment(childComplexity), true + + case "PlanPaymentsTranslation.sharedSystemsInvolvedAdditionalClaimPaymentNote": + if e.complexity.PlanPaymentsTranslation.SharedSystemsInvolvedAdditionalClaimPaymentNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.SharedSystemsInvolvedAdditionalClaimPaymentNote(childComplexity), true + + case "PlanPaymentsTranslation.shouldAnyProviderExcludedFFSSystemsNote": + if e.complexity.PlanPaymentsTranslation.ShouldAnyProviderExcludedFFSSystemsNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ShouldAnyProviderExcludedFFSSystemsNote(childComplexity), true + + case "PlanPaymentsTranslation.shouldAnyProvidersExcludedFFSSystems": + if e.complexity.PlanPaymentsTranslation.ShouldAnyProvidersExcludedFFSSystems == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.ShouldAnyProvidersExcludedFFSSystems(childComplexity), true + + case "PlanPaymentsTranslation.status": + if e.complexity.PlanPaymentsTranslation.Status == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.Status(childComplexity), true + + case "PlanPaymentsTranslation.waiveBeneficiaryCostSharingForAnyServices": + if e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingForAnyServices == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingForAnyServices(childComplexity), true + + case "PlanPaymentsTranslation.waiveBeneficiaryCostSharingNote": + if e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingNote(childComplexity), true + + case "PlanPaymentsTranslation.waiveBeneficiaryCostSharingServiceSpecification": + if e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingServiceSpecification == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.WaiveBeneficiaryCostSharingServiceSpecification(childComplexity), true + + case "PlanPaymentsTranslation.waiverOnlyAppliesPartOfPayment": + if e.complexity.PlanPaymentsTranslation.WaiverOnlyAppliesPartOfPayment == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.WaiverOnlyAppliesPartOfPayment(childComplexity), true + + case "PlanPaymentsTranslation.willBePaymentAdjustments": + if e.complexity.PlanPaymentsTranslation.WillBePaymentAdjustments == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.WillBePaymentAdjustments(childComplexity), true + + case "PlanPaymentsTranslation.willBePaymentAdjustmentsNote": + if e.complexity.PlanPaymentsTranslation.WillBePaymentAdjustmentsNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.WillBePaymentAdjustmentsNote(childComplexity), true + + case "PlanPaymentsTranslation.willRecoverPayments": + if e.complexity.PlanPaymentsTranslation.WillRecoverPayments == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.WillRecoverPayments(childComplexity), true + + case "PlanPaymentsTranslation.willRecoverPaymentsNote": + if e.complexity.PlanPaymentsTranslation.WillRecoverPaymentsNote == nil { + break + } + + return e.complexity.PlanPaymentsTranslation.WillRecoverPaymentsNote(childComplexity), true + + case "PlanTDL.createdBy": + if e.complexity.PlanTDL.CreatedBy == nil { + break + } + + return e.complexity.PlanTDL.CreatedBy(childComplexity), true + + case "PlanTDL.createdByUserAccount": + if e.complexity.PlanTDL.CreatedByUserAccount == nil { + break + } + + return e.complexity.PlanTDL.CreatedByUserAccount(childComplexity), true + + case "PlanTDL.createdDts": + if e.complexity.PlanTDL.CreatedDts == nil { + break + } + + return e.complexity.PlanTDL.CreatedDts(childComplexity), true + + case "PlanTDL.dateInitiated": + if e.complexity.PlanTDL.DateInitiated == nil { + break + } + + return e.complexity.PlanTDL.DateInitiated(childComplexity), true + + case "PlanTDL.id": + if e.complexity.PlanTDL.ID == nil { + break + } + + return e.complexity.PlanTDL.ID(childComplexity), true + + case "PlanTDL.idNumber": + if e.complexity.PlanTDL.IDNumber == nil { + break + } + + return e.complexity.PlanTDL.IDNumber(childComplexity), true + + case "PlanTDL.modelPlanID": + if e.complexity.PlanTDL.ModelPlanID == nil { + break + } + + return e.complexity.PlanTDL.ModelPlanID(childComplexity), true + + case "PlanTDL.modifiedBy": + if e.complexity.PlanTDL.ModifiedBy == nil { + break + } + + return e.complexity.PlanTDL.ModifiedBy(childComplexity), true + + case "PlanTDL.modifiedByUserAccount": + if e.complexity.PlanTDL.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PlanTDL.ModifiedByUserAccount(childComplexity), true + + case "PlanTDL.modifiedDts": + if e.complexity.PlanTDL.ModifiedDts == nil { + break + } + + return e.complexity.PlanTDL.ModifiedDts(childComplexity), true + + case "PlanTDL.note": + if e.complexity.PlanTDL.Note == nil { + break + } + + return e.complexity.PlanTDL.Note(childComplexity), true + + case "PlanTDL.title": + if e.complexity.PlanTDL.Title == nil { + break + } + + return e.complexity.PlanTDL.Title(childComplexity), true + + case "PlanTDLTranslation.dateInitiated": + if e.complexity.PlanTDLTranslation.DateInitiated == nil { + break + } + + return e.complexity.PlanTDLTranslation.DateInitiated(childComplexity), true + + case "PlanTDLTranslation.idNumber": + if e.complexity.PlanTDLTranslation.IDNumber == nil { + break + } + + return e.complexity.PlanTDLTranslation.IDNumber(childComplexity), true + + case "PlanTDLTranslation.note": + if e.complexity.PlanTDLTranslation.Note == nil { + break + } + + return e.complexity.PlanTDLTranslation.Note(childComplexity), true + + case "PlanTDLTranslation.title": + if e.complexity.PlanTDLTranslation.Title == nil { + break + } + + return e.complexity.PlanTDLTranslation.Title(childComplexity), true + + case "PossibleOperationalNeed.createdBy": + if e.complexity.PossibleOperationalNeed.CreatedBy == nil { + break + } + + return e.complexity.PossibleOperationalNeed.CreatedBy(childComplexity), true + + case "PossibleOperationalNeed.createdByUserAccount": + if e.complexity.PossibleOperationalNeed.CreatedByUserAccount == nil { + break + } + + return e.complexity.PossibleOperationalNeed.CreatedByUserAccount(childComplexity), true + + case "PossibleOperationalNeed.createdDts": + if e.complexity.PossibleOperationalNeed.CreatedDts == nil { + break + } + + return e.complexity.PossibleOperationalNeed.CreatedDts(childComplexity), true + + case "PossibleOperationalNeed.id": + if e.complexity.PossibleOperationalNeed.ID == nil { + break + } + + return e.complexity.PossibleOperationalNeed.ID(childComplexity), true + + case "PossibleOperationalNeed.key": + if e.complexity.PossibleOperationalNeed.Key == nil { + break + } + + return e.complexity.PossibleOperationalNeed.Key(childComplexity), true + + case "PossibleOperationalNeed.modifiedBy": + if e.complexity.PossibleOperationalNeed.ModifiedBy == nil { + break + } + + return e.complexity.PossibleOperationalNeed.ModifiedBy(childComplexity), true + + case "PossibleOperationalNeed.modifiedByUserAccount": + if e.complexity.PossibleOperationalNeed.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PossibleOperationalNeed.ModifiedByUserAccount(childComplexity), true + + case "PossibleOperationalNeed.modifiedDts": + if e.complexity.PossibleOperationalNeed.ModifiedDts == nil { + break + } + + return e.complexity.PossibleOperationalNeed.ModifiedDts(childComplexity), true + + case "PossibleOperationalNeed.name": + if e.complexity.PossibleOperationalNeed.Name == nil { + break + } + + return e.complexity.PossibleOperationalNeed.Name(childComplexity), true + + case "PossibleOperationalNeed.possibleSolutions": + if e.complexity.PossibleOperationalNeed.PossibleSolutions == nil { + break + } + + return e.complexity.PossibleOperationalNeed.PossibleSolutions(childComplexity), true + + case "PossibleOperationalNeed.section": + if e.complexity.PossibleOperationalNeed.Section == nil { + break + } + + return e.complexity.PossibleOperationalNeed.Section(childComplexity), true + + case "PossibleOperationalSolution.createdBy": + if e.complexity.PossibleOperationalSolution.CreatedBy == nil { + break + } + + return e.complexity.PossibleOperationalSolution.CreatedBy(childComplexity), true + + case "PossibleOperationalSolution.createdByUserAccount": + if e.complexity.PossibleOperationalSolution.CreatedByUserAccount == nil { + break + } + + return e.complexity.PossibleOperationalSolution.CreatedByUserAccount(childComplexity), true + + case "PossibleOperationalSolution.createdDts": + if e.complexity.PossibleOperationalSolution.CreatedDts == nil { + break + } + + return e.complexity.PossibleOperationalSolution.CreatedDts(childComplexity), true + + case "PossibleOperationalSolution.filterView": + if e.complexity.PossibleOperationalSolution.FilterView == nil { + break + } + + return e.complexity.PossibleOperationalSolution.FilterView(childComplexity), true + + case "PossibleOperationalSolution.id": + if e.complexity.PossibleOperationalSolution.ID == nil { + break + } + + return e.complexity.PossibleOperationalSolution.ID(childComplexity), true + + case "PossibleOperationalSolution.key": + if e.complexity.PossibleOperationalSolution.Key == nil { + break + } + + return e.complexity.PossibleOperationalSolution.Key(childComplexity), true + + case "PossibleOperationalSolution.modifiedBy": + if e.complexity.PossibleOperationalSolution.ModifiedBy == nil { + break + } + + return e.complexity.PossibleOperationalSolution.ModifiedBy(childComplexity), true + + case "PossibleOperationalSolution.modifiedByUserAccount": + if e.complexity.PossibleOperationalSolution.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PossibleOperationalSolution.ModifiedByUserAccount(childComplexity), true + + case "PossibleOperationalSolution.modifiedDts": + if e.complexity.PossibleOperationalSolution.ModifiedDts == nil { + break + } + + return e.complexity.PossibleOperationalSolution.ModifiedDts(childComplexity), true + + case "PossibleOperationalSolution.name": + if e.complexity.PossibleOperationalSolution.Name == nil { + break + } + + return e.complexity.PossibleOperationalSolution.Name(childComplexity), true + + case "PossibleOperationalSolution.pointsOfContact": + if e.complexity.PossibleOperationalSolution.PointsOfContact == nil { + break + } + + return e.complexity.PossibleOperationalSolution.PointsOfContact(childComplexity), true + + case "PossibleOperationalSolution.primaryContact": + if e.complexity.PossibleOperationalSolution.PrimaryContact == nil { + break + } + + return e.complexity.PossibleOperationalSolution.PrimaryContact(childComplexity), true + + case "PossibleOperationalSolution.treatAsOther": + if e.complexity.PossibleOperationalSolution.TreatAsOther == nil { + break + } + + return e.complexity.PossibleOperationalSolution.TreatAsOther(childComplexity), true + + case "PossibleOperationalSolutionContact.createdBy": + if e.complexity.PossibleOperationalSolutionContact.CreatedBy == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.CreatedBy(childComplexity), true + + case "PossibleOperationalSolutionContact.createdByUserAccount": + if e.complexity.PossibleOperationalSolutionContact.CreatedByUserAccount == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.CreatedByUserAccount(childComplexity), true + + case "PossibleOperationalSolutionContact.createdDts": + if e.complexity.PossibleOperationalSolutionContact.CreatedDts == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.CreatedDts(childComplexity), true + + case "PossibleOperationalSolutionContact.email": + if e.complexity.PossibleOperationalSolutionContact.Email == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.Email(childComplexity), true + + case "PossibleOperationalSolutionContact.id": + if e.complexity.PossibleOperationalSolutionContact.ID == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.ID(childComplexity), true + + case "PossibleOperationalSolutionContact.isPrimary": + if e.complexity.PossibleOperationalSolutionContact.IsPrimary == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.IsPrimary(childComplexity), true + + case "PossibleOperationalSolutionContact.isTeam": + if e.complexity.PossibleOperationalSolutionContact.IsTeam == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.IsTeam(childComplexity), true + + case "PossibleOperationalSolutionContact.modifiedBy": + if e.complexity.PossibleOperationalSolutionContact.ModifiedBy == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.ModifiedBy(childComplexity), true + + case "PossibleOperationalSolutionContact.modifiedByUserAccount": + if e.complexity.PossibleOperationalSolutionContact.ModifiedByUserAccount == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.ModifiedByUserAccount(childComplexity), true + + case "PossibleOperationalSolutionContact.modifiedDts": + if e.complexity.PossibleOperationalSolutionContact.ModifiedDts == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.ModifiedDts(childComplexity), true + + case "PossibleOperationalSolutionContact.name": + if e.complexity.PossibleOperationalSolutionContact.Name == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.Name(childComplexity), true + + case "PossibleOperationalSolutionContact.possibleOperationalSolutionID": + if e.complexity.PossibleOperationalSolutionContact.PossibleOperationalSolutionID == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.PossibleOperationalSolutionID(childComplexity), true + + case "PossibleOperationalSolutionContact.role": + if e.complexity.PossibleOperationalSolutionContact.Role == nil { + break + } + + return e.complexity.PossibleOperationalSolutionContact.Role(childComplexity), true + + case "PrepareForClearance.latestClearanceDts": + if e.complexity.PrepareForClearance.LatestClearanceDts == nil { + break + } + + return e.complexity.PrepareForClearance.LatestClearanceDts(childComplexity), true + + case "PrepareForClearance.status": + if e.complexity.PrepareForClearance.Status == nil { + break + } + + return e.complexity.PrepareForClearance.Status(childComplexity), true + + case "Query.analyzedAudits": + if e.complexity.Query.AnalyzedAudits == nil { + break + } + + args, err := ec.field_Query_analyzedAudits_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AnalyzedAudits(childComplexity, args["dateAnalyzed"].(time.Time)), true + + case "Query.auditChanges": + if e.complexity.Query.AuditChanges == nil { + break + } + + args, err := ec.field_Query_auditChanges_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AuditChanges(childComplexity, args["tableName"].(models.TableName), args["primaryKey"].(uuid.UUID)), true + + case "Query.currentUser": + if e.complexity.Query.CurrentUser == nil { + break + } + + return e.complexity.Query.CurrentUser(childComplexity), true + + case "Query.existingModelCollection": + if e.complexity.Query.ExistingModelCollection == nil { + break + } + + return e.complexity.Query.ExistingModelCollection(childComplexity), true + + case "Query.existingModelLink": + if e.complexity.Query.ExistingModelLink == nil { + break + } + + args, err := ec.field_Query_existingModelLink_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ExistingModelLink(childComplexity, args["id"].(uuid.UUID)), true + + case "Query.lockableSectionLocks": + if e.complexity.Query.LockableSectionLocks == nil { + break + } + + args, err := ec.field_Query_lockableSectionLocks_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.LockableSectionLocks(childComplexity, args["modelPlanID"].(uuid.UUID)), true + + case "Query.modelPlan": + if e.complexity.Query.ModelPlan == nil { + break + } + + args, err := ec.field_Query_modelPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ModelPlan(childComplexity, args["id"].(uuid.UUID)), true + + case "Query.modelPlanCollection": + if e.complexity.Query.ModelPlanCollection == nil { + break + } + + args, err := ec.field_Query_modelPlanCollection_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ModelPlanCollection(childComplexity, args["filter"].(model.ModelPlanFilter)), true + + case "Query.modelPlansByOperationalSolutionKey": + if e.complexity.Query.ModelPlansByOperationalSolutionKey == nil { + break + } + + args, err := ec.field_Query_modelPlansByOperationalSolutionKey_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ModelPlansByOperationalSolutionKey(childComplexity, args["operationalSolutionKey"].(models.OperationalSolutionKey)), true + + case "Query.mostRecentDiscussionRoleSelection": + if e.complexity.Query.MostRecentDiscussionRoleSelection == nil { + break + } + + return e.complexity.Query.MostRecentDiscussionRoleSelection(childComplexity), true + + case "Query.ndaInfo": + if e.complexity.Query.NdaInfo == nil { + break + } + + return e.complexity.Query.NdaInfo(childComplexity), true + + case "Query.operationalNeed": + if e.complexity.Query.OperationalNeed == nil { + break + } + + args, err := ec.field_Query_operationalNeed_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OperationalNeed(childComplexity, args["id"].(uuid.UUID)), true + + case "Query.operationalSolution": + if e.complexity.Query.OperationalSolution == nil { + break + } + + args, err := ec.field_Query_operationalSolution_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OperationalSolution(childComplexity, args["id"].(uuid.UUID)), true + + case "Query.operationalSolutions": + if e.complexity.Query.OperationalSolutions == nil { + break + } + + args, err := ec.field_Query_operationalSolutions_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OperationalSolutions(childComplexity, args["operationalNeedID"].(uuid.UUID), args["includeNotNeeded"].(bool)), true + + case "Query.planCollaboratorByID": + if e.complexity.Query.PlanCollaboratorByID == nil { + break + } + + args, err := ec.field_Query_planCollaboratorByID_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.PlanCollaboratorByID(childComplexity, args["id"].(uuid.UUID)), true + + case "Query.planCR": + if e.complexity.Query.PlanCr == nil { + break + } + + args, err := ec.field_Query_planCR_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.PlanCr(childComplexity, args["id"].(uuid.UUID)), true + + case "Query.planDocument": + if e.complexity.Query.PlanDocument == nil { + break + } + + args, err := ec.field_Query_planDocument_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.PlanDocument(childComplexity, args["id"].(uuid.UUID)), true + + case "Query.planPayments": + if e.complexity.Query.PlanPayments == nil { + break + } + + args, err := ec.field_Query_planPayments_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.PlanPayments(childComplexity, args["id"].(uuid.UUID)), true + + case "Query.planTDL": + if e.complexity.Query.PlanTdl == nil { + break + } + + args, err := ec.field_Query_planTDL_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.PlanTdl(childComplexity, args["id"].(uuid.UUID)), true + + case "Query.possibleOperationalNeeds": + if e.complexity.Query.PossibleOperationalNeeds == nil { + break + } + + return e.complexity.Query.PossibleOperationalNeeds(childComplexity), true + + case "Query.possibleOperationalSolutions": + if e.complexity.Query.PossibleOperationalSolutions == nil { + break + } + + return e.complexity.Query.PossibleOperationalSolutions(childComplexity), true + + case "Query.searchOktaUsers": + if e.complexity.Query.SearchOktaUsers == nil { + break + } + + args, err := ec.field_Query_searchOktaUsers_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.SearchOktaUsers(childComplexity, args["searchTerm"].(string)), true + + case "Query.translatedAuditCollection": + if e.complexity.Query.TranslatedAuditCollection == nil { + break + } + + args, err := ec.field_Query_translatedAuditCollection_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.TranslatedAuditCollection(childComplexity, args["modelPlanID"].(uuid.UUID), args["limit"].(*int), args["offset"].(*int)), true + + case "Query.userAccount": + if e.complexity.Query.UserAccount == nil { + break + } + + args, err := ec.field_Query_userAccount_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.UserAccount(childComplexity, args["username"].(string)), true + + case "Query.userViewCustomization": + if e.complexity.Query.UserViewCustomization == nil { + break + } + + return e.complexity.Query.UserViewCustomization(childComplexity), true + + case "RecentModification.modifiedBy": + if e.complexity.RecentModification.ModifiedBy == nil { + break + } + + return e.complexity.RecentModification.ModifiedBy(childComplexity), true + + case "RecentModification.modifiedByUserAccount": + if e.complexity.RecentModification.ModifiedByUserAccount == nil { + break + } + + return e.complexity.RecentModification.ModifiedByUserAccount(childComplexity), true + + case "RecentModification.modifiedDts": + if e.complexity.RecentModification.ModifiedDts == nil { + break + } + + return e.complexity.RecentModification.ModifiedDts(childComplexity), true + + case "Subscription.onLockLockableSectionContext": + if e.complexity.Subscription.OnLockLockableSectionContext == nil { + break + } + + args, err := ec.field_Subscription_onLockLockableSectionContext_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Subscription.OnLockLockableSectionContext(childComplexity, args["modelPlanID"].(uuid.UUID)), true + + case "Subscription.onLockableSectionLocksChanged": + if e.complexity.Subscription.OnLockableSectionLocksChanged == nil { + break + } + + args, err := ec.field_Subscription_onLockableSectionLocksChanged_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Subscription.OnLockableSectionLocksChanged(childComplexity, args["modelPlanID"].(uuid.UUID)), true + + case "Tag.createdBy": + if e.complexity.Tag.CreatedBy == nil { + break + } + + return e.complexity.Tag.CreatedBy(childComplexity), true + + case "Tag.createdByUserAccount": + if e.complexity.Tag.CreatedByUserAccount == nil { + break + } + + return e.complexity.Tag.CreatedByUserAccount(childComplexity), true + + case "Tag.createdDts": + if e.complexity.Tag.CreatedDts == nil { + break + } + + return e.complexity.Tag.CreatedDts(childComplexity), true + + case "Tag.entity": + if e.complexity.Tag.Entity == nil { + break + } + + return e.complexity.Tag.Entity(childComplexity), true + + case "Tag.entityIntID": + if e.complexity.Tag.EntityIntID == nil { + break + } + + return e.complexity.Tag.EntityIntID(childComplexity), true + + case "Tag.entityUUID": + if e.complexity.Tag.EntityUUID == nil { + break + } + + return e.complexity.Tag.EntityUUID(childComplexity), true + + case "Tag.id": + if e.complexity.Tag.ID == nil { + break + } + + return e.complexity.Tag.ID(childComplexity), true + + case "Tag.modifiedBy": + if e.complexity.Tag.ModifiedBy == nil { + break + } + + return e.complexity.Tag.ModifiedBy(childComplexity), true + + case "Tag.modifiedByUserAccount": + if e.complexity.Tag.ModifiedByUserAccount == nil { + break + } + + return e.complexity.Tag.ModifiedByUserAccount(childComplexity), true + + case "Tag.modifiedDts": + if e.complexity.Tag.ModifiedDts == nil { + break + } + + return e.complexity.Tag.ModifiedDts(childComplexity), true + + case "Tag.tagType": + if e.complexity.Tag.TagType == nil { + break + } + + return e.complexity.Tag.TagType(childComplexity), true + + case "Tag.taggedContentID": + if e.complexity.Tag.TaggedContentID == nil { + break + } + + return e.complexity.Tag.TaggedContentID(childComplexity), true + + case "Tag.taggedContentTable": + if e.complexity.Tag.TaggedContentTable == nil { + break + } + + return e.complexity.Tag.TaggedContentTable(childComplexity), true + + case "Tag.taggedField": + if e.complexity.Tag.TaggedField == nil { + break + } + + return e.complexity.Tag.TaggedField(childComplexity), true + + case "TaggedContent.rawContent": + if e.complexity.TaggedContent.RawContent == nil { + break + } + + return e.complexity.TaggedContent.RawContent(childComplexity), true + + case "TaggedContent.tags": + if e.complexity.TaggedContent.Tags == nil { + break + } + + return e.complexity.TaggedContent.Tags(childComplexity), true + + case "TaggedInDiscussionReplyActivityMeta.content": + if e.complexity.TaggedInDiscussionReplyActivityMeta.Content == nil { + break + } + + return e.complexity.TaggedInDiscussionReplyActivityMeta.Content(childComplexity), true + + case "TaggedInDiscussionReplyActivityMeta.discussion": + if e.complexity.TaggedInDiscussionReplyActivityMeta.Discussion == nil { + break + } + + return e.complexity.TaggedInDiscussionReplyActivityMeta.Discussion(childComplexity), true + + case "TaggedInDiscussionReplyActivityMeta.discussionID": + if e.complexity.TaggedInDiscussionReplyActivityMeta.DiscussionID == nil { + break + } + + return e.complexity.TaggedInDiscussionReplyActivityMeta.DiscussionID(childComplexity), true + + case "TaggedInDiscussionReplyActivityMeta.modelPlan": + if e.complexity.TaggedInDiscussionReplyActivityMeta.ModelPlan == nil { + break + } + + return e.complexity.TaggedInDiscussionReplyActivityMeta.ModelPlan(childComplexity), true + + case "TaggedInDiscussionReplyActivityMeta.modelPlanID": + if e.complexity.TaggedInDiscussionReplyActivityMeta.ModelPlanID == nil { + break + } + + return e.complexity.TaggedInDiscussionReplyActivityMeta.ModelPlanID(childComplexity), true + + case "TaggedInDiscussionReplyActivityMeta.reply": + if e.complexity.TaggedInDiscussionReplyActivityMeta.Reply == nil { + break + } + + return e.complexity.TaggedInDiscussionReplyActivityMeta.Reply(childComplexity), true + + case "TaggedInDiscussionReplyActivityMeta.replyID": + if e.complexity.TaggedInDiscussionReplyActivityMeta.ReplyID == nil { + break + } + + return e.complexity.TaggedInDiscussionReplyActivityMeta.ReplyID(childComplexity), true + + case "TaggedInDiscussionReplyActivityMeta.type": + if e.complexity.TaggedInDiscussionReplyActivityMeta.Type == nil { + break + } + + return e.complexity.TaggedInDiscussionReplyActivityMeta.Type(childComplexity), true + + case "TaggedInDiscussionReplyActivityMeta.version": + if e.complexity.TaggedInDiscussionReplyActivityMeta.Version == nil { + break + } + + return e.complexity.TaggedInDiscussionReplyActivityMeta.Version(childComplexity), true + + case "TaggedInPlanDiscussionActivityMeta.content": + if e.complexity.TaggedInPlanDiscussionActivityMeta.Content == nil { + break + } + + return e.complexity.TaggedInPlanDiscussionActivityMeta.Content(childComplexity), true + + case "TaggedInPlanDiscussionActivityMeta.discussion": + if e.complexity.TaggedInPlanDiscussionActivityMeta.Discussion == nil { + break + } + + return e.complexity.TaggedInPlanDiscussionActivityMeta.Discussion(childComplexity), true + + case "TaggedInPlanDiscussionActivityMeta.discussionID": + if e.complexity.TaggedInPlanDiscussionActivityMeta.DiscussionID == nil { + break + } + + return e.complexity.TaggedInPlanDiscussionActivityMeta.DiscussionID(childComplexity), true + + case "TaggedInPlanDiscussionActivityMeta.modelPlan": + if e.complexity.TaggedInPlanDiscussionActivityMeta.ModelPlan == nil { + break + } + + return e.complexity.TaggedInPlanDiscussionActivityMeta.ModelPlan(childComplexity), true + + case "TaggedInPlanDiscussionActivityMeta.modelPlanID": + if e.complexity.TaggedInPlanDiscussionActivityMeta.ModelPlanID == nil { + break + } + + return e.complexity.TaggedInPlanDiscussionActivityMeta.ModelPlanID(childComplexity), true + + case "TaggedInPlanDiscussionActivityMeta.type": + if e.complexity.TaggedInPlanDiscussionActivityMeta.Type == nil { + break + } + + return e.complexity.TaggedInPlanDiscussionActivityMeta.Type(childComplexity), true + + case "TaggedInPlanDiscussionActivityMeta.version": + if e.complexity.TaggedInPlanDiscussionActivityMeta.Version == nil { + break + } + + return e.complexity.TaggedInPlanDiscussionActivityMeta.Version(childComplexity), true + + case "TranslatedAudit.action": + if e.complexity.TranslatedAudit.Action == nil { + break + } + + return e.complexity.TranslatedAudit.Action(childComplexity), true + + case "TranslatedAudit.actorID": + if e.complexity.TranslatedAudit.ActorID == nil { + break + } + + return e.complexity.TranslatedAudit.ActorID(childComplexity), true + + case "TranslatedAudit.actorName": + if e.complexity.TranslatedAudit.ActorName == nil { + break + } + + return e.complexity.TranslatedAudit.ActorName(childComplexity), true + + case "TranslatedAudit.changeID": + if e.complexity.TranslatedAudit.ChangeID == nil { + break + } + + return e.complexity.TranslatedAudit.ChangeID(childComplexity), true + + case "TranslatedAudit.createdBy": + if e.complexity.TranslatedAudit.CreatedBy == nil { + break + } + + return e.complexity.TranslatedAudit.CreatedBy(childComplexity), true + + case "TranslatedAudit.createdByUserAccount": + if e.complexity.TranslatedAudit.CreatedByUserAccount == nil { + break + } + + return e.complexity.TranslatedAudit.CreatedByUserAccount(childComplexity), true + + case "TranslatedAudit.createdDts": + if e.complexity.TranslatedAudit.CreatedDts == nil { + break + } + + return e.complexity.TranslatedAudit.CreatedDts(childComplexity), true + + case "TranslatedAudit.date": + if e.complexity.TranslatedAudit.Date == nil { + break + } + + return e.complexity.TranslatedAudit.Date(childComplexity), true + + case "TranslatedAudit.id": + if e.complexity.TranslatedAudit.ID == nil { + break + } + + return e.complexity.TranslatedAudit.ID(childComplexity), true + + case "TranslatedAudit.metaData": + if e.complexity.TranslatedAudit.MetaData == nil { + break + } + + return e.complexity.TranslatedAudit.MetaData(childComplexity), true + + case "TranslatedAudit.metaDataType": + if e.complexity.TranslatedAudit.MetaDataType == nil { + break + } + + return e.complexity.TranslatedAudit.MetaDataType(childComplexity), true + + case "TranslatedAudit.modelPlanID": + if e.complexity.TranslatedAudit.ModelPlanID == nil { + break + } + + return e.complexity.TranslatedAudit.ModelPlanID(childComplexity), true + + case "TranslatedAudit.modifiedBy": + if e.complexity.TranslatedAudit.ModifiedBy == nil { + break + } + + return e.complexity.TranslatedAudit.ModifiedBy(childComplexity), true + + case "TranslatedAudit.modifiedByUserAccount": + if e.complexity.TranslatedAudit.ModifiedByUserAccount == nil { + break + } + + return e.complexity.TranslatedAudit.ModifiedByUserAccount(childComplexity), true + + case "TranslatedAudit.modifiedDts": + if e.complexity.TranslatedAudit.ModifiedDts == nil { + break + } + + return e.complexity.TranslatedAudit.ModifiedDts(childComplexity), true + + case "TranslatedAudit.primaryKey": + if e.complexity.TranslatedAudit.PrimaryKey == nil { + break + } + + return e.complexity.TranslatedAudit.PrimaryKey(childComplexity), true + + case "TranslatedAudit.restricted": + if e.complexity.TranslatedAudit.Restricted == nil { + break + } + + return e.complexity.TranslatedAudit.Restricted(childComplexity), true + + case "TranslatedAudit.tableID": + if e.complexity.TranslatedAudit.TableID == nil { + break + } + + return e.complexity.TranslatedAudit.TableID(childComplexity), true + + case "TranslatedAudit.tableName": + if e.complexity.TranslatedAudit.TableName == nil { + break + } + + return e.complexity.TranslatedAudit.TableName(childComplexity), true + + case "TranslatedAudit.translatedFields": + if e.complexity.TranslatedAudit.TranslatedFields == nil { + break + } + + return e.complexity.TranslatedAudit.TranslatedFields(childComplexity), true + + case "TranslatedAuditField.changeType": + if e.complexity.TranslatedAuditField.ChangeType == nil { + break + } + + return e.complexity.TranslatedAuditField.ChangeType(childComplexity), true + + case "TranslatedAuditField.createdBy": + if e.complexity.TranslatedAuditField.CreatedBy == nil { + break + } + + return e.complexity.TranslatedAuditField.CreatedBy(childComplexity), true + + case "TranslatedAuditField.createdByUserAccount": + if e.complexity.TranslatedAuditField.CreatedByUserAccount == nil { + break + } + + return e.complexity.TranslatedAuditField.CreatedByUserAccount(childComplexity), true + + case "TranslatedAuditField.createdDts": + if e.complexity.TranslatedAuditField.CreatedDts == nil { + break + } + + return e.complexity.TranslatedAuditField.CreatedDts(childComplexity), true + + case "TranslatedAuditField.dataType": + if e.complexity.TranslatedAuditField.DataType == nil { + break + } + + return e.complexity.TranslatedAuditField.DataType(childComplexity), true + + case "TranslatedAuditField.fieldName": + if e.complexity.TranslatedAuditField.FieldName == nil { + break + } + + return e.complexity.TranslatedAuditField.FieldName(childComplexity), true + + case "TranslatedAuditField.fieldNameTranslated": + if e.complexity.TranslatedAuditField.FieldNameTranslated == nil { + break + } + + return e.complexity.TranslatedAuditField.FieldNameTranslated(childComplexity), true + + case "TranslatedAuditField.fieldOrder": + if e.complexity.TranslatedAuditField.FieldOrder == nil { + break + } + + return e.complexity.TranslatedAuditField.FieldOrder(childComplexity), true + + case "TranslatedAuditField.formType": + if e.complexity.TranslatedAuditField.FormType == nil { + break + } + + return e.complexity.TranslatedAuditField.FormType(childComplexity), true + + case "TranslatedAuditField.id": + if e.complexity.TranslatedAuditField.ID == nil { + break + } + + return e.complexity.TranslatedAuditField.ID(childComplexity), true + + case "TranslatedAuditField.modifiedBy": + if e.complexity.TranslatedAuditField.ModifiedBy == nil { + break + } + + return e.complexity.TranslatedAuditField.ModifiedBy(childComplexity), true + + case "TranslatedAuditField.modifiedByUserAccount": + if e.complexity.TranslatedAuditField.ModifiedByUserAccount == nil { + break + } + + return e.complexity.TranslatedAuditField.ModifiedByUserAccount(childComplexity), true + + case "TranslatedAuditField.modifiedDts": + if e.complexity.TranslatedAuditField.ModifiedDts == nil { + break + } + + return e.complexity.TranslatedAuditField.ModifiedDts(childComplexity), true + + case "TranslatedAuditField.new": + if e.complexity.TranslatedAuditField.New == nil { + break + } + + return e.complexity.TranslatedAuditField.New(childComplexity), true + + case "TranslatedAuditField.newTranslated": + if e.complexity.TranslatedAuditField.NewTranslated == nil { + break + } + + return e.complexity.TranslatedAuditField.NewTranslated(childComplexity), true + + case "TranslatedAuditField.notApplicableQuestions": + if e.complexity.TranslatedAuditField.NotApplicableQuestions == nil { + break + } + + return e.complexity.TranslatedAuditField.NotApplicableQuestions(childComplexity), true + + case "TranslatedAuditField.old": + if e.complexity.TranslatedAuditField.Old == nil { + break + } + + return e.complexity.TranslatedAuditField.Old(childComplexity), true + + case "TranslatedAuditField.oldTranslated": + if e.complexity.TranslatedAuditField.OldTranslated == nil { + break + } + + return e.complexity.TranslatedAuditField.OldTranslated(childComplexity), true + + case "TranslatedAuditField.questionType": + if e.complexity.TranslatedAuditField.QuestionType == nil { + break + } + + return e.complexity.TranslatedAuditField.QuestionType(childComplexity), true + + case "TranslatedAuditField.referenceLabel": + if e.complexity.TranslatedAuditField.ReferenceLabel == nil { + break + } + + return e.complexity.TranslatedAuditField.ReferenceLabel(childComplexity), true + + case "TranslatedAuditField.translatedAuditID": + if e.complexity.TranslatedAuditField.TranslatedAuditID == nil { + break + } + + return e.complexity.TranslatedAuditField.TranslatedAuditID(childComplexity), true + + case "TranslatedAuditMetaBaseStruct.tableName": + if e.complexity.TranslatedAuditMetaBaseStruct.TableName == nil { + break + } + + return e.complexity.TranslatedAuditMetaBaseStruct.TableName(childComplexity), true + + case "TranslatedAuditMetaBaseStruct.version": + if e.complexity.TranslatedAuditMetaBaseStruct.Version == nil { + break + } + + return e.complexity.TranslatedAuditMetaBaseStruct.Version(childComplexity), true + + case "TranslatedAuditMetaDiscussionReply.discussionContent": + if e.complexity.TranslatedAuditMetaDiscussionReply.DiscussionContent == nil { + break + } + + return e.complexity.TranslatedAuditMetaDiscussionReply.DiscussionContent(childComplexity), true + + case "TranslatedAuditMetaDiscussionReply.discussionID": + if e.complexity.TranslatedAuditMetaDiscussionReply.DiscussionID == nil { + break + } + + return e.complexity.TranslatedAuditMetaDiscussionReply.DiscussionID(childComplexity), true + + case "TranslatedAuditMetaDiscussionReply.numberOfReplies": + if e.complexity.TranslatedAuditMetaDiscussionReply.NumberOfReplies == nil { + break + } + + return e.complexity.TranslatedAuditMetaDiscussionReply.NumberOfReplies(childComplexity), true + + case "TranslatedAuditMetaDiscussionReply.tableName": + if e.complexity.TranslatedAuditMetaDiscussionReply.TableName == nil { + break + } + + return e.complexity.TranslatedAuditMetaDiscussionReply.TableName(childComplexity), true + + case "TranslatedAuditMetaDiscussionReply.version": + if e.complexity.TranslatedAuditMetaDiscussionReply.Version == nil { + break + } + + return e.complexity.TranslatedAuditMetaDiscussionReply.Version(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.documentID": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentID == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentID(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.documentName": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentName == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentName(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.documentNote": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentNote == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentNote(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.documentOtherType": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentOtherType == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentOtherType(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.documentRestricted": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentRestricted == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentRestricted(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.documentType": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentType == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentType(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.documentURL": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentURL == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentURL(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.documentVisibility": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentVisibility == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.DocumentVisibility(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.needIsOther": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.NeedIsOther == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.NeedIsOther(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.needName": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.NeedName == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.NeedName(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.solutionIsOther": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionIsOther == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionIsOther(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.solutionName": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionName == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionName(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.solutionOtherHeader": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionOtherHeader == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.SolutionOtherHeader(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.tableName": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.TableName == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.TableName(childComplexity), true + + case "TranslatedAuditMetaDocumentSolutionLink.version": + if e.complexity.TranslatedAuditMetaDocumentSolutionLink.Version == nil { + break + } + + return e.complexity.TranslatedAuditMetaDocumentSolutionLink.Version(childComplexity), true + + case "TranslatedAuditMetaGeneric.relation": + if e.complexity.TranslatedAuditMetaGeneric.Relation == nil { + break + } + + return e.complexity.TranslatedAuditMetaGeneric.Relation(childComplexity), true + + case "TranslatedAuditMetaGeneric.relationContent": + if e.complexity.TranslatedAuditMetaGeneric.RelationContent == nil { + break + } + + return e.complexity.TranslatedAuditMetaGeneric.RelationContent(childComplexity), true + + case "TranslatedAuditMetaGeneric.tableName": + if e.complexity.TranslatedAuditMetaGeneric.TableName == nil { + break + } + + return e.complexity.TranslatedAuditMetaGeneric.TableName(childComplexity), true + + case "TranslatedAuditMetaGeneric.version": + if e.complexity.TranslatedAuditMetaGeneric.Version == nil { + break + } + + return e.complexity.TranslatedAuditMetaGeneric.Version(childComplexity), true + + case "TranslatedAuditMetaOperationalNeed.isOther": + if e.complexity.TranslatedAuditMetaOperationalNeed.IsOther == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalNeed.IsOther(childComplexity), true + + case "TranslatedAuditMetaOperationalNeed.needName": + if e.complexity.TranslatedAuditMetaOperationalNeed.NeedName == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalNeed.NeedName(childComplexity), true + + case "TranslatedAuditMetaOperationalNeed.tableName": + if e.complexity.TranslatedAuditMetaOperationalNeed.TableName == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalNeed.TableName(childComplexity), true + + case "TranslatedAuditMetaOperationalNeed.version": + if e.complexity.TranslatedAuditMetaOperationalNeed.Version == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalNeed.Version(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.needIsOther": + if e.complexity.TranslatedAuditMetaOperationalSolution.NeedIsOther == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.NeedIsOther(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.needName": + if e.complexity.TranslatedAuditMetaOperationalSolution.NeedName == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.NeedName(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.numberOfSubtasks": + if e.complexity.TranslatedAuditMetaOperationalSolution.NumberOfSubtasks == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.NumberOfSubtasks(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.solutionIsOther": + if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionIsOther == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionIsOther(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.solutionMustFinish": + if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionMustFinish == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionMustFinish(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.solutionMustStart": + if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionMustStart == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionMustStart(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.solutionName": + if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionName == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionName(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.solutionOtherHeader": + if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionOtherHeader == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionOtherHeader(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.solutionStatus": + if e.complexity.TranslatedAuditMetaOperationalSolution.SolutionStatus == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.SolutionStatus(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.tableName": + if e.complexity.TranslatedAuditMetaOperationalSolution.TableName == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.TableName(childComplexity), true + + case "TranslatedAuditMetaOperationalSolution.version": + if e.complexity.TranslatedAuditMetaOperationalSolution.Version == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolution.Version(childComplexity), true + + case "TranslatedAuditMetaOperationalSolutionSubtask.needIsOther": + if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NeedIsOther == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NeedIsOther(childComplexity), true + + case "TranslatedAuditMetaOperationalSolutionSubtask.needName": + if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NeedName == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NeedName(childComplexity), true + + case "TranslatedAuditMetaOperationalSolutionSubtask.numberOfSubtasks": + if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NumberOfSubtasks == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.NumberOfSubtasks(childComplexity), true + + case "TranslatedAuditMetaOperationalSolutionSubtask.solutionIsOther": + if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionIsOther == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionIsOther(childComplexity), true + + case "TranslatedAuditMetaOperationalSolutionSubtask.solutionName": + if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionName == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionName(childComplexity), true + + case "TranslatedAuditMetaOperationalSolutionSubtask.solutionOtherHeader": + if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionOtherHeader == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SolutionOtherHeader(childComplexity), true + + case "TranslatedAuditMetaOperationalSolutionSubtask.subtaskName": + if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SubtaskName == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.SubtaskName(childComplexity), true + + case "TranslatedAuditMetaOperationalSolutionSubtask.tableName": + if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.TableName == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.TableName(childComplexity), true + + case "TranslatedAuditMetaOperationalSolutionSubtask.version": + if e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.Version == nil { + break + } + + return e.complexity.TranslatedAuditMetaOperationalSolutionSubtask.Version(childComplexity), true + + case "TranslationField.dbField": + if e.complexity.TranslationField.DBField == nil { + break + } + + return e.complexity.TranslationField.DBField(childComplexity), true + + case "TranslationField.dataType": + if e.complexity.TranslationField.DataType == nil { + break + } + + return e.complexity.TranslationField.DataType(childComplexity), true + + case "TranslationField.exportLabel": + if e.complexity.TranslationField.ExportLabel == nil { + break + } + + return e.complexity.TranslationField.ExportLabel(childComplexity), true + + case "TranslationField.formType": + if e.complexity.TranslationField.FormType == nil { + break + } + + return e.complexity.TranslationField.FormType(childComplexity), true + + case "TranslationField.goField": + if e.complexity.TranslationField.GoField == nil { + break + } + + return e.complexity.TranslationField.GoField(childComplexity), true + + case "TranslationField.gqlField": + if e.complexity.TranslationField.GqlField == nil { + break + } + + return e.complexity.TranslationField.GqlField(childComplexity), true + + case "TranslationField.isArray": + if e.complexity.TranslationField.IsArray == nil { + break + } + + return e.complexity.TranslationField.IsArray(childComplexity), true + + case "TranslationField.isNote": + if e.complexity.TranslationField.IsNote == nil { + break + } + + return e.complexity.TranslationField.IsNote(childComplexity), true + + case "TranslationField.isOtherType": + if e.complexity.TranslationField.IsOtherType == nil { + break + } + + return e.complexity.TranslationField.IsOtherType(childComplexity), true + + case "TranslationField.label": + if e.complexity.TranslationField.Label == nil { + break + } + + return e.complexity.TranslationField.Label(childComplexity), true + + case "TranslationField.multiSelectLabel": + if e.complexity.TranslationField.MultiSelectLabel == nil { + break + } + + return e.complexity.TranslationField.MultiSelectLabel(childComplexity), true + + case "TranslationField.order": + if e.complexity.TranslationField.Order == nil { + break + } + + return e.complexity.TranslationField.Order(childComplexity), true + + case "TranslationField.otherParentField": + if e.complexity.TranslationField.OtherParentField == nil { + break + } + + return e.complexity.TranslationField.OtherParentField(childComplexity), true + + case "TranslationField.parentReferencesLabel": + if e.complexity.TranslationField.ParentReferencesLabel == nil { + break + } + + return e.complexity.TranslationField.ParentReferencesLabel(childComplexity), true + + case "TranslationField.readonlyLabel": + if e.complexity.TranslationField.ReadOnlyLabel == nil { + break + } + + return e.complexity.TranslationField.ReadOnlyLabel(childComplexity), true + + case "TranslationField.sublabel": + if e.complexity.TranslationField.SubLabel == nil { + break + } + + return e.complexity.TranslationField.SubLabel(childComplexity), true + + case "TranslationField.tableReference": + if e.complexity.TranslationField.TableReference == nil { + break + } + + return e.complexity.TranslationField.TableReference(childComplexity), true + + case "TranslationFieldWithOptions.dbField": + if e.complexity.TranslationFieldWithOptions.DBField == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.DBField(childComplexity), true + + case "TranslationFieldWithOptions.dataType": + if e.complexity.TranslationFieldWithOptions.DataType == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.DataType(childComplexity), true + + case "TranslationFieldWithOptions.exportLabel": + if e.complexity.TranslationFieldWithOptions.ExportLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.ExportLabel(childComplexity), true + + case "TranslationFieldWithOptions.exportOptions": + if e.complexity.TranslationFieldWithOptions.ExportOptions == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.ExportOptions(childComplexity), true + + case "TranslationFieldWithOptions.formType": + if e.complexity.TranslationFieldWithOptions.FormType == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.FormType(childComplexity), true + + case "TranslationFieldWithOptions.goField": + if e.complexity.TranslationFieldWithOptions.GoField == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.GoField(childComplexity), true + + case "TranslationFieldWithOptions.gqlField": + if e.complexity.TranslationFieldWithOptions.GqlField == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.GqlField(childComplexity), true + + case "TranslationFieldWithOptions.isArray": + if e.complexity.TranslationFieldWithOptions.IsArray == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.IsArray(childComplexity), true + + case "TranslationFieldWithOptions.isNote": + if e.complexity.TranslationFieldWithOptions.IsNote == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.IsNote(childComplexity), true + + case "TranslationFieldWithOptions.isOtherType": + if e.complexity.TranslationFieldWithOptions.IsOtherType == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.IsOtherType(childComplexity), true + + case "TranslationFieldWithOptions.label": + if e.complexity.TranslationFieldWithOptions.Label == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.Label(childComplexity), true + + case "TranslationFieldWithOptions.multiSelectLabel": + if e.complexity.TranslationFieldWithOptions.MultiSelectLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.MultiSelectLabel(childComplexity), true + + case "TranslationFieldWithOptions.options": + if e.complexity.TranslationFieldWithOptions.Options == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.Options(childComplexity), true + + case "TranslationFieldWithOptions.order": + if e.complexity.TranslationFieldWithOptions.Order == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.Order(childComplexity), true + + case "TranslationFieldWithOptions.otherParentField": + if e.complexity.TranslationFieldWithOptions.OtherParentField == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.OtherParentField(childComplexity), true + + case "TranslationFieldWithOptions.parentReferencesLabel": + if e.complexity.TranslationFieldWithOptions.ParentReferencesLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.ParentReferencesLabel(childComplexity), true + + case "TranslationFieldWithOptions.readonlyLabel": + if e.complexity.TranslationFieldWithOptions.ReadOnlyLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.ReadOnlyLabel(childComplexity), true + + case "TranslationFieldWithOptions.sublabel": + if e.complexity.TranslationFieldWithOptions.SubLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.SubLabel(childComplexity), true + + case "TranslationFieldWithOptions.tableReference": + if e.complexity.TranslationFieldWithOptions.TableReference == nil { + break + } + + return e.complexity.TranslationFieldWithOptions.TableReference(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.childRelation": + if e.complexity.TranslationFieldWithOptionsAndChildren.ChildRelation == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.ChildRelation(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.dbField": + if e.complexity.TranslationFieldWithOptionsAndChildren.DBField == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.DBField(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.dataType": + if e.complexity.TranslationFieldWithOptionsAndChildren.DataType == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.DataType(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.exportLabel": + if e.complexity.TranslationFieldWithOptionsAndChildren.ExportLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.ExportLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.exportOptions": + if e.complexity.TranslationFieldWithOptionsAndChildren.ExportOptions == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.ExportOptions(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.formType": + if e.complexity.TranslationFieldWithOptionsAndChildren.FormType == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.FormType(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.goField": + if e.complexity.TranslationFieldWithOptionsAndChildren.GoField == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.GoField(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.gqlField": + if e.complexity.TranslationFieldWithOptionsAndChildren.GqlField == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.GqlField(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.isArray": + if e.complexity.TranslationFieldWithOptionsAndChildren.IsArray == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.IsArray(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.isNote": + if e.complexity.TranslationFieldWithOptionsAndChildren.IsNote == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.IsNote(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.isOtherType": + if e.complexity.TranslationFieldWithOptionsAndChildren.IsOtherType == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.IsOtherType(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.label": + if e.complexity.TranslationFieldWithOptionsAndChildren.Label == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.Label(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.multiSelectLabel": + if e.complexity.TranslationFieldWithOptionsAndChildren.MultiSelectLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.MultiSelectLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.options": + if e.complexity.TranslationFieldWithOptionsAndChildren.Options == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.Options(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.order": + if e.complexity.TranslationFieldWithOptionsAndChildren.Order == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.Order(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.otherParentField": + if e.complexity.TranslationFieldWithOptionsAndChildren.OtherParentField == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.OtherParentField(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.parentReferencesLabel": + if e.complexity.TranslationFieldWithOptionsAndChildren.ParentReferencesLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.ParentReferencesLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.readonlyLabel": + if e.complexity.TranslationFieldWithOptionsAndChildren.ReadOnlyLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.ReadOnlyLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.sublabel": + if e.complexity.TranslationFieldWithOptionsAndChildren.SubLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.SubLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndChildren.tableReference": + if e.complexity.TranslationFieldWithOptionsAndChildren.TableReference == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndChildren.TableReference(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.dbField": + if e.complexity.TranslationFieldWithOptionsAndParent.DBField == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.DBField(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.dataType": + if e.complexity.TranslationFieldWithOptionsAndParent.DataType == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.DataType(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.exportLabel": + if e.complexity.TranslationFieldWithOptionsAndParent.ExportLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.ExportLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.exportOptions": + if e.complexity.TranslationFieldWithOptionsAndParent.ExportOptions == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.ExportOptions(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.formType": + if e.complexity.TranslationFieldWithOptionsAndParent.FormType == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.FormType(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.goField": + if e.complexity.TranslationFieldWithOptionsAndParent.GoField == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.GoField(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.gqlField": + if e.complexity.TranslationFieldWithOptionsAndParent.GqlField == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.GqlField(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.isArray": + if e.complexity.TranslationFieldWithOptionsAndParent.IsArray == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.IsArray(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.isNote": + if e.complexity.TranslationFieldWithOptionsAndParent.IsNote == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.IsNote(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.isOtherType": + if e.complexity.TranslationFieldWithOptionsAndParent.IsOtherType == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.IsOtherType(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.label": + if e.complexity.TranslationFieldWithOptionsAndParent.Label == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.Label(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.multiSelectLabel": + if e.complexity.TranslationFieldWithOptionsAndParent.MultiSelectLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.MultiSelectLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.options": + if e.complexity.TranslationFieldWithOptionsAndParent.Options == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.Options(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.order": + if e.complexity.TranslationFieldWithOptionsAndParent.Order == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.Order(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.otherParentField": + if e.complexity.TranslationFieldWithOptionsAndParent.OtherParentField == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.OtherParentField(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.parentReferencesLabel": + if e.complexity.TranslationFieldWithOptionsAndParent.ParentReferencesLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.ParentReferencesLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.parentRelation": + if e.complexity.TranslationFieldWithOptionsAndParent.ParentRelation == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.ParentRelation(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.readonlyLabel": + if e.complexity.TranslationFieldWithOptionsAndParent.ReadOnlyLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.ReadOnlyLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.sublabel": + if e.complexity.TranslationFieldWithOptionsAndParent.SubLabel == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.SubLabel(childComplexity), true + + case "TranslationFieldWithOptionsAndParent.tableReference": + if e.complexity.TranslationFieldWithOptionsAndParent.TableReference == nil { + break + } + + return e.complexity.TranslationFieldWithOptionsAndParent.TableReference(childComplexity), true + + case "TranslationFieldWithParent.dbField": + if e.complexity.TranslationFieldWithParent.DBField == nil { + break + } + + return e.complexity.TranslationFieldWithParent.DBField(childComplexity), true + + case "TranslationFieldWithParent.dataType": + if e.complexity.TranslationFieldWithParent.DataType == nil { + break + } + + return e.complexity.TranslationFieldWithParent.DataType(childComplexity), true + + case "TranslationFieldWithParent.exportLabel": + if e.complexity.TranslationFieldWithParent.ExportLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParent.ExportLabel(childComplexity), true + + case "TranslationFieldWithParent.formType": + if e.complexity.TranslationFieldWithParent.FormType == nil { + break + } + + return e.complexity.TranslationFieldWithParent.FormType(childComplexity), true + + case "TranslationFieldWithParent.goField": + if e.complexity.TranslationFieldWithParent.GoField == nil { + break + } + + return e.complexity.TranslationFieldWithParent.GoField(childComplexity), true + + case "TranslationFieldWithParent.gqlField": + if e.complexity.TranslationFieldWithParent.GqlField == nil { + break + } + + return e.complexity.TranslationFieldWithParent.GqlField(childComplexity), true + + case "TranslationFieldWithParent.isArray": + if e.complexity.TranslationFieldWithParent.IsArray == nil { + break + } + + return e.complexity.TranslationFieldWithParent.IsArray(childComplexity), true + + case "TranslationFieldWithParent.isNote": + if e.complexity.TranslationFieldWithParent.IsNote == nil { + break + } + + return e.complexity.TranslationFieldWithParent.IsNote(childComplexity), true + + case "TranslationFieldWithParent.isOtherType": + if e.complexity.TranslationFieldWithParent.IsOtherType == nil { + break + } + + return e.complexity.TranslationFieldWithParent.IsOtherType(childComplexity), true + + case "TranslationFieldWithParent.label": + if e.complexity.TranslationFieldWithParent.Label == nil { + break + } + + return e.complexity.TranslationFieldWithParent.Label(childComplexity), true + + case "TranslationFieldWithParent.multiSelectLabel": + if e.complexity.TranslationFieldWithParent.MultiSelectLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParent.MultiSelectLabel(childComplexity), true + + case "TranslationFieldWithParent.order": + if e.complexity.TranslationFieldWithParent.Order == nil { + break + } + + return e.complexity.TranslationFieldWithParent.Order(childComplexity), true + + case "TranslationFieldWithParent.otherParentField": + if e.complexity.TranslationFieldWithParent.OtherParentField == nil { + break + } + + return e.complexity.TranslationFieldWithParent.OtherParentField(childComplexity), true + + case "TranslationFieldWithParent.parentReferencesLabel": + if e.complexity.TranslationFieldWithParent.ParentReferencesLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParent.ParentReferencesLabel(childComplexity), true + + case "TranslationFieldWithParent.parentRelation": + if e.complexity.TranslationFieldWithParent.ParentRelation == nil { + break + } + + return e.complexity.TranslationFieldWithParent.ParentRelation(childComplexity), true + + case "TranslationFieldWithParent.readonlyLabel": + if e.complexity.TranslationFieldWithParent.ReadOnlyLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParent.ReadOnlyLabel(childComplexity), true + + case "TranslationFieldWithParent.sublabel": + if e.complexity.TranslationFieldWithParent.SubLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParent.SubLabel(childComplexity), true + + case "TranslationFieldWithParent.tableReference": + if e.complexity.TranslationFieldWithParent.TableReference == nil { + break + } + + return e.complexity.TranslationFieldWithParent.TableReference(childComplexity), true + + case "TranslationFieldWithParentAndChildren.childRelation": + if e.complexity.TranslationFieldWithParentAndChildren.ChildRelation == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.ChildRelation(childComplexity), true + + case "TranslationFieldWithParentAndChildren.dbField": + if e.complexity.TranslationFieldWithParentAndChildren.DBField == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.DBField(childComplexity), true + + case "TranslationFieldWithParentAndChildren.dataType": + if e.complexity.TranslationFieldWithParentAndChildren.DataType == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.DataType(childComplexity), true + + case "TranslationFieldWithParentAndChildren.exportLabel": + if e.complexity.TranslationFieldWithParentAndChildren.ExportLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.ExportLabel(childComplexity), true + + case "TranslationFieldWithParentAndChildren.exportOptions": + if e.complexity.TranslationFieldWithParentAndChildren.ExportOptions == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.ExportOptions(childComplexity), true + + case "TranslationFieldWithParentAndChildren.formType": + if e.complexity.TranslationFieldWithParentAndChildren.FormType == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.FormType(childComplexity), true + + case "TranslationFieldWithParentAndChildren.goField": + if e.complexity.TranslationFieldWithParentAndChildren.GoField == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.GoField(childComplexity), true + + case "TranslationFieldWithParentAndChildren.gqlField": + if e.complexity.TranslationFieldWithParentAndChildren.GqlField == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.GqlField(childComplexity), true + + case "TranslationFieldWithParentAndChildren.isArray": + if e.complexity.TranslationFieldWithParentAndChildren.IsArray == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.IsArray(childComplexity), true + + case "TranslationFieldWithParentAndChildren.isNote": + if e.complexity.TranslationFieldWithParentAndChildren.IsNote == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.IsNote(childComplexity), true + + case "TranslationFieldWithParentAndChildren.isOtherType": + if e.complexity.TranslationFieldWithParentAndChildren.IsOtherType == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.IsOtherType(childComplexity), true + + case "TranslationFieldWithParentAndChildren.label": + if e.complexity.TranslationFieldWithParentAndChildren.Label == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.Label(childComplexity), true + + case "TranslationFieldWithParentAndChildren.multiSelectLabel": + if e.complexity.TranslationFieldWithParentAndChildren.MultiSelectLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.MultiSelectLabel(childComplexity), true + + case "TranslationFieldWithParentAndChildren.options": + if e.complexity.TranslationFieldWithParentAndChildren.Options == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.Options(childComplexity), true + + case "TranslationFieldWithParentAndChildren.order": + if e.complexity.TranslationFieldWithParentAndChildren.Order == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.Order(childComplexity), true + + case "TranslationFieldWithParentAndChildren.otherParentField": + if e.complexity.TranslationFieldWithParentAndChildren.OtherParentField == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.OtherParentField(childComplexity), true + + case "TranslationFieldWithParentAndChildren.parentReferencesLabel": + if e.complexity.TranslationFieldWithParentAndChildren.ParentReferencesLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.ParentReferencesLabel(childComplexity), true + + case "TranslationFieldWithParentAndChildren.parentRelation": + if e.complexity.TranslationFieldWithParentAndChildren.ParentRelation == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.ParentRelation(childComplexity), true + + case "TranslationFieldWithParentAndChildren.readonlyLabel": + if e.complexity.TranslationFieldWithParentAndChildren.ReadOnlyLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.ReadOnlyLabel(childComplexity), true + + case "TranslationFieldWithParentAndChildren.sublabel": + if e.complexity.TranslationFieldWithParentAndChildren.SubLabel == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.SubLabel(childComplexity), true + + case "TranslationFieldWithParentAndChildren.tableReference": + if e.complexity.TranslationFieldWithParentAndChildren.TableReference == nil { + break + } + + return e.complexity.TranslationFieldWithParentAndChildren.TableReference(childComplexity), true + + case "UserAccount.commonName": + if e.complexity.UserAccount.CommonName == nil { + break + } + + return e.complexity.UserAccount.CommonName(childComplexity), true + + case "UserAccount.email": + if e.complexity.UserAccount.Email == nil { + break + } + + return e.complexity.UserAccount.Email(childComplexity), true + + case "UserAccount.familyName": + if e.complexity.UserAccount.FamilyName == nil { + break + } + + return e.complexity.UserAccount.FamilyName(childComplexity), true + + case "UserAccount.givenName": + if e.complexity.UserAccount.GivenName == nil { + break + } + + return e.complexity.UserAccount.GivenName(childComplexity), true + + case "UserAccount.hasLoggedIn": + if e.complexity.UserAccount.HasLoggedIn == nil { + break + } + + return e.complexity.UserAccount.HasLoggedIn(childComplexity), true + + case "UserAccount.id": + if e.complexity.UserAccount.ID == nil { + break + } + + return e.complexity.UserAccount.ID(childComplexity), true + + case "UserAccount.isEUAID": + if e.complexity.UserAccount.IsEUAID == nil { + break + } + + return e.complexity.UserAccount.IsEUAID(childComplexity), true + + case "UserAccount.locale": + if e.complexity.UserAccount.Locale == nil { + break + } + + return e.complexity.UserAccount.Locale(childComplexity), true + + case "UserAccount.username": + if e.complexity.UserAccount.Username == nil { + break + } + + return e.complexity.UserAccount.Username(childComplexity), true + + case "UserAccount.zoneInfo": + if e.complexity.UserAccount.ZoneInfo == nil { + break + } + + return e.complexity.UserAccount.ZoneInfo(childComplexity), true + + case "UserInfo.displayName": + if e.complexity.UserInfo.DisplayName == nil { + break + } + + return e.complexity.UserInfo.DisplayName(childComplexity), true + + case "UserInfo.email": + if e.complexity.UserInfo.Email == nil { + break + } + + return e.complexity.UserInfo.Email(childComplexity), true + + case "UserInfo.firstName": + if e.complexity.UserInfo.FirstName == nil { + break + } + + return e.complexity.UserInfo.FirstName(childComplexity), true + + case "UserInfo.lastName": + if e.complexity.UserInfo.LastName == nil { + break + } + + return e.complexity.UserInfo.LastName(childComplexity), true + + case "UserInfo.username": + if e.complexity.UserInfo.Username == nil { + break + } + + return e.complexity.UserInfo.Username(childComplexity), true + + case "UserNotification.activity": + if e.complexity.UserNotification.Activity == nil { + break + } + + return e.complexity.UserNotification.Activity(childComplexity), true + + case "UserNotification.activityID": + if e.complexity.UserNotification.ActivityID == nil { + break + } + + return e.complexity.UserNotification.ActivityID(childComplexity), true + + case "UserNotification.createdBy": + if e.complexity.UserNotification.CreatedBy == nil { + break + } + + return e.complexity.UserNotification.CreatedBy(childComplexity), true + + case "UserNotification.createdByUserAccount": + if e.complexity.UserNotification.CreatedByUserAccount == nil { + break + } + + return e.complexity.UserNotification.CreatedByUserAccount(childComplexity), true + + case "UserNotification.createdDts": + if e.complexity.UserNotification.CreatedDts == nil { + break + } + + return e.complexity.UserNotification.CreatedDts(childComplexity), true + + case "UserNotification.emailSent": + if e.complexity.UserNotification.EmailSent == nil { + break + } + + return e.complexity.UserNotification.EmailSent(childComplexity), true + + case "UserNotification.id": + if e.complexity.UserNotification.ID == nil { + break + } + + return e.complexity.UserNotification.ID(childComplexity), true + + case "UserNotification.inAppSent": + if e.complexity.UserNotification.InAppSent == nil { + break + } + + return e.complexity.UserNotification.InAppSent(childComplexity), true + + case "UserNotification.isRead": + if e.complexity.UserNotification.IsRead == nil { + break + } + + return e.complexity.UserNotification.IsRead(childComplexity), true + + case "UserNotification.modifiedBy": + if e.complexity.UserNotification.ModifiedBy == nil { + break + } + + return e.complexity.UserNotification.ModifiedBy(childComplexity), true + + case "UserNotification.modifiedByUserAccount": + if e.complexity.UserNotification.ModifiedByUserAccount == nil { + break + } + + return e.complexity.UserNotification.ModifiedByUserAccount(childComplexity), true + + case "UserNotification.modifiedDts": + if e.complexity.UserNotification.ModifiedDts == nil { + break + } + + return e.complexity.UserNotification.ModifiedDts(childComplexity), true + + case "UserNotification.userID": + if e.complexity.UserNotification.UserID == nil { + break + } + + return e.complexity.UserNotification.UserID(childComplexity), true + + case "UserNotificationPreferences.addedAsCollaborator": + if e.complexity.UserNotificationPreferences.AddedAsCollaborator == nil { + break + } + + return e.complexity.UserNotificationPreferences.AddedAsCollaborator(childComplexity), true + + case "UserNotificationPreferences.createdBy": + if e.complexity.UserNotificationPreferences.CreatedBy == nil { + break + } + + return e.complexity.UserNotificationPreferences.CreatedBy(childComplexity), true + + case "UserNotificationPreferences.createdByUserAccount": + if e.complexity.UserNotificationPreferences.CreatedByUserAccount == nil { + break + } + + return e.complexity.UserNotificationPreferences.CreatedByUserAccount(childComplexity), true + + case "UserNotificationPreferences.createdDts": + if e.complexity.UserNotificationPreferences.CreatedDts == nil { + break + } + + return e.complexity.UserNotificationPreferences.CreatedDts(childComplexity), true + + case "UserNotificationPreferences.dailyDigestComplete": + if e.complexity.UserNotificationPreferences.DailyDigestComplete == nil { + break + } + + return e.complexity.UserNotificationPreferences.DailyDigestComplete(childComplexity), true + + case "UserNotificationPreferences.dataExchangeApproachMarkedComplete": + if e.complexity.UserNotificationPreferences.DataExchangeApproachMarkedComplete == nil { + break + } + + return e.complexity.UserNotificationPreferences.DataExchangeApproachMarkedComplete(childComplexity), true + + case "UserNotificationPreferences.dataExchangeApproachMarkedCompleteNotificationType": + if e.complexity.UserNotificationPreferences.DataExchangeApproachMarkedCompleteNotificationType == nil { + break + } + + return e.complexity.UserNotificationPreferences.DataExchangeApproachMarkedCompleteNotificationType(childComplexity), true + + case "UserNotificationPreferences.datesChanged": + if e.complexity.UserNotificationPreferences.DatesChanged == nil { + break + } + + return e.complexity.UserNotificationPreferences.DatesChanged(childComplexity), true + + case "UserNotificationPreferences.datesChangedNotificationType": + if e.complexity.UserNotificationPreferences.DatesChangedNotificationType == nil { + break + } + + return e.complexity.UserNotificationPreferences.DatesChangedNotificationType(childComplexity), true + + case "UserNotificationPreferences.id": + if e.complexity.UserNotificationPreferences.ID == nil { + break + } + + return e.complexity.UserNotificationPreferences.ID(childComplexity), true + + case "UserNotificationPreferences.modelPlanShared": + if e.complexity.UserNotificationPreferences.ModelPlanShared == nil { + break + } + + return e.complexity.UserNotificationPreferences.ModelPlanShared(childComplexity), true + + case "UserNotificationPreferences.modifiedBy": + if e.complexity.UserNotificationPreferences.ModifiedBy == nil { + break + } + + return e.complexity.UserNotificationPreferences.ModifiedBy(childComplexity), true + + case "UserNotificationPreferences.modifiedByUserAccount": + if e.complexity.UserNotificationPreferences.ModifiedByUserAccount == nil { + break + } + + return e.complexity.UserNotificationPreferences.ModifiedByUserAccount(childComplexity), true + + case "UserNotificationPreferences.modifiedDts": + if e.complexity.UserNotificationPreferences.ModifiedDts == nil { + break + } + + return e.complexity.UserNotificationPreferences.ModifiedDts(childComplexity), true + + case "UserNotificationPreferences.newDiscussionReply": + if e.complexity.UserNotificationPreferences.NewDiscussionReply == nil { + break + } + + return e.complexity.UserNotificationPreferences.NewDiscussionReply(childComplexity), true + + case "UserNotificationPreferences.newModelPlan": + if e.complexity.UserNotificationPreferences.NewModelPlan == nil { + break + } + + return e.complexity.UserNotificationPreferences.NewModelPlan(childComplexity), true + + case "UserNotificationPreferences.taggedInDiscussion": + if e.complexity.UserNotificationPreferences.TaggedInDiscussion == nil { + break + } + + return e.complexity.UserNotificationPreferences.TaggedInDiscussion(childComplexity), true + + case "UserNotificationPreferences.taggedInDiscussionReply": + if e.complexity.UserNotificationPreferences.TaggedInDiscussionReply == nil { + break + } + + return e.complexity.UserNotificationPreferences.TaggedInDiscussionReply(childComplexity), true + + case "UserNotificationPreferences.userID": + if e.complexity.UserNotificationPreferences.UserID == nil { + break + } + + return e.complexity.UserNotificationPreferences.UserID(childComplexity), true + + case "UserNotifications.notifications": + if e.complexity.UserNotifications.Notifications == nil { + break + } + + return e.complexity.UserNotifications.Notifications(childComplexity), true + + case "UserNotifications.numUnreadNotifications": + if e.complexity.UserNotifications.NumUnreadNotifications == nil { + break + } + + return e.complexity.UserNotifications.NumUnreadNotifications(childComplexity), true + + case "UserNotifications.unreadNotifications": + if e.complexity.UserNotifications.UnreadNotifications == nil { + break + } + + return e.complexity.UserNotifications.UnreadNotifications(childComplexity), true + + case "UserViewCustomization.createdBy": + if e.complexity.UserViewCustomization.CreatedBy == nil { + break + } + + return e.complexity.UserViewCustomization.CreatedBy(childComplexity), true + + case "UserViewCustomization.createdByUserAccount": + if e.complexity.UserViewCustomization.CreatedByUserAccount == nil { + break + } + + return e.complexity.UserViewCustomization.CreatedByUserAccount(childComplexity), true + + case "UserViewCustomization.createdDts": + if e.complexity.UserViewCustomization.CreatedDts == nil { + break + } + + return e.complexity.UserViewCustomization.CreatedDts(childComplexity), true + + case "UserViewCustomization.id": + if e.complexity.UserViewCustomization.ID == nil { + break + } + + return e.complexity.UserViewCustomization.ID(childComplexity), true + + case "UserViewCustomization.modifiedBy": + if e.complexity.UserViewCustomization.ModifiedBy == nil { + break + } + + return e.complexity.UserViewCustomization.ModifiedBy(childComplexity), true + + case "UserViewCustomization.modifiedByUserAccount": + if e.complexity.UserViewCustomization.ModifiedByUserAccount == nil { + break + } + + return e.complexity.UserViewCustomization.ModifiedByUserAccount(childComplexity), true + + case "UserViewCustomization.modifiedDts": + if e.complexity.UserViewCustomization.ModifiedDts == nil { + break + } + + return e.complexity.UserViewCustomization.ModifiedDts(childComplexity), true + + case "UserViewCustomization.possibleOperationalSolutions": + if e.complexity.UserViewCustomization.PossibleOperationalSolutions == nil { + break + } + + return e.complexity.UserViewCustomization.PossibleOperationalSolutions(childComplexity), true + + case "UserViewCustomization.userAccount": + if e.complexity.UserViewCustomization.UserAccount == nil { + break + } + + return e.complexity.UserViewCustomization.UserAccount(childComplexity), true + + case "UserViewCustomization.userId": + if e.complexity.UserViewCustomization.UserID == nil { + break + } + + return e.complexity.UserViewCustomization.UserID(childComplexity), true + + case "UserViewCustomization.viewCustomization": + if e.complexity.UserViewCustomization.ViewCustomization == nil { + break + } + + return e.complexity.UserViewCustomization.ViewCustomization(childComplexity), true + + } + return 0, false +} + +func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { + rc := graphql.GetOperationContext(ctx) + ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} + inputUnmarshalMap := graphql.BuildUnmarshalerMap( + ec.unmarshalInputCreateOperationalSolutionSubtaskInput, + ec.unmarshalInputDiscussionReplyCreateInput, + ec.unmarshalInputPlanCRCreateInput, + ec.unmarshalInputPlanCollaboratorCreateInput, + ec.unmarshalInputPlanDiscussionCreateInput, + ec.unmarshalInputPlanDocumentInput, + ec.unmarshalInputPlanDocumentLinkInput, + ec.unmarshalInputPlanTDLCreateInput, + ec.unmarshalInputReportAProblemInput, + ec.unmarshalInputSendFeedbackEmailInput, + ec.unmarshalInputUpdateOperationalSolutionSubtaskInput, + ) + first := true + + switch rc.Operation.Operation { + case ast.Query: + return func(ctx context.Context) *graphql.Response { + var response graphql.Response + var data graphql.Marshaler + if first { + first = false + ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) + data = ec._Query(ctx, rc.Operation.SelectionSet) + } else { + if atomic.LoadInt32(&ec.pendingDeferred) > 0 { + result := <-ec.deferredResults + atomic.AddInt32(&ec.pendingDeferred, -1) + data = result.Result + response.Path = result.Path + response.Label = result.Label + response.Errors = result.Errors + } else { + return nil + } + } + var buf bytes.Buffer + data.MarshalGQL(&buf) + response.Data = buf.Bytes() + if atomic.LoadInt32(&ec.deferred) > 0 { + hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 + response.HasNext = &hasNext + } + + return &response + } + case ast.Mutation: + return func(ctx context.Context) *graphql.Response { + if !first { + return nil + } + first = false + ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) + data := ec._Mutation(ctx, rc.Operation.SelectionSet) + var buf bytes.Buffer + data.MarshalGQL(&buf) + + return &graphql.Response{ + Data: buf.Bytes(), + } + } + case ast.Subscription: + next := ec._Subscription(ctx, rc.Operation.SelectionSet) + + var buf bytes.Buffer + return func(ctx context.Context) *graphql.Response { + buf.Reset() + data := next(ctx) + + if data == nil { + return nil + } + data.MarshalGQL(&buf) + + return &graphql.Response{ + Data: buf.Bytes(), + } + } + + default: + return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) + } +} + +type executionContext struct { + *graphql.OperationContext + *executableSchema + deferred int32 + pendingDeferred int32 + deferredResults chan graphql.DeferredResult +} + +func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { + atomic.AddInt32(&ec.pendingDeferred, 1) + go func() { + ctx := graphql.WithFreshResponseContext(dg.Context) + dg.FieldSet.Dispatch(ctx) + ds := graphql.DeferredResult{ + Path: dg.Path, + Label: dg.Label, + Result: dg.FieldSet, + Errors: graphql.GetErrors(ctx), + } + // null fields should bubble up + if dg.FieldSet.Invalids > 0 { + ds.Result = graphql.Null + } + ec.deferredResults <- ds + }() +} + +func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { + if ec.DisableIntrospection { + return nil, errors.New("introspection disabled") + } + return introspection.WrapSchema(parsedSchema), nil +} + +func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { + if ec.DisableIntrospection { + return nil, errors.New("introspection disabled") + } + return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil +} + +var sources = []*ast.Source{ + {Name: "../schema/schema.graphql", Input: `""" +Query definition for the schema +""" +type Query + +""" +Mutations definition for the schema +""" +type Mutation`, BuiltIn: false}, + {Name: "../schema/types/activity.graphql", Input: `""" +ActivityType represents the possible activities that happen in application that might result in a notification +""" +enum ActivityType { + DAILY_DIGEST_COMPLETE + ADDED_AS_COLLABORATOR + TAGGED_IN_DISCUSSION + TAGGED_IN_DISCUSSION_REPLY + NEW_DISCUSSION_REPLY + MODEL_PLAN_SHARED + NEW_MODEL_PLAN + DATES_CHANGED + DATA_EXCHANGE_APPROACH_MARKED_COMPLETE +} + +enum DateChangeFieldType { + COMPLETE_ICIP + CLEARANCE + ANNOUNCED + APPLICATIONS + PERFORMANCE_PERIOD + WRAP_UP_ENDS +} + +""" +ActivityMetaData is a type that represents all the data that can be captured in an Activity +""" +union ActivityMetaData = TaggedInPlanDiscussionActivityMeta | TaggedInDiscussionReplyActivityMeta | DailyDigestCompleteActivityMeta | NewDiscussionRepliedActivityMeta | AddedAsCollaboratorMeta | ModelPlanSharedActivityMeta | NewModelPlanActivityMeta | DatesChangedActivityMeta | PlanDataExchangeApproachMarkedCompleteActivityMeta + +type AddedAsCollaboratorMeta { + version: Int! + type: ActivityType! + modelPlanID: UUID! + modelPlan: ModelPlan! + collaboratorID: UUID! + collaborator: PlanCollaborator! +} + +type TaggedInPlanDiscussionActivityMeta { + version: Int! + type: ActivityType! + modelPlanID: UUID! + modelPlan: ModelPlan! + discussionID: UUID! + discussion: PlanDiscussion! + content: String! +} + +type TaggedInDiscussionReplyActivityMeta { + version: Int! + type: ActivityType! + modelPlanID: UUID! + modelPlan: ModelPlan! + discussionID: UUID! + discussion: PlanDiscussion! + replyID: UUID! + reply: DiscussionReply! + content: String! +} + +type ModelPlanSharedActivityMeta { + version: Int! + type: ActivityType! + modelPlanID: UUID! + modelPlan: ModelPlan! + optionalMessage: String +} + +type NewDiscussionRepliedActivityMeta { + version: Int! + type: ActivityType! + modelPlanID: UUID! + modelPlan: ModelPlan! + discussionID: UUID! + discussion: PlanDiscussion! + replyID: UUID! + reply: DiscussionReply! + content: String! +} + +type DailyDigestCompleteActivityMeta { + version: Int! + type: ActivityType! + modelPlanIDs: [UUID!]! + analyzedAudits: [AnalyzedAudit!]! + userID: UUID! + date: Time! +} + +type NewModelPlanActivityMeta { + version: Int! + type: ActivityType! + modelPlanID: UUID! + modelPlan: ModelPlan! +} + +type DateChange { + isChanged: Boolean! + field: DateChangeFieldType! + isRange: Boolean! + oldDate: Time + newDate: Time + oldRangeStart: Time + oldRangeEnd: Time + newRangeStart: Time + newRangeEnd: Time +} + +type DatesChangedActivityMeta { + version: Int! + type: ActivityType! + modelPlanID: UUID! + modelPlan: ModelPlan! + dateChanges: [DateChange!]! +} + +type PlanDataExchangeApproachMarkedCompleteActivityMeta { + version: Int! + type: ActivityType! + dataExchangeApproachID: UUID! + dataExchangeApproach: PlanDataExchangeApproach! + modelPlan: ModelPlan! + markedCompleteBy: UUID! + markedCompleteByUserAccount: UserAccount! +} + +""" +Activity represents an event that happened in the application that could result in a notification. +""" +type Activity { + id: UUID! + actorID: UUID! + actorUserAccount: UserAccount! + entityID: UUID! + activityType: ActivityType! + metaData: ActivityMetaData! + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} +`, BuiltIn: false}, + {Name: "../schema/types/analyzed_audit.graphql", Input: `""" +Analyzed Audit Represents data about changes that have happened in a model plan, saved in an a +""" + +type AnalyzedAudit { + id: UUID! + modelPlanID: UUID! + + modelName: String! + date: Time! + changes: AnalyzedAuditChange! + + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + + +type AnalyzedAuditChange { + modelPlan: AnalyzedModelPlan + documents: AnalyzedDocuments + crTdls: AnalyzedCrTdls + planSections: AnalyzedPlanSections + modelLeads: AnalyzedModelLeads + planDiscussions: AnalyzedPlanDiscussions + +} +type AnalyzedModelPlan { + """ + This represents the oldName + """ + oldName: String + statusChanges: [String] + +} + +type AnalyzedDocuments { + count: Int + +} + +type AnalyzedCrTdls { + activity: Boolean + +} +type AnalyzedPlanSections { + updated: [TableName!]! + readyForReview: [TableName!]! + readyForClearance: [TableName!]! + dataExchangeApproachMarkedComplete: Boolean +} + +type AnalyzedModelLeads { + added: [AnalyzedModelLeadInfo!]! +} + +type AnalyzedPlanDiscussions { + activity: Boolean +} + +type AnalyzedModelLeadInfo { + id: UUID! + userAccount: UserAccount! + commonName: String! + +} + +extend type Query { + analyzedAudits(dateAnalyzed: Time!): [AnalyzedAudit!]! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} +`, BuiltIn: false}, + {Name: "../schema/types/audit_change.graphql", Input: `type AuditChange { + id: Int! + primaryKey: UUID! + foreignKey: UUID + tableName: TableName! + action: String! + fields: Map! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Query { + auditChanges(tableName: TableName!, primaryKey: UUID!): [AuditChange!]! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/current_user.graphql", Input: `""" +The current user of the application +""" +type CurrentUser { + launchDarkly: LaunchDarklySettings! + account: UserAccount! + notifications: UserNotifications! + notificationPreferences: UserNotificationPreferences! +} + +extend type Query { + currentUser: CurrentUser! +}`, BuiltIn: false}, + {Name: "../schema/types/directives.graphql", Input: `directive @hasRole(role: Role!) on FIELD_DEFINITION + +directive @hasAnyRole(roles: [Role!]!) on FIELD_DEFINITION + +# https://gqlgen.com/config/#inline-config-with-directives +directive @goModel( + model: String + models: [String!] +) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION + +directive @goTag( + key: String! + value: String +) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION`, BuiltIn: false}, + {Name: "../schema/types/discussion_reply.graphql", Input: `""" +DiscussionReply represents a discussion reply +""" +type DiscussionReply { + id: UUID! + discussionID: UUID! + content: TaggedContent + userRole: DiscussionUserRole + userRoleDescription: String + isAssessment: Boolean! + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +""" +DiscussionReplyCreateInput represents the necessary fields to create a discussion reply +""" +input DiscussionReplyCreateInput { + discussionID: UUID! + content: TaggedHTML! + userRole: DiscussionUserRole + userRoleDescription: String +} + +extend type Mutation { + createDiscussionReply(input: DiscussionReplyCreateInput!): DiscussionReply! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/discussion_reply_translation.graphql", Input: `""" +Represents discussion reply translation data +""" + +type DiscussionReplyTranslation { + userRole: TranslationFieldWithOptions! @goTag(key: "db", value: "user_role") + userRoleDescription: TranslationField! @goTag(key: "db", value: "user_role_description") + content: TranslationField! @goTag(key: "db", value: "content") + isAssessment: TranslationFieldWithOptions! @goTag(key: "db", value: "is_assessment") +} +`, BuiltIn: false}, + {Name: "../schema/types/discussion_role_selection.graphql", Input: `type DiscussionRoleSelection { + userRole: DiscussionUserRole! + userRoleDescription: String +} + +extend type Query { + mostRecentDiscussionRoleSelection: DiscussionRoleSelection + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/echimp.graphql", Input: `type EChimpCR { + id: String! # This is "crNumber" under the hood, but it's aliased as "id" here for the sake of GQL/Apollo caching + versionNum: String! + initiator: String + firstName: String + lastName: String + title: String + sensitiveFlag: Boolean + implementationDate: String + """ + CRSummary is rich text in HTML format, in practice, the data is not tagged. + We use the TaggedContent type as we don't have another use for a plain HTML type. + """ + crSummary: TaggedContent + crStatus: String + emergencyCrFlag: Boolean + relatedCrNumbers: String + relatedCrTdlNumbers: String + associatedModelUids: UUID +} + +type EChimpTDL { + id: String! # This is "tdlNumber" under the hood, but it's aliased as "id" here for the sake of GQL/Apollo caching + versionNum: String! + initiator: String + firstName: String + lastName: String + title: String + issuedDate: String # TODO Convert to "Time" type if possible + status: String + associatedModelUids: UUID +} + +# """ +# EChimpCRAndTDLS is a type that represents CRS and TDLS so they can be returned together in graphql +# """ +union EChimpCRAndTDLS = EChimpCR | EChimpTDL +`, BuiltIn: false}, + {Name: "../schema/types/existing_model.graphql", Input: `""" +ExistingModel represents a model that already exists outside of the scope of MINT +""" +type ExistingModel { + id: Int + modelName: String! + stage: String! + numberOfParticipants: String + category: String + authority: String + description: String + numberOfBeneficiariesImpacted: Int + numberOfPhysiciansImpacted: Int + dateBegan: Time + dateEnded: Time + states: String + keywords: String + url: String + displayModelSummary: Boolean + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Query { + existingModelCollection: [ExistingModel!]! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/existing_model_link.graphql", Input: `enum ExisitingModelLinkFieldType { + GEN_CHAR_RESEMBLES_EXISTING_MODEL_WHICH + GEN_CHAR_PARTICIPATION_EXISTING_MODEL_WHICH +} + +""" +LinkedExistingModel is a union type that returns either an Existing Model, or a Model plan from the database +""" +union LinkedExistingModel = ExistingModel | ModelPlan + +type ExistingModelLinks { + links: [ExistingModelLink!]! + fieldName: ExisitingModelLinkFieldType! + modelPlanID: UUID! + names: [String!]! +} + +type ExistingModelLink { + id: UUID + modelPlanID: UUID! + existingModelID: Int + currentModelPlanID: UUID + fieldName: ExisitingModelLinkFieldType! + model: LinkedExistingModel! + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Query { + existingModelLink(id: UUID!): ExistingModelLink! + @hasAnyRole(roles:[MINT_USER, MINT_MAC]) +} + +extend type Mutation { + """ + This will update linked existing models, and relatede model plans for given model plan and fieldName. + The fieldName allows it so you can create links for multiple sections of the model plan + """ + updateExistingModelLinks(modelPlanID: UUID!,fieldName: ExisitingModelLinkFieldType!, existingModelIDs: [Int!],currentModelPlanIDs: [UUID!]): ExistingModelLinks! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/existing_model_link_translation.graphql", Input: `""" +Represents existing model link translation data +""" + +type ExistingModelLinkTranslation { + existingModelID: TranslationField! @goTag(key: "db", value: "existing_model_id") + currentModelPlanID: TranslationField! @goTag(key: "db", value: "current_model_plan_id") + fieldName: TranslationFieldWithOptions! @goTag(key: "db", value: "field_name") +} +`, BuiltIn: false}, + {Name: "../schema/types/launch_darkly_settings.graphql", Input: `""" +The current user's Launch Darkly key +""" +type LaunchDarklySettings { + userKey: String! + signedHash: String! +}`, BuiltIn: false}, + {Name: "../schema/types/lockable_sections.graphql", Input: `enum ChangeType { + ADDED + UPDATED + REMOVED +} + +enum ActionType { + """ + A normal flow action + """ + NORMAL + + """ + An administrative action + """ + ADMIN +} + +# LockableSection represents any section of the application that a user can uniquely hold a lock on. +# It _largely_ (currently) maps to the sections of the Task List, but also includes Data Exchange, which notably isn't part of the Task List. +enum LockableSection { + BASICS, + GENERAL_CHARACTERISTICS, + PARTICIPANTS_AND_PROVIDERS, + BENEFICIARIES, + OPERATIONS_EVALUATION_AND_LEARNING, + PAYMENT, + PREPARE_FOR_CLEARANCE, + DATA_EXCHANGE_APPROACH, + MODELS_TO_OPERATION_MATRIX +} + +type LockableSectionLockStatusChanged { + changeType: ChangeType! + lockStatus: LockableSectionLockStatus! + actionType: ActionType! +} + +type LockableSectionLockStatus { + modelPlanID: UUID! + section: LockableSection! + lockedByUserAccount: UserAccount! + isAssessment: Boolean! +} + +extend type Query { + lockableSectionLocks(modelPlanID: UUID!): [LockableSectionLockStatus!]! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + lockLockableSection(modelPlanID: UUID!, section: LockableSection!): Boolean! + @hasRole(role: MINT_USER) + + unlockLockableSection(modelPlanID: UUID!, section: LockableSection!): Boolean! + @hasRole(role: MINT_USER) + + unlockAllLockableSections(modelPlanID: UUID!): [LockableSectionLockStatus!]! + @hasRole(role: MINT_ASSESSMENT) +} + +type Subscription { + onLockableSectionLocksChanged(modelPlanID: UUID!): LockableSectionLockStatusChanged! + @hasRole(role: MINT_USER) + + onLockLockableSectionContext(modelPlanID: UUID!): LockableSectionLockStatusChanged! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/model_plan.graphql", Input: `enum ModelPlanFilter { + INCLUDE_ALL, + COLLAB_ONLY, + WITH_CR_TDLS, + FAVORITED, + APPROACHING_CLEARANCE, +} + +enum ModelStatus { + PLAN_DRAFT + PLAN_COMPLETE + ICIP_COMPLETE + INTERNAL_CMMI_CLEARANCE + CMS_CLEARANCE + HHS_CLEARANCE + OMB_ASRF_CLEARANCE + CLEARED + ANNOUNCED + PAUSED + CANCELED + ACTIVE + ENDED +} + +enum SortDirection { + ASC + DESC +} + +enum ModelViewFilter { + CCW, # CHRONIC_CONDITIONS_WAREHOUSE + CMMI, # CMMI_COST_ESTIMATE + CBOSC, # CONSOLIDATED_BUSINESS_OPERATIONS_SUPPORT_CENTER + DFSDM, # DIVISION_OF_FINANCIAL_SERVICES_AND_DEBT_MANAGEMENT + IPC, # INNOVATION_PAYMENT_CONTRACTOR + IDDOC, # INNOVATIVE_DESIGN_DEVELOPMENT_AND_OPERATIONS_CONTRACT + MDM, # MASTER_DATA_MANAGEMENT + OACT, # OFFICE_OF_THE_ACTUARY + PBG, # PROVIDER_BILLING_GROUP +} + +enum ModelPhase { + ICIP_COMPLETE, + IN_CLEARANCE, + CLEARED, + ANNOUNCED, + ACTIVE, + ENDED, +} + +""" +PhaseSuggestion is a suggestion response for a potential next phase and corresponding statuses for a model plan +""" +type PhaseSuggestion { + phase: ModelPhase! + suggestedStatuses: [ModelStatus!]! +} + +""" +ModelPlan represent the data point for plans about a model. It is the central data type in the application +""" +type ModelPlan { + id: UUID! + modelName: String! + abbreviation: String + archived: Boolean! + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + basics: PlanBasics! + generalCharacteristics: PlanGeneralCharacteristics! + participantsAndProviders: PlanParticipantsAndProviders! + beneficiaries: PlanBeneficiaries! + opsEvalAndLearning: PlanOpsEvalAndLearning! + collaborators: [PlanCollaborator!]! + documents: [PlanDocument!]! + discussions: [PlanDiscussion!]! + payments: PlanPayments! + dataExchangeApproach: PlanDataExchangeApproach! + status: ModelStatus! + taskListStatus: TaskStatus! + suggestedPhase: PhaseSuggestion + isFavorite: Boolean! + isCollaborator: Boolean! + crs: [PlanCR!]! + tdls: [PlanTDL!]! + echimpCRsAndTDLs: [EChimpCRAndTDLS!]! + prepareForClearance: PrepareForClearance! + nameHistory(sort: SortDirection! = DESC): [String!]! + operationalNeeds: [OperationalNeed!]! + opSolutionLastModifiedDts: Time! + previousSuggestedPhase: ModelPhase + + # MTO Fields (START) + mtoMatrix: ModelsToOperationMatrix! + # MTO Fields (END) +} + +""" +ModelPlanChanges represents the possible changes you can make to a model plan when updating it. +Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. +https://gqlgen.com/reference/changesets/ +""" +input ModelPlanChanges @goModel(model: "map[string]interface{}") { + modelName: String + abbreviation: String + someNumbers: [Int!] + archived: Boolean + status: ModelStatus +} + +extend type Query { + modelPlan(id: UUID!): ModelPlan! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) + + modelPlanCollection(filter: ModelPlanFilter! = COLLAB_ONLY): [ModelPlan!]! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + createModelPlan(modelName: String!): ModelPlan! + @hasRole(role: MINT_USER) + + updateModelPlan(id: UUID!, changes: ModelPlanChanges!): ModelPlan! + @hasRole(role: MINT_USER) + + shareModelPlan(modelPlanID: UUID!, viewFilter: ModelViewFilter, usernames: [String!]!, optionalMessage: String): Boolean! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/model_plan_and_possible_operational_solution.graphql", Input: `enum ModelBySolutionStatus { + PLANNED + ACTIVE + ENDED + OTHER +} + +extend type ModelPlan { + modelBySolutionStatus: ModelBySolutionStatus! +} + +type ModelPlanAndPossibleOperationalSolution { + possibleOperationalSolution: PossibleOperationalSolution! + possibleOperationalSolutionID: Int! + key: OperationalSolutionKey! + modelPlanID: UUID! + modelPlan: ModelPlan! +} + +extend type Query { + modelPlansByOperationalSolutionKey(operationalSolutionKey: OperationalSolutionKey!): [ModelPlanAndPossibleOperationalSolution!]! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/model_plan_translation.graphql", Input: ` +""" +Represents model plan base translation data +""" +type ModelPlanTranslation { + modelName: TranslationField! @goTag(key: "db", value: "model_name") + previousName: TranslationField! # This field does not represent a database field, rather it's generated from a resolver + nameHistory: TranslationField! # This field does not represent a database field, rather it's generated from a resolver + abbreviation: TranslationField! @goTag(key: "db", value: "abbreviation") + archived: TranslationFieldWithOptions! @goTag(key: "db", value: "archived") + + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +} +`, BuiltIn: false}, + {Name: "../schema/types/mto.graphql", Input: `# ModelsToOperationMatrix Notes: +# - There's purposefully no ` + "`" + `Milestones` + "`" + ` query right now, since there's currently no need to query milestones outside the scope of a Category +type ModelsToOperationMatrix { + categories: [MTOCategory!]! # Categories is at the top level because you _can_ have empty categories + commonMilestones: [MTOCommonMilestone!]! + commonSolutions: [MTOCommonSolution!]! + milestones: [MTOMilestone!]! + solutions: [MTOSolution!]! # Need to support solutions that _don't_ have milestones + status: MTOStatus! + recentEdit: RecentModification #Note, this data type could change. We might take an approach to return the most recent translated audit, which would provide this information, plus much more + + + info: MTOInfo! + +} + + +type RecentModification { + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +enum MTOStatus { + READY + IN_PROGRESS + READY_FOR_REVIEW #Note, this is not yet returnable +} + +enum MTOFacilitator { + MODEL_TEAM + MODEL_LEAD + IT_LEAD + SOLUTION_ARCHITECT + IT_SYSTEM_TEAM_OR_PRODUCT_OWNER + PARTICIPANTS + APPLICATION_SUPPORT_CONTRACTOR + IMPLEMENTATION_CONTRACTOR + EVALUATION_CONTRACTOR + QUALITY_MEASURES_DEVELOPMENT_CONTRACTOR + LEARNING_CONTRACTOR + MONITORING_CONTRACTOR + CONTRACTING_OFFICERS_REPRESENTATIVE + LEARNING_AND_DIFFUSION_GROUP + RESEARCH_AND_RAPID_CYCLE_EVALUATION_GROUP + OTHER +} + +enum MTORiskIndicator { + ON_TRACK + OFF_TRACK + AT_RISK +} + +# TODO (mto) should this live in the mto info.graphql file? +extend type Mutation { + markMTOReadyForReview(modelPlanID: UUID!, readyForReview: Boolean!): MTOInfo! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/mto_category.graphql", Input: ` +# TODO: Add a way to determine order of Categories and subcategories +type MTOCategory { + # DB Fields + id: UUID! # TODO: If we handle "Uncategorized" as a real category, maybe it won't actually have an ID? + name: String! + position: Int! + + + # Custom Resolvers + isUncategorized: Boolean! + subCategories: [MTOSubcategory!]! +} + +type MTOSubcategory { + # DB Fields + id: UUID! # TODO: If we handle "Uncategorized" as a real category, maybe it won't actually have an ID? + name: String! + position: Int! + + # Custom Resolvers + isUncategorized: Boolean! + milestones: [MTOMilestone!]! +} + +extend type Mutation { + """ + Allows you to create an MTOCategory or Subcategory if you provide a parent ID. + Note, the parent must belong to the same model plan, or this will return an error + """ + createMTOCategory(modelPlanID: UUID!, name: String!, parentID: UUID): MTOCategory! + @hasRole(role: MINT_USER) + """ + Allows you to rename an MTO category. Notably, name is the only field that can be updated. + You cannot have a duplicate name per model plan and parent. If the change makes a conflict, this will error. + """ + renameMTOCategory(id: UUID!, name: String!): MTOCategory! + @hasRole(role: MINT_USER) + + """ + Allows you to change the position and parent of an MTO category. Other categories will automatically + have their positions changed to adjust to the new position of the new category. + If only the parent is changed, the category will be placed as the last category in order for the group of subcategories + Note, a subcategory can't become a subcategory and vice versa + """ + reorderMTOCategory(id: UUID!, newOrder: Int, parentID: UUID): MTOCategory! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/mto_category_translation.graphql", Input: ` +""" +Represents MTO Category translation data +""" + +type MTOCategoryTranslation { + name: TranslationField! @goTag(key: "db", value: "name") +} +`, BuiltIn: false}, + {Name: "../schema/types/mto_common_milestone.graphql", Input: `""" +These are all the common milestone keys that we expect to for mto common milestones +""" +enum MTOCommonMilestoneKey { + MANAGE_CD + REV_COL_BIDS + UPDATE_CONTRACT + SIGN_PARTICIPATION_AGREEMENTS + RECRUIT_PARTICIPANTS + REV_SCORE_APP + APP_SUPPORT_CON + COMM_W_PART + VET_PROVIDERS_FOR_PROGRAM_INTEGRITY + MANAGE_PROV_OVERLAP + MANAGE_BEN_OVERLAP + HELPDESK_SUPPORT + IDDOC_SUPPORT + ESTABLISH_BENCH + PROCESS_PART_APPEALS + ACQUIRE_AN_EVAL_CONT + DATA_TO_MONITOR + DATA_TO_SUPPORT_EVAL + CLAIMS_BASED_MEASURES + QUALITY_PERFORMANCE_SCORES + SEND_REPDATA_TO_PART + UTILIZE_QUALITY_MEASURES_DEVELOPMENT_CONTRACTOR + ACQUIRE_A_LEARN_CONT + PART_TO_PART_COLLAB + EDUCATE_BENEF + IT_PLATFORM_FOR_LEARNING + ADJUST_FFS_CLAIMS + MANAGE_FFS_EXCL_PAYMENTS + MAKE_NON_CLAIMS_BASED_PAYMENTS + COMPUTE_SHARED_SAVINGS_PAYMENT + RECOVER_PAYMENTS +} + +""" +MTOCommonMilestone represents a Milestone from the "Common Milestones" library +""" +type MTOCommonMilestone { + # DB Fields + name: String! + key: MTOCommonMilestoneKey! + categoryName: String! + subCategoryName: String + facilitatedByRole: [MTOFacilitator!]! + """ + Specifies the Task List Section that corresponds to suggesting this common milestone + """ + section: TaskListSection + + # Custom Resolvers + isAdded: Boolean! # To represent if this Common Milestone is _already_ part of the Model Plan's MTO + isSuggested: Boolean! + commonSolutions: [MTOCommonSolution!]! +} +`, BuiltIn: false}, + {Name: "../schema/types/mto_common_solution.graphql", Input: `enum MTOCommonSolutionKey { + INNOVATION + ACO_OS + APPS + CDX + CCW + CMS_BOX + CMS_QUALTRICS + CBOSC + CPI_VETTING + EFT + EXISTING_CMS_DATA_AND_PROCESS + EDFR + GOVDELIVERY + GS + HDR + HPMS + HIGLAS + IPC + IDR + LDG + LV + MDM_POR + MARX + OUTLOOK_MAILBOX + QV + RMADA + ARS + CONNECT + LOI + POST_PORTAL + RFA + SHARED_SYSTEMS + BCDA + ISP + MIDS + MDM_NCBP + MODEL_SPACE +} + +enum MTOSolutionType { + IT_SYSTEM + CONTRACTOR + CROSS_CUTTING_GROUP + OTHER +} +enum MTOCommonSolutionSubject { + APPLICATIONS_AND_PARTICIPANT_INTERACTION_ACO_AND_KIDNEY_MODELS + APPLICATIONS_AND_PARTICIPANT_INTERACTION_NON_ACO_MODELS + MEDICARE_FEE_FOR_SERVICE + CONTRACT_VEHICLES + LEARNING + QUALITY + COMMUNICATION_TOOLS_AND_HELP_DESK + MEDICARE_ADVANTAGE_AND_PART_D + PAYMENTS_AND_FINANCIALS + DATA + LEGAL +} + +type MTOCommonSolution { + #DB Fields + name: String! + key: MTOCommonSolutionKey! + type: MTOSolutionType! + subjects: [MTOCommonSolutionSubject!]! + filterView: ModelViewFilter + + + #Custom Resolvers + isAdded: Boolean! # To represent if this Common Solution is _already_ added of the Model Plan's MTO (to _any_ Milestone) #TODO, do we need to compare to a need? Or specifically just to a model plan + # isSuggested: Boolean! # TODO (mto) Is this needed? + +} +`, BuiltIn: false}, + {Name: "../schema/types/mto_info.graphql", Input: `""" +This holds information specific to a models to operation matrix +""" +type MTOInfo { + id: UUID! + modelPlanID: UUID! + + readyForReviewBy: UUID + readyForReviewDTS: Time + readyForReviewByUserAccount: UserAccount + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} +`, BuiltIn: false}, + {Name: "../schema/types/mto_info_translation.graphql", Input: `""" +Represents mto info translation data +""" + +type MTOInfoTranslation { + readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") + readyForReviewDTS: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") +} +`, BuiltIn: false}, + {Name: "../schema/types/mto_milestone.graphql", Input: ` +# TODO Determine what these should actually be with Zoë & Natalie. These could change +enum MTOMilestoneStatus { + NOT_STARTED + IN_PROGRESS + COMPLETED +} + + +# MTOMilestone represents a Milestone that has been added to a Model Plan's MTO +type MTOMilestone { + # DB Fields + id: UUID! + name: String! # If sourced from a Common Milestone, this will resolve from the common milestone table (you can't edit this for common milestones!) + key: MTOCommonMilestoneKey + """ + Note: an mtoCategoryID can be null in the database. When that is the case, it will be nested under two uncategorized Categories + This means that ` + "`" + `MTOMilestone.mtoCategoryID` + "`" + ` does _not_ always equal ` + "`" + `MTOMilestone.Category.ID` + "`" + ` + """ + mtoCategoryID: UUID + facilitatedBy: [MTOFacilitator!] + needBy: Time + status: MTOMilestoneStatus! + riskIndicator: MTORiskIndicator! + isDraft: Boolean! + + #Meta Data + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + + # Custom Resolvers + addedFromMilestoneLibrary: Boolean! # Only true when commonMilestone && commonMilestone + commonMilestone: MTOCommonMilestone + solutions: [MTOSolution!]! + # Category: { + # mtoCategoryID: UUID + # subcategoryID: UUID + # Category: MTOCategory + # subCategory: MTOSubcategory + # } + # TODO (mto) do we need to resolve category? Should we need to resolve it here? Also, + # category: UNION MTOCategory | MTOSubcategory ? + category: MTOCategory! + subCategory: MTOSubcategory! +} + +input MTOMilestoneChanges @goModel(model: "map[string]interface{}") { + name: String # If sourced from a Common Milestone, this will resolve from the common milestone table (you can't edit this for common milestones!) + mtoCategoryID: UUID + facilitatedBy: [MTOFacilitator!] + needBy: Time + status: MTOMilestoneStatus + riskIndicator: MTORiskIndicator + isDraft: Boolean +} + +extend type Mutation { + createMTOMilestoneCustom(modelPlanID: UUID!, name: String!, mtoCategoryID: UUID): MTOMilestone! + @hasRole(role: MINT_USER) + createMTOMilestoneCommon(modelPlanID: UUID!, commonMilestoneKey: MTOCommonMilestoneKey!): MTOMilestone! + @hasRole(role: MINT_USER) + updateMTOMilestone(id: UUID!, changes: MTOMilestoneChanges!): MTOMilestone! + @hasRole(role: MINT_USER) + #TODO (mto) will we need any other mutations here? Can we ever delete? +} +`, BuiltIn: false}, + {Name: "../schema/types/mto_milestone_translation.graphql", Input: ` +""" +Represents MTO Custom Milestone translation data +""" + +type MTOMilestoneTranslation { + name: TranslationField! @goTag(key: "db", value: "name") +} +`, BuiltIn: false}, + {Name: "../schema/types/mto_solution.graphql", Input: `# TODO (mto) Verify all these. Zoë said they should match previous solution statuses +enum MTOSolutionStatus { + NOT_STARTED + ONBOARDING + BACKLOG + IN_PROGRESS + COMPLETED +} + + + +# MTOSolution represents a Solution that has been added to a Model Plan's MTO +type MTOSolution { + id: UUID! + name: String # If sourced from a Common Solution, this will resolve from the common solution table (you can't edit this for common solution!) + facilitatedBy: [MTOFacilitator!] + neededBy: Time + status: MTOSolutionStatus! + riskIndicator: MTORiskIndicator + key: MTOCommonSolutionKey + type: MTOSolutionType # If sourced from a Common Solution, this will resolve from the common solution table (you can't edit this for common solution!) + pocName: String #TODO (mto) if there is a default value for ones sourced from common solutions, these can be reverted back to String! Otherwise, we should leave nullable + pocEmail: String + + #Meta Data + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + + # Custom Resolvers + relatedMilestones: [MTOMilestone!]! # Can be empty, since you can have a solution with no milestones + addedFromSolutionLibrary: Boolean! + commonSolution: MTOCommonSolution +} + +input MTOSolutionChanges @goModel(model: "map[string]interface{}") { + name: String # If sourced from a Common Solution, this will resolve from the common solution table (you can't edit this for common solution!) + facilitatedBy: [MTOFacilitator!] + neededBy: Time + status: MTOSolutionStatus + riskIndicator: MTORiskIndicator + pocName: String + pocEmail: String +} + +extend type Mutation { + createMTOSolutionCustom(modelPlanID: UUID!, solutionType: MTOSolutionType!, name: String!, pocName: String!, pocEmail: String!): MTOSolution! + @hasRole(role: MINT_USER) + createMTOSolutionCommon(modelPlanID: UUID!, key: MTOCommonSolutionKey!): MTOSolution! + @hasRole(role: MINT_USER) + updateMTOSolution(id: UUID!, changes: MTOSolutionChanges!): MTOSolution! + @hasRole(role: MINT_USER) +} +`, BuiltIn: false}, + {Name: "../schema/types/nda_info.graphql", Input: `""" +NDAInfo represents whether a user has agreed to an NDA or not. If agreed to previously, there will be a datestamp visible +""" +type NDAInfo { + agreed: Boolean! + agreedDts: Time +} + +extend type Query { + ndaInfo: NDAInfo! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + agreeToNDA(agree: Boolean! = true): NDAInfo! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/operational_need.graphql", Input: `type OperationalNeed { + id: UUID! + modelPlanID: UUID! + + needed: Boolean # if null, it has not been answered + solutions(includeNotNeeded: Boolean! = false): [OperationalSolution!]! + + key: OperationalNeedKey + name: String + nameOther: String + section: TaskListSection + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Query { + operationalNeed(id: UUID!): OperationalNeed! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + addOrUpdateCustomOperationalNeed(modelPlanID: UUID!, customNeedType: String! needed: Boolean!): OperationalNeed! + @hasRole(role: MINT_USER) + + updateCustomOperationalNeedByID(id: UUID!, customNeedType: String needed: Boolean!): OperationalNeed! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/operational_need_translation.graphql", Input: `""" +Represents operational need translation data +""" + +type OperationalNeedTranslation { + """ + Name comes from the possible operational need table. It is not returned in an audit + """ + name: TranslationField! @goTag(key: "db", value: "need_name") + nameOther: TranslationField! @goTag(key: "db", value: "name_other") + """ + Key comes from the possible operational need table. It is not returned in an audit + """ + key: TranslationFieldWithOptions! @goTag(key: "db", value: "need_key") + needed: TranslationFieldWithOptions! @goTag(key: "db", value: "needed") + section: TranslationFieldWithOptions! @goTag(key: "db", value: "section") +} +`, BuiltIn: false}, + {Name: "../schema/types/operational_solution.graphql", Input: `enum OpSolutionStatus { + NOT_STARTED + ONBOARDING + BACKLOG + IN_PROGRESS + COMPLETED + AT_RISK +} + +type OperationalSolution { + id: UUID! + operationalNeedID: UUID! + + solutionType: Int + needed: Boolean # if null, it has not been selectd + name: String + key: OperationalSolutionKey + nameOther: String + + pocName: String + pocEmail: String + mustStartDts: Time + mustFinishDts: Time + isOther: Boolean! + isCommonSolution: Boolean! + otherHeader: String + status: OpSolutionStatus! + + documents: [PlanDocument!]! + operationalSolutionSubtasks: [OperationalSolutionSubtask!]! + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +input OperationalSolutionChanges @goModel(model: "map[string]interface{}"){ + needed: Boolean + nameOther: String # Only valid for when solution type is null + + pocName: String + pocEmail: String + mustStartDts: Time + mustFinishDts: Time + otherHeader: String + status: OpSolutionStatus +} + +extend type Query { + operationalSolutions(operationalNeedID: UUID!, includeNotNeeded: Boolean! = false): [OperationalSolution!]! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) + + operationalSolution(id: UUID!): OperationalSolution! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + createOperationalSolution(operationalNeedID: UUID!, solutionType: OperationalSolutionKey, changes: OperationalSolutionChanges!): OperationalSolution! + @hasRole(role: MINT_USER) + + updateOperationalSolution(id: UUID!, changes: OperationalSolutionChanges!): OperationalSolution! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/operational_solution_subtask.graphql", Input: `enum OperationalSolutionSubtaskStatus { + TODO, + IN_PROGRESS, + DONE +} + +input CreateOperationalSolutionSubtaskInput { + name: String! + status: OperationalSolutionSubtaskStatus! +} + +input UpdateOperationalSolutionSubtaskInput { + id: UUID! + changes: UpdateOperationalSolutionSubtaskChangesInput! +} + +input UpdateOperationalSolutionSubtaskChangesInput @goModel(model: "map[string]interface{}") { + name: String! + status: OperationalSolutionSubtaskStatus! +} + +type OperationalSolutionSubtask { + id: UUID! + solutionID: UUID! + name: String! + status: OperationalSolutionSubtaskStatus! + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Mutation { + createOperationalSolutionSubtasks(solutionID: UUID!, inputs: [CreateOperationalSolutionSubtaskInput!]!): [OperationalSolutionSubtask!] + @hasRole(role: MINT_USER) + + updateOperationalSolutionSubtasks(inputs: [UpdateOperationalSolutionSubtaskInput!]!): [OperationalSolutionSubtask!] + @hasRole(role: MINT_USER) + + deleteOperationalSolutionSubtask(id: UUID!): Int! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/operational_solution_subtask_translation.graphql", Input: `""" +Represents operational solution subtask translation data +""" + +type OperationalSolutionSubtaskTranslation { + name: TranslationField! @goTag(key: "db", value: "name") + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +} +`, BuiltIn: false}, + {Name: "../schema/types/operational_solution_translation.graphql", Input: `""" +Represents operational solution translation data +""" + +type OperationalSolutionTranslation { + """ + Name comes from the possible operational solution table. It is not returned in an audit + """ + name: TranslationField! @goTag(key: "db", value: "sol_name") + nameOther: TranslationField! @goTag(key: "db", value: "name_other") + isOther: TranslationFieldWithOptions! @goTag(key: "db", value: "is_other") + otherHeader: TranslationField! @goTag(key: "db", value: "other_header") + pocName: TranslationField! @goTag(key: "db", value: "poc_name") + pocEmail: TranslationField! @goTag(key: "db", value: "poc_email") + mustStartDts: TranslationField! @goTag(key: "db", value: "must_start_dts") + mustFinishDts: TranslationField! @goTag(key: "db", value: "must_finish_dts") + needed: TranslationFieldWithOptions! @goTag(key: "db", value: "needed") + """ + Key comes from the possible operational solution table. It is not returned in an audit + """ + key: TranslationFieldWithOptions! @goTag(key: "db", value: "sol_key") + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +} +`, BuiltIn: false}, + {Name: "../schema/types/plan_basics.graphql", Input: `""" +Represents plan basics +""" +type PlanBasics { + id: UUID! + modelPlanID: UUID! + + demoCode: String + amsModelID: String + + modelCategory: ModelCategory + additionalModelCategories: [ModelCategory!]! + cmsCenters: [CMSCenter!]! + cmmiGroups: [CMMIGroup!]! + modelType: [ModelType!]! + modelTypeOther: String + problem: String + goal: String + testInterventions: String + note: String + + # Milestones + completeICIP: Time + clearanceStarts: Time + clearanceEnds: Time + announced: Time + applicationsStart: Time + applicationsEnd: Time + performancePeriodStarts: Time + performancePeriodEnds: Time + wrapUpEnds: Time + highLevelNote: String + phasedIn: Boolean + phasedInNote: String + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + + readyForReviewBy: UUID + readyForReviewByUserAccount: UserAccount + readyForReviewDts: Time + readyForClearanceBy: UUID + readyForClearanceByUserAccount: UserAccount + readyForClearanceDts: Time + + status: TaskStatus! +} + +""" +PlanBasicsChanges represents the possible changes you can make to a Plan Basics object when updating it. +Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. +https://gqlgen.com/reference/changesets/ +""" +input PlanBasicsChanges @goModel(model: "map[string]interface{}") { + demoCode: String + amsModelID: String + + modelCategory: ModelCategory + additionalModelCategories: [ModelCategory!] + cmsCenters: [CMSCenter!] + cmmiGroups: [CMMIGroup!] + modelType: [ModelType!] + modelTypeOther: String + problem: String + goal: String + testInterventions: String + note: String + + # Milestones + completeICIP: Time + clearanceStarts: Time + clearanceEnds: Time + announced: Time + applicationsStart: Time + applicationsEnd: Time + performancePeriodStarts: Time + performancePeriodEnds: Time + wrapUpEnds: Time + highLevelNote: String + phasedIn: Boolean + phasedInNote: String + status: TaskStatusInput +} + +enum ModelCategory { + ACCOUNTABLE_CARE + DISEASE_SPECIFIC_AND_EPISODIC + HEALTH_PLAN + PRESCRIPTION_DRUG + STATE_BASED + STATUTORY + TO_BE_DETERMINED +} + +enum CMSCenter { + CMMI + CENTER_FOR_MEDICARE + FEDERAL_COORDINATED_HEALTH_CARE_OFFICE + CENTER_FOR_MEDICAID_AND_CHIP_SERVICES + CENTER_FOR_CLINICAL_STANDARDS_AND_QUALITY + CENTER_FOR_PROGRAM_INTEGRITY +} + +enum CMMIGroup { + PATIENT_CARE_MODELS_GROUP + POLICY_AND_PROGRAMS_GROUP + SEAMLESS_CARE_MODELS_GROUP + STATE_AND_POPULATION_HEALTH_GROUP + TBD +} + +enum ModelType { + VOLUNTARY + MANDATORY_REGIONAL_OR_STATE + MANDATORY_NATIONAL + OTHER +} + +extend type Mutation { + updatePlanBasics(id: UUID!, changes: PlanBasicsChanges!): PlanBasics! + @hasRole(role: MINT_USER) +} +`, BuiltIn: false}, + {Name: "../schema/types/plan_basics_translation.graphql", Input: `""" +Represents plan basics translation data +""" +type PlanBasicsTranslation { + modelCategory: TranslationFieldWithOptions! @goTag(key: "db", value: "model_category") + additionalModelCategories: TranslationFieldWithOptions! @goTag(key: "db", value: "additional_model_categories") + demoCode: TranslationField! @goTag(key: "db", value: "demo_code") + amsModelID: TranslationField! @goTag(key: "db", value: "ams_model_id") + cmsCenters: TranslationFieldWithOptions! @goTag(key: "db", value: "cms_centers") + cmmiGroups: TranslationFieldWithOptions! @goTag(key: "db", value: "cmmi_groups") + modelType: TranslationFieldWithOptions! @goTag(key: "db", value: "model_type") + modelTypeOther: TranslationField! @goTag(key: "db", value: "model_type_other") + problem: TranslationField! @goTag(key: "db", value: "problem") + goal: TranslationField! @goTag(key: "db", value: "goal") + testInterventions: TranslationField! @goTag(key: "db", value: "test_interventions") + note: TranslationField! @goTag(key: "db", value: "note") + + # Milestones + completeICIP: TranslationField! @goTag(key: "db", value: "complete_icip") + clearanceStarts: TranslationField! @goTag(key: "db", value: "clearance_starts") + clearanceEnds: TranslationField! @goTag(key: "db", value: "clearance_ends") + announced: TranslationField! @goTag(key: "db", value: "announced") + applicationsStart: TranslationField! @goTag(key: "db", value: "applications_starts") + applicationsEnd: TranslationField! @goTag(key: "db", value: "applications_ends") + performancePeriodStarts: TranslationField! @goTag(key: "db", value: "performance_period_starts") + performancePeriodEnds: TranslationField! @goTag(key: "db", value: "performance_period_ends") + wrapUpEnds: TranslationField! @goTag(key: "db", value: "wrap_up_ends") + highLevelNote: TranslationField! @goTag(key: "db", value: "high_level_note") + phasedIn: TranslationFieldWithOptions! @goTag(key: "db", value: "phased_in") + phasedInNote: TranslationField! @goTag(key: "db", value: "phased_in_note") + + readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") + readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") + readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") + readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +}`, BuiltIn: false}, + {Name: "../schema/types/plan_beneficiaries.graphql", Input: `enum BeneficiariesType { + MEDICARE_FFS + MEDICARE_ADVANTAGE + MEDICARE_PART_D + MEDICAID + DUALLY_ELIGIBLE + DISEASE_SPECIFIC + UNDERSERVED + OTHER + NA +} + +enum TriStateAnswer { + YES + NO + TBD +} + +enum SelectionMethodType { + HISTORICAL + PROSPECTIVE + RETROSPECTIVE + VOLUNTARY + PROVIDER_SIGN_UP + OTHER + NA +} + +enum YesNoType { + YES, + NO +} + +""" +Plan Beneficiaries represents the the beneficiaries section of the task list +""" + +type PlanBeneficiaries { + id: UUID! + modelPlanID: UUID! + + #Page 1 + beneficiaries: [BeneficiariesType!]! + beneficiariesOther: String + beneficiariesNote: String + diseaseSpecificGroup: String + treatDualElligibleDifferent: TriStateAnswer + treatDualElligibleDifferentHow: String + treatDualElligibleDifferentNote: String + excludeCertainCharacteristics: TriStateAnswer + excludeCertainCharacteristicsCriteria: String + excludeCertainCharacteristicsNote: String + + #Page 2 + numberPeopleImpacted: Int + estimateConfidence: ConfidenceType + confidenceNote: String + beneficiarySelectionMethod: [SelectionMethodType!]! + beneficiarySelectionOther: String + beneficiarySelectionNote: String + + #Page 3 + beneficiarySelectionFrequency: [FrequencyType!]! + beneficiarySelectionFrequencyContinually: String + beneficiarySelectionFrequencyOther: String + beneficiarySelectionFrequencyNote: String + beneficiaryRemovalFrequency: [FrequencyType!]! + beneficiaryRemovalFrequencyContinually: String + beneficiaryRemovalFrequencyOther: String + beneficiaryRemovalFrequencyNote: String + beneficiaryOverlap: OverlapType + beneficiaryOverlapNote: String + precedenceRules: [YesNoType!]! + precedenceRulesYes: String + precedenceRulesNo: String + precedenceRulesNote: String + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + + readyForReviewBy: UUID + readyForReviewByUserAccount: UserAccount + readyForReviewDts: Time + readyForClearanceBy: UUID + readyForClearanceByUserAccount: UserAccount + readyForClearanceDts: Time + + status: TaskStatus! +} + +input PlanBeneficiariesChanges @goModel(model: "map[string]interface{}") { + + #Page 1 + beneficiaries: [BeneficiariesType!] + beneficiariesOther: String + beneficiariesNote: String + diseaseSpecificGroup: String + treatDualElligibleDifferent: TriStateAnswer + treatDualElligibleDifferentHow: String + treatDualElligibleDifferentNote: String + excludeCertainCharacteristics: TriStateAnswer + excludeCertainCharacteristicsCriteria: String + excludeCertainCharacteristicsNote: String + + #Page 2 + numberPeopleImpacted: Int + estimateConfidence: ConfidenceType + confidenceNote: String + beneficiarySelectionMethod: [SelectionMethodType!] + beneficiarySelectionOther: String + beneficiarySelectionNote: String + + #Page 3 + beneficiarySelectionFrequency: [FrequencyType!] + beneficiarySelectionFrequencyContinually: String + beneficiarySelectionFrequencyOther: String + beneficiarySelectionFrequencyNote: String + beneficiaryRemovalFrequency: [FrequencyType!] + beneficiaryRemovalFrequencyContinually: String + beneficiaryRemovalFrequencyOther: String + beneficiaryRemovalFrequencyNote: String + beneficiaryOverlap: OverlapType + beneficiaryOverlapNote: String + precedenceRules: [YesNoType!] + precedenceRulesYes: String + precedenceRulesNo: String + precedenceRulesNote: String + + status: TaskStatusInput +} + +extend type Mutation { + updatePlanBeneficiaries(id: UUID!, changes: PlanBeneficiariesChanges!): PlanBeneficiaries! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_beneficiaries_translation.graphql", Input: `""" +Represents plan beneficiaries translation data +""" + +type PlanBeneficiariesTranslation { + #Page 1 + beneficiaries: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiaries") + beneficiariesOther: TranslationField! @goTag(key: "db", value: "beneficiaries_other") + beneficiariesNote: TranslationField! @goTag(key: "db", value: "beneficiaries_note") + diseaseSpecificGroup: TranslationField! @goTag(key: "db", value: "disease_specific_group") + treatDualElligibleDifferent: TranslationFieldWithOptions! @goTag(key: "db", value: "treat_dual_elligible_different") + treatDualElligibleDifferentHow: TranslationField! @goTag(key: "db", value: "treat_dual_elligible_different_how") + treatDualElligibleDifferentNote: TranslationField! @goTag(key: "db", value: "treat_dual_elligible_different_note") + excludeCertainCharacteristics: TranslationFieldWithOptions! @goTag(key: "db", value: "exclude_certain_characteristics") + excludeCertainCharacteristicsCriteria: TranslationField! @goTag(key: "db", value: "exclude_certain_characteristics_criteria") + excludeCertainCharacteristicsNote: TranslationField! @goTag(key: "db", value: "exclude_certain_characteristics_note") + + #Page 2 + numberPeopleImpacted: TranslationField! @goTag(key: "db", value: "number_people_impacted") + estimateConfidence: TranslationFieldWithOptions! @goTag(key: "db", value: "estimate_confidence") + confidenceNote: TranslationField! @goTag(key: "db", value: "confidence_note") + beneficiarySelectionMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiary_selection_method") + beneficiarySelectionOther: TranslationField! @goTag(key: "db", value: "beneficiary_selection_other") + beneficiarySelectionNote: TranslationField! @goTag(key: "db", value: "beneficiary_selection_note") + + #Page 3 + beneficiarySelectionFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiary_selection_frequency") + beneficiarySelectionFrequencyContinually: TranslationField! @goTag(key: "db", value: "beneficiary_selection_frequency_continually") + beneficiarySelectionFrequencyOther: TranslationField! @goTag(key: "db", value: "beneficiary_selection_frequency_other") + beneficiarySelectionFrequencyNote: TranslationField! @goTag(key: "db", value: "beneficiary_selection_frequency_note") + beneficiaryRemovalFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiary_removal_frequency") + beneficiaryRemovalFrequencyContinually: TranslationField! @goTag(key: "db", value: "beneficiary_removal_frequency_continually") + beneficiaryRemovalFrequencyOther: TranslationField! @goTag(key: "db", value: "beneficiary_removal_frequency_other") + beneficiaryRemovalFrequencyNote: TranslationField! @goTag(key: "db", value: "beneficiary_removal_frequency_note") + beneficiaryOverlap: TranslationFieldWithOptions! @goTag(key: "db", value: "beneficiary_overlap") + beneficiaryOverlapNote: TranslationField! @goTag(key: "db", value: "beneficiary_overlap_note") + precedenceRules: TranslationFieldWithOptions! @goTag(key: "db", value: "precedence_rules") + precedenceRulesYes: TranslationField! @goTag(key: "db", value: "precedence_rules_yes") + precedenceRulesNo: TranslationField! @goTag(key: "db", value: "precedence_rules_no") + precedenceRulesNote: TranslationField! @goTag(key: "db", value: "precedence_rules_note") + + readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") + readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") + readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") + readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +} +`, BuiltIn: false}, + {Name: "../schema/types/plan_collaborator.graphql", Input: `enum TeamRole { + MODEL_LEAD + MODEL_TEAM + LEADERSHIP + LEARNING + EVALUATION + IT_LEAD + QUALITY + OACT + PAYMENT + CM_FFS_COUNTERPART + COR + SOLUTION_ARCHITECT +} + +""" +PlanCollaborator represents a collaborator on a plan +""" +type PlanCollaborator { + id: UUID! + modelPlanID: UUID! + userID: UUID! + userAccount: UserAccount! + teamRoles: [TeamRole!]! + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +""" +PlanCollaboratorCreateInput represents the data required to create a collaborator on a plan +""" +input PlanCollaboratorCreateInput { + modelPlanID: UUID! + userName: String! + teamRoles: [TeamRole!]! +} + +extend type Query { + planCollaboratorByID(id: UUID!): PlanCollaborator! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + createPlanCollaborator(input: PlanCollaboratorCreateInput!): PlanCollaborator! + @hasRole(role: MINT_USER) + + updatePlanCollaborator(id: UUID!, newRoles: [TeamRole!]!): PlanCollaborator! + @hasRole(role: MINT_USER) + + deletePlanCollaborator(id: UUID!): PlanCollaborator! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_collaborator_translations.graphql", Input: ` +""" +Represents plan collaborator translation data +""" +type PlanCollaboratorTranslation { + username: TranslationField! @goTag(key: "db", value: "user_account.username") + userID: TranslationField! @goTag(key: "db", value: "user_id") + teamRoles: TranslationFieldWithOptions! @goTag(key: "db", value: "team_roles") +}`, BuiltIn: false}, + {Name: "../schema/types/plan_cr.graphql", Input: `type PlanCR { + id: UUID! + modelPlanID: UUID! + + idNumber: String! + dateInitiated: Time! + dateImplemented: Time # Required in the API, but can be nullable for historical entries before we migrated CRs and TDLs as different types + title: String! + note: String + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +input PlanCRCreateInput { + modelPlanID: UUID! + + idNumber: String! + dateInitiated: Time! + dateImplemented: Time! + title: String! + note: String +} + +input PlanCRChanges @goModel(model: "map[string]interface{}") { + idNumber: String + dateInitiated: Time + dateImplemented: Time + title: String + note: String +} + +extend type Query { + planCR(id: UUID!): PlanCR! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + createPlanCR(input: PlanCRCreateInput!): PlanCR! + @hasRole(role: MINT_USER) + + updatePlanCR(id: UUID!, changes: PlanCRChanges!): PlanCR! + @hasRole(role: MINT_USER) + + deletePlanCR(id: UUID!): PlanCR! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_cr_translation.graphql", Input: `""" +Represents plan cr translation data +""" + +type PlanCRTranslation { + idNumber: TranslationField! @goTag(key: "db", value: "id_number") + title: TranslationField! @goTag(key: "db", value: "title") + dateInitiated: TranslationField! @goTag(key: "db", value: "date_initiated") + dateImplemented: TranslationField! @goTag(key: "db", value: "date_implemented") + note: TranslationField! @goTag(key: "db", value: "note") +} +`, BuiltIn: false}, + {Name: "../schema/types/plan_data_exchange_approach.graphql", Input: `enum DataToCollectFromParticipants { + BANKING_INFORMATION_TO_MAKE_NON_CLAIMS_BASED_PAYMENTS + CLINICAL_DATA + COLLECT_BIDS_AND_PLAN_INFORMATION + COOPERATIVE_AGREEMENT_APPLICATION + DECARBONIZATION_DATA + EXPANDED_DEMOGRAPHICS_DATA + FEE_FOR_SERVICE_CLAIMS_AND_APPLY_MODEL_RULES + LEARNING_SYSTEM_METRICS + PARTICIPANT_AGREEMENT + PARTICIPANT_AGREEMENT_LETTER_OF_INTENT + PARTICIPANT_AGREEMENT_REQUEST_FOR_APPLICATION + PARTICIPANT_REPORTED_DATA + PARTICIPANT_REPORTED_QUALITY_MEASURES + PROVIDER_PARTICIPANT_ROSTER + REPORTS_FROM_PARTICIPANTS + SOCIAL_DETERMINANTS_OF_HEALTH + SURVEY + OTHER +} + +enum DataToSendToParticipants { + DATA_FEEDBACK_DASHBOARD + NON_CLAIMS_BASED_PAYMENTS + OPERATIONS_DATA + PARTIALLY_ADJUSTED_CLAIMS_DATA + RAW_CLAIMS_DATA + DATA_WILL_NOT_BE_SENT_TO_PARTICIPANTS +} + +enum AnticipatedMultiPayerDataAvailabilityUseCase { + MORE_COMPETENT_ALERT_DISCHARGE_TRANSFER_NOTIFICATION + SUPPLY_MULTI_PAYER_CLAIMS_COST_UTIL_AND_QUALITY_REPORTING + FILL_GAPS_IN_CARE_ALERTING_AND_REPORTS +} + +enum MultiSourceDataToCollect { + COMMERCIAL_CLAIMS + LAB_DATA + MANUFACTURER + MEDICAID_CLAIMS + MEDICARE_CLAIMS + PATIENT_REGISTRY + OTHER +} + +enum DataExchangeApproachStatus { + READY + IN_PROGRESS + COMPLETE +} + +type PlanDataExchangeApproach { + id: UUID! + modelPlanID: UUID! + + dataToCollectFromParticipants: [DataToCollectFromParticipants!]! + dataToCollectFromParticipantsReportsDetails: String + dataToCollectFromParticipantsOther: String + dataWillNotBeCollectedFromParticipants: Boolean + dataToCollectFromParticipantsNote: String + + dataToSendToParticipants: [DataToSendToParticipants!]! + dataToSendToParticipantsNote: String + + doesNeedToMakeMultiPayerDataAvailable: Boolean + anticipatedMultiPayerDataAvailabilityUseCase: [AnticipatedMultiPayerDataAvailabilityUseCase!]! + doesNeedToMakeMultiPayerDataAvailableNote: String + + doesNeedToCollectAndAggregateMultiSourceData: Boolean + multiSourceDataToCollect: [MultiSourceDataToCollect!]! + multiSourceDataToCollectOther: String + doesNeedToCollectAndAggregateMultiSourceDataNote: String + + willImplementNewDataExchangeMethods: Boolean + newDataExchangeMethodsDescription: String + newDataExchangeMethodsNote: String + + additionalDataExchangeConsiderationsDescription: String + + # Metadata fields + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + isDataExchangeApproachComplete: Boolean! + markedCompleteBy: UUID + markedCompleteByUserAccount: UserAccount + markedCompleteDts: Time + + status: DataExchangeApproachStatus! +} + +input PlanDataExchangeApproachChanges @goModel(model: "map[string]interface{}") { + dataToCollectFromParticipants: [DataToCollectFromParticipants!] + dataToCollectFromParticipantsReportsDetails: String + dataToCollectFromParticipantsOther: String + dataWillNotBeCollectedFromParticipants: Boolean + dataToCollectFromParticipantsNote: String + + dataToSendToParticipants: [DataToSendToParticipants!] + dataToSendToParticipantsNote: String + + doesNeedToMakeMultiPayerDataAvailable: Boolean + anticipatedMultiPayerDataAvailabilityUseCase: [AnticipatedMultiPayerDataAvailabilityUseCase!] + doesNeedToMakeMultiPayerDataAvailableNote: String + + doesNeedToCollectAndAggregateMultiSourceData: Boolean + multiSourceDataToCollect: [MultiSourceDataToCollect!] + multiSourceDataToCollectOther: String + doesNeedToCollectAndAggregateMultiSourceDataNote: String + + willImplementNewDataExchangeMethods: Boolean + newDataExchangeMethodsDescription: String + newDataExchangeMethodsNote: String + + additionalDataExchangeConsiderationsDescription: String + + isDataExchangeApproachComplete: Boolean +} + +extend type Mutation { + updatePlanDataExchangeApproach(id: UUID!, changes: PlanDataExchangeApproachChanges!): PlanDataExchangeApproach! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_data_exchange_approach_translation.graphql", Input: `""" +Represents plan data exchange approach translation data +""" +type PlanDataExchangeApproachTranslation { + #Page 2 + dataToCollectFromParticipants: TranslationFieldWithOptions! @goTag(key: "db", value: "data_to_collect_from_participants") + dataToCollectFromParticipantsReportsDetails: TranslationField! @goTag(key: "db", value: "data_to_collect_from_participants_reports_details") + dataToCollectFromParticipantsOther: TranslationField! @goTag(key: "db", value: "data_to_collect_from_participants_other") + dataWillNotBeCollectedFromParticipants: TranslationFieldWithOptions! @goTag(key: "db", value: "data_will_not_be_collected_from_participants") + dataToCollectFromParticipantsNote: TranslationField! @goTag(key: "db", value: "data_to_collect_from_participants_note") + dataToSendToParticipants: TranslationFieldWithOptions! @goTag(key: "db", value: "data_to_send_to_participants") + dataToSendToParticipantsNote: TranslationField! @goTag(key: "db", value: "data_to_send_to_participants_note") + + #Page 3 + doesNeedToMakeMultiPayerDataAvailable: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "does_need_to_make_multi_payer_data_available") + anticipatedMultiPayerDataAvailabilityUseCase: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "anticipated_multi_payer_data_availability_use_case") + doesNeedToMakeMultiPayerDataAvailableNote: TranslationField! @goTag(key: "db", value: "does_need_to_make_multi_payer_data_available_note") + doesNeedToCollectAndAggregateMultiSourceData: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "does_need_to_collect_and_aggregate_multi_source_data") + multiSourceDataToCollect: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "multi_source_data_to_collect") + multiSourceDataToCollectOther: TranslationField! @goTag(key: "db", value: "multi_source_data_to_collect_other") + doesNeedToCollectAndAggregateMultiSourceDataNote: TranslationField! @goTag(key: "db", value: "does_need_to_collect_and_aggregate_multi_source_data_note") + + # Page 4 + willImplementNewDataExchangeMethods: TranslationFieldWithOptions! @goTag(key: "db", value: "will_implement_new_data_exchange_methods") + newDataExchangeMethodsDescription: TranslationField! @goTag(key: "db", value: "new_data_exchange_methods_description") + newDataExchangeMethodsNote: TranslationField! @goTag(key: "db", value: "new_data_exchange_methods_note") + additionalDataExchangeConsiderationsDescription: TranslationField! @goTag(key: "db", value: "additional_data_exchange_considerations_description") + isDataExchangeApproachComplete: TranslationFieldWithOptions! @goTag(key: "db", value: "is_data_exchange_approach_complete") + + # Metadata fields + markedCompleteBy: TranslationField! @goTag(key: "db", value: "marked_complete_by") + markedCompleteDts: TranslationField! @goTag(key: "db", value: "marked_complete_dts") + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +} +`, BuiltIn: false}, + {Name: "../schema/types/plan_discussion.graphql", Input: `""" +PlanDiscussion represents plan discussion +""" +type PlanDiscussion { + id: UUID! + modelPlanID: UUID! + content: TaggedContent + userRole: DiscussionUserRole + userRoleDescription: String + replies: [DiscussionReply!]! + isAssessment: Boolean! + + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +""" +PlanDiscussionCreateInput represents the necessary fields to create a plan discussion +""" +input PlanDiscussionCreateInput { + modelPlanID: UUID! + content: TaggedHTML! + userRole: DiscussionUserRole + userRoleDescription: String +} + +extend type Mutation { + createPlanDiscussion(input: PlanDiscussionCreateInput!): PlanDiscussion! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_discussion_translation.graphql", Input: `""" +Represents plan discussion translation data +""" + +type PlanDiscussionTranslation { + userRole: TranslationFieldWithOptions! @goTag(key: "db", value: "user_role") + userRoleDescription: TranslationField! @goTag(key: "db", value: "user_role_description") + content: TranslationField! @goTag(key: "db", value: "content") + isAssessment: TranslationField! @goTag(key: "db", value: "is_assessment") +} +`, BuiltIn: false}, + {Name: "../schema/types/plan_document.graphql", Input: `enum DocumentType { + CONCEPT_PAPER, + POLICY_PAPER, + ICIP_DRAFT, + MARKET_RESEARCH, + DESIGN_PARAMETERS_MEMO, + OFFICE_OF_THE_ADMINISTRATOR_PRESENTATION, + OTHER +} + +""" +PlanDocument represents a document on a plan +""" +type PlanDocument { + id: UUID! + modelPlanID: UUID! + + """ + If isLink = true, then this is a URL to a linked document, not an uploaded document + """ + isLink: Boolean! + """ + URL is the link that must be provided if this is a link instead of an uploaded document + """ + url: String + + fileType: String! + bucket: String! + fileKey: String! + virusScanned: Boolean! + virusClean: Boolean! + restricted: Boolean! + fileName: String! + fileSize: Int! + documentType: DocumentType! + otherType: String + optionalNotes: String + downloadUrl: String + deletedAt: Time + numLinkedSolutions: Int! + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +""" +PlanDocumentInput +""" +input PlanDocumentInput { + modelPlanID: UUID! + fileData: Upload! + documentType: DocumentType! + restricted: Boolean! + otherTypeDescription: String + optionalNotes: String +} + +""" +PlanDocumentLinkInput +""" +input PlanDocumentLinkInput { + modelPlanID: UUID! + url: String! + name: String! + documentType: DocumentType! + restricted: Boolean! + otherTypeDescription: String + optionalNotes: String +} + +extend type Query { + planDocument(id: UUID!): PlanDocument! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + uploadNewPlanDocument(input: PlanDocumentInput!): PlanDocument! + @hasRole(role: MINT_USER) + + linkNewPlanDocument(input: PlanDocumentLinkInput!): PlanDocument! + @hasRole(role: MINT_USER) + + deletePlanDocument(id: UUID!): Int! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_document_solution_link.graphql", Input: `type PlanDocumentSolutionLink { + id: UUID! + solutionID: UUID! + documentID: UUID! + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Mutation { + createPlanDocumentSolutionLinks(solutionID: UUID!, documentIDs: [UUID!]!): [PlanDocumentSolutionLink!] + @hasRole(role: MINT_USER) + + removePlanDocumentSolutionLinks(solutionID: UUID!, documentIDs: [UUID!]!): Boolean! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_document_solution_link_translation.graphql", Input: `""" +Represents document solution link translation data +""" + +type PlanDocumentSolutionLinkTranslation { + solutionID: TranslationField! @goTag(key: "db", value: "solution_id") + documentID: TranslationField! @goTag(key: "db", value: "document_id") +} +`, BuiltIn: false}, + {Name: "../schema/types/plan_document_translation.graphql", Input: `""" +Represents plan document translation data +""" + +type PlanDocumentTranslation { + isLink: TranslationField! @goTag(key: "db", value: "is_link") + url: TranslationField! @goTag(key: "db", value: "url") + fileName: TranslationField! @goTag(key: "db", value: "file_name") + documentType: TranslationFieldWithOptions! @goTag(key: "db", value: "document_type") + otherType: TranslationField! @goTag(key: "db", value: "other_type") + fileType: TranslationField! @goTag(key: "db", value: "file_type") + restricted: TranslationFieldWithOptions! @goTag(key: "db", value: "restricted") + optionalNotes: TranslationField! @goTag(key: "db", value: "optional_notes") +}`, BuiltIn: false}, + {Name: "../schema/types/plan_favorite.graphql", Input: `type PlanFavorite { + id: UUID! + modelPlanID: UUID! + userID: UUID! + userAccount: UserAccount! + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Mutation { + addPlanFavorite(modelPlanID: UUID!): PlanFavorite! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) + + deletePlanFavorite(modelPlanID: UUID!): PlanFavorite! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_general_characteristics.graphql", Input: `enum AgencyOrStateHelpType { + YES_STATE + YES_AGENCY_IDEAS + YES_AGENCY_IAA + NO + OTHER +} + +enum AlternativePaymentModelType { + REGULAR + MIPS + ADVANCED + NOT_APM +} + +enum KeyCharacteristic { + EPISODE_BASED + PART_C + PART_D + PAYMENT + POPULATION_BASED + PREVENTATIVE + SERVICE_DELIVERY + SHARED_SAVINGS + OTHER + MEDICAID_MODEL + MEDICARE_FFS_MODEL +} + +enum GeographyType { + STATE + REGION + OTHER +} + +enum GeographyRegionType { + CBSA, + HRR, + MSA +} + +enum GeographyApplication { + PARTICIPANTS + PROVIDERS + BENEFICIARIES + OTHER +} + +enum StatesAndTerritories { + AL, + AK, + AZ, + AR, + CA, + CO, + CT, + DE, + DC, + FL, + GA, + HI, + ID, + IL, + IN, + IA, + KS, + KY, + LA, + ME, + MD, + MA, + MI, + MN, + MS, + MO, + MT, + NE, + NV, + NH, + NJ, + NM, + NY, + NC, + ND, + OH, + OK, + OR, + PA, + RI, + SC, + SD, + TN, + TX, + UT, + VT, + VA, + WA, + WV, + WI, + WY, + AS, + GU, + MP, + PR, + UM, + VI +} + +enum AgreementType { + PARTICIPATION + COOPERATIVE + OTHER +} + +enum AuthorityAllowance { + ACA + CONGRESSIONALLY_MANDATED + SSA_PART_B + OTHER +} + +enum WaiverType { + FRAUD_ABUSE + PROGRAM_PAYMENT + MEDICAID +} + +""" +PlanGeneralCharacteristics represents a plan general characteristics object +""" +type PlanGeneralCharacteristics { + id: UUID! + modelPlanID: UUID! + + # Page 1 + isNewModel: Boolean + existingModel: String + currentModelPlanID: UUID + currentModelPlan: ModelPlan + existingModelID: Int + existingModelPlan: ExistingModel + resemblesExistingModel: YesNoOtherType + """ + For providing clarifying comments if Yes or No is selected for resemblesExistingModel + """ + resemblesExistingModelWhyHow: String + """ + For providing clarifying comments if Other is selected for resemblesExistingModel + """ + resemblesExistingModelOtherSpecify: String + """ + For denoting if there is an other model that this model resembles if it's true that it resembles existing models. + """ + resemblesExistingModelOtherSelected: Boolean + """ + For denoting the name of the other existing model that this model resembles + """ + resemblesExistingModelOtherOption: String + resemblesExistingModelHow: String + resemblesExistingModelNote: String + resemblesExistingModelWhich: ExistingModelLinks + """ + For answering if participation in other models is a precondition for participating in this model + """ + participationInModelPrecondition: YesNoOtherType + """ + For providing clarifying comments if Yes or No is selected for participationInModelPrecondition + """ + participationInModelPreconditionWhyHow: String + """ + For providing clarifying comments if Other is selected for participationInModelPrecondition + """ + participationInModelPreconditionOtherSpecify: String + """ + For denoting if there is an other model that this model refers to. + """ + participationInModelPreconditionOtherSelected: Boolean + """ + For denoting the name of the other existing model + """ + participationInModelPreconditionOtherOption: String + """ + A note field for participationInModelPrecondition + """ + participationInModelPreconditionNote: String + """ + The collection of existing model links relevant to the participationInModelPrecondition question + """ + participationInModelPreconditionWhich: ExistingModelLinks + hasComponentsOrTracks: Boolean + hasComponentsOrTracksDiffer: String + hasComponentsOrTracksNote: String + + # Page 2 + agencyOrStateHelp: [AgencyOrStateHelpType!]! + agencyOrStateHelpOther: String + agencyOrStateHelpNote: String + alternativePaymentModelTypes: [AlternativePaymentModelType!]! + alternativePaymentModelNote: String + keyCharacteristics: [KeyCharacteristic!]! + keyCharacteristicsOther: String + keyCharacteristicsNote: String + collectPlanBids: Boolean + collectPlanBidsNote: String + managePartCDEnrollment: Boolean + managePartCDEnrollmentNote: String + planContractUpdated: Boolean + planContractUpdatedNote: String + + # Page 3 + careCoordinationInvolved: Boolean + careCoordinationInvolvedDescription: String + careCoordinationInvolvedNote: String + additionalServicesInvolved: Boolean + additionalServicesInvolvedDescription: String + additionalServicesInvolvedNote: String + communityPartnersInvolved: Boolean + communityPartnersInvolvedDescription: String + communityPartnersInvolvedNote: String + + # Page 4 + geographiesTargeted: Boolean + geographiesTargetedTypes: [GeographyType!]! + geographiesStatesAndTerritories: [StatesAndTerritories!]! + geographiesRegionTypes: [GeographyRegionType!]! + geographiesTargetedTypesOther: String + geographiesTargetedAppliedTo: [GeographyApplication!]! + geographiesTargetedAppliedToOther: String + geographiesTargetedNote: String + participationOptions: Boolean + participationOptionsNote: String + agreementTypes: [AgreementType!]! + agreementTypesOther: String + multiplePatricipationAgreementsNeeded: Boolean + multiplePatricipationAgreementsNeededNote: String + + # Page 5 + rulemakingRequired: Boolean + rulemakingRequiredDescription: String + rulemakingRequiredNote: String + authorityAllowances: [AuthorityAllowance!]! + authorityAllowancesOther: String + authorityAllowancesNote: String + waiversRequired: Boolean + waiversRequiredTypes: [WaiverType!]! + waiversRequiredNote: String + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + + readyForReviewBy: UUID + readyForReviewByUserAccount: UserAccount + readyForReviewDts: Time + readyForClearanceBy: UUID + readyForClearanceByUserAccount: UserAccount + readyForClearanceDts: Time + + status: TaskStatus! +} + +""" +PlanGeneralCharacteristicsChanges represents the possible changes you can make to a +general characteristics object when updating it. +Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. +https://gqlgen.com/reference/changesets/ +""" +input PlanGeneralCharacteristicsChanges @goModel(model: "map[string]interface{}") { + # Page 1 + isNewModel: Boolean + currentModelPlanID: UUID + existingModelID: Int + resemblesExistingModel: YesNoOtherType + """ + For providing clarifying comments if Yes or No is selected for resemblesExistingModel + """ + resemblesExistingModelWhyHow: String + """ + For providing clarifying comments if Other is selected for resemblesExistingModel + """ + resemblesExistingModelOtherSpecify: String + """ + For denoting if there is an other model that this model resembles if it's true that it resembles existing models. + """ + resemblesExistingModelOtherSelected: Boolean + """ + For denoting the name of the other existing model that this model resembles + """ + resemblesExistingModelOtherOption: String + resemblesExistingModelHow: String + resemblesExistingModelNote: String + """ + For answering if participation in other models is a precondition for participating in this model + """ + participationInModelPrecondition: YesNoOtherType + """ + For providing clarifying comments if Yes or No is selected for participationInModelPrecondition + """ + participationInModelPreconditionWhyHow: String + """ + For providing clarifying comments if Other is selected for participationInModelPrecondition + """ + participationInModelPreconditionOtherSpecify: String + """ + For denoting if there is an other model that this model refers to. + """ + participationInModelPreconditionOtherSelected: Boolean + """ + For denoting the name of the other existing model + """ + participationInModelPreconditionOtherOption: String + """ + A note field for participationInModelPrecondition + """ + participationInModelPreconditionNote: String + hasComponentsOrTracks: Boolean + hasComponentsOrTracksDiffer: String + hasComponentsOrTracksNote: String + + # Page 2 + agencyOrStateHelp: [AgencyOrStateHelpType!] + agencyOrStateHelpOther: String + agencyOrStateHelpNote: String + alternativePaymentModelTypes: [AlternativePaymentModelType!] + alternativePaymentModelNote: String + keyCharacteristics: [KeyCharacteristic!] + keyCharacteristicsOther: String + keyCharacteristicsNote: String + collectPlanBids: Boolean + collectPlanBidsNote: String + managePartCDEnrollment: Boolean + managePartCDEnrollmentNote: String + planContractUpdated: Boolean + planContractUpdatedNote: String + + # Page 3 + careCoordinationInvolved: Boolean + careCoordinationInvolvedDescription: String + careCoordinationInvolvedNote: String + additionalServicesInvolved: Boolean + additionalServicesInvolvedDescription: String + additionalServicesInvolvedNote: String + communityPartnersInvolved: Boolean + communityPartnersInvolvedDescription: String + communityPartnersInvolvedNote: String + + # Page 4 + geographiesTargeted: Boolean + geographiesTargetedTypes: [GeographyType!] + geographiesStatesAndTerritories: [StatesAndTerritories!] + geographiesRegionTypes: [GeographyRegionType!] + geographiesTargetedTypesOther: String + geographiesTargetedAppliedTo: [GeographyApplication!] + geographiesTargetedAppliedToOther: String + geographiesTargetedNote: String + participationOptions: Boolean + participationOptionsNote: String + agreementTypes: [AgreementType!] + agreementTypesOther: String + multiplePatricipationAgreementsNeeded: Boolean + multiplePatricipationAgreementsNeededNote: String + + # Page 5 + rulemakingRequired: Boolean + rulemakingRequiredDescription: String + rulemakingRequiredNote: String + authorityAllowances: [AuthorityAllowance!] + authorityAllowancesOther: String + authorityAllowancesNote: String + waiversRequired: Boolean + waiversRequiredTypes: [WaiverType!] + waiversRequiredNote: String + + status: TaskStatusInput +} + +extend type Mutation { + updatePlanGeneralCharacteristics(id: UUID!, changes: PlanGeneralCharacteristicsChanges!): PlanGeneralCharacteristics! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_general_characteristics_translation.graphql", Input: `""" +Represents plan general characteristics translation data +""" +type PlanGeneralCharacteristicsTranslation { + # Page 1 + isNewModel: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "is_new_model") + currentModelPlanID:TranslationField! @goTag(key: "db", value: "current_model_plan_id") + existingModelID:TranslationField! @goTag(key: "db", value: "existing_model_id") + """ + Existing model doesn't exist in the database, it is returned based on if there is a current model plan ID or current model plan ID returned + """ + existingModel: TranslationFieldWithParent! @goTag(key: "db", value: "existing_model") + resemblesExistingModel: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "resembles_existing_model") + resemblesExistingModelWhyHow: TranslationField! @goTag(key: "db", value: "resembles_existing_model_why_how") + resemblesExistingModelOtherSpecify: TranslationField! @goTag(key: "db", value: "resembles_existing_model_other_specify") + resemblesExistingModelOtherOption: TranslationField! @goTag(key: "db", value: "resembles_existing_model_other_option") + resemblesExistingModelHow: TranslationFieldWithParent! @goTag(key: "db", value: "resembles_existing_model_how") + resemblesExistingModelNote: TranslationField! @goTag(key: "db", value: "resembles_existing_model_note") + resemblesExistingModelWhich: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "resembles_existing_model_which") + participationInModelPrecondition: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "participation_in_model_precondition") + participationInModelPreconditionWhyHow: TranslationFieldWithParent! @goTag(key: "db", value: "participation_in_model_precondition_why_how") + participationInModelPreconditionOtherSpecify: TranslationField! @goTag(key: "db", value: "participation_in_model_precondition_other_specify") + participationInModelPreconditionOtherOption: TranslationField! @goTag(key: "db", value: "participation_in_model_precondition_other_option") + participationInModelPreconditionNote: TranslationField! @goTag(key: "db", value: "participation_in_model_precondition_note") + participationInModelPreconditionWhich: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "participation_in_model_precondition_which") + hasComponentsOrTracks: TranslationFieldWithOptions! @goTag(key: "db", value: "has_components_or_tracks") + hasComponentsOrTracksDiffer: TranslationField! @goTag(key: "db", value: "has_components_or_tracks_differ") + hasComponentsOrTracksNote: TranslationField! @goTag(key: "db", value: "has_components_or_tracks_note") + + # Page 2 + agencyOrStateHelp: TranslationFieldWithOptions! @goTag(key: "db", value: "agency_or_state_help") + agencyOrStateHelpOther: TranslationField! @goTag(key: "db", value: "agency_or_state_help_other") + agencyOrStateHelpNote: TranslationField! @goTag(key: "db", value: "agency_or_state_help_note") + alternativePaymentModelTypes: TranslationFieldWithOptions! @goTag(key: "db", value: "alternative_payment_model_types") + alternativePaymentModelNote: TranslationField! @goTag(key: "db", value: "alternative_payment_model_note") + keyCharacteristics: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "key_characteristics") + keyCharacteristicsOther: TranslationField! @goTag(key: "db", value: "key_characteristics_other") + keyCharacteristicsNote: TranslationField! @goTag(key: "db", value: "key_characteristics_note") + collectPlanBids: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "collect_plan_bids") + collectPlanBidsNote: TranslationField! @goTag(key: "db", value: "collect_plan_bids_note") + managePartCDEnrollment: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "manage_part_c_d_enrollment") + managePartCDEnrollmentNote: TranslationField! @goTag(key: "db", value: "manage_part_c_d_enrollment_note") + planContractUpdated: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "plan_contract_updated") + planContractUpdatedNote: TranslationField! @goTag(key: "db", value: "plan_contract_updated_note") + + # Page 3 + careCoordinationInvolved: TranslationFieldWithOptions! @goTag(key: "db", value: "care_coordination_involved") + careCoordinationInvolvedDescription: TranslationField! @goTag(key: "db", value: "care_coordination_involved_description") + careCoordinationInvolvedNote: TranslationField! @goTag(key: "db", value: "care_coordination_involved_note") + additionalServicesInvolved: TranslationFieldWithOptions! @goTag(key: "db", value: "additional_services_involved") + additionalServicesInvolvedDescription: TranslationField! @goTag(key: "db", value: "additional_services_involved_description") + additionalServicesInvolvedNote: TranslationField! @goTag(key: "db", value: "additional_services_involved_note") + communityPartnersInvolved: TranslationFieldWithOptions! @goTag(key: "db", value: "community_partners_involved") + communityPartnersInvolvedDescription: TranslationField! @goTag(key: "db", value: "community_partners_involved_description") + communityPartnersInvolvedNote: TranslationField! @goTag(key: "db", value: "community_partners_involved_note") + + # Page 4 + geographiesTargeted: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "geographies_targeted") + geographiesTargetedTypes: TranslationFieldWithParentAndChildren! @goTag(key: "db", value: "geographies_targeted_types") + geographiesStatesAndTerritories: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "geographies_states_and_territories") + geographiesRegionTypes: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "geographies_region_types") + geographiesTargetedTypesOther: TranslationField! @goTag(key: "db", value: "geographies_targeted_types_other") + geographiesTargetedAppliedTo: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "geographies_targeted_applied_to") + geographiesTargetedAppliedToOther: TranslationField! @goTag(key: "db", value: "geographies_targeted_applied_to_other") + geographiesTargetedNote: TranslationField! @goTag(key: "db", value: "geographies_targeted_note") + participationOptions: TranslationFieldWithOptions! @goTag(key: "db", value: "participation_options") + participationOptionsNote: TranslationField! @goTag(key: "db", value: "participation_options_note") + agreementTypes: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "agreement_types") + agreementTypesOther: TranslationField! @goTag(key: "db", value: "agreement_types_other") + multiplePatricipationAgreementsNeeded: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "multiple_patricipation_agreements_needed") + multiplePatricipationAgreementsNeededNote: TranslationField! @goTag(key: "db", value: "multiple_patricipation_agreements_needed_note") + + # Page 5 + rulemakingRequired: TranslationFieldWithOptions! @goTag(key: "db", value: "rulemaking_required") + rulemakingRequiredDescription: TranslationField! @goTag(key: "db", value: "rulemaking_required_description") + rulemakingRequiredNote: TranslationField! @goTag(key: "db", value: "rulemaking_required_note") + authorityAllowances: TranslationFieldWithOptions! @goTag(key: "db", value: "authority_allowances") + authorityAllowancesOther: TranslationField! @goTag(key: "db", value: "authority_allowances_other") + authorityAllowancesNote: TranslationField! @goTag(key: "db", value: "authority_allowances_note") + waiversRequired: TranslationFieldWithOptions! @goTag(key: "db", value: "waivers_required") + waiversRequiredTypes: TranslationFieldWithOptions! @goTag(key: "db", value: "waivers_required_types") + waiversRequiredNote: TranslationField! @goTag(key: "db", value: "waivers_required_note") + + readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") + readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") + readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") + readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +}`, BuiltIn: false}, + {Name: "../schema/types/plan_ops_eval_and_learning.graphql", Input: `enum StakeholdersType { + BENEFICIARIES + COMMUNITY_ORGANIZATIONS + PARTICIPANTS + PROFESSIONAL_ORGANIZATIONS + PROVIDERS + STATES + OTHER +} + +enum ContractorSupportType { + ONE + MULTIPLE + NONE + OTHER +} + +enum MonitoringFileType { + BENEFICIARY + PROVIDER + PART_A + PART_B + OTHER +} + +enum EvaluationApproachType { + CONTROL_INTERVENTION + COMPARISON_MATCH + INTERRUPTED_TIME + NON_MEDICARE_DATA + OTHER +} + +enum CcmInvolvmentType { + YES_EVALUATION + YES__IMPLEMENTATION + NO + OTHER +} + +enum DataForMonitoringType { + SITE_VISITS + MEDICARE_CLAIMS + MEDICAID_CLAIMS + ENCOUNTER_DATA + NO_PAY_CLAIMS + QUALITY_CLAIMS_BASED_MEASURES + QUALITY_REPORTED_MEASURES + CLINICAL_DATA + NON_CLINICAL_DATA + NON_MEDICAL_DATA + OTHER + NOT_PLANNING_TO_COLLECT_DATA +} + +enum DataToSendParticipantsType { + BASELINE_HISTORICAL_DATA + CLAIMS_LEVEL_DATA + BENEFICIARY_LEVEL_DATA + PARTICIPANT_LEVEL_DATA + PROVIDER_LEVEL_DATA + OTHER_MIPS_DATA + NOT_PLANNING_TO_SEND_DATA +} + +enum ModelLearningSystemType { + LEARNING_CONTRACTOR + IT_PLATFORM_CONNECT + PARTICIPANT_COLLABORATION + EDUCATE_BENEFICIARIES + OTHER + NO_LEARNING_SYSTEM +} + +enum DataFullTimeOrIncrementalType { + FULL_TIME + INCREMENTAL +} + +enum BenchmarkForPerformanceType { + YES_RECONCILE + YES_NO_RECONCILE + NO +} + +enum DataStartsType { + DURING_APPLICATION_PERIOD + SHORTLY_BEFORE_THE_START_DATE + EARLY_IN_THE_FIRST_PERFORMANCE_YEAR + LATER_IN_THE_FIRST_PERFORMANCE_YEAR + IN_THE_SUBSEQUENT_PERFORMANCE_YEAR + AT_SOME_OTHER_POINT_IN_TIME + NOT_PLANNING_TO_DO_THIS + OTHER +} + +""" +PlanOpsEvalAndLearning represents the task list section that deals with information regarding the Ops Eval and Learning +""" +type PlanOpsEvalAndLearning { + id: UUID! + modelPlanID: UUID! + + #Page 1 + stakeholders: [StakeholdersType!]! + stakeholdersOther: String + stakeholdersNote: String + helpdeskUse: Boolean + helpdeskUseNote: String + contractorSupport: [ContractorSupportType!]! + contractorSupportOther: String + contractorSupportHow: String + contractorSupportNote: String + iddocSupport: Boolean + iddocSupportNote: String + + #Page 2 + technicalContactsIdentified: Boolean + technicalContactsIdentifiedDetail: String + technicalContactsIdentifiedNote: String + captureParticipantInfo: Boolean + captureParticipantInfoNote: String + icdOwner: String + draftIcdDueDate: Time + icdNote: String + + #Page 3 + uatNeeds: String + stcNeeds: String + testingTimelines: String + testingNote: String + dataMonitoringFileTypes: [MonitoringFileType!]! + dataMonitoringFileOther: String + dataResponseType: String + dataResponseFileFrequency: String + + #Page 4 + dataFullTimeOrIncremental: DataFullTimeOrIncrementalType + eftSetUp: Boolean + unsolicitedAdjustmentsIncluded: Boolean + dataFlowDiagramsNeeded: Boolean + produceBenefitEnhancementFiles: Boolean + fileNamingConventions: String + dataMonitoringNote: String + + #Page 5 + benchmarkForPerformance: BenchmarkForPerformanceType + benchmarkForPerformanceNote: String + computePerformanceScores: Boolean + computePerformanceScoresNote: String + riskAdjustPerformance: Boolean + riskAdjustFeedback: Boolean + riskAdjustPayments: Boolean + riskAdjustOther: Boolean + riskAdjustNote: String + appealPerformance: Boolean + appealFeedback: Boolean + appealPayments: Boolean + appealOther: Boolean + appealNote: String + + #Page 6 + evaluationApproaches: [EvaluationApproachType!]! + evaluationApproachOther: String + evalutaionApproachNote: String + ccmInvolvment: [CcmInvolvmentType!]! + ccmInvolvmentOther: String + ccmInvolvmentNote: String + dataNeededForMonitoring: [DataForMonitoringType!]! + dataNeededForMonitoringOther: String + dataNeededForMonitoringNote: String + dataToSendParticicipants: [DataToSendParticipantsType!]! + dataToSendParticicipantsOther: String + dataToSendParticicipantsNote: String + shareCclfData: Boolean + shareCclfDataNote: String + + #Page 7 + sendFilesBetweenCcw: Boolean + sendFilesBetweenCcwNote: String + appToSendFilesToKnown: Boolean + appToSendFilesToWhich: String + appToSendFilesToNote: String + useCcwForFileDistribiutionToParticipants: Boolean + useCcwForFileDistribiutionToParticipantsNote: String + developNewQualityMeasures: Boolean + developNewQualityMeasuresNote: String + qualityPerformanceImpactsPayment: YesNoOtherType + qualityPerformanceImpactsPaymentOther: String + qualityPerformanceImpactsPaymentNote: String + + #Page 8 + dataSharingStarts: DataStartsType + dataSharingStartsOther: String + dataSharingFrequency: [FrequencyType!]! + dataSharingFrequencyContinually: String + dataSharingFrequencyOther: String + dataSharingStartsNote: String + dataCollectionStarts: DataStartsType + dataCollectionStartsOther: String + dataCollectionFrequency: [FrequencyType!]! + dataCollectionFrequencyContinually: String + dataCollectionFrequencyOther: String + dataCollectionFrequencyNote: String + qualityReportingStarts: DataStartsType + qualityReportingStartsOther: String + qualityReportingStartsNote: String + qualityReportingFrequency: [FrequencyType!]! + qualityReportingFrequencyContinually: String + qualityReportingFrequencyOther: String + + #Page 9 + modelLearningSystems: [ModelLearningSystemType!]! + modelLearningSystemsOther: String + modelLearningSystemsNote: String + anticipatedChallenges: String + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + + readyForReviewBy: UUID + readyForReviewByUserAccount: UserAccount + readyForReviewDts: Time + readyForClearanceBy: UUID + readyForClearanceByUserAccount: UserAccount + readyForClearanceDts: Time + + status: TaskStatus! +} + +""" +PlanOpsEvalAndLearningChanges represents the possible changes you can make to a +ops, eval and learning object when updating it. +Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. +https://gqlgen.com/reference/changesets/ +""" +input PlanOpsEvalAndLearningChanges @goModel(model: "map[string]interface{}") { + + #Page 1 + stakeholders: [StakeholdersType!] + stakeholdersOther: String + stakeholdersNote: String + helpdeskUse: Boolean + helpdeskUseNote: String + contractorSupport: [ContractorSupportType!] + contractorSupportOther: String + contractorSupportHow: String + contractorSupportNote: String + iddocSupport: Boolean + iddocSupportNote: String + #Page 2 + technicalContactsIdentified: Boolean + technicalContactsIdentifiedDetail: String + technicalContactsIdentifiedNote: String + captureParticipantInfo: Boolean + captureParticipantInfoNote: String + icdOwner: String + draftIcdDueDate: Time + icdNote: String + #Page 3 + uatNeeds: String + stcNeeds: String + testingTimelines: String + testingNote: String + dataMonitoringFileTypes: [MonitoringFileType!] + dataMonitoringFileOther: String + dataResponseType: String + dataResponseFileFrequency: String + #Page 4 + dataFullTimeOrIncremental: DataFullTimeOrIncrementalType + eftSetUp: Boolean + unsolicitedAdjustmentsIncluded: Boolean + dataFlowDiagramsNeeded: Boolean + produceBenefitEnhancementFiles: Boolean + fileNamingConventions: String + dataMonitoringNote: String + #Page 5 + benchmarkForPerformance: BenchmarkForPerformanceType + benchmarkForPerformanceNote: String + computePerformanceScores: Boolean + computePerformanceScoresNote: String + riskAdjustPerformance: Boolean + riskAdjustFeedback: Boolean + riskAdjustPayments: Boolean + riskAdjustOther: Boolean + riskAdjustNote: String + appealPerformance: Boolean + appealFeedback: Boolean + appealPayments: Boolean + appealOther: Boolean + appealNote: String + #Page 6 + evaluationApproaches: [EvaluationApproachType!] + evaluationApproachOther: String + evalutaionApproachNote: String + ccmInvolvment: [CcmInvolvmentType!] + ccmInvolvmentOther: String + ccmInvolvmentNote: String + dataNeededForMonitoring: [DataForMonitoringType!] + dataNeededForMonitoringOther: String + dataNeededForMonitoringNote: String + dataToSendParticicipants: [DataToSendParticipantsType!] + dataToSendParticicipantsOther: String + dataToSendParticicipantsNote: String + shareCclfData: Boolean + shareCclfDataNote: String + #Page 7 + sendFilesBetweenCcw: Boolean + sendFilesBetweenCcwNote: String + appToSendFilesToKnown: Boolean + appToSendFilesToWhich: String + appToSendFilesToNote: String + useCcwForFileDistribiutionToParticipants: Boolean + useCcwForFileDistribiutionToParticipantsNote: String + developNewQualityMeasures: Boolean + developNewQualityMeasuresNote: String + qualityPerformanceImpactsPayment: YesNoOtherType + qualityPerformanceImpactsPaymentOther: String + qualityPerformanceImpactsPaymentNote: String + #Page 8 + dataSharingStarts: DataStartsType + dataSharingStartsOther: String + dataSharingFrequency: [FrequencyType!] + dataSharingFrequencyContinually: String + dataSharingFrequencyOther: String + dataSharingStartsNote: String + dataCollectionStarts: DataStartsType + dataCollectionStartsOther: String + dataCollectionFrequency: [FrequencyType!] + dataCollectionFrequencyContinually: String + dataCollectionFrequencyOther: String + dataCollectionFrequencyNote: String + qualityReportingStarts: DataStartsType + qualityReportingStartsOther: String + qualityReportingStartsNote: String + qualityReportingFrequency: [FrequencyType!] + qualityReportingFrequencyContinually: String + qualityReportingFrequencyOther: String + #Page 9 + modelLearningSystems: [ModelLearningSystemType!] + modelLearningSystemsOther: String + modelLearningSystemsNote: String + anticipatedChallenges: String + + status: TaskStatusInput +} + +extend type Mutation { + updatePlanOpsEvalAndLearning(id: UUID!, changes: PlanOpsEvalAndLearningChanges!): PlanOpsEvalAndLearning! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_ops_eval_and_learning_translation.graphql", Input: `""" +Represents plan ops eval and learning translation data +""" +type PlanOpsEvalAndLearningTranslation { + #Page 1 + stakeholders: TranslationFieldWithOptions! @goTag(key: "db", value: "stakeholders") + stakeholdersOther: TranslationField! @goTag(key: "db", value: "stakeholders_other") + stakeholdersNote: TranslationField! @goTag(key: "db", value: "stakeholders_note") + helpdeskUse: TranslationFieldWithOptions! @goTag(key: "db", value: "helpdesk_use") + helpdeskUseNote: TranslationField! @goTag(key: "db", value: "helpdesk_use_note") + contractorSupport: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "contractor_support") + contractorSupportOther: TranslationField! @goTag(key: "db", value: "contractor_support_other") + contractorSupportHow: TranslationFieldWithParent! @goTag(key: "db", value: "contractor_support_how") + contractorSupportNote: TranslationField! @goTag(key: "db", value: "contractor_support_note") + iddocSupport: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "iddoc_support") + iddocSupportNote: TranslationField! @goTag(key: "db", value: "iddoc_support_note") + + #Page 2 + technicalContactsIdentified: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "technical_contacts_identified") + technicalContactsIdentifiedDetail: TranslationField! @goTag(key: "db", value: "technical_contacts_identified_detail") + technicalContactsIdentifiedNote: TranslationField! @goTag(key: "db", value: "technical_contacts_identified_note") + captureParticipantInfo: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "capture_participant_info") + captureParticipantInfoNote: TranslationField! @goTag(key: "db", value: "capture_participant_info_note") + icdOwner: TranslationFieldWithParent! @goTag(key: "db", value: "icd_owner") + draftIcdDueDate: TranslationFieldWithParent! @goTag(key: "db", value: "draft_icd_due_date") + icdNote: TranslationFieldWithParent! @goTag(key: "db", value: "icd_note") + + #Page 3 + uatNeeds: TranslationFieldWithParent! @goTag(key: "db", value: "uat_needs") + stcNeeds: TranslationFieldWithParent! @goTag(key: "db", value: "stc_needs") + testingTimelines: TranslationFieldWithParent! @goTag(key: "db", value: "testing_timelines") + testingNote: TranslationField! @goTag(key: "db", value: "testing_note") + dataMonitoringFileTypes: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "data_monitoring_file_types") + dataMonitoringFileOther: TranslationField! @goTag(key: "db", value: "data_monitoring_file_other") + dataResponseType: TranslationFieldWithParent! @goTag(key: "db", value: "data_response_type") + dataResponseFileFrequency: TranslationFieldWithParent! @goTag(key: "db", value: "data_response_file_frequency") + + #Page 4 + dataFullTimeOrIncremental: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "data_full_time_or_incremental") + eftSetUp: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "eft_set_up") + unsolicitedAdjustmentsIncluded: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "unsolicited_adjustments_included") + dataFlowDiagramsNeeded: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "data_flow_diagrams_needed") + produceBenefitEnhancementFiles: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "produce_benefit_enhancement_files") + fileNamingConventions: TranslationFieldWithParent! @goTag(key: "db", value: "file_naming_conventions") + dataMonitoringNote: TranslationField! @goTag(key: "db", value: "data_monitoring_note") + + #Page 5 + benchmarkForPerformance: TranslationFieldWithOptions! @goTag(key: "db", value: "benchmark_for_performance") + benchmarkForPerformanceNote: TranslationField! @goTag(key: "db", value: "benchmark_for_performance_note") + computePerformanceScores: TranslationFieldWithOptions! @goTag(key: "db", value: "compute_performance_scores") + computePerformanceScoresNote: TranslationField! @goTag(key: "db", value: "compute_performance_scores_note") + riskAdjustPerformance: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_adjust_performance") + riskAdjustFeedback: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_adjust_feedback") + riskAdjustPayments: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_adjust_payments") + riskAdjustOther: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_adjust_other") + riskAdjustNote: TranslationField! @goTag(key: "db", value: "risk_adjust_note") + appealPerformance: TranslationFieldWithOptions! @goTag(key: "db", value: "appeal_performance") + appealFeedback: TranslationFieldWithOptions! @goTag(key: "db", value: "appeal_feedback") + appealPayments: TranslationFieldWithOptions! @goTag(key: "db", value: "appeal_payments") + appealOther: TranslationFieldWithOptions! @goTag(key: "db", value: "appeal_other") + appealNote: TranslationField! @goTag(key: "db", value: "appeal_note") + + #Page 6 + evaluationApproaches: TranslationFieldWithOptions! @goTag(key: "db", value: "evaluation_approaches") + evaluationApproachOther: TranslationField! @goTag(key: "db", value: "evaluation_approach_other") + evalutaionApproachNote: TranslationField! @goTag(key: "db", value: "evalutaion_approach_note") + ccmInvolvment: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "ccm_involvment") + ccmInvolvmentOther: TranslationField! @goTag(key: "db", value: "ccm_involvment_other") + ccmInvolvmentNote: TranslationField! @goTag(key: "db", value: "ccm_involvment_note") + dataNeededForMonitoring: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "data_needed_for_monitoring") + dataNeededForMonitoringOther: TranslationField! @goTag(key: "db", value: "data_needed_for_monitoring_other") + dataNeededForMonitoringNote: TranslationField! @goTag(key: "db", value: "data_needed_for_monitoring_note") + dataToSendParticicipants: TranslationFieldWithOptions! @goTag(key: "db", value: "data_to_send_particicipants") + dataToSendParticicipantsOther: TranslationField! @goTag(key: "db", value: "data_to_send_particicipants_other") + dataToSendParticicipantsNote: TranslationField! @goTag(key: "db", value: "data_to_send_particicipants_note") + shareCclfData: TranslationFieldWithOptions! @goTag(key: "db", value: "share_cclf_data") + shareCclfDataNote: TranslationField! @goTag(key: "db", value: "share_cclf_data_note") + + #Page 7 + sendFilesBetweenCcw: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "send_files_between_ccw") + sendFilesBetweenCcwNote: TranslationField! @goTag(key: "db", value: "send_files_between_ccw_note") + appToSendFilesToKnown: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "app_to_send_files_to_known") + appToSendFilesToWhich: TranslationField! @goTag(key: "db", value: "app_to_send_files_to_which") + appToSendFilesToNote: TranslationField! @goTag(key: "db", value: "app_to_send_files_to_note") + useCcwForFileDistribiutionToParticipants: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "use_ccw_for_file_distribiution_to_participants") + useCcwForFileDistribiutionToParticipantsNote: TranslationField! @goTag(key: "db", value: "use_ccw_for_file_distribiution_to_participants_note") + developNewQualityMeasures: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "develop_new_quality_measures") + developNewQualityMeasuresNote: TranslationField! @goTag(key: "db", value: "develop_new_quality_measures_note") + qualityPerformanceImpactsPayment: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "quality_performance_impacts_payment") + qualityPerformanceImpactsPaymentOther: TranslationField! @goTag(key: "db", value: "quality_performance_impacts_payment_other") + qualityPerformanceImpactsPaymentNote: TranslationField! @goTag(key: "db", value: "quality_performance_impacts_payment_note") + + #Page 8 + dataSharingStarts: TranslationFieldWithOptions! @goTag(key: "db", value: "data_sharing_starts") + dataSharingStartsOther: TranslationField! @goTag(key: "db", value: "data_sharing_starts_other") + dataSharingFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "data_sharing_frequency") + dataSharingFrequencyContinually: TranslationField! @goTag(key: "db", value: "data_sharing_frequency_continually") + dataSharingFrequencyOther: TranslationField! @goTag(key: "db", value: "data_sharing_frequency_other") + dataSharingStartsNote: TranslationField! @goTag(key: "db", value: "data_sharing_starts_note") + dataCollectionStarts: TranslationFieldWithOptions! @goTag(key: "db", value: "data_collection_starts") + dataCollectionStartsOther: TranslationField! @goTag(key: "db", value: "data_collection_starts_other") + dataCollectionFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "data_collection_frequency") + dataCollectionFrequencyContinually: TranslationField! @goTag(key: "db", value: "data_collection_frequency_continually") + dataCollectionFrequencyOther: TranslationField! @goTag(key: "db", value: "data_collection_frequency_other") + dataCollectionFrequencyNote: TranslationField! @goTag(key: "db", value: "data_collection_frequency_note") + qualityReportingStarts: TranslationFieldWithOptions! @goTag(key: "db", value: "quality_reporting_starts") + qualityReportingStartsOther: TranslationField! @goTag(key: "db", value: "quality_reporting_starts_other") + qualityReportingStartsNote: TranslationField! @goTag(key: "db", value: "quality_reporting_starts_note") + qualityReportingFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "quality_reporting_frequency") + qualityReportingFrequencyContinually: TranslationField! @goTag(key: "db", value: "quality_reporting_frequency_continually") + qualityReportingFrequencyOther: TranslationField! @goTag(key: "db", value: "quality_reporting_frequency_other") + + #Page 9 + modelLearningSystems: TranslationFieldWithOptions! @goTag(key: "db", value: "model_learning_systems") + modelLearningSystemsOther: TranslationField! @goTag(key: "db", value: "model_learning_systems_other") + modelLearningSystemsNote: TranslationField! @goTag(key: "db", value: "model_learning_systems_note") + anticipatedChallenges: TranslationField! @goTag(key: "db", value: "anticipated_challenges") + + readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") + readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") + readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") + readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +}`, BuiltIn: false}, + {Name: "../schema/types/plan_participants_and_providers.graphql", Input: `enum ParticipantsType { + MEDICARE_PROVIDERS + ENTITIES + CONVENER + MEDICARE_ADVANTAGE_PLANS + STANDALONE_PART_D_PLANS + MEDICARE_ADVANTAGE_PRESCRIPTION_DRUG_PLANS + STATE_MEDICAID_AGENCIES + MEDICAID_MANAGED_CARE_ORGANIZATIONS + MEDICAID_PROVIDERS + STATES + COMMUNITY_BASED_ORGANIZATIONS + NON_PROFIT_ORGANIZATIONS + COMMERCIAL_PAYERS + ACCOUNTABLE_CARE_ORGANIZATION + OTHER +} + +enum RecruitmentType { + LOI + APPLICATION_COLLECTION_TOOL + NOFO + OTHER + NA +} + +enum ParticipantSelectionType { + MODEL_TEAM_REVIEW_APPLICATIONS + SUPPORT_FROM_CMMI + CMS_COMPONENT_OR_PROCESS + APPLICATION_REVIEW_AND_SCORING_TOOL + APPLICATION_SUPPORT_CONTRACTOR + BASIC_CRITERIA + OTHER + NO_SELECTING_PARTICIPANTS +} + +enum ParticipantCommunicationType { + MASS_EMAIL + IT_TOOL + OTHER + NO_COMMUNICATION +} + +enum ParticipantRiskType { + TWO_SIDED + ONE_SIDED + CAPITATION + NOT_RISK_BASED + OTHER +} + +enum GainshareArrangementEligibility { + ALL_PROVIDERS, + SOME_PROVIDERS, + OTHER, + NO +} + +enum ParticipantsIDType { + TINS + NPIS + CCNS + OTHER + NO_IDENTIFIERS +} + +enum ProviderAddType { + PROSPECTIVELY + RETROSPECTIVELY + VOLUNTARILY + MANDATORILY + ONLINE_TOOLS + OTHER + NA +} + +enum ProviderLeaveType { + VOLUNTARILY_WITHOUT_IMPLICATIONS + AFTER_A_CERTAIN_WITH_IMPLICATIONS + VARIES_BY_TYPE_OF_PROVIDER + NOT_ALLOWED_TO_LEAVE + OTHER + NOT_APPLICABLE +} + +enum ParticipantRequireFinancialGuaranteeType { + SURETY_BOND, + LETTER_OF_CREDIT, + ESCROW, + OTHER +} + +""" +PlanParticipantsAndProviders is the task list section that deals with information regarding all Providers and Participants +""" +type PlanParticipantsAndProviders { + id: UUID! + modelPlanID: UUID! + + #Page 1 + participants: [ParticipantsType!]! + medicareProviderType: String + isNewTypeOfProvidersOrSuppliers: Boolean + statesEngagement: String + participantsOther: String + participantsNote: String + participantsCurrentlyInModels: Boolean + participantsCurrentlyInModelsNote: String + modelApplicationLevel: String + + #Page 2 + expectedNumberOfParticipants: Int + estimateConfidence: ConfidenceType + confidenceNote: String + recruitmentMethod: RecruitmentType + recruitmentOther: String + recruitmentNote: String + selectionMethod: [ParticipantSelectionType!]! + selectionOther: String + selectionNote: String + + #Page 3 + participantAddedFrequency: [FrequencyType!]! + participantAddedFrequencyContinually: String + participantAddedFrequencyOther: String + participantAddedFrequencyNote: String + participantRemovedFrequency: [FrequencyType!]! + participantRemovedFrequencyContinually: String + participantRemovedFrequencyOther: String + participantRemovedFrequencyNote: String + communicationMethod: [ParticipantCommunicationType!]! + communicationMethodOther: String + communicationNote: String + riskType: [ParticipantRiskType!]! + riskOther: String + riskNote: String + willRiskChange: Boolean + willRiskChangeNote: String + + #Page 4 + participantRequireFinancialGuarantee: Boolean + participantRequireFinancialGuaranteeType: [ParticipantRequireFinancialGuaranteeType!]! + participantRequireFinancialGuaranteeOther: String + participantRequireFinancialGuaranteeNote: String + coordinateWork: Boolean + coordinateWorkNote: String + gainsharePayments: Boolean + gainsharePaymentsTrack: Boolean + gainsharePaymentsNote: String + gainsharePaymentsEligibility: [GainshareArrangementEligibility!]! + gainsharePaymentsEligibilityOther: String + participantsIds: [ParticipantsIDType!]! + participantsIdsOther: String + participantsIDSNote: String + + #Page 5 + providerAdditionFrequency: [FrequencyType!]! + providerAdditionFrequencyContinually: String + providerAdditionFrequencyOther: String + providerAdditionFrequencyNote: String + providerAddMethod: [ProviderAddType!]! + providerAddMethodOther: String + providerAddMethodNote: String + providerLeaveMethod: [ProviderLeaveType!]! + providerLeaveMethodOther: String + providerLeaveMethodNote: String + providerRemovalFrequency: [FrequencyType!]! + providerRemovalFrequencyContinually: String + providerRemovalFrequencyOther: String + providerRemovalFrequencyNote: String + providerOverlap: OverlapType + providerOverlapHierarchy: String + providerOverlapNote: String + + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + + readyForReviewBy: UUID + readyForReviewByUserAccount: UserAccount + readyForReviewDts: Time + readyForClearanceBy: UUID + readyForClearanceByUserAccount: UserAccount + readyForClearanceDts: Time + + status: TaskStatus! +} + +""" +PlanParticipantsAndProvidersChanges represents the possible changes you can make to a +providers and participants object when updating it. +Fields explicitly set with NULL will be unset, and omitted fields will be left unchanged. +https://gqlgen.com/reference/changesets/ +""" +input PlanParticipantsAndProvidersChanges @goModel(model: "map[string]interface{}") { + #Page 1 + participants: [ParticipantsType!] + medicareProviderType: String + isNewTypeOfProvidersOrSuppliers: Boolean + statesEngagement: String + participantsOther: String + participantsNote: String + participantsCurrentlyInModels: Boolean + participantsCurrentlyInModelsNote: String + modelApplicationLevel: String + + #Page 2 + expectedNumberOfParticipants: Int + estimateConfidence: ConfidenceType + confidenceNote: String + recruitmentMethod: RecruitmentType + recruitmentOther: String + recruitmentNote: String + selectionMethod: [ParticipantSelectionType!] + selectionOther: String + selectionNote: String + + #Page 3 + participantAddedFrequency: [FrequencyType!] + participantAddedFrequencyContinually: String + participantAddedFrequencyOther: String + participantAddedFrequencyNote: String + participantRemovedFrequency: [FrequencyType!] + participantRemovedFrequencyContinually: String + participantRemovedFrequencyOther: String + participantRemovedFrequencyNote: String + communicationMethod: [ParticipantCommunicationType!] + communicationMethodOther: String + communicationNote: String + riskType: [ParticipantRiskType!] + riskOther: String + riskNote: String + willRiskChange: Boolean + willRiskChangeNote: String + + #Page 4 + participantRequireFinancialGuarantee: Boolean + participantRequireFinancialGuaranteeType: [ParticipantRequireFinancialGuaranteeType!] + participantRequireFinancialGuaranteeOther: String + participantRequireFinancialGuaranteeNote: String + coordinateWork: Boolean + coordinateWorkNote: String + gainsharePayments: Boolean + gainsharePaymentsTrack: Boolean + gainsharePaymentsNote: String + gainsharePaymentsEligibility: [GainshareArrangementEligibility!] + gainsharePaymentsEligibilityOther: String + participantsIds: [ParticipantsIDType!] + participantsIdsOther: String + participantsIDSNote: String + + #Page 5 + providerAdditionFrequency: [FrequencyType!] + providerAdditionFrequencyContinually: String + providerAdditionFrequencyOther: String + providerAdditionFrequencyNote: String + providerAddMethod: [ProviderAddType!] + providerAddMethodOther: String + providerAddMethodNote: String + providerLeaveMethod: [ProviderLeaveType!] + providerLeaveMethodOther: String + providerLeaveMethodNote: String + providerRemovalFrequency: [FrequencyType!] + providerRemovalFrequencyContinually: String + providerRemovalFrequencyOther: String + providerRemovalFrequencyNote: String + providerOverlap: OverlapType + providerOverlapHierarchy: String + providerOverlapNote: String + + status: TaskStatusInput +} + +extend type Mutation { + updatePlanParticipantsAndProviders(id: UUID!, changes: PlanParticipantsAndProvidersChanges!): PlanParticipantsAndProviders! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_participants_and_providers_translation.graphql", Input: `""" +Represents plan participants and providers translation data +""" +type PlanParticipantsAndProvidersTranslation { + #Page 1 + participants: TranslationFieldWithOptions! @goTag(key: "db", value: "participants") + medicareProviderType: TranslationField! @goTag(key: "db", value: "medicare_provider_type") + isNewTypeOfProvidersOrSuppliers: TranslationFieldWithOptionsAndParent! @goTag(key: "db" value: "is_new_type_of_providers_or_suppliers") + statesEngagement: TranslationField! @goTag(key: "db", value: "states_engagement") + participantsOther: TranslationField! @goTag(key: "db", value: "participants_other") + participantsNote: TranslationField! @goTag(key: "db", value: "participants_note") + participantsCurrentlyInModels: TranslationFieldWithOptions! @goTag(key: "db", value: "participants_currently_in_models") + participantsCurrentlyInModelsNote: TranslationField! @goTag(key: "db", value: "participants_currently_in_models_note") + modelApplicationLevel: TranslationField! @goTag(key: "db", value: "model_application_level") + + #Page 2 + expectedNumberOfParticipants: TranslationField! @goTag(key: "db", value: "expected_number_of_participants") + estimateConfidence: TranslationFieldWithOptions! @goTag(key: "db", value: "estimate_confidence") + confidenceNote: TranslationField! @goTag(key: "db", value: "confidence_note") + recruitmentMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "recruitment_method") + recruitmentOther: TranslationField! @goTag(key: "db", value: "recruitment_other") + recruitmentNote: TranslationField! @goTag(key: "db", value: "recruitment_note") + selectionMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "selection_method") + selectionOther: TranslationField! @goTag(key: "db", value: "selection_other") + selectionNote: TranslationField! @goTag(key: "db", value: "selection_note") + + #Page 3 + participantAddedFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "participant_added_frequency") + participantAddedFrequencyContinually: TranslationField! @goTag(key: "db", value: "participant_added_frequency_continually") + participantAddedFrequencyOther: TranslationField! @goTag(key: "db", value: "participant_added_frequency_other") + participantAddedFrequencyNote: TranslationField! @goTag(key: "db", value: "participant_added_frequency_note") + participantRemovedFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "participant_removed_frequency") + participantRemovedFrequencyContinually: TranslationField! @goTag(key: "db", value: "participant_removed_frequency_continually") + participantRemovedFrequencyOther: TranslationField! @goTag(key: "db", value: "participant_removed_frequency_other") + participantRemovedFrequencyNote: TranslationField! @goTag(key: "db", value: "participant_removed_frequency_note") + communicationMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "communication_method") + communicationMethodOther: TranslationField! @goTag(key: "db", value: "communication_method_other") + communicationNote: TranslationField! @goTag(key: "db", value: "communication_note") + riskType: TranslationFieldWithOptions! @goTag(key: "db", value: "risk_type") + riskOther: TranslationField! @goTag(key: "db", value: "risk_other") + riskNote: TranslationField! @goTag(key: "db", value: "risk_note") + willRiskChange: TranslationFieldWithOptions! @goTag(key: "db", value: "will_risk_change") + willRiskChangeNote: TranslationField! @goTag(key: "db", value: "will_risk_change_note") + + #Page 4 + participantRequireFinancialGuarantee: TranslationFieldWithOptions! @goTag(key: "db", value: "participant_require_financial_guarantee") + participantRequireFinancialGuaranteeType: TranslationFieldWithOptions! @goTag(key: "db", value: "participant_require_financial_guarantee_type") + participantRequireFinancialGuaranteeOther: TranslationField! @goTag(key: "db", value: "participant_require_financial_guarantee_other") + participantRequireFinancialGuaranteeNote: TranslationField! @goTag(key: "db", value: "participant_require_financial_guarantee_note") + coordinateWork: TranslationFieldWithOptions! @goTag(key: "db", value: "coordinate_work") + coordinateWorkNote: TranslationField! @goTag(key: "db", value: "coordinate_work_note") + gainsharePayments: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "gainshare_payments") + gainsharePaymentsTrack: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "gainshare_payments_track") + gainsharePaymentsNote: TranslationField! @goTag(key: "db", value: "gainshare_payments_note") + gainsharePaymentsEligibility: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "gainshare_payments_eligibility") + gainsharePaymentsEligibilityOther: TranslationField! @goTag(key: "db", value: "gainshare_payments_eligibility_other") + participantsIds: TranslationFieldWithOptions! @goTag(key: "db", value: "participants_ids") + participantsIdsOther: TranslationField! @goTag(key: "db", value: "participants_ids_other") + participantsIDSNote: TranslationField! @goTag(key: "db", value: "participants_ids_note") + + #Page 5 + providerAdditionFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "provider_addition_frequency") + providerAdditionFrequencyContinually: TranslationField! @goTag(key: "db", value: "provider_addition_frequency_continually") + providerAdditionFrequencyOther: TranslationField! @goTag(key: "db", value: "provider_addition_frequency_other") + providerAdditionFrequencyNote: TranslationField! @goTag(key: "db", value: "provider_addition_frequency_note") + providerAddMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "provider_add_method") + providerAddMethodOther: TranslationField! @goTag(key: "db", value: "provider_add_method_other") + providerAddMethodNote: TranslationField! @goTag(key: "db", value: "provider_add_method_note") + providerLeaveMethod: TranslationFieldWithOptions! @goTag(key: "db", value: "provider_leave_method") + providerLeaveMethodOther: TranslationField! @goTag(key: "db", value: "provider_leave_method_other") + providerLeaveMethodNote: TranslationField! @goTag(key: "db", value: "provider_leave_method_note") + providerRemovalFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "provider_removal_frequency") + providerRemovalFrequencyContinually: TranslationField! @goTag(key: "db", value: "provider_removal_frequency_continually") + providerRemovalFrequencyOther: TranslationField! @goTag(key: "db", value: "provider_removal_frequency_other") + providerRemovalFrequencyNote: TranslationField! @goTag(key: "db", value: "provider_removal_frequency_note") + providerOverlap: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "provider_overlap") + providerOverlapHierarchy: TranslationFieldWithParent! @goTag(key: "db", value: "provider_overlap_hierarchy") + providerOverlapNote: TranslationField! @goTag(key: "db", value: "provider_overlap_note") + + readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") + readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") + readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") + readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +} +`, BuiltIn: false}, + {Name: "../schema/types/plan_payments.graphql", Input: `enum FundingSource { + PATIENT_PROTECTION_AFFORDABLE_CARE_ACT + MEDICARE_PART_A_HI_TRUST_FUND + MEDICARE_PART_B_SMI_TRUST_FUND + OTHER +} + +enum PayRecipient { + PROVIDERS + BENEFICIARIES + PARTICIPANTS + STATES + OTHER +} + +enum PayType { + CLAIMS_BASED_PAYMENTS + NON_CLAIMS_BASED_PAYMENTS + GRANTS +} + +enum ClaimsBasedPayType { + ADJUSTMENTS_TO_FFS_PAYMENTS + CARE_MANAGEMENT_HOME_VISITS + REDUCTIONS_TO_BENEFICIARY_COST_SHARING + SNF_CLAIMS_WITHOUT_3DAY_HOSPITAL_ADMISSIONS + TELEHEALTH_SERVICES_NOT_TRADITIONAL_MEDICARE + SERVICES_NOT_COVERED_THROUGH_TRADITIONAL_MEDICARE + PAYMENTS_FOR_POST_DISCHARGE_HOME_VISITS + OTHER +} + +enum NonClaimsBasedPayType { + ADVANCED_PAYMENT + BUNDLED_EPISODE_OF_CARE + CAPITATION_POPULATION_BASED_FULL + CAPITATION_POPULATION_BASED_PARTIAL + CARE_COORDINATION_MANAGEMENT_FEE + GLOBAL_BUDGET + INCENTIVE_PAYMENT + MAPD_SHARED_SAVINGS + SHARED_SAVINGS + OTHER +} + +enum ComplexityCalculationLevelType { + LOW + MIDDLE + HIGH +} + +""" +PlanPayments is the task list section that deals with information regarding Payments +""" +type PlanPayments { + id: UUID! + modelPlanID: UUID! + + # Page 1 + fundingSource: [FundingSource!]! + fundingSourcePatientProtectionInfo: String + fundingSourceMedicareAInfo: String + fundingSourceMedicareBInfo: String + fundingSourceOther: String + fundingSourceNote: String + fundingSourceR: [FundingSource!]! + fundingSourceRPatientProtectionInfo: String + fundingSourceRMedicareAInfo: String + fundingSourceRMedicareBInfo: String + fundingSourceROther: String + fundingSourceRNote: String + payRecipients: [PayRecipient!]! + payRecipientsOtherSpecification: String + payRecipientsNote: String + payType: [PayType!]! + payTypeNote: String + + # Page 2 + payClaims: [ClaimsBasedPayType!]! + payClaimsOther: String + payClaimsNote: String + shouldAnyProvidersExcludedFFSSystems: Boolean + shouldAnyProviderExcludedFFSSystemsNote: String + changesMedicarePhysicianFeeSchedule: Boolean + changesMedicarePhysicianFeeScheduleNote: String + affectsMedicareSecondaryPayerClaims: Boolean + affectsMedicareSecondaryPayerClaimsHow: String + affectsMedicareSecondaryPayerClaimsNote: String + payModelDifferentiation: String + + # Page 3 + willBePaymentAdjustments: Boolean + willBePaymentAdjustmentsNote: String + creatingDependenciesBetweenServices: Boolean + creatingDependenciesBetweenServicesNote: String + needsClaimsDataCollection: Boolean + needsClaimsDataCollectionNote: String + providingThirdPartyFile: Boolean + isContractorAwareTestDataRequirements: Boolean + + # Page 4 + beneficiaryCostSharingLevelAndHandling: String + waiveBeneficiaryCostSharingForAnyServices: Boolean + waiveBeneficiaryCostSharingServiceSpecification: String + waiverOnlyAppliesPartOfPayment: Boolean + waiveBeneficiaryCostSharingNote: String + + # Page 5 + nonClaimsPayments: [NonClaimsBasedPayType!]! + nonClaimsPaymentOther: String + nonClaimsPaymentsNote: String + paymentCalculationOwner: String + numberPaymentsPerPayCycle: String + numberPaymentsPerPayCycleNote: String + sharedSystemsInvolvedAdditionalClaimPayment: Boolean + sharedSystemsInvolvedAdditionalClaimPaymentNote: String + planningToUseInnovationPaymentContractor: Boolean + planningToUseInnovationPaymentContractorNote: String + + # Page 6 + expectedCalculationComplexityLevel: ComplexityCalculationLevelType + expectedCalculationComplexityLevelNote: String + claimsProcessingPrecedence: Boolean + claimsProcessingPrecedenceOther: String + claimsProcessingPrecedenceNote: String + canParticipantsSelectBetweenPaymentMechanisms: Boolean + canParticipantsSelectBetweenPaymentMechanismsHow: String + canParticipantsSelectBetweenPaymentMechanismsNote: String + anticipatedPaymentFrequency: [FrequencyType!]! + anticipatedPaymentFrequencyContinually: String + anticipatedPaymentFrequencyOther: String + anticipatedPaymentFrequencyNote: String + + # Page 7 + willRecoverPayments: Boolean + willRecoverPaymentsNote: String + anticipateReconcilingPaymentsRetrospectively: Boolean + anticipateReconcilingPaymentsRetrospectivelyNote: String + paymentReconciliationFrequency: [FrequencyType!]! + paymentReconciliationFrequencyContinually: String + paymentReconciliationFrequencyOther: String + paymentReconciliationFrequencyNote: String + paymentDemandRecoupmentFrequency: [FrequencyType!]! + paymentDemandRecoupmentFrequencyContinually: String + paymentDemandRecoupmentFrequencyOther: String + paymentDemandRecoupmentFrequencyNote: String + paymentStartDate: Time + paymentStartDateNote: String + + # Meta + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + + readyForReviewBy: UUID + readyForReviewByUserAccount: UserAccount + readyForReviewDts: Time + readyForClearanceBy: UUID + readyForClearanceByUserAccount: UserAccount + readyForClearanceDts: Time + + status: TaskStatus! +} + +input PlanPaymentsChanges @goModel(model: "map[string]interface{}") { + # Page 1 + fundingSource: [FundingSource!] + fundingSourcePatientProtectionInfo: String + fundingSourceMedicareAInfo: String + fundingSourceMedicareBInfo: String + fundingSourceOther: String + fundingSourceNote: String + fundingSourceR: [FundingSource!] + fundingSourceRPatientProtectionInfo: String + fundingSourceRMedicareAInfo: String + fundingSourceRMedicareBInfo: String + fundingSourceROther: String + fundingSourceRNote: String + payRecipients: [PayRecipient!] + payRecipientsOtherSpecification: String + payRecipientsNote: String + payType: [PayType!] + payTypeNote: String + + # Page 2 + payClaims: [ClaimsBasedPayType!] + payClaimsOther: String + payClaimsNote: String + shouldAnyProvidersExcludedFFSSystems: Boolean + shouldAnyProviderExcludedFFSSystemsNote: String + changesMedicarePhysicianFeeSchedule: Boolean + changesMedicarePhysicianFeeScheduleNote: String + affectsMedicareSecondaryPayerClaims: Boolean + affectsMedicareSecondaryPayerClaimsHow: String + affectsMedicareSecondaryPayerClaimsNote: String + payModelDifferentiation: String + + # Page 3 + willBePaymentAdjustments: Boolean + willBePaymentAdjustmentsNote: String + creatingDependenciesBetweenServices: Boolean + creatingDependenciesBetweenServicesNote: String + needsClaimsDataCollection: Boolean + needsClaimsDataCollectionNote: String + providingThirdPartyFile: Boolean + isContractorAwareTestDataRequirements: Boolean + + # Page 4 + beneficiaryCostSharingLevelAndHandling: String + waiveBeneficiaryCostSharingForAnyServices: Boolean + waiveBeneficiaryCostSharingServiceSpecification: String + waiverOnlyAppliesPartOfPayment: Boolean + waiveBeneficiaryCostSharingNote: String + + # Page 5 + nonClaimsPayments: [NonClaimsBasedPayType!] + nonClaimsPaymentOther: String + nonClaimsPaymentsNote: String + paymentCalculationOwner: String + numberPaymentsPerPayCycle: String + numberPaymentsPerPayCycleNote: String + sharedSystemsInvolvedAdditionalClaimPayment: Boolean + sharedSystemsInvolvedAdditionalClaimPaymentNote: String + planningToUseInnovationPaymentContractor: Boolean + planningToUseInnovationPaymentContractorNote: String + + # Page 6 + expectedCalculationComplexityLevel: ComplexityCalculationLevelType + expectedCalculationComplexityLevelNote: String + claimsProcessingPrecedence: Boolean + claimsProcessingPrecedenceOther: String + claimsProcessingPrecedenceNote: String + canParticipantsSelectBetweenPaymentMechanisms: Boolean + canParticipantsSelectBetweenPaymentMechanismsHow: String + canParticipantsSelectBetweenPaymentMechanismsNote: String + anticipatedPaymentFrequency: [FrequencyType!] + anticipatedPaymentFrequencyContinually: String + anticipatedPaymentFrequencyOther: String + anticipatedPaymentFrequencyNote: String + + # Page 7 + willRecoverPayments: Boolean + willRecoverPaymentsNote: String + anticipateReconcilingPaymentsRetrospectively: Boolean + anticipateReconcilingPaymentsRetrospectivelyNote: String + paymentReconciliationFrequency: [FrequencyType!] + paymentReconciliationFrequencyContinually: String + paymentReconciliationFrequencyOther: String + paymentReconciliationFrequencyNote: String + paymentDemandRecoupmentFrequency: [FrequencyType!] + paymentDemandRecoupmentFrequencyContinually: String + paymentDemandRecoupmentFrequencyOther: String + paymentDemandRecoupmentFrequencyNote: String + paymentStartDate: Time + paymentStartDateNote: String + + status: TaskStatusInput +} + +extend type Query { + planPayments(id: UUID!): PlanPayments! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + updatePlanPayments(id: UUID!, changes: PlanPaymentsChanges!): PlanPayments! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_payments_translation.graphql", Input: `""" +Represents payments translation data +""" +type PlanPaymentsTranslation { + # Page 1 + fundingSource: TranslationFieldWithOptions! @goTag(key: "db", value: "funding_source") + fundingSourcePatientProtectionInfo: TranslationField! @goTag(key: "db", value: "funding_source_patient_protection_info") + fundingSourceMedicareAInfo: TranslationField! @goTag(key: "db", value: "funding_source_medicare_a_info") + fundingSourceMedicareBInfo: TranslationField! @goTag(key: "db", value: "funding_source_medicare_b_info") + fundingSourceOther: TranslationField! @goTag(key: "db", value: "funding_source_other") + fundingSourceNote: TranslationField! @goTag(key: "db", value: "funding_source_note") + fundingSourceR: TranslationFieldWithOptions! @goTag(key: "db", value: "funding_source_r") + fundingSourceRPatientProtectionInfo: TranslationField! @goTag(key: "db", value: "funding_source_r_patient_protection_info") + fundingSourceRMedicareAInfo: TranslationField! @goTag(key: "db", value: "funding_source_r_medicare_a_info") + fundingSourceRMedicareBInfo: TranslationField! @goTag(key: "db", value: "funding_source_r_medicare_b_info") + fundingSourceROther: TranslationField! @goTag(key: "db", value: "funding_source_r_other") + fundingSourceRNote: TranslationField! @goTag(key: "db", value: "funding_source_r_note") + payRecipients: TranslationFieldWithOptions! @goTag(key: "db", value: "pay_recipients") + payRecipientsOtherSpecification: TranslationField! @goTag(key: "db", value: "pay_recipients_other_specification") + payRecipientsNote: TranslationField! @goTag(key: "db", value: "pay_recipients_note") + payType: TranslationFieldWithOptionsAndChildren! @goTag(key: "db", value: "pay_type") + payTypeNote: TranslationField! @goTag(key: "db", value: "pay_type_note") + + # Page 2 + payClaims: TranslationFieldWithOptions! @goTag(key: "db", value: "pay_claims") + payClaimsOther: TranslationField! @goTag(key: "db", value: "pay_claims_other") + payClaimsNote: TranslationField! @goTag(key: "db", value: "pay_claims_note") + shouldAnyProvidersExcludedFFSSystems: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "should_any_providers_excluded_ffs_systems") + shouldAnyProviderExcludedFFSSystemsNote: TranslationField! @goTag(key: "db", value: "should_any_providers_excluded_ffs_systems_note") + changesMedicarePhysicianFeeSchedule: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "changes_medicare_physician_fee_schedule") + changesMedicarePhysicianFeeScheduleNote: TranslationField! @goTag(key: "db", value: "changes_medicare_physician_fee_schedule_note") + affectsMedicareSecondaryPayerClaims: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "affects_medicare_secondary_payer_claims") + affectsMedicareSecondaryPayerClaimsHow: TranslationField! @goTag(key: "db", value: "affects_medicare_secondary_payer_claims_how") + affectsMedicareSecondaryPayerClaimsNote: TranslationField! @goTag(key: "db", value: "affects_medicare_secondary_payer_claims_note") + payModelDifferentiation: TranslationFieldWithParent! @goTag(key: "db", value: "pay_model_differentiation") + + # Page 3 + willBePaymentAdjustments:TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "will_be_payment_adjustments") + willBePaymentAdjustmentsNote: TranslationField! @goTag(key: "db", value: "will_be_payment_adjustments_note") + creatingDependenciesBetweenServices: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "creating_dependencies_between_services") + creatingDependenciesBetweenServicesNote: TranslationField! @goTag(key: "db", value: "creating_dependencies_between_services_note") + needsClaimsDataCollection: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "needs_claims_data_collection") + needsClaimsDataCollectionNote: TranslationField! @goTag(key: "db", value: "needs_claims_data_collection_note") + providingThirdPartyFile: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "providing_third_party_file") + isContractorAwareTestDataRequirements: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "is_contractor_aware_test_data_requirements") + + # Page 4 + beneficiaryCostSharingLevelAndHandling: TranslationFieldWithParent! @goTag(key: "db", value: "beneficiary_cost_sharing_level_and_handling") + waiveBeneficiaryCostSharingForAnyServices: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "waive_beneficiary_cost_sharing_for_any_services") + waiveBeneficiaryCostSharingServiceSpecification: TranslationField! @goTag(key: "db", value: "waive_beneficiary_cost_sharing_service_specification") + waiverOnlyAppliesPartOfPayment: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "waiver_only_applies_part_of_payment") + waiveBeneficiaryCostSharingNote: TranslationField! @goTag(key: "db", value: "waive_beneficiary_cost_sharing_note") + + # Page 5 + nonClaimsPayments: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "non_claims_payments") + nonClaimsPaymentOther: TranslationField! @goTag(key: "db", value: "non_claims_payments_other") + nonClaimsPaymentsNote: TranslationField! @goTag(key: "db", value: "non_claims_payments_note") + paymentCalculationOwner: TranslationFieldWithParent! @goTag(key: "db", value: "payment_calculation_owner") + numberPaymentsPerPayCycle: TranslationFieldWithParent! @goTag(key: "db", value: "number_payments_per_pay_cycle") + numberPaymentsPerPayCycleNote: TranslationField! @goTag(key: "db", value: "number_payments_per_pay_cycle_note") + sharedSystemsInvolvedAdditionalClaimPayment: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "shared_systems_involved_additional_claim_payment") + sharedSystemsInvolvedAdditionalClaimPaymentNote: TranslationField! @goTag(key: "db", value: "shared_systems_involved_additional_claim_payment_note") + planningToUseInnovationPaymentContractor: TranslationFieldWithOptionsAndParent! @goTag(key: "db", value: "planning_to_use_innovation_payment_contractor") + planningToUseInnovationPaymentContractorNote: TranslationField! @goTag(key: "db", value: "planning_to_use_innovation_payment_contractor_note") + + # Page 6 + expectedCalculationComplexityLevel: TranslationFieldWithOptions! @goTag(key: "db", value: "expected_calculation_complexity_level") + expectedCalculationComplexityLevelNote: TranslationField! @goTag(key: "db", value: "expected_calculation_complexity_level_note") + claimsProcessingPrecedence: TranslationFieldWithOptions! @goTag(key: "db", value: "claims_processing_precedence") + claimsProcessingPrecedenceOther: TranslationField! @goTag(key: "db", value: "claims_processing_precedence_other") + claimsProcessingPrecedenceNote: TranslationField! @goTag(key: "db", value: "claims_processing_precedence_note") + canParticipantsSelectBetweenPaymentMechanisms: TranslationFieldWithOptions! @goTag(key: "db", value: "can_participants_select_between_payment_mechanisms") + canParticipantsSelectBetweenPaymentMechanismsHow: TranslationField! @goTag(key: "db", value: "can_participants_select_between_payment_mechanisms_how") + canParticipantsSelectBetweenPaymentMechanismsNote: TranslationField! @goTag(key: "db", value: "can_participants_select_between_payment_mechanisms_note") + anticipatedPaymentFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "anticipated_payment_frequency") + anticipatedPaymentFrequencyContinually: TranslationField! @goTag(key: "db", value: "anticipated_payment_frequency_continually") + anticipatedPaymentFrequencyOther: TranslationField! @goTag(key: "db", value: "anticipated_payment_frequency_other") + anticipatedPaymentFrequencyNote: TranslationField! @goTag(key: "db", value: "anticipated_payment_frequency_note") + + # Page 7 + willRecoverPayments: TranslationFieldWithOptions! @goTag(key: "db", value: "will_recover_payments") + willRecoverPaymentsNote: TranslationField! @goTag(key: "db", value: "will_recover_payments_note") + anticipateReconcilingPaymentsRetrospectively: TranslationFieldWithOptions! @goTag(key: "db", value: "anticipate_reconciling_payments_retrospectively") + anticipateReconcilingPaymentsRetrospectivelyNote: TranslationField! @goTag(key: "db", value: "anticipate_reconciling_payments_retrospectively_note") + paymentReconciliationFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "payment_reconciliation_frequency") + paymentReconciliationFrequencyContinually: TranslationField! @goTag(key: "db", value: "payment_reconciliation_frequency_continually") + paymentReconciliationFrequencyOther: TranslationField! @goTag(key: "db", value: "payment_reconciliation_frequency_other") + paymentReconciliationFrequencyNote: TranslationField! @goTag(key: "db", value: "payment_reconciliation_frequency_note") + paymentDemandRecoupmentFrequency: TranslationFieldWithOptions! @goTag(key: "db", value: "payment_demand_recoupment_frequency") + paymentDemandRecoupmentFrequencyContinually: TranslationField! @goTag(key: "db", value: "payment_demand_recoupment_frequency_continually") + paymentDemandRecoupmentFrequencyOther: TranslationField! @goTag(key: "db", value: "payment_demand_recoupment_frequency_other") + paymentDemandRecoupmentFrequencyNote: TranslationField! @goTag(key: "db", value: "payment_demand_recoupment_frequency_note") + paymentStartDate: TranslationField! @goTag(key: "db", value: "payment_start_date") + paymentStartDateNote: TranslationField! @goTag(key: "db", value: "payment_start_date_note") + + readyForReviewBy: TranslationField! @goTag(key: "db", value: "ready_for_review_by") + readyForReviewDts: TranslationField! @goTag(key: "db", value: "ready_for_review_dts") + readyForClearanceBy: TranslationField! @goTag(key: "db", value: "ready_for_clearance_by") + readyForClearanceDts: TranslationField! @goTag(key: "db", value: "ready_for_clearance_dts") + status: TranslationFieldWithOptions! @goTag(key: "db", value: "status") +}`, BuiltIn: false}, + {Name: "../schema/types/plan_tdl.graphql", Input: `type PlanTDL { + id: UUID! + modelPlanID: UUID! + + idNumber: String! + dateInitiated: Time! + title: String! + note: String + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +input PlanTDLCreateInput { + modelPlanID: UUID! + + idNumber: String! + dateInitiated: Time! + title: String! + note: String +} + +input PlanTDLChanges @goModel(model: "map[string]interface{}") { + idNumber: String + dateInitiated: Time + title: String + note: String +} + +extend type Query { + planTDL(id: UUID!): PlanTDL! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + createPlanTDL(input: PlanTDLCreateInput!): PlanTDL! + @hasRole(role: MINT_USER) + + updatePlanTDL(id: UUID!, changes: PlanTDLChanges!): PlanTDL! + @hasRole(role: MINT_USER) + + deletePlanTDL(id: UUID!): PlanTDL! + @hasRole(role: MINT_USER) +}`, BuiltIn: false}, + {Name: "../schema/types/plan_tdl_translation.graphql", Input: `""" +Represents plan tdl translation data +""" + +type PlanTDLTranslation { + idNumber: TranslationField! @goTag(key: "db", value: "id_number") + title: TranslationField! @goTag(key: "db", value: "title") + dateInitiated: TranslationField! @goTag(key: "db", value: "date_initiated") + note: TranslationField! @goTag(key: "db", value: "note") +} +`, BuiltIn: false}, + {Name: "../schema/types/possible_operational_need.graphql", Input: `type PossibleOperationalNeed { + id: Int! + possibleSolutions: [PossibleOperationalSolution!]! + name: String! + key: OperationalNeedKey! + section: TaskListSection + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Query { + possibleOperationalNeeds: [PossibleOperationalNeed!]! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/possible_operational_solution.graphql", Input: `type PossibleOperationalSolution { + id: Int! + name: String! + key: OperationalSolutionKey! + treatAsOther: Boolean! + pointsOfContact: [PossibleOperationalSolutionContact!]! + primaryContact: PossibleOperationalSolutionContact + filterView: ModelViewFilter + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Query { + possibleOperationalSolutions: [PossibleOperationalSolution!]! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/possible_operational_solution_contact.graphql", Input: `""" +PossibleOperationalSolutionContact represents a contact for a possible operational solution +""" +type PossibleOperationalSolutionContact { + id: UUID! + possibleOperationalSolutionID: Int! + + name: String! + email: String! + isTeam: Boolean! + role: String + isPrimary: Boolean! + + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +}`, BuiltIn: false}, + {Name: "../schema/types/prepare_for_clearance.graphql", Input: `enum PrepareForClearanceStatus { + CANNOT_START + READY + IN_PROGRESS + READY_FOR_CLEARANCE +} + +type PrepareForClearance { + status: PrepareForClearanceStatus! + latestClearanceDts: Time +}`, BuiltIn: false}, + {Name: "../schema/types/report_a_problem.graphql", Input: `enum ReportAProblemSection { + READ_VIEW + TASK_LIST + IT_SOLUTIONS + HELP_CENTER + OTHER +} + +enum ReportAProblemSeverity { + PREVENTED_TASK + DELAYED_TASK + MINOR + OTHER +} + +input ReportAProblemInput { + isAnonymousSubmission: Boolean! + allowContact: Boolean + section: ReportAProblemSection + sectionOther: String + whatDoing: String + whatWentWrong: String + severity: ReportAProblemSeverity + severityOther: String +} + +extend type Mutation { + reportAProblem(input: ReportAProblemInput!): Boolean! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/scalars.graphql", Input: `""" +UUIDs are represented using 36 ASCII characters, for example B0511859-ADE6-4A67-8969-16EC280C0E1A +""" +scalar UUID + +""" +Time values are represented as strings using RFC3339 format, for example 2019-10-12T07:20:50G.52Z +""" +scalar Time + +""" +Maps an arbitrary GraphQL value to a map[string]interface{} Go type. +""" +scalar Map + +""" +TaggedHTML represents an input type for HTML that could also include tags that reference another entity +""" +scalar TaggedHTML + +""" +https://gqlgen.com/reference/file-upload/ +Represents a multipart file upload +""" +scalar Upload + +""" +https://gqlgen.com/reference/scalars/#any +Maps an arbitrary GraphQL value to a interface{} Go type. +""" +scalar Any +`, BuiltIn: false}, + {Name: "../schema/types/send_feedback_email.graphql", Input: `enum MintUses { + VIEW_MODEL + EDIT_MODEL + SHARE_MODEL + TRACK_SOLUTIONS + CONTRIBUTE_DISCUSSIONS + VIEW_HELP + OTHER +} + +enum EaseOfUse { + AGREE + DISAGREE + UNSURE +} + +enum SatisfactionLevel { + VERY_SATISFIED + SATISFIED + NEUTRAL + DISSATISFIED + VERY_DISSATISFIED +} + +""" +The inputs to the user feedback form +""" +input SendFeedbackEmailInput { + isAnonymousSubmission: Boolean! + allowContact: Boolean + cmsRole: String + mintUsedFor: [MintUses!] + mintUsedForOther: String + systemEasyToUse: EaseOfUse + systemEasyToUseOther: String + howSatisfied: SatisfactionLevel + howCanWeImprove: String +} + +extend type Mutation { + """ + This mutation sends feedback about the MINT product to the MINT team + """ + sendFeedbackEmail(input: SendFeedbackEmailInput!): Boolean! +}`, BuiltIn: false}, + {Name: "../schema/types/shared_enums.graphql", Input: `enum FrequencyType { + ANNUALLY + SEMIANNUALLY + QUARTERLY + MONTHLY + CONTINUALLY + OTHER +} + +enum YesNoOtherType { + YES + NO + OTHER +} + +enum OverlapType { + YES_NEED_POLICIES + YES_NO_ISSUES + NO +} + +enum TaskStatus { + READY + IN_PROGRESS + READY_FOR_REVIEW + READY_FOR_CLEARANCE +} + +enum ConfidenceType { + NOT_AT_ALL + SLIGHTLY + FAIRLY + COMPLETELY +} + +enum TaskStatusInput { + IN_PROGRESS + READY_FOR_REVIEW + READY_FOR_CLEARANCE +} + +enum TaskListSection { + BASICS, + GENERAL_CHARACTERISTICS, + PARTICIPANTS_AND_PROVIDERS, + BENEFICIARIES, + OPERATIONS_EVALUATION_AND_LEARNING, + PAYMENT, + PREPARE_FOR_CLEARANCE +} + +enum OperationalNeedKey{ + MANAGE_CD + REV_COL_BIDS + UPDATE_CONTRACT + RECRUIT_PARTICIPANTS + REV_SCORE_APP + APP_SUPPORT_CON + COMM_W_PART + MANAGE_PROV_OVERLAP + MANAGE_BEN_OVERLAP + HELPDESK_SUPPORT + IDDOC_SUPPORT + ESTABLISH_BENCH + PROCESS_PART_APPEALS + ACQUIRE_AN_EVAL_CONT + DATA_TO_MONITOR + DATA_TO_SUPPORT_EVAL + CLAIMS_BASED_MEASURES + QUALITY_PERFORMANCE_SCORES + SEND_REPDATA_TO_PART + ACQUIRE_A_LEARN_CONT + PART_TO_PART_COLLAB + EDUCATE_BENEF + ADJUST_FFS_CLAIMS + MANAGE_FFS_EXCL_PAYMENTS + MAKE_NON_CLAIMS_BASED_PAYMENTS + COMPUTE_SHARED_SAVINGS_PAYMENT + RECOVER_PAYMENTS + SIGN_PARTICIPATION_AGREEMENTS + VET_PROVIDERS_FOR_PROGRAM_INTEGRITY + UTILIZE_QUALITY_MEASURES_DEVELOPMENT_CONTRACTOR + IT_PLATFORM_FOR_LEARNING +} + +enum DiscussionUserRole { + CMS_SYSTEM_SERVICE_TEAM, + LEADERSHIP, + MEDICARE_ADMINISTRATIVE_CONTRACTOR, + MINT_TEAM, + IT_LEAD, + MODEL_LEAD, + MODEL_TEAM, + SHARED_SYSTEM_MAINTAINER, + SOLUTION_ARCHITECT, + NONE_OF_THE_ABOVE, +} + +enum OperationalSolutionKey{ + INNOVATION + ACO_OS + APPS + CDX + CCW + CMS_BOX + CMS_QUALTRICS + CBOSC + CONTRACTOR + CPI_VETTING + CROSS_MODEL_CONTRACT + EFT + EXISTING_CMS_DATA_AND_PROCESS + EDFR + GOVDELIVERY + GS + HDR + HPMS + HIGLAS + IPC + IDR + INTERNAL_STAFF + LDG + LV + MDM_POR + MDM_NCBP + MARX + OTHER_NEW_PROCESS + OUTLOOK_MAILBOX + QV + RMADA + ARS + CONNECT + LOI + POST_PORTAL + RFA + SHARED_SYSTEMS + BCDA + ISP + MIDS + MODEL_SPACE +} + +""" +A user role associated with a job code +""" +enum Role { + """ + A basic MINT user + """ + MINT_USER + + """ + A MINT assessment team user + """ + MINT_ASSESSMENT + + """ + A MINT MAC user + """ + MINT_MAC +} + + +""" +These represent all the possible tables in the database, in the public schema. +""" +enum TableName { + activity + analyzed_audit + discussion_reply + existing_model + existing_model_link + model_plan + nda_agreement + operational_need + operational_solution + operational_solution_subtask + plan_basics + plan_beneficiaries + plan_collaborator + plan_cr + plan_data_exchange_approach + plan_discussion + plan_document + plan_document_solution_link + plan_favorite + plan_general_characteristics + plan_ops_eval_and_learning + plan_participants_and_providers + plan_payments + plan_tdl + possible_need_solution_link + possible_operational_need + possible_operational_solution + possible_operational_solution_contact + tag + translated_audit + translated_audit_field + translated_audit_queue + user_account + user_notification + user_notification_preferences + user_view_customization +}`, BuiltIn: false}, + {Name: "../schema/types/tag.graphql", Input: `enum TagType { + USER_ACCOUNT + POSSIBLE_SOLUTION +} + +""" +TaggedEntity is the actual object represented by a tag in the data base. +""" +union TaggedEntity = UserAccount | PossibleOperationalSolution + +""" +TaggedContent represents content that has a tag in it. It is composed of the raw tag text, as well as the array of possible tags +""" +type TaggedContent { + """ + RawContent is HTML. It is sanitized on the backend + """ + rawContent: String! + tags: [Tag!]! +} + +""" +Tag represents an entity tagged in the database +""" +type Tag { + id: UUID! + tagType: TagType! + taggedField: String! + taggedContentTable: String! + taggedContentID: UUID! + entityUUID: UUID + entityIntID: Int + + entity: TaggedEntity + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +}`, BuiltIn: false}, + {Name: "../schema/types/translated_audit.graphql", Input: `""" +TranslatedAuditMetaData is a type that represents all the data that can be captured in a Translated audit +""" +union TranslatedAuditMetaData = TranslatedAuditMetaBaseStruct | TranslatedAuditMetaGeneric | TranslatedAuditMetaDiscussionReply +| TranslatedAuditMetaOperationalNeed | TranslatedAuditMetaOperationalSolution | TranslatedAuditMetaOperationalSolutionSubtask +| TranslatedAuditMetaDocumentSolutionLink + + +type TranslatedAuditMetaBaseStruct { + version: Int! + tableName: TableName! +} +type TranslatedAuditMetaGeneric { + version: Int! + tableName: TableName! + relation: String! + """ + Relation content can be nil under certain situations, for example if a record was deleted before the audit was translated + """ + relationContent: String +} + +""" +TranslatedAuditMetaDiscussionReply is the meta data type that is provided when a translated audit is for a discussion reply +""" +type TranslatedAuditMetaDiscussionReply { + version: Int! + tableName: TableName! + discussionID: UUID! + discussionContent: String! + numberOfReplies: Int! +} + +""" +TranslatedAuditMetaDiscussionReply is the meta data type that is provided when a translated audit is for an operational need +""" +type TranslatedAuditMetaOperationalNeed { + version: Int! + tableName: TableName! + needName: String! + isOther: Boolean! +} +""" +TranslatedAuditMetaOperationalSolution is the meta data type that is provided when a translated audit is for an operational solution +""" +type TranslatedAuditMetaOperationalSolution { + version: Int! + tableName: TableName! + solutionName: String! + solutionOtherHeader: String + solutionIsOther: Boolean! + numberOfSubtasks: Int! + needName: String! + needIsOther: Boolean! + """ + SolutionStatus is the translated value for the type of solution + """ + solutionStatus: String! + solutionMustStart: Time + solutionMustFinish: Time +} +""" +TranslatedAuditMetaOperationalSolutionSubtask is the meta data type that is provided when a translated audit is for an operational solution subtask +""" +type TranslatedAuditMetaOperationalSolutionSubtask { + version: Int! + tableName: TableName! + solutionName: String! + solutionOtherHeader: String + solutionIsOther: Boolean! + numberOfSubtasks: Int! + needName: String! + needIsOther: Boolean! + """ + The name of the subtask. If a subtask is updated, and then deleted before being translated, it is possible for this field to be nil. + """ + subtaskName: String +} + +""" +TranslatedAuditMetaDocumentSolutionLink is the meta data type for a document solution link + +""" +type TranslatedAuditMetaDocumentSolutionLink { + version: Int! + tableName: TableName! + solutionName: String! + solutionOtherHeader: String + solutionIsOther: Boolean! + needName: String! + needIsOther: Boolean! + + # These fields are only present if the document wasn't deleted + + """ + Document Name will be present if the document is still present and not deleted + """ + documentName: String + """ + Document type is the translated value of the document type enum + """ + documentType: String + documentOtherType: String + documentNote: String + """ + Document URL will only be visible if the user is a collaborator, or has assessment permission + """ + documentURL: String + """ + Document Visibility is the translated value of the restricted bool for a document + """ + documentVisibility: String + documentRestricted: Boolean + + + """ + Document ID will always be present, regardless of if a document was deleted or not + """ + documentID: UUID! +} + + +enum TranslatedAuditMetaDataType { + GENERIC + BASE + DISCUSSION_REPLY + OPERATIONAL_NEED + OPERATIONAL_SOLUTION + OPERATIONAL_SOLUTION_SUBTASK + DOCUMENT_SOLUTION_LINK +} + +enum DatabaseOperation { + INSERT + UPDATE + DELETE + TRUNCATE +} + +""" +TranslatedAudit represent a point in time change made to part of application. +""" +type TranslatedAudit { + id: UUID! + modelPlanID: UUID! + + tableID: Int! + tableName: TableName! + primaryKey: UUID! + + date: Time! + action: DatabaseOperation! + + """ + Restricted denotes if this audit should only be visible to users with specific permissions. Currently, that means they are a collaborator or an assessment user + """ + restricted: Boolean! + + + actorID: UUID! + """ + The Common name of the actor who made the changes. This comes from the user account table. + """ + actorName: String! + """ + The id of the audit.Change record that was translated. + """ + changeID: Int! # This points to a specific audit change. + """ + The type of meta data that is stored for this record + """ + metaDataType: TranslatedAuditMetaDataType + """ + The actual meta data stored for this record + """ + metaData: TranslatedAuditMetaData + + """ + The specific fields that were changed by the transaction + """ + translatedFields: [TranslatedAuditField!]! + + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} +enum AuditFieldChangeType { + ANSWERED + UPDATED + REMOVED + """ + This type should not appear for all intents and purposes. It shows up if a value changes from null to empty array or vice versa. + """ + UNCHANGED +} + +enum TranslationQuestionType { + OTHER + NOTE +} + + +type TranslatedAuditField { + id: UUID! + translatedAuditID: UUID! + + """ + This represents whether a field was answered, updated, or had the answer removed + """ + changeType: AuditFieldChangeType! + + dataType: TranslationDataType! + formType: TranslationFormType! + + fieldName: String! + fieldNameTranslated: String! + """ + Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 + """ + fieldOrder: Float! + """ + The label for the parent question that this question refers to + """ + referenceLabel: String + """ + Specifies if this is a specific category of question. Needed for conditionally rendering note details etc + """ + questionType: TranslationQuestionType + """ + Translated Label for questions that are no longer applicable + """ + notApplicableQuestions: [String!] + + + + old: Any + oldTranslated: Any + new: Any + newTranslated: Any + + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +extend type Query { + """ + TranslatedAuditCollection returns a collection of translated audits, with access dependant on who is viewing the audits. + if a user has privileged access, they will see audit changes that are restricted, otherwise only unrestricted + Optional Params + limit: this controls how many records will be returned at once. A null entry will return all records + offset: how many records to skip before returning results. If null, no records will be skipped. + """ + translatedAuditCollection(modelPlanID: UUID!, limit: Int, offset: Int): [TranslatedAudit!] + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} `, BuiltIn: false}, + {Name: "../schema/types/translation.graphql", Input: `# Base types that represents FE translation structure +# Translations are exported from FE for change history, and mapped to these types on the BE + + +""" +Represents the data type of the translation field +""" +enum TranslationDataType { + STRING + NUMBER + BOOLEAN + DATE + ENUM + OBJECT + UUID +} + +""" +Represents the FORM type of the translation field +""" +enum TranslationFormType { + TEXT + TEXTAREA + NUMBER + BOOLEAN + RADIO + CHECKBOX + SELECT + MULTISELECT + DATEPICKER + RANGEINPUT +} + +""" +Represents a translation question with no options +""" +type TranslationField { + gqlField: String! + goField: String! + dbField: String! + label: String! + readonlyLabel: String + sublabel: String + multiSelectLabel: String + isArray: Boolean + dataType: TranslationDataType! + formType: TranslationFormType! + isNote: Boolean + """ + Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 + """ + order: Float! + """ + Is a question a followup to another that doesn't designate it's own readonly question/line + """ + isOtherType: Boolean + """ + Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context + """ + otherParentField: String + """ + Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' + """ + parentReferencesLabel: String + """ + Labels specifically for export/change history. Takes priority over all other labels + """ + exportLabel: String + """ + Table reference for fields that are of dataType UUID and reference a table in the database + """ + tableReference: TableName +} + +""" +Represents a translation question with options +""" +type TranslationFieldWithOptions { + gqlField: String! + goField: String! + dbField: String! + label: String! + readonlyLabel: String + sublabel: String + multiSelectLabel: String + isArray: Boolean + dataType: TranslationDataType! + formType: TranslationFormType! + isNote: Boolean + """ + Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 + """ + order: Float! + """ + Is a question a followup to another that doesn't designate it's own readonly question/line + """ + isOtherType: Boolean + """ + Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context + """ + otherParentField: String + """ + Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' + """ + parentReferencesLabel: String + """ + Labels specifically for export/change history. Takes priority over all other labels + """ + exportLabel: String + """ + Table reference for fields that are of dataType UUID and reference a table in the database + """ + tableReference: TableName + options: Map! + exportOptions: Map +} + +""" +Represents a translation question with no options and a parent +""" +type TranslationFieldWithParent { + gqlField: String! + goField: String! + dbField: String! + label: String! + readonlyLabel: String + sublabel: String + multiSelectLabel: String + isArray: Boolean + dataType: TranslationDataType! + formType: TranslationFormType! + isNote: Boolean + """ + Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 + """ + order: Float! + """ + Is a question a followup to another that doesn't designate it's own readonly question/line + """ + isOtherType: Boolean + """ + Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context + """ + otherParentField: String + """ + Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' + """ + parentReferencesLabel: String + """ + Labels specifically for export/change history. Takes priority over all other labels + """ + exportLabel: String + """ + Table reference for fields that are of dataType UUID and reference a table in the database + """ + tableReference: TableName + parentRelation: TranslationField! +} + +""" +Represents a translation question with options and child/children +""" +type TranslationFieldWithOptionsAndChildren { + gqlField: String! + goField: String! + dbField: String! + label: String! + readonlyLabel: String + sublabel: String + multiSelectLabel: String + isArray: Boolean + dataType: TranslationDataType! + formType: TranslationFormType! + isNote: Boolean + """ + Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 + """ + order: Float! + """ + Is a question a followup to another that doesn't designate it's own readonly question/line + """ + isOtherType: Boolean + """ + Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context + """ + otherParentField: String + """ + Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' + """ + parentReferencesLabel: String + """ + Labels specifically for export/change history. Takes priority over all other labels + """ + exportLabel: String + """ + Table reference for fields that are of dataType UUID and reference a table in the database + """ + tableReference: TableName + options: Map! + exportOptions: Map + childRelation: Map! +} + +""" +Represents a translation question with options and parent +""" +type TranslationFieldWithOptionsAndParent { + gqlField: String! + goField: String! + dbField: String! + label: String! + readonlyLabel: String + sublabel: String + multiSelectLabel: String + isArray: Boolean + dataType: TranslationDataType! + formType: TranslationFormType! + isNote: Boolean + """ + Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 + """ + order: Float! + """ + Is a question a followup to another that doesn't designate it's own readonly question/line + """ + isOtherType: Boolean + """ + Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context + """ + otherParentField: String + """ + Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' + """ + parentReferencesLabel: String + """ + Labels specifically for export/change history. Takes priority over all other labels + """ + exportLabel: String + """ + Table reference for fields that are of dataType UUID and reference a table in the database + """ + tableReference: TableName + options: Map! + exportOptions: Map + parentRelation: TranslationFieldWithOptionsAndChildren! +} + +""" +Represents a translation question with options and parent and children +""" +type TranslationFieldWithParentAndChildren { + gqlField: String! + goField: String! + dbField: String! + label: String! + readonlyLabel: String + sublabel: String + multiSelectLabel: String + isArray: Boolean + dataType: TranslationDataType! + formType: TranslationFormType! + isNote: Boolean + """ + Designates the order of the question in the form. Uses integer as page and question order uses hundreths place. Ex: 1.01, 1.02, 2.01, 2.02 + """ + order: Float! + """ + Is a question a followup to another that doesn't designate it's own readonly question/line + """ + isOtherType: Boolean + """ + Field name for the parent question for fields that represent Other, Please specify, etc. Used in change history to render parent question for context + """ + otherParentField: String + """ + Label for fields that reference more than one parent - Ex: Notes - 'Note for Model Basics' + """ + parentReferencesLabel: String + """ + Labels specifically for export/change history. Takes priority over all other labels + """ + exportLabel: String + """ + Table reference for fields that are of dataType UUID and reference a table in the database + """ + tableReference: TableName + options: Map! + exportOptions: Map + parentRelation: TranslationFieldWithOptionsAndChildren! + childRelation: Map! +} + +""" + Represents a translation of enum values. generalName is the human readable name of the enum value, groupedName is an optional field if usually referenced by a difference table/name +""" +type EnumTranslation { + generalName: String! + groupedName: String +} + + +`, BuiltIn: false}, + {Name: "../schema/types/user_account.graphql", Input: `type UserAccount { + id: UUID! + username: String! + isEUAID: Boolean + commonName: String! + locale: String! + email: String! + givenName: String! + familyName: String! + zoneInfo: String! + hasLoggedIn: Boolean +} + +extend type Query { + userAccount(username: String!): UserAccount! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/user_info.graphql", Input: `""" +Represents a person response from the Okta API +""" +type UserInfo { + firstName: String! + lastName: String! + displayName: String! + email: String! + username: String! +} + +extend type Query { + searchOktaUsers(searchTerm: String!): [UserInfo!]! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, + {Name: "../schema/types/user_notification.graphql", Input: ` +""" +UserNotification represents a notification about a specific Activity +""" +type UserNotification { + id: UUID! + activityID: UUID! + userID: UUID! + isRead: Boolean! + inAppSent: Boolean! + emailSent: Boolean! + activity: Activity! + + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time + +} + +""" +This is a wrapper for all information for a user +""" +type UserNotifications { +""" +This returns the number of unread notifications +""" +numUnreadNotifications: Int! +""" +This includes all notifications +""" +notifications: [UserNotification!]! +""" +This renders only the unread notifications +""" +unreadNotifications: [UserNotification!]! +} + + +extend type Mutation { +""" +Marks a single notification as read. It requires that the notification be owned by the context of the user sending this request, or it will fail +""" +markNotificationAsRead(notificationID: UUID!): UserNotification! +""" +Marks all notifications for the current user as read, and returns the updated notifications +""" +markAllNotificationsAsRead: [UserNotification!]! + + +} +`, BuiltIn: false}, + {Name: "../schema/types/user_notification_preferences.graphql", Input: `enum UserNotificationPreferenceFlag { + IN_APP, + EMAIL +} + +enum DatesChangedNotificationType { + ALL_MODELS, + FOLLOWED_MODELS, + MY_MODELS, +} + +enum DataExchangeApproachMarkedCompleteNotificationType { + ALL_MODELS, + FOLLOWED_MODELS, + MY_MODELS, +} + + +""" +UserNotificationPreferences represents a users preferences about what type and where to receive a notification +""" +type UserNotificationPreferences { + id: UUID! + userID: UUID! + + dailyDigestComplete: [UserNotificationPreferenceFlag!]! + + addedAsCollaborator: [UserNotificationPreferenceFlag!]! + + taggedInDiscussion: [UserNotificationPreferenceFlag!]! + + taggedInDiscussionReply: [UserNotificationPreferenceFlag!]! + + newDiscussionReply: [UserNotificationPreferenceFlag!]! + + modelPlanShared: [UserNotificationPreferenceFlag!]! + + newModelPlan: [UserNotificationPreferenceFlag!]! + + datesChanged: [UserNotificationPreferenceFlag!]! + datesChangedNotificationType: DatesChangedNotificationType + + dataExchangeApproachMarkedComplete: [UserNotificationPreferenceFlag!]! + dataExchangeApproachMarkedCompleteNotificationType: DataExchangeApproachMarkedCompleteNotificationType + + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + + +""" +UserNotificationPreferencesChanges represents the ways that a UserNotifications Preferences object can be updated +""" +input UserNotificationPreferencesChanges @goModel(model: "map[string]interface{}") { + + dailyDigestComplete: [UserNotificationPreferenceFlag!] + + addedAsCollaborator: [UserNotificationPreferenceFlag!] + + taggedInDiscussion: [UserNotificationPreferenceFlag!] + + taggedInDiscussionReply: [UserNotificationPreferenceFlag!] + + newDiscussionReply: [UserNotificationPreferenceFlag!] + + modelPlanShared: [UserNotificationPreferenceFlag!] + + newModelPlan: [UserNotificationPreferenceFlag!] + + datesChanged: [UserNotificationPreferenceFlag!] + datesChangedNotificationType: DatesChangedNotificationType + + dataExchangeApproachMarkedComplete: [UserNotificationPreferenceFlag!] + dataExchangeApproachMarkedCompleteNotificationType: DataExchangeApproachMarkedCompleteNotificationType +} + +extend type Mutation { + +""" +Sets the notification preferences of a user. +""" +updateUserNotificationPreferences(changes: UserNotificationPreferencesChanges!): UserNotificationPreferences! +}`, BuiltIn: false}, + {Name: "../schema/types/user_view_customization.graphql", Input: `enum ViewCustomizationType { + MY_MODEL_PLANS + ALL_MODEL_PLANS + FOLLOWED_MODELS + MODELS_WITH_CR_TDL + MODELS_BY_OPERATIONAL_SOLUTION + MODELS_APPROACHING_CLEARANCE +} + +type UserViewCustomization { + id: UUID! + userId: UUID! + userAccount: UserAccount! + viewCustomization: [ViewCustomizationType!]! + possibleOperationalSolutions: [OperationalSolutionKey!]! + createdBy: UUID! + createdByUserAccount: UserAccount! + createdDts: Time! + modifiedBy: UUID + modifiedByUserAccount: UserAccount + modifiedDts: Time +} + +input UserViewCustomizationChanges @goModel(model: "map[string]interface{}") { + viewCustomization: [ViewCustomizationType!] + possibleOperationalSolutions: [OperationalSolutionKey!] +} + +extend type Query { + userViewCustomization: UserViewCustomization! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +} + +extend type Mutation { + updateUserViewCustomization(changes: UserViewCustomizationChanges!): UserViewCustomization! + @hasAnyRole(roles: [MINT_USER, MINT_MAC]) +}`, BuiltIn: false}, +} +var parsedSchema = gqlparser.MustLoadSchema(sources...) + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +func (ec *executionContext) dir_hasAnyRole_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 []model.Role + if tmp, ok := rawArgs["roles"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roles")) + arg0, err = ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, tmp) + if err != nil { + return nil, err + } + } + args["roles"] = arg0 + return args, nil +} + +func (ec *executionContext) dir_hasRole_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.Role + if tmp, ok := rawArgs["role"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + arg0, err = ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, tmp) + if err != nil { + return nil, err + } + } + args["role"] = arg0 + return args, nil +} + +func (ec *executionContext) field_ModelPlan_nameHistory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 models.SortDirection + if tmp, ok := rawArgs["sort"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sort")) + arg0, err = ec.unmarshalNSortDirection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐSortDirection(ctx, tmp) + if err != nil { + return nil, err + } + } + args["sort"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_addOrUpdateCustomOperationalNeed_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 string + if tmp, ok := rawArgs["customNeedType"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("customNeedType")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["customNeedType"] = arg1 + var arg2 bool + if tmp, ok := rawArgs["needed"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("needed")) + arg2, err = ec.unmarshalNBoolean2bool(ctx, tmp) + if err != nil { + return nil, err + } + } + args["needed"] = arg2 + return args, nil +} + +func (ec *executionContext) field_Mutation_addPlanFavorite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_agreeToNDA_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 bool + if tmp, ok := rawArgs["agree"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("agree")) + arg0, err = ec.unmarshalNBoolean2bool(ctx, tmp) + if err != nil { + return nil, err + } + } + args["agree"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_createDiscussionReply_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.DiscussionReplyCreateInput + if tmp, ok := rawArgs["input"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + arg0, err = ec.unmarshalNDiscussionReplyCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDiscussionReplyCreateInput(ctx, tmp) + if err != nil { + return nil, err + } + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_createMTOCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 string + if tmp, ok := rawArgs["name"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["name"] = arg1 + var arg2 *uuid.UUID + if tmp, ok := rawArgs["parentID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentID")) + arg2, err = ec.unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["parentID"] = arg2 + return args, nil +} + +func (ec *executionContext) field_Mutation_createMTOMilestoneCommon_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 models.MTOCommonMilestoneKey + if tmp, ok := rawArgs["commonMilestoneKey"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("commonMilestoneKey")) + arg1, err = ec.unmarshalNMTOCommonMilestoneKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx, tmp) + if err != nil { + return nil, err + } + } + args["commonMilestoneKey"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_createMTOMilestoneCustom_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 string + if tmp, ok := rawArgs["name"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["name"] = arg1 + var arg2 *uuid.UUID + if tmp, ok := rawArgs["mtoCategoryID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mtoCategoryID")) + arg2, err = ec.unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["mtoCategoryID"] = arg2 + return args, nil +} + +func (ec *executionContext) field_Mutation_createMTOSolutionCommon_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 models.MTOCommonSolutionKey + if tmp, ok := rawArgs["key"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) + arg1, err = ec.unmarshalNMTOCommonSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx, tmp) + if err != nil { + return nil, err + } + } + args["key"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_createMTOSolutionCustom_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 models.MTOSolutionType + if tmp, ok := rawArgs["solutionType"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionType")) + arg1, err = ec.unmarshalNMTOSolutionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx, tmp) + if err != nil { + return nil, err + } + } + args["solutionType"] = arg1 + var arg2 string + if tmp, ok := rawArgs["name"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + arg2, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["name"] = arg2 + var arg3 string + if tmp, ok := rawArgs["pocName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pocName")) + arg3, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["pocName"] = arg3 + var arg4 string + if tmp, ok := rawArgs["pocEmail"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pocEmail")) + arg4, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["pocEmail"] = arg4 + return args, nil +} + +func (ec *executionContext) field_Mutation_createModelPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["modelName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelName"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_createOperationalSolutionSubtasks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["solutionID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["solutionID"] = arg0 + var arg1 []*model.CreateOperationalSolutionSubtaskInput + if tmp, ok := rawArgs["inputs"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inputs")) + arg1, err = ec.unmarshalNCreateOperationalSolutionSubtaskInput2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCreateOperationalSolutionSubtaskInputᚄ(ctx, tmp) + if err != nil { + return nil, err + } + } + args["inputs"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_createOperationalSolution_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["operationalNeedID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationalNeedID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["operationalNeedID"] = arg0 + var arg1 *models.OperationalSolutionKey + if tmp, ok := rawArgs["solutionType"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionType")) + arg1, err = ec.unmarshalOOperationalSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, tmp) + if err != nil { + return nil, err + } + } + args["solutionType"] = arg1 + var arg2 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg2, err = ec.unmarshalNOperationalSolutionChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg2 + return args, nil +} + +func (ec *executionContext) field_Mutation_createPlanCR_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.PlanCRCreateInput + if tmp, ok := rawArgs["input"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + arg0, err = ec.unmarshalNPlanCRCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanCRCreateInput(ctx, tmp) + if err != nil { + return nil, err + } + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_createPlanCollaborator_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.PlanCollaboratorCreateInput + if tmp, ok := rawArgs["input"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + arg0, err = ec.unmarshalNPlanCollaboratorCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanCollaboratorCreateInput(ctx, tmp) + if err != nil { + return nil, err + } + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_createPlanDiscussion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.PlanDiscussionCreateInput + if tmp, ok := rawArgs["input"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + arg0, err = ec.unmarshalNPlanDiscussionCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDiscussionCreateInput(ctx, tmp) + if err != nil { + return nil, err + } + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_createPlanDocumentSolutionLinks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["solutionID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["solutionID"] = arg0 + var arg1 []uuid.UUID + if tmp, ok := rawArgs["documentIDs"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIDs")) + arg1, err = ec.unmarshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, tmp) + if err != nil { + return nil, err + } + } + args["documentIDs"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_createPlanTDL_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.PlanTDLCreateInput + if tmp, ok := rawArgs["input"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + arg0, err = ec.unmarshalNPlanTDLCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanTDLCreateInput(ctx, tmp) + if err != nil { + return nil, err + } + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_deleteOperationalSolutionSubtask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_deletePlanCR_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_deletePlanCollaborator_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_deletePlanDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_deletePlanFavorite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_deletePlanTDL_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_linkNewPlanDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.PlanDocumentLinkInput + if tmp, ok := rawArgs["input"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + arg0, err = ec.unmarshalNPlanDocumentLinkInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDocumentLinkInput(ctx, tmp) + if err != nil { + return nil, err + } + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_lockLockableSection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 models.LockableSection + if tmp, ok := rawArgs["section"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("section")) + arg1, err = ec.unmarshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx, tmp) + if err != nil { + return nil, err + } + } + args["section"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_markMTOReadyForReview_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 bool + if tmp, ok := rawArgs["readyForReview"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("readyForReview")) + arg1, err = ec.unmarshalNBoolean2bool(ctx, tmp) + if err != nil { + return nil, err + } + } + args["readyForReview"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_markNotificationAsRead_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["notificationID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notificationID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["notificationID"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_removePlanDocumentSolutionLinks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["solutionID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("solutionID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["solutionID"] = arg0 + var arg1 []uuid.UUID + if tmp, ok := rawArgs["documentIDs"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIDs")) + arg1, err = ec.unmarshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, tmp) + if err != nil { + return nil, err + } + } + args["documentIDs"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_renameMTOCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 string + if tmp, ok := rawArgs["name"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["name"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_reorderMTOCategory_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 *int + if tmp, ok := rawArgs["newOrder"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("newOrder")) + arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) + if err != nil { + return nil, err + } + } + args["newOrder"] = arg1 + var arg2 *uuid.UUID + if tmp, ok := rawArgs["parentID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentID")) + arg2, err = ec.unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["parentID"] = arg2 + return args, nil +} + +func (ec *executionContext) field_Mutation_reportAProblem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.ReportAProblemInput + if tmp, ok := rawArgs["input"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + arg0, err = ec.unmarshalNReportAProblemInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemInput(ctx, tmp) + if err != nil { + return nil, err + } + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_sendFeedbackEmail_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.SendFeedbackEmailInput + if tmp, ok := rawArgs["input"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + arg0, err = ec.unmarshalNSendFeedbackEmailInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSendFeedbackEmailInput(ctx, tmp) + if err != nil { + return nil, err + } + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_shareModelPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 *models.ModelViewFilter + if tmp, ok := rawArgs["viewFilter"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("viewFilter")) + arg1, err = ec.unmarshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx, tmp) + if err != nil { + return nil, err + } + } + args["viewFilter"] = arg1 + var arg2 []string + if tmp, ok := rawArgs["usernames"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("usernames")) + arg2, err = ec.unmarshalNString2ᚕstringᚄ(ctx, tmp) + if err != nil { + return nil, err + } + } + args["usernames"] = arg2 + var arg3 *string + if tmp, ok := rawArgs["optionalMessage"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("optionalMessage")) + arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp) + if err != nil { + return nil, err + } + } + args["optionalMessage"] = arg3 + return args, nil +} + +func (ec *executionContext) field_Mutation_unlockAllLockableSections_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_unlockLockableSection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 models.LockableSection + if tmp, ok := rawArgs["section"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("section")) + arg1, err = ec.unmarshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx, tmp) + if err != nil { + return nil, err + } + } + args["section"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateCustomOperationalNeedByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 *string + if tmp, ok := rawArgs["customNeedType"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("customNeedType")) + arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) + if err != nil { + return nil, err + } + } + args["customNeedType"] = arg1 + var arg2 bool + if tmp, ok := rawArgs["needed"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("needed")) + arg2, err = ec.unmarshalNBoolean2bool(ctx, tmp) + if err != nil { + return nil, err + } + } + args["needed"] = arg2 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateExistingModelLinks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 models.ExisitingModelLinkFieldType + if tmp, ok := rawArgs["fieldName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldName")) + arg1, err = ec.unmarshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx, tmp) + if err != nil { + return nil, err + } + } + args["fieldName"] = arg1 + var arg2 []int + if tmp, ok := rawArgs["existingModelIDs"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("existingModelIDs")) + arg2, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) + if err != nil { + return nil, err + } + } + args["existingModelIDs"] = arg2 + var arg3 []uuid.UUID + if tmp, ok := rawArgs["currentModelPlanIDs"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("currentModelPlanIDs")) + arg3, err = ec.unmarshalOUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, tmp) + if err != nil { + return nil, err + } + } + args["currentModelPlanIDs"] = arg3 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateMTOMilestone_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNMTOMilestoneChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateMTOSolution_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNMTOSolutionChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateModelPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNModelPlanChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateOperationalSolutionSubtasks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 []*model.UpdateOperationalSolutionSubtaskInput + if tmp, ok := rawArgs["inputs"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inputs")) + arg0, err = ec.unmarshalNUpdateOperationalSolutionSubtaskInput2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐUpdateOperationalSolutionSubtaskInputᚄ(ctx, tmp) + if err != nil { + return nil, err + } + } + args["inputs"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateOperationalSolution_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNOperationalSolutionChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanBasics_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNPlanBasicsChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanBeneficiaries_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNPlanBeneficiariesChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanCR_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNPlanCRChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanCollaborator_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 []models.TeamRole + if tmp, ok := rawArgs["newRoles"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("newRoles")) + arg1, err = ec.unmarshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx, tmp) + if err != nil { + return nil, err + } + } + args["newRoles"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanDataExchangeApproach_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNPlanDataExchangeApproachChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanGeneralCharacteristics_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNPlanGeneralCharacteristicsChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanOpsEvalAndLearning_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNPlanOpsEvalAndLearningChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanParticipantsAndProviders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNPlanParticipantsAndProvidersChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanPayments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNPlanPaymentsChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updatePlanTDL_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + var arg1 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg1, err = ec.unmarshalNPlanTDLChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateUserNotificationPreferences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg0, err = ec.unmarshalNUserNotificationPreferencesChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateUserViewCustomization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 map[string]interface{} + if tmp, ok := rawArgs["changes"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + arg0, err = ec.unmarshalNUserViewCustomizationChanges2map(ctx, tmp) + if err != nil { + return nil, err + } + } + args["changes"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_uploadNewPlanDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.PlanDocumentInput + if tmp, ok := rawArgs["input"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + arg0, err = ec.unmarshalNPlanDocumentInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDocumentInput(ctx, tmp) + if err != nil { + return nil, err + } + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_OperationalNeed_solutions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 bool + if tmp, ok := rawArgs["includeNotNeeded"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeNotNeeded")) + arg0, err = ec.unmarshalNBoolean2bool(ctx, tmp) + if err != nil { + return nil, err + } + } + args["includeNotNeeded"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["name"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["name"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_analyzedAudits_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 time.Time + if tmp, ok := rawArgs["dateAnalyzed"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateAnalyzed")) + arg0, err = ec.unmarshalNTime2timeᚐTime(ctx, tmp) + if err != nil { + return nil, err + } + } + args["dateAnalyzed"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_auditChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 models.TableName + if tmp, ok := rawArgs["tableName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tableName")) + arg0, err = ec.unmarshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, tmp) + if err != nil { + return nil, err + } + } + args["tableName"] = arg0 + var arg1 uuid.UUID + if tmp, ok := rawArgs["primaryKey"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("primaryKey")) + arg1, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["primaryKey"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Query_existingModelLink_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_lockableSectionLocks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_modelPlanCollection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 model.ModelPlanFilter + if tmp, ok := rawArgs["filter"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) + arg0, err = ec.unmarshalNModelPlanFilter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelPlanFilter(ctx, tmp) + if err != nil { + return nil, err + } + } + args["filter"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_modelPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_modelPlansByOperationalSolutionKey_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 models.OperationalSolutionKey + if tmp, ok := rawArgs["operationalSolutionKey"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationalSolutionKey")) + arg0, err = ec.unmarshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, tmp) + if err != nil { + return nil, err + } + } + args["operationalSolutionKey"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_operationalNeed_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_operationalSolution_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_operationalSolutions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["operationalNeedID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationalNeedID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["operationalNeedID"] = arg0 + var arg1 bool + if tmp, ok := rawArgs["includeNotNeeded"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeNotNeeded")) + arg1, err = ec.unmarshalNBoolean2bool(ctx, tmp) + if err != nil { + return nil, err + } + } + args["includeNotNeeded"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Query_planCR_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_planCollaboratorByID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_planDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_planPayments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_planTDL_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["id"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["id"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_searchOktaUsers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["searchTerm"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("searchTerm")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["searchTerm"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Query_translatedAuditCollection_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + var arg1 *int + if tmp, ok := rawArgs["limit"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) + if err != nil { + return nil, err + } + } + args["limit"] = arg1 + var arg2 *int + if tmp, ok := rawArgs["offset"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) + arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp) + if err != nil { + return nil, err + } + } + args["offset"] = arg2 + return args, nil +} + +func (ec *executionContext) field_Query_userAccount_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["username"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("username")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["username"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Subscription_onLockLockableSectionContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Subscription_onLockableSectionLocksChanged_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 uuid.UUID + if tmp, ok := rawArgs["modelPlanID"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + arg0, err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, tmp) + if err != nil { + return nil, err + } + } + args["modelPlanID"] = arg0 + return args, nil +} + +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 bool + if tmp, ok := rawArgs["includeDeprecated"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) + if err != nil { + return nil, err + } + } + args["includeDeprecated"] = arg0 + return args, nil +} + +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 bool + if tmp, ok := rawArgs["includeDeprecated"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) + if err != nil { + return nil, err + } + } + args["includeDeprecated"] = arg0 + return args, nil +} + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _Activity_id(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_actorID(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_actorID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActorID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_actorID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_actorUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_actorUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Activity().ActorUserAccount(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_actorUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_entityID(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_entityID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_entityID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_activityType(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_activityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActivityType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_activityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_metaData(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_metaData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MetaData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityMetaData) + fc.Result = res + return ec.marshalNActivityMetaData2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityMetaData(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_metaData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityMetaData does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Activity_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.Activity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Activity_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Activity_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Activity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AddedAsCollaboratorMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AddedAsCollaboratorMeta_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AddedAsCollaboratorMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AddedAsCollaboratorMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AddedAsCollaboratorMeta_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AddedAsCollaboratorMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AddedAsCollaboratorMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AddedAsCollaboratorMeta_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AddedAsCollaboratorMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AddedAsCollaboratorMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AddedAsCollaboratorMeta_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.AddedAsCollaboratorMeta().ModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AddedAsCollaboratorMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AddedAsCollaboratorMeta_collaboratorID(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AddedAsCollaboratorMeta_collaboratorID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CollaboratorID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_collaboratorID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AddedAsCollaboratorMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AddedAsCollaboratorMeta_collaborator(ctx context.Context, field graphql.CollectedField, obj *models.AddedAsCollaboratorMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AddedAsCollaboratorMeta_collaborator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.AddedAsCollaboratorMeta().Collaborator(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanCollaborator) + fc.Result = res + return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AddedAsCollaboratorMeta_collaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AddedAsCollaboratorMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCollaborator_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) + case "userID": + return ec.fieldContext_PlanCollaborator_userID(ctx, field) + case "userAccount": + return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) + case "teamRoles": + return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_id(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_modelName(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_modelName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_modelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_date(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_date(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Date, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_changes(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_changes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Changes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.AnalyzedAuditChange) + fc.Result = res + return ec.marshalNAnalyzedAuditChange2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditChange(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_changes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "modelPlan": + return ec.fieldContext_AnalyzedAuditChange_modelPlan(ctx, field) + case "documents": + return ec.fieldContext_AnalyzedAuditChange_documents(ctx, field) + case "crTdls": + return ec.fieldContext_AnalyzedAuditChange_crTdls(ctx, field) + case "planSections": + return ec.fieldContext_AnalyzedAuditChange_planSections(ctx, field) + case "modelLeads": + return ec.fieldContext_AnalyzedAuditChange_modelLeads(ctx, field) + case "planDiscussions": + return ec.fieldContext_AnalyzedAuditChange_planDiscussions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedAuditChange", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAudit_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAudit_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAudit_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAuditChange_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAuditChange_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlan, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.AnalyzedModelPlan) + fc.Result = res + return ec.marshalOAnalyzedModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAuditChange_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "oldName": + return ec.fieldContext_AnalyzedModelPlan_oldName(ctx, field) + case "statusChanges": + return ec.fieldContext_AnalyzedModelPlan_statusChanges(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAuditChange_documents(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAuditChange_documents(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Documents, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.AnalyzedDocuments) + fc.Result = res + return ec.marshalOAnalyzedDocuments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedDocuments(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAuditChange_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "count": + return ec.fieldContext_AnalyzedDocuments_count(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedDocuments", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAuditChange_crTdls(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAuditChange_crTdls(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CrTdls, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.AnalyzedCrTdls) + fc.Result = res + return ec.marshalOAnalyzedCrTdls2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedCrTdls(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAuditChange_crTdls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "activity": + return ec.fieldContext_AnalyzedCrTdls_activity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedCrTdls", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAuditChange_planSections(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAuditChange_planSections(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanSections, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.AnalyzedPlanSections) + fc.Result = res + return ec.marshalOAnalyzedPlanSections2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedPlanSections(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAuditChange_planSections(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "updated": + return ec.fieldContext_AnalyzedPlanSections_updated(ctx, field) + case "readyForReview": + return ec.fieldContext_AnalyzedPlanSections_readyForReview(ctx, field) + case "readyForClearance": + return ec.fieldContext_AnalyzedPlanSections_readyForClearance(ctx, field) + case "dataExchangeApproachMarkedComplete": + return ec.fieldContext_AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedPlanSections", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAuditChange_modelLeads(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAuditChange_modelLeads(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelLeads, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.AnalyzedModelLeads) + fc.Result = res + return ec.marshalOAnalyzedModelLeads2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeads(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAuditChange_modelLeads(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "added": + return ec.fieldContext_AnalyzedModelLeads_added(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedModelLeads", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedAuditChange_planDiscussions(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedAuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedAuditChange_planDiscussions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanDiscussions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.AnalyzedPlanDiscussions) + fc.Result = res + return ec.marshalOAnalyzedPlanDiscussions2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedPlanDiscussions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedAuditChange_planDiscussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedAuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "activity": + return ec.fieldContext_AnalyzedPlanDiscussions_activity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedPlanDiscussions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedCrTdls_activity(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedCrTdls) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedCrTdls_activity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Activity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedCrTdls_activity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedCrTdls", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedDocuments_count(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedDocuments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedDocuments_count(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Count, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalOInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedDocuments_count(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedDocuments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedModelLeadInfo_id(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelLeadInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedModelLeadInfo_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedModelLeadInfo_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedModelLeadInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedModelLeadInfo_userAccount(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelLeadInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedModelLeadInfo_userAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.AnalyzedModelLeadInfo().UserAccount(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedModelLeadInfo_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedModelLeadInfo", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedModelLeadInfo_commonName(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelLeadInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedModelLeadInfo_commonName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommonName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedModelLeadInfo_commonName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedModelLeadInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedModelLeads_added(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelLeads) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedModelLeads_added(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Added, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.AnalyzedModelLeadInfo) + fc.Result = res + return ec.marshalNAnalyzedModelLeadInfo2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeadInfoᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedModelLeads_added(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedModelLeads", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_AnalyzedModelLeadInfo_id(ctx, field) + case "userAccount": + return ec.fieldContext_AnalyzedModelLeadInfo_userAccount(ctx, field) + case "commonName": + return ec.fieldContext_AnalyzedModelLeadInfo_commonName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedModelLeadInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedModelPlan_oldName(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedModelPlan_oldName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OldName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedModelPlan_oldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedModelPlan_statusChanges(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedModelPlan_statusChanges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StatusChanges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedModelPlan_statusChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedPlanDiscussions_activity(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanDiscussions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedPlanDiscussions_activity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Activity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedPlanDiscussions_activity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedPlanDiscussions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedPlanSections_updated(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanSections) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedPlanSections_updated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Updated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.TableName) + fc.Result = res + return ec.marshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedPlanSections_updated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedPlanSections", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedPlanSections_readyForReview(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanSections) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedPlanSections_readyForReview(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReview, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.TableName) + fc.Result = res + return ec.marshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedPlanSections_readyForReview(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedPlanSections", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedPlanSections_readyForClearance(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanSections) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedPlanSections_readyForClearance(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.TableName) + fc.Result = res + return ec.marshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedPlanSections_readyForClearance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedPlanSections", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx context.Context, field graphql.CollectedField, obj *models.AnalyzedPlanSections) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataExchangeApproachMarkedComplete, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AnalyzedPlanSections", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditChange_id(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditChange_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditChange_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditChange_primaryKey(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditChange_primaryKey(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PrimaryKey, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditChange_primaryKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditChange_foreignKey(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditChange_foreignKey(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ForeignKey, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditChange_foreignKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditChange_tableName(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditChange_tableName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TableName) + fc.Result = res + return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditChange_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditChange_action(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditChange_action(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Action, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditChange_action(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditChange_fields(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditChange_fields(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.AuditChange().Fields(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalNMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditChange_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditChange", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditChange_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditChange_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditChange_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditChange_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditChange_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditChange_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditChange", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditChange_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.AuditChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditChange_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditChange_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _CurrentUser_launchDarkly(ctx context.Context, field graphql.CollectedField, obj *models.CurrentUser) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CurrentUser_launchDarkly(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.CurrentUser().LaunchDarkly(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.LaunchDarklySettings) + fc.Result = res + return ec.marshalNLaunchDarklySettings2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLaunchDarklySettings(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_CurrentUser_launchDarkly(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CurrentUser", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "userKey": + return ec.fieldContext_LaunchDarklySettings_userKey(ctx, field) + case "signedHash": + return ec.fieldContext_LaunchDarklySettings_signedHash(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type LaunchDarklySettings", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _CurrentUser_account(ctx context.Context, field graphql.CollectedField, obj *models.CurrentUser) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CurrentUser_account(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.CurrentUser().Account(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_CurrentUser_account(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CurrentUser", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _CurrentUser_notifications(ctx context.Context, field graphql.CollectedField, obj *models.CurrentUser) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CurrentUser_notifications(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.CurrentUser().Notifications(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.UserNotifications) + fc.Result = res + return ec.marshalNUserNotifications2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotifications(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_CurrentUser_notifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CurrentUser", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "numUnreadNotifications": + return ec.fieldContext_UserNotifications_numUnreadNotifications(ctx, field) + case "notifications": + return ec.fieldContext_UserNotifications_notifications(ctx, field) + case "unreadNotifications": + return ec.fieldContext_UserNotifications_unreadNotifications(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserNotifications", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _CurrentUser_notificationPreferences(ctx context.Context, field graphql.CollectedField, obj *models.CurrentUser) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CurrentUser_notificationPreferences(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.CurrentUser().NotificationPreferences(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.UserNotificationPreferences) + fc.Result = res + return ec.marshalNUserNotificationPreferences2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferences(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_CurrentUser_notificationPreferences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CurrentUser", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserNotificationPreferences_id(ctx, field) + case "userID": + return ec.fieldContext_UserNotificationPreferences_userID(ctx, field) + case "dailyDigestComplete": + return ec.fieldContext_UserNotificationPreferences_dailyDigestComplete(ctx, field) + case "addedAsCollaborator": + return ec.fieldContext_UserNotificationPreferences_addedAsCollaborator(ctx, field) + case "taggedInDiscussion": + return ec.fieldContext_UserNotificationPreferences_taggedInDiscussion(ctx, field) + case "taggedInDiscussionReply": + return ec.fieldContext_UserNotificationPreferences_taggedInDiscussionReply(ctx, field) + case "newDiscussionReply": + return ec.fieldContext_UserNotificationPreferences_newDiscussionReply(ctx, field) + case "modelPlanShared": + return ec.fieldContext_UserNotificationPreferences_modelPlanShared(ctx, field) + case "newModelPlan": + return ec.fieldContext_UserNotificationPreferences_newModelPlan(ctx, field) + case "datesChanged": + return ec.fieldContext_UserNotificationPreferences_datesChanged(ctx, field) + case "datesChangedNotificationType": + return ec.fieldContext_UserNotificationPreferences_datesChangedNotificationType(ctx, field) + case "dataExchangeApproachMarkedComplete": + return ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx, field) + case "dataExchangeApproachMarkedCompleteNotificationType": + return ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx, field) + case "createdBy": + return ec.fieldContext_UserNotificationPreferences_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_UserNotificationPreferences_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_UserNotificationPreferences_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_UserNotificationPreferences_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_UserNotificationPreferences_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_UserNotificationPreferences_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserNotificationPreferences", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DailyDigestCompleteActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DailyDigestCompleteActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DailyDigestCompleteActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DailyDigestCompleteActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DailyDigestCompleteActivityMeta_modelPlanIDs(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_modelPlanIDs(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanIDs, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]uuid.UUID) + fc.Result = res + return ec.marshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_modelPlanIDs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DailyDigestCompleteActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DailyDigestCompleteActivityMeta_analyzedAudits(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_analyzedAudits(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.DailyDigestCompleteActivityMeta().AnalyzedAudits(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.AnalyzedAudit) + fc.Result = res + return ec.marshalNAnalyzedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_analyzedAudits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DailyDigestCompleteActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_AnalyzedAudit_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_AnalyzedAudit_modelPlanID(ctx, field) + case "modelName": + return ec.fieldContext_AnalyzedAudit_modelName(ctx, field) + case "date": + return ec.fieldContext_AnalyzedAudit_date(ctx, field) + case "changes": + return ec.fieldContext_AnalyzedAudit_changes(ctx, field) + case "createdBy": + return ec.fieldContext_AnalyzedAudit_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_AnalyzedAudit_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_AnalyzedAudit_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_AnalyzedAudit_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_AnalyzedAudit_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_AnalyzedAudit_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedAudit", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DailyDigestCompleteActivityMeta_userID(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_userID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DailyDigestCompleteActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DailyDigestCompleteActivityMeta_date(ctx context.Context, field graphql.CollectedField, obj *models.DailyDigestCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DailyDigestCompleteActivityMeta_date(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Date, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DailyDigestCompleteActivityMeta_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DailyDigestCompleteActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DateChange_isChanged(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DateChange_isChanged(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsChanged, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DateChange_isChanged(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DateChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DateChange_field(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DateChange_field(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Field, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.DateChangeFieldType) + fc.Result = res + return ec.marshalNDateChangeFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeFieldType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DateChange_field(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DateChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DateChangeFieldType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DateChange_isRange(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DateChange_isRange(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsRange, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DateChange_isRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DateChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DateChange_oldDate(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DateChange_oldDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OldDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DateChange_oldDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DateChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DateChange_newDate(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DateChange_newDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NewDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DateChange_newDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DateChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DateChange_oldRangeStart(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DateChange_oldRangeStart(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OldRangeStart, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DateChange_oldRangeStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DateChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DateChange_oldRangeEnd(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DateChange_oldRangeEnd(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OldRangeEnd, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DateChange_oldRangeEnd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DateChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DateChange_newRangeStart(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DateChange_newRangeStart(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NewRangeStart, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DateChange_newRangeStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DateChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DateChange_newRangeEnd(ctx context.Context, field graphql.CollectedField, obj *models.DateChange) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DateChange_newRangeEnd(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NewRangeEnd, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DateChange_newRangeEnd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DateChange", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DatesChangedActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DatesChangedActivityMeta_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DatesChangedActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DatesChangedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DatesChangedActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DatesChangedActivityMeta_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DatesChangedActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DatesChangedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DatesChangedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DatesChangedActivityMeta_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DatesChangedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DatesChangedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DatesChangedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DatesChangedActivityMeta_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.DatesChangedActivityMeta().ModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DatesChangedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DatesChangedActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DatesChangedActivityMeta_dateChanges(ctx context.Context, field graphql.CollectedField, obj *models.DatesChangedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DatesChangedActivityMeta_dateChanges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DateChanges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.DateChange) + fc.Result = res + return ec.marshalNDateChange2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DatesChangedActivityMeta_dateChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DatesChangedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "isChanged": + return ec.fieldContext_DateChange_isChanged(ctx, field) + case "field": + return ec.fieldContext_DateChange_field(ctx, field) + case "isRange": + return ec.fieldContext_DateChange_isRange(ctx, field) + case "oldDate": + return ec.fieldContext_DateChange_oldDate(ctx, field) + case "newDate": + return ec.fieldContext_DateChange_newDate(ctx, field) + case "oldRangeStart": + return ec.fieldContext_DateChange_oldRangeStart(ctx, field) + case "oldRangeEnd": + return ec.fieldContext_DateChange_oldRangeEnd(ctx, field) + case "newRangeStart": + return ec.fieldContext_DateChange_newRangeStart(ctx, field) + case "newRangeEnd": + return ec.fieldContext_DateChange_newRangeEnd(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DateChange", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_id(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_discussionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DiscussionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_content(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_content(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.DiscussionReply().Content(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TaggedContent) + fc.Result = res + return ec.marshalOTaggedContent2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedContent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "rawContent": + return ec.fieldContext_TaggedContent_rawContent(ctx, field) + case "tags": + return ec.fieldContext_TaggedContent_tags(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaggedContent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_userRole(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_userRole(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRole, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.DiscussionUserRole) + fc.Result = res + return ec.marshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DiscussionUserRole does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRoleDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_isAssessment(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_isAssessment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsAssessment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReply_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReply_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReplyTranslation_userRole(ctx context.Context, field graphql.CollectedField, obj *model.DiscussionReplyTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReplyTranslation_userRole(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRole, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReplyTranslation_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReplyTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReplyTranslation_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *model.DiscussionReplyTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReplyTranslation_userRoleDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRoleDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReplyTranslation_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReplyTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReplyTranslation_content(ctx context.Context, field graphql.CollectedField, obj *model.DiscussionReplyTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReplyTranslation_content(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Content, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReplyTranslation_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReplyTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionReplyTranslation_isAssessment(ctx context.Context, field graphql.CollectedField, obj *model.DiscussionReplyTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionReplyTranslation_isAssessment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsAssessment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionReplyTranslation_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionReplyTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionRoleSelection_userRole(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionRoleSelection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionRoleSelection_userRole(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRole, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.DiscussionUserRole) + fc.Result = res + return ec.marshalNDiscussionUserRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionRoleSelection_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionRoleSelection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DiscussionUserRole does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DiscussionRoleSelection_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *models.DiscussionRoleSelection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DiscussionRoleSelection_userRoleDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRoleDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DiscussionRoleSelection_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DiscussionRoleSelection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_id(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CrNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_versionNum(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_versionNum(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.VersionNum, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_versionNum(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_initiator(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_initiator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Initiator, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_initiator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_firstName(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_firstName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FirstName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_lastName(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_lastName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LastName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_title(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_title(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Title, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_sensitiveFlag(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_sensitiveFlag(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SensitiveFlag, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_sensitiveFlag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_implementationDate(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_implementationDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ImplementationDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_implementationDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_crSummary(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_crSummary(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CrSummary, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TaggedContent) + fc.Result = res + return ec.marshalOTaggedContent2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedContent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_crSummary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "rawContent": + return ec.fieldContext_TaggedContent_rawContent(ctx, field) + case "tags": + return ec.fieldContext_TaggedContent_tags(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaggedContent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_crStatus(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_crStatus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CrStatus, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_crStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_emergencyCrFlag(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_emergencyCrFlag(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EmergencyCrFlag, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_emergencyCrFlag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_relatedCrNumbers(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_relatedCrNumbers(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RelatedCrNumbers, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_relatedCrNumbers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_relatedCrTdlNumbers(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_relatedCrTdlNumbers(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RelatedCrTdlNumbers, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_relatedCrTdlNumbers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpCR_associatedModelUids(ctx context.Context, field graphql.CollectedField, obj *models.EChimpCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpCR_associatedModelUids(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AssociatedModelUids, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpCR_associatedModelUids(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpTDL_id(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpTDL_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TdlNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpTDL_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpTDL_versionNum(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpTDL_versionNum(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.VersionNum, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpTDL_versionNum(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpTDL_initiator(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpTDL_initiator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Initiator, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpTDL_initiator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpTDL_firstName(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpTDL_firstName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FirstName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpTDL_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpTDL_lastName(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpTDL_lastName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LastName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpTDL_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpTDL_title(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpTDL_title(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Title, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpTDL_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpTDL_issuedDate(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpTDL_issuedDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IssuedDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpTDL_issuedDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpTDL_status(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpTDL_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpTDL_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EChimpTDL_associatedModelUids(ctx context.Context, field graphql.CollectedField, obj *models.EChimpTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EChimpTDL_associatedModelUids(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AssociatedModelUids, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EChimpTDL_associatedModelUids(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EChimpTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EnumTranslation_generalName(ctx context.Context, field graphql.CollectedField, obj *models.EnumTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EnumTranslation_generalName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeneralName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EnumTranslation_generalName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EnumTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EnumTranslation_groupedName(ctx context.Context, field graphql.CollectedField, obj *models.EnumTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EnumTranslation_groupedName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupedName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EnumTranslation_groupedName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EnumTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_id(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalOInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_modelName(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_modelName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_modelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_stage(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_stage(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Stage, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_stage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_numberOfParticipants(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_numberOfParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberOfParticipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_numberOfParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_category(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_category(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Category, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_category(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_authority(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_authority(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Authority, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_authority(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_description(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_numberOfBeneficiariesImpacted(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_numberOfBeneficiariesImpacted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberOfBeneficiariesImpacted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*int) + fc.Result = res + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_numberOfBeneficiariesImpacted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_numberOfPhysiciansImpacted(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_numberOfPhysiciansImpacted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberOfPhysiciansImpacted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*int) + fc.Result = res + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_numberOfPhysiciansImpacted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_dateBegan(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_dateBegan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DateBegan, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_dateBegan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_dateEnded(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_dateEnded(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DateEnded, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_dateEnded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_states(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_states(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.States, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_states(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_keywords(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_keywords(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Keywords, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_keywords(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_url(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_url(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.URL, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_displayModelSummary(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_displayModelSummary(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayModelSummary, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_displayModelSummary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModel_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModel) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModel_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModel_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModel", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_id(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_existingModelID(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_existingModelID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExistingModelID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*int) + fc.Result = res + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_existingModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_currentModelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_currentModelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CurrentModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_currentModelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_fieldName(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_fieldName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FieldName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ExisitingModelLinkFieldType) + fc.Result = res + return ec.marshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_fieldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ExisitingModelLinkFieldType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_model(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_model(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ExistingModelLink().Model(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.LinkedExistingModel) + fc.Result = res + return ec.marshalNLinkedExistingModel2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLinkedExistingModel(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_model(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type LinkedExistingModel does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLink_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLink_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLink_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLinkTranslation_existingModelID(ctx context.Context, field graphql.CollectedField, obj *model.ExistingModelLinkTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLinkTranslation_existingModelID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExistingModelID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLinkTranslation_existingModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLinkTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLinkTranslation_currentModelPlanID(ctx context.Context, field graphql.CollectedField, obj *model.ExistingModelLinkTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLinkTranslation_currentModelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CurrentModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLinkTranslation_currentModelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLinkTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLinkTranslation_fieldName(ctx context.Context, field graphql.CollectedField, obj *model.ExistingModelLinkTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLinkTranslation_fieldName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FieldName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLinkTranslation_fieldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLinkTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLinks_links(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLinks) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLinks_links(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Links, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.ExistingModelLink) + fc.Result = res + return ec.marshalNExistingModelLink2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinkᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLinks_links(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLinks", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ExistingModelLink_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_ExistingModelLink_modelPlanID(ctx, field) + case "existingModelID": + return ec.fieldContext_ExistingModelLink_existingModelID(ctx, field) + case "currentModelPlanID": + return ec.fieldContext_ExistingModelLink_currentModelPlanID(ctx, field) + case "fieldName": + return ec.fieldContext_ExistingModelLink_fieldName(ctx, field) + case "model": + return ec.fieldContext_ExistingModelLink_model(ctx, field) + case "createdBy": + return ec.fieldContext_ExistingModelLink_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ExistingModelLink_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ExistingModelLink_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ExistingModelLink_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ExistingModelLink_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ExistingModelLink_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExistingModelLink", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLinks_fieldName(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLinks) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLinks_fieldName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FieldName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ExisitingModelLinkFieldType) + fc.Result = res + return ec.marshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLinks_fieldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLinks", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ExisitingModelLinkFieldType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLinks_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLinks) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLinks_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLinks_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLinks", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ExistingModelLinks_names(ctx context.Context, field graphql.CollectedField, obj *models.ExistingModelLinks) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ExistingModelLinks_names(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ExistingModelLinks().Names(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ExistingModelLinks_names(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ExistingModelLinks", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _LaunchDarklySettings_userKey(ctx context.Context, field graphql.CollectedField, obj *model.LaunchDarklySettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LaunchDarklySettings_userKey(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserKey, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LaunchDarklySettings_userKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LaunchDarklySettings", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _LaunchDarklySettings_signedHash(ctx context.Context, field graphql.CollectedField, obj *model.LaunchDarklySettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LaunchDarklySettings_signedHash(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SignedHash, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LaunchDarklySettings_signedHash(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LaunchDarklySettings", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _LockableSectionLockStatus_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LockableSectionLockStatus_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LockableSectionLockStatus_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LockableSectionLockStatus", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _LockableSectionLockStatus_section(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LockableSectionLockStatus_section(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Section, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.LockableSection) + fc.Result = res + return ec.marshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LockableSectionLockStatus_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LockableSectionLockStatus", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type LockableSection does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _LockableSectionLockStatus_lockedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LockedByUserAccount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LockableSectionLockStatus", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _LockableSectionLockStatus_isAssessment(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LockableSectionLockStatus_isAssessment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsAssessment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LockableSectionLockStatus_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LockableSectionLockStatus", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _LockableSectionLockStatusChanged_changeType(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatusChanged) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LockableSectionLockStatusChanged_changeType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ChangeType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.ChangeType) + fc.Result = res + return ec.marshalNChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐChangeType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LockableSectionLockStatusChanged_changeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LockableSectionLockStatusChanged", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ChangeType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _LockableSectionLockStatusChanged_lockStatus(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatusChanged) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LockableSectionLockStatusChanged_lockStatus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LockStatus, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.LockableSectionLockStatus) + fc.Result = res + return ec.marshalNLockableSectionLockStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LockableSectionLockStatusChanged_lockStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LockableSectionLockStatusChanged", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "modelPlanID": + return ec.fieldContext_LockableSectionLockStatus_modelPlanID(ctx, field) + case "section": + return ec.fieldContext_LockableSectionLockStatus_section(ctx, field) + case "lockedByUserAccount": + return ec.fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx, field) + case "isAssessment": + return ec.fieldContext_LockableSectionLockStatus_isAssessment(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatus", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _LockableSectionLockStatusChanged_actionType(ctx context.Context, field graphql.CollectedField, obj *model.LockableSectionLockStatusChanged) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_LockableSectionLockStatusChanged_actionType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActionType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.ActionType) + fc.Result = res + return ec.marshalNActionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐActionType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_LockableSectionLockStatusChanged_actionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "LockableSectionLockStatusChanged", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActionType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCategory_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCategory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCategory_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCategory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCategory_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCategory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCategory_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCategory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCategory_position(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCategory_position(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Position, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCategory_position(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCategory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCategory_isUncategorized(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCategory_isUncategorized(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsUncategorized(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCategory_isUncategorized(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCategory", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCategory_subCategories(ctx context.Context, field graphql.CollectedField, obj *models.MTOCategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCategory_subCategories(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOCategory().SubCategories(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOSubcategory) + fc.Result = res + return ec.marshalNMTOSubcategory2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategoryᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCategory_subCategories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCategory", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOSubcategory_id(ctx, field) + case "name": + return ec.fieldContext_MTOSubcategory_name(ctx, field) + case "position": + return ec.fieldContext_MTOSubcategory_position(ctx, field) + case "isUncategorized": + return ec.fieldContext_MTOSubcategory_isUncategorized(ctx, field) + case "milestones": + return ec.fieldContext_MTOSubcategory_milestones(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOSubcategory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCategoryTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.MTOCategoryTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCategoryTranslation_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCategoryTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCategoryTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonMilestone_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonMilestone_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonMilestone_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonMilestone_key(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonMilestone_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.MTOCommonMilestoneKey) + fc.Result = res + return ec.marshalNMTOCommonMilestoneKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonMilestone_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOCommonMilestoneKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonMilestone_categoryName(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonMilestone_categoryName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CategoryName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonMilestone_categoryName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonMilestone_subCategoryName(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonMilestone_subCategoryName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubCategoryName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonMilestone_subCategoryName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonMilestone_facilitatedByRole(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonMilestone_facilitatedByRole(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOCommonMilestone().FacilitatedByRole(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.MTOFacilitator) + fc.Result = res + return ec.marshalNMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonMilestone_facilitatedByRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonMilestone", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOFacilitator does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonMilestone_section(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonMilestone_section(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Section, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(models.TaskListSection) + fc.Result = res + return ec.marshalOTaskListSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonMilestone_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskListSection does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonMilestone_isAdded(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonMilestone_isAdded(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsAdded, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonMilestone_isAdded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonMilestone_isSuggested(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonMilestone_isSuggested(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOCommonMilestone().IsSuggested(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonMilestone_isSuggested(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonMilestone", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonMilestone_commonSolutions(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonMilestone_commonSolutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOCommonMilestone().CommonSolutions(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOCommonSolution) + fc.Result = res + return ec.marshalNMTOCommonSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonMilestone_commonSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonMilestone", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext_MTOCommonSolution_name(ctx, field) + case "key": + return ec.fieldContext_MTOCommonSolution_key(ctx, field) + case "type": + return ec.fieldContext_MTOCommonSolution_type(ctx, field) + case "subjects": + return ec.fieldContext_MTOCommonSolution_subjects(ctx, field) + case "filterView": + return ec.fieldContext_MTOCommonSolution_filterView(ctx, field) + case "isAdded": + return ec.fieldContext_MTOCommonSolution_isAdded(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCommonSolution", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonSolution_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonSolution_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonSolution_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonSolution_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.MTOCommonSolutionKey) + fc.Result = res + return ec.marshalNMTOCommonSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOCommonSolutionKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonSolution_type(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonSolution_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.MTOSolutionType) + fc.Result = res + return ec.marshalNMTOSolutionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonSolution_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOSolutionType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonSolution_subjects(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonSolution_subjects(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOCommonSolution().Subjects(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.MTOCommonSolutionSubject) + fc.Result = res + return ec.marshalNMTOCommonSolutionSubject2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubjectᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonSolution_subjects(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOCommonSolutionSubject does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonSolution_filterView(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonSolution_filterView(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FilterView, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ModelViewFilter) + fc.Result = res + return ec.marshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonSolution_filterView(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelViewFilter does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOCommonSolution_isAdded(ctx context.Context, field graphql.CollectedField, obj *models.MTOCommonSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOCommonSolution_isAdded(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsAdded, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOCommonSolution_isAdded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOCommonSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_readyForReviewDTS(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_readyForReviewDTS(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_readyForReviewDTS(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_readyForReviewByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOInfo().ReadyForReviewByUserAccount(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfo_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfo_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfo_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfoTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.MTOInfoTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfoTranslation_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfoTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfoTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOInfoTranslation_readyForReviewDTS(ctx context.Context, field graphql.CollectedField, obj *model.MTOInfoTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOInfoTranslation_readyForReviewDTS(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOInfoTranslation_readyForReviewDTS(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOInfoTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalNString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_key(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.MTOCommonMilestoneKey) + fc.Result = res + return ec.marshalOMTOCommonMilestoneKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOCommonMilestoneKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_mtoCategoryID(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MTOCategoryID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_mtoCategoryID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_facilitatedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOMilestone().FacilitatedBy(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]models.MTOFacilitator) + fc.Result = res + return ec.marshalOMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_facilitatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOFacilitator does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_needBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_needBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_needBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_status(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.MTOMilestoneStatus) + fc.Result = res + return ec.marshalNMTOMilestoneStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOMilestoneStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_riskIndicator(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskIndicator, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.MTORiskIndicator) + fc.Result = res + return ec.marshalNMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_riskIndicator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTORiskIndicator does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_isDraft(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_isDraft(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsDraft, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_isDraft(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_addedFromMilestoneLibrary(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AddedFromMilestoneLibrary(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_commonMilestone(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOMilestone().CommonMilestone(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.MTOCommonMilestone) + fc.Result = res + return ec.marshalOMTOCommonMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestone(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_commonMilestone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext_MTOCommonMilestone_name(ctx, field) + case "key": + return ec.fieldContext_MTOCommonMilestone_key(ctx, field) + case "categoryName": + return ec.fieldContext_MTOCommonMilestone_categoryName(ctx, field) + case "subCategoryName": + return ec.fieldContext_MTOCommonMilestone_subCategoryName(ctx, field) + case "facilitatedByRole": + return ec.fieldContext_MTOCommonMilestone_facilitatedByRole(ctx, field) + case "section": + return ec.fieldContext_MTOCommonMilestone_section(ctx, field) + case "isAdded": + return ec.fieldContext_MTOCommonMilestone_isAdded(ctx, field) + case "isSuggested": + return ec.fieldContext_MTOCommonMilestone_isSuggested(ctx, field) + case "commonSolutions": + return ec.fieldContext_MTOCommonMilestone_commonSolutions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCommonMilestone", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_solutions(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_solutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOMilestone().Solutions(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOSolution) + fc.Result = res + return ec.marshalNMTOSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_solutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOSolution_id(ctx, field) + case "name": + return ec.fieldContext_MTOSolution_name(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) + case "neededBy": + return ec.fieldContext_MTOSolution_neededBy(ctx, field) + case "status": + return ec.fieldContext_MTOSolution_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) + case "key": + return ec.fieldContext_MTOSolution_key(ctx, field) + case "type": + return ec.fieldContext_MTOSolution_type(ctx, field) + case "pocName": + return ec.fieldContext_MTOSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_MTOSolution_pocEmail(ctx, field) + case "createdBy": + return ec.fieldContext_MTOSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) + case "relatedMilestones": + return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) + case "addedFromSolutionLibrary": + return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) + case "commonSolution": + return ec.fieldContext_MTOSolution_commonSolution(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_category(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_category(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOMilestone().Category(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOCategory) + fc.Result = res + return ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_category(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOCategory_id(ctx, field) + case "name": + return ec.fieldContext_MTOCategory_name(ctx, field) + case "position": + return ec.fieldContext_MTOCategory_position(ctx, field) + case "isUncategorized": + return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) + case "subCategories": + return ec.fieldContext_MTOCategory_subCategories(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestone_subCategory(ctx context.Context, field graphql.CollectedField, obj *models.MTOMilestone) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestone_subCategory(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOMilestone().SubCategory(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOSubcategory) + fc.Result = res + return ec.marshalNMTOSubcategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestone_subCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestone", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOSubcategory_id(ctx, field) + case "name": + return ec.fieldContext_MTOSubcategory_name(ctx, field) + case "position": + return ec.fieldContext_MTOSubcategory_position(ctx, field) + case "isUncategorized": + return ec.fieldContext_MTOSubcategory_isUncategorized(ctx, field) + case "milestones": + return ec.fieldContext_MTOSubcategory_milestones(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOSubcategory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOMilestoneTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.MTOMilestoneTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOMilestoneTranslation_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOMilestoneTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOMilestoneTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_facilitatedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOSolution().FacilitatedBy(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]models.MTOFacilitator) + fc.Result = res + return ec.marshalOMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_facilitatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOFacilitator does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_neededBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_neededBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeededBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_neededBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_status(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.MTOSolutionStatus) + fc.Result = res + return ec.marshalNMTOSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOSolutionStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_riskIndicator(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_riskIndicator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskIndicator, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(models.MTORiskIndicator) + fc.Result = res + return ec.marshalOMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_riskIndicator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTORiskIndicator does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.MTOCommonSolutionKey) + fc.Result = res + return ec.marshalOMTOCommonSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOCommonSolutionKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_type(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.MTOSolutionType) + fc.Result = res + return ec.marshalOMTOSolutionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOSolutionType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_pocName(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_pocName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PocName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_pocName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_pocEmail(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_pocEmail(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PocEmail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_pocEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_relatedMilestones(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOSolution().RelatedMilestones(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOMilestone) + fc.Result = res + return ec.marshalNMTOMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_relatedMilestones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOMilestone_id(ctx, field) + case "name": + return ec.fieldContext_MTOMilestone_name(ctx, field) + case "key": + return ec.fieldContext_MTOMilestone_key(ctx, field) + case "mtoCategoryID": + return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) + case "needBy": + return ec.fieldContext_MTOMilestone_needBy(ctx, field) + case "status": + return ec.fieldContext_MTOMilestone_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) + case "isDraft": + return ec.fieldContext_MTOMilestone_isDraft(ctx, field) + case "createdBy": + return ec.fieldContext_MTOMilestone_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOMilestone_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) + case "addedFromMilestoneLibrary": + return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) + case "commonMilestone": + return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) + case "solutions": + return ec.fieldContext_MTOMilestone_solutions(ctx, field) + case "category": + return ec.fieldContext_MTOMilestone_category(ctx, field) + case "subCategory": + return ec.fieldContext_MTOMilestone_subCategory(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_addedFromSolutionLibrary(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AddedFromSolutionLibrary(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_addedFromSolutionLibrary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolution_commonSolution(ctx context.Context, field graphql.CollectedField, obj *models.MTOSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolution_commonSolution(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOSolution().CommonSolution(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.MTOCommonSolution) + fc.Result = res + return ec.marshalOMTOCommonSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolution(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolution_commonSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext_MTOCommonSolution_name(ctx, field) + case "key": + return ec.fieldContext_MTOCommonSolution_key(ctx, field) + case "type": + return ec.fieldContext_MTOCommonSolution_type(ctx, field) + case "subjects": + return ec.fieldContext_MTOCommonSolution_subjects(ctx, field) + case "filterView": + return ec.fieldContext_MTOCommonSolution_filterView(ctx, field) + case "isAdded": + return ec.fieldContext_MTOCommonSolution_isAdded(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCommonSolution", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSubcategory_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSubcategory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSubcategory_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSubcategory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSubcategory_name(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSubcategory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSubcategory_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSubcategory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSubcategory_position(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSubcategory_position(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Position, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSubcategory_position(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSubcategory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSubcategory_isUncategorized(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSubcategory_isUncategorized(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsUncategorized(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSubcategory_isUncategorized(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSubcategory", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSubcategory_milestones(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSubcategory_milestones(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.MTOSubcategory().Milestones(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOMilestone) + fc.Result = res + return ec.marshalNMTOMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSubcategory_milestones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSubcategory", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOMilestone_id(ctx, field) + case "name": + return ec.fieldContext_MTOMilestone_name(ctx, field) + case "key": + return ec.fieldContext_MTOMilestone_key(ctx, field) + case "mtoCategoryID": + return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) + case "needBy": + return ec.fieldContext_MTOMilestone_needBy(ctx, field) + case "status": + return ec.fieldContext_MTOMilestone_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) + case "isDraft": + return ec.fieldContext_MTOMilestone_isDraft(ctx, field) + case "createdBy": + return ec.fieldContext_MTOMilestone_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOMilestone_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) + case "addedFromMilestoneLibrary": + return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) + case "commonMilestone": + return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) + case "solutions": + return ec.fieldContext_MTOMilestone_solutions(ctx, field) + case "category": + return ec.fieldContext_MTOMilestone_category(ctx, field) + case "subCategory": + return ec.fieldContext_MTOMilestone_subCategory(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_id(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_modelName(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_modelName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_modelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_abbreviation(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_abbreviation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Abbreviation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_abbreviation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_archived(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_archived(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Archived, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_archived(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_basics(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_basics(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().Basics(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanBasics) + fc.Result = res + return ec.marshalNPlanBasics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBasics(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_basics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanBasics_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanBasics_modelPlanID(ctx, field) + case "demoCode": + return ec.fieldContext_PlanBasics_demoCode(ctx, field) + case "amsModelID": + return ec.fieldContext_PlanBasics_amsModelID(ctx, field) + case "modelCategory": + return ec.fieldContext_PlanBasics_modelCategory(ctx, field) + case "additionalModelCategories": + return ec.fieldContext_PlanBasics_additionalModelCategories(ctx, field) + case "cmsCenters": + return ec.fieldContext_PlanBasics_cmsCenters(ctx, field) + case "cmmiGroups": + return ec.fieldContext_PlanBasics_cmmiGroups(ctx, field) + case "modelType": + return ec.fieldContext_PlanBasics_modelType(ctx, field) + case "modelTypeOther": + return ec.fieldContext_PlanBasics_modelTypeOther(ctx, field) + case "problem": + return ec.fieldContext_PlanBasics_problem(ctx, field) + case "goal": + return ec.fieldContext_PlanBasics_goal(ctx, field) + case "testInterventions": + return ec.fieldContext_PlanBasics_testInterventions(ctx, field) + case "note": + return ec.fieldContext_PlanBasics_note(ctx, field) + case "completeICIP": + return ec.fieldContext_PlanBasics_completeICIP(ctx, field) + case "clearanceStarts": + return ec.fieldContext_PlanBasics_clearanceStarts(ctx, field) + case "clearanceEnds": + return ec.fieldContext_PlanBasics_clearanceEnds(ctx, field) + case "announced": + return ec.fieldContext_PlanBasics_announced(ctx, field) + case "applicationsStart": + return ec.fieldContext_PlanBasics_applicationsStart(ctx, field) + case "applicationsEnd": + return ec.fieldContext_PlanBasics_applicationsEnd(ctx, field) + case "performancePeriodStarts": + return ec.fieldContext_PlanBasics_performancePeriodStarts(ctx, field) + case "performancePeriodEnds": + return ec.fieldContext_PlanBasics_performancePeriodEnds(ctx, field) + case "wrapUpEnds": + return ec.fieldContext_PlanBasics_wrapUpEnds(ctx, field) + case "highLevelNote": + return ec.fieldContext_PlanBasics_highLevelNote(ctx, field) + case "phasedIn": + return ec.fieldContext_PlanBasics_phasedIn(ctx, field) + case "phasedInNote": + return ec.fieldContext_PlanBasics_phasedInNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanBasics_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanBasics_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanBasics_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanBasics_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanBasics_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanBasics_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanBasics_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanBasics_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanBasics_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanBasics_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanBasics_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanBasics_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanBasics_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanBasics", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_generalCharacteristics(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().GeneralCharacteristics(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanGeneralCharacteristics) + fc.Result = res + return ec.marshalNPlanGeneralCharacteristics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanGeneralCharacteristics(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_generalCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanGeneralCharacteristics_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanGeneralCharacteristics_modelPlanID(ctx, field) + case "isNewModel": + return ec.fieldContext_PlanGeneralCharacteristics_isNewModel(ctx, field) + case "existingModel": + return ec.fieldContext_PlanGeneralCharacteristics_existingModel(ctx, field) + case "currentModelPlanID": + return ec.fieldContext_PlanGeneralCharacteristics_currentModelPlanID(ctx, field) + case "currentModelPlan": + return ec.fieldContext_PlanGeneralCharacteristics_currentModelPlan(ctx, field) + case "existingModelID": + return ec.fieldContext_PlanGeneralCharacteristics_existingModelID(ctx, field) + case "existingModelPlan": + return ec.fieldContext_PlanGeneralCharacteristics_existingModelPlan(ctx, field) + case "resemblesExistingModel": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModel(ctx, field) + case "resemblesExistingModelWhyHow": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx, field) + case "resemblesExistingModelOtherSpecify": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx, field) + case "resemblesExistingModelOtherSelected": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx, field) + case "resemblesExistingModelOtherOption": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx, field) + case "resemblesExistingModelHow": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelHow(ctx, field) + case "resemblesExistingModelNote": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelNote(ctx, field) + case "resemblesExistingModelWhich": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx, field) + case "participationInModelPrecondition": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPrecondition(ctx, field) + case "participationInModelPreconditionWhyHow": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx, field) + case "participationInModelPreconditionOtherSpecify": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx, field) + case "participationInModelPreconditionOtherSelected": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx, field) + case "participationInModelPreconditionOtherOption": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx, field) + case "participationInModelPreconditionNote": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx, field) + case "participationInModelPreconditionWhich": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx, field) + case "hasComponentsOrTracks": + return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracks(ctx, field) + case "hasComponentsOrTracksDiffer": + return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx, field) + case "hasComponentsOrTracksNote": + return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx, field) + case "agencyOrStateHelp": + return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelp(ctx, field) + case "agencyOrStateHelpOther": + return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx, field) + case "agencyOrStateHelpNote": + return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx, field) + case "alternativePaymentModelTypes": + return ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx, field) + case "alternativePaymentModelNote": + return ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelNote(ctx, field) + case "keyCharacteristics": + return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristics(ctx, field) + case "keyCharacteristicsOther": + return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsOther(ctx, field) + case "keyCharacteristicsNote": + return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsNote(ctx, field) + case "collectPlanBids": + return ec.fieldContext_PlanGeneralCharacteristics_collectPlanBids(ctx, field) + case "collectPlanBidsNote": + return ec.fieldContext_PlanGeneralCharacteristics_collectPlanBidsNote(ctx, field) + case "managePartCDEnrollment": + return ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollment(ctx, field) + case "managePartCDEnrollmentNote": + return ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx, field) + case "planContractUpdated": + return ec.fieldContext_PlanGeneralCharacteristics_planContractUpdated(ctx, field) + case "planContractUpdatedNote": + return ec.fieldContext_PlanGeneralCharacteristics_planContractUpdatedNote(ctx, field) + case "careCoordinationInvolved": + return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolved(ctx, field) + case "careCoordinationInvolvedDescription": + return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx, field) + case "careCoordinationInvolvedNote": + return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx, field) + case "additionalServicesInvolved": + return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolved(ctx, field) + case "additionalServicesInvolvedDescription": + return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx, field) + case "additionalServicesInvolvedNote": + return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx, field) + case "communityPartnersInvolved": + return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolved(ctx, field) + case "communityPartnersInvolvedDescription": + return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx, field) + case "communityPartnersInvolvedNote": + return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx, field) + case "geographiesTargeted": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargeted(ctx, field) + case "geographiesTargetedTypes": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypes(ctx, field) + case "geographiesStatesAndTerritories": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx, field) + case "geographiesRegionTypes": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesRegionTypes(ctx, field) + case "geographiesTargetedTypesOther": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx, field) + case "geographiesTargetedAppliedTo": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx, field) + case "geographiesTargetedAppliedToOther": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx, field) + case "geographiesTargetedNote": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedNote(ctx, field) + case "participationOptions": + return ec.fieldContext_PlanGeneralCharacteristics_participationOptions(ctx, field) + case "participationOptionsNote": + return ec.fieldContext_PlanGeneralCharacteristics_participationOptionsNote(ctx, field) + case "agreementTypes": + return ec.fieldContext_PlanGeneralCharacteristics_agreementTypes(ctx, field) + case "agreementTypesOther": + return ec.fieldContext_PlanGeneralCharacteristics_agreementTypesOther(ctx, field) + case "multiplePatricipationAgreementsNeeded": + return ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx, field) + case "multiplePatricipationAgreementsNeededNote": + return ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx, field) + case "rulemakingRequired": + return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequired(ctx, field) + case "rulemakingRequiredDescription": + return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx, field) + case "rulemakingRequiredNote": + return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredNote(ctx, field) + case "authorityAllowances": + return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowances(ctx, field) + case "authorityAllowancesOther": + return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesOther(ctx, field) + case "authorityAllowancesNote": + return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesNote(ctx, field) + case "waiversRequired": + return ec.fieldContext_PlanGeneralCharacteristics_waiversRequired(ctx, field) + case "waiversRequiredTypes": + return ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredTypes(ctx, field) + case "waiversRequiredNote": + return ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanGeneralCharacteristics_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanGeneralCharacteristics_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanGeneralCharacteristics_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanGeneralCharacteristics_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanGeneralCharacteristics_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanGeneralCharacteristics_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanGeneralCharacteristics_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanGeneralCharacteristics", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_participantsAndProviders(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().ParticipantsAndProviders(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanParticipantsAndProviders) + fc.Result = res + return ec.marshalNPlanParticipantsAndProviders2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanParticipantsAndProviders(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_participantsAndProviders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanParticipantsAndProviders_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanParticipantsAndProviders_modelPlanID(ctx, field) + case "participants": + return ec.fieldContext_PlanParticipantsAndProviders_participants(ctx, field) + case "medicareProviderType": + return ec.fieldContext_PlanParticipantsAndProviders_medicareProviderType(ctx, field) + case "isNewTypeOfProvidersOrSuppliers": + return ec.fieldContext_PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx, field) + case "statesEngagement": + return ec.fieldContext_PlanParticipantsAndProviders_statesEngagement(ctx, field) + case "participantsOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantsOther(ctx, field) + case "participantsNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantsNote(ctx, field) + case "participantsCurrentlyInModels": + return ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx, field) + case "participantsCurrentlyInModelsNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx, field) + case "modelApplicationLevel": + return ec.fieldContext_PlanParticipantsAndProviders_modelApplicationLevel(ctx, field) + case "expectedNumberOfParticipants": + return ec.fieldContext_PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx, field) + case "estimateConfidence": + return ec.fieldContext_PlanParticipantsAndProviders_estimateConfidence(ctx, field) + case "confidenceNote": + return ec.fieldContext_PlanParticipantsAndProviders_confidenceNote(ctx, field) + case "recruitmentMethod": + return ec.fieldContext_PlanParticipantsAndProviders_recruitmentMethod(ctx, field) + case "recruitmentOther": + return ec.fieldContext_PlanParticipantsAndProviders_recruitmentOther(ctx, field) + case "recruitmentNote": + return ec.fieldContext_PlanParticipantsAndProviders_recruitmentNote(ctx, field) + case "selectionMethod": + return ec.fieldContext_PlanParticipantsAndProviders_selectionMethod(ctx, field) + case "selectionOther": + return ec.fieldContext_PlanParticipantsAndProviders_selectionOther(ctx, field) + case "selectionNote": + return ec.fieldContext_PlanParticipantsAndProviders_selectionNote(ctx, field) + case "participantAddedFrequency": + return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequency(ctx, field) + case "participantAddedFrequencyContinually": + return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx, field) + case "participantAddedFrequencyOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx, field) + case "participantAddedFrequencyNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx, field) + case "participantRemovedFrequency": + return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequency(ctx, field) + case "participantRemovedFrequencyContinually": + return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx, field) + case "participantRemovedFrequencyOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx, field) + case "participantRemovedFrequencyNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx, field) + case "communicationMethod": + return ec.fieldContext_PlanParticipantsAndProviders_communicationMethod(ctx, field) + case "communicationMethodOther": + return ec.fieldContext_PlanParticipantsAndProviders_communicationMethodOther(ctx, field) + case "communicationNote": + return ec.fieldContext_PlanParticipantsAndProviders_communicationNote(ctx, field) + case "riskType": + return ec.fieldContext_PlanParticipantsAndProviders_riskType(ctx, field) + case "riskOther": + return ec.fieldContext_PlanParticipantsAndProviders_riskOther(ctx, field) + case "riskNote": + return ec.fieldContext_PlanParticipantsAndProviders_riskNote(ctx, field) + case "willRiskChange": + return ec.fieldContext_PlanParticipantsAndProviders_willRiskChange(ctx, field) + case "willRiskChangeNote": + return ec.fieldContext_PlanParticipantsAndProviders_willRiskChangeNote(ctx, field) + case "participantRequireFinancialGuarantee": + return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx, field) + case "participantRequireFinancialGuaranteeType": + return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx, field) + case "participantRequireFinancialGuaranteeOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx, field) + case "participantRequireFinancialGuaranteeNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx, field) + case "coordinateWork": + return ec.fieldContext_PlanParticipantsAndProviders_coordinateWork(ctx, field) + case "coordinateWorkNote": + return ec.fieldContext_PlanParticipantsAndProviders_coordinateWorkNote(ctx, field) + case "gainsharePayments": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePayments(ctx, field) + case "gainsharePaymentsTrack": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx, field) + case "gainsharePaymentsNote": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsNote(ctx, field) + case "gainsharePaymentsEligibility": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx, field) + case "gainsharePaymentsEligibilityOther": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx, field) + case "participantsIds": + return ec.fieldContext_PlanParticipantsAndProviders_participantsIds(ctx, field) + case "participantsIdsOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantsIdsOther(ctx, field) + case "participantsIDSNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantsIDSNote(ctx, field) + case "providerAdditionFrequency": + return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequency(ctx, field) + case "providerAdditionFrequencyContinually": + return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx, field) + case "providerAdditionFrequencyOther": + return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx, field) + case "providerAdditionFrequencyNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx, field) + case "providerAddMethod": + return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethod(ctx, field) + case "providerAddMethodOther": + return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodOther(ctx, field) + case "providerAddMethodNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodNote(ctx, field) + case "providerLeaveMethod": + return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethod(ctx, field) + case "providerLeaveMethodOther": + return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodOther(ctx, field) + case "providerLeaveMethodNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodNote(ctx, field) + case "providerRemovalFrequency": + return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequency(ctx, field) + case "providerRemovalFrequencyContinually": + return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx, field) + case "providerRemovalFrequencyOther": + return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx, field) + case "providerRemovalFrequencyNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx, field) + case "providerOverlap": + return ec.fieldContext_PlanParticipantsAndProviders_providerOverlap(ctx, field) + case "providerOverlapHierarchy": + return ec.fieldContext_PlanParticipantsAndProviders_providerOverlapHierarchy(ctx, field) + case "providerOverlapNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerOverlapNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanParticipantsAndProviders_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanParticipantsAndProviders_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanParticipantsAndProviders_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanParticipantsAndProviders_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanParticipantsAndProviders_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanParticipantsAndProviders_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanParticipantsAndProviders_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanParticipantsAndProviders", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_beneficiaries(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().Beneficiaries(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanBeneficiaries) + fc.Result = res + return ec.marshalNPlanBeneficiaries2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBeneficiaries(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_beneficiaries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanBeneficiaries_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanBeneficiaries_modelPlanID(ctx, field) + case "beneficiaries": + return ec.fieldContext_PlanBeneficiaries_beneficiaries(ctx, field) + case "beneficiariesOther": + return ec.fieldContext_PlanBeneficiaries_beneficiariesOther(ctx, field) + case "beneficiariesNote": + return ec.fieldContext_PlanBeneficiaries_beneficiariesNote(ctx, field) + case "diseaseSpecificGroup": + return ec.fieldContext_PlanBeneficiaries_diseaseSpecificGroup(ctx, field) + case "treatDualElligibleDifferent": + return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferent(ctx, field) + case "treatDualElligibleDifferentHow": + return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentHow(ctx, field) + case "treatDualElligibleDifferentNote": + return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentNote(ctx, field) + case "excludeCertainCharacteristics": + return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristics(ctx, field) + case "excludeCertainCharacteristicsCriteria": + return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx, field) + case "excludeCertainCharacteristicsNote": + return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx, field) + case "numberPeopleImpacted": + return ec.fieldContext_PlanBeneficiaries_numberPeopleImpacted(ctx, field) + case "estimateConfidence": + return ec.fieldContext_PlanBeneficiaries_estimateConfidence(ctx, field) + case "confidenceNote": + return ec.fieldContext_PlanBeneficiaries_confidenceNote(ctx, field) + case "beneficiarySelectionMethod": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionMethod(ctx, field) + case "beneficiarySelectionOther": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionOther(ctx, field) + case "beneficiarySelectionNote": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionNote(ctx, field) + case "beneficiarySelectionFrequency": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequency(ctx, field) + case "beneficiarySelectionFrequencyContinually": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx, field) + case "beneficiarySelectionFrequencyOther": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx, field) + case "beneficiarySelectionFrequencyNote": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx, field) + case "beneficiaryRemovalFrequency": + return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequency(ctx, field) + case "beneficiaryRemovalFrequencyContinually": + return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx, field) + case "beneficiaryRemovalFrequencyOther": + return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx, field) + case "beneficiaryRemovalFrequencyNote": + return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx, field) + case "beneficiaryOverlap": + return ec.fieldContext_PlanBeneficiaries_beneficiaryOverlap(ctx, field) + case "beneficiaryOverlapNote": + return ec.fieldContext_PlanBeneficiaries_beneficiaryOverlapNote(ctx, field) + case "precedenceRules": + return ec.fieldContext_PlanBeneficiaries_precedenceRules(ctx, field) + case "precedenceRulesYes": + return ec.fieldContext_PlanBeneficiaries_precedenceRulesYes(ctx, field) + case "precedenceRulesNo": + return ec.fieldContext_PlanBeneficiaries_precedenceRulesNo(ctx, field) + case "precedenceRulesNote": + return ec.fieldContext_PlanBeneficiaries_precedenceRulesNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanBeneficiaries_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanBeneficiaries_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanBeneficiaries_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanBeneficiaries_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanBeneficiaries_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanBeneficiaries_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanBeneficiaries_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanBeneficiaries_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanBeneficiaries_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanBeneficiaries_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanBeneficiaries_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanBeneficiaries_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanBeneficiaries_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanBeneficiaries", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_opsEvalAndLearning(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().OpsEvalAndLearning(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanOpsEvalAndLearning) + fc.Result = res + return ec.marshalNPlanOpsEvalAndLearning2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanOpsEvalAndLearning(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_opsEvalAndLearning(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanOpsEvalAndLearning_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanOpsEvalAndLearning_modelPlanID(ctx, field) + case "stakeholders": + return ec.fieldContext_PlanOpsEvalAndLearning_stakeholders(ctx, field) + case "stakeholdersOther": + return ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersOther(ctx, field) + case "stakeholdersNote": + return ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersNote(ctx, field) + case "helpdeskUse": + return ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUse(ctx, field) + case "helpdeskUseNote": + return ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUseNote(ctx, field) + case "contractorSupport": + return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupport(ctx, field) + case "contractorSupportOther": + return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportOther(ctx, field) + case "contractorSupportHow": + return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportHow(ctx, field) + case "contractorSupportNote": + return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportNote(ctx, field) + case "iddocSupport": + return ec.fieldContext_PlanOpsEvalAndLearning_iddocSupport(ctx, field) + case "iddocSupportNote": + return ec.fieldContext_PlanOpsEvalAndLearning_iddocSupportNote(ctx, field) + case "technicalContactsIdentified": + return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentified(ctx, field) + case "technicalContactsIdentifiedDetail": + return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx, field) + case "technicalContactsIdentifiedNote": + return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx, field) + case "captureParticipantInfo": + return ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfo(ctx, field) + case "captureParticipantInfoNote": + return ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx, field) + case "icdOwner": + return ec.fieldContext_PlanOpsEvalAndLearning_icdOwner(ctx, field) + case "draftIcdDueDate": + return ec.fieldContext_PlanOpsEvalAndLearning_draftIcdDueDate(ctx, field) + case "icdNote": + return ec.fieldContext_PlanOpsEvalAndLearning_icdNote(ctx, field) + case "uatNeeds": + return ec.fieldContext_PlanOpsEvalAndLearning_uatNeeds(ctx, field) + case "stcNeeds": + return ec.fieldContext_PlanOpsEvalAndLearning_stcNeeds(ctx, field) + case "testingTimelines": + return ec.fieldContext_PlanOpsEvalAndLearning_testingTimelines(ctx, field) + case "testingNote": + return ec.fieldContext_PlanOpsEvalAndLearning_testingNote(ctx, field) + case "dataMonitoringFileTypes": + return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx, field) + case "dataMonitoringFileOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx, field) + case "dataResponseType": + return ec.fieldContext_PlanOpsEvalAndLearning_dataResponseType(ctx, field) + case "dataResponseFileFrequency": + return ec.fieldContext_PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx, field) + case "dataFullTimeOrIncremental": + return ec.fieldContext_PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx, field) + case "eftSetUp": + return ec.fieldContext_PlanOpsEvalAndLearning_eftSetUp(ctx, field) + case "unsolicitedAdjustmentsIncluded": + return ec.fieldContext_PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx, field) + case "dataFlowDiagramsNeeded": + return ec.fieldContext_PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx, field) + case "produceBenefitEnhancementFiles": + return ec.fieldContext_PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx, field) + case "fileNamingConventions": + return ec.fieldContext_PlanOpsEvalAndLearning_fileNamingConventions(ctx, field) + case "dataMonitoringNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringNote(ctx, field) + case "benchmarkForPerformance": + return ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformance(ctx, field) + case "benchmarkForPerformanceNote": + return ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx, field) + case "computePerformanceScores": + return ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScores(ctx, field) + case "computePerformanceScoresNote": + return ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx, field) + case "riskAdjustPerformance": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPerformance(ctx, field) + case "riskAdjustFeedback": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustFeedback(ctx, field) + case "riskAdjustPayments": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPayments(ctx, field) + case "riskAdjustOther": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustOther(ctx, field) + case "riskAdjustNote": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustNote(ctx, field) + case "appealPerformance": + return ec.fieldContext_PlanOpsEvalAndLearning_appealPerformance(ctx, field) + case "appealFeedback": + return ec.fieldContext_PlanOpsEvalAndLearning_appealFeedback(ctx, field) + case "appealPayments": + return ec.fieldContext_PlanOpsEvalAndLearning_appealPayments(ctx, field) + case "appealOther": + return ec.fieldContext_PlanOpsEvalAndLearning_appealOther(ctx, field) + case "appealNote": + return ec.fieldContext_PlanOpsEvalAndLearning_appealNote(ctx, field) + case "evaluationApproaches": + return ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproaches(ctx, field) + case "evaluationApproachOther": + return ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproachOther(ctx, field) + case "evalutaionApproachNote": + return ec.fieldContext_PlanOpsEvalAndLearning_evalutaionApproachNote(ctx, field) + case "ccmInvolvment": + return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvment(ctx, field) + case "ccmInvolvmentOther": + return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx, field) + case "ccmInvolvmentNote": + return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx, field) + case "dataNeededForMonitoring": + return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx, field) + case "dataNeededForMonitoringOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx, field) + case "dataNeededForMonitoringNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx, field) + case "dataToSendParticicipants": + return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipants(ctx, field) + case "dataToSendParticicipantsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx, field) + case "dataToSendParticicipantsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx, field) + case "shareCclfData": + return ec.fieldContext_PlanOpsEvalAndLearning_shareCclfData(ctx, field) + case "shareCclfDataNote": + return ec.fieldContext_PlanOpsEvalAndLearning_shareCclfDataNote(ctx, field) + case "sendFilesBetweenCcw": + return ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx, field) + case "sendFilesBetweenCcwNote": + return ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx, field) + case "appToSendFilesToKnown": + return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx, field) + case "appToSendFilesToWhich": + return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx, field) + case "appToSendFilesToNote": + return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToNote(ctx, field) + case "useCcwForFileDistribiutionToParticipants": + return ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx, field) + case "useCcwForFileDistribiutionToParticipantsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx, field) + case "developNewQualityMeasures": + return ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasures(ctx, field) + case "developNewQualityMeasuresNote": + return ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx, field) + case "qualityPerformanceImpactsPayment": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx, field) + case "qualityPerformanceImpactsPaymentOther": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx, field) + case "qualityPerformanceImpactsPaymentNote": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx, field) + case "dataSharingStarts": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStarts(ctx, field) + case "dataSharingStartsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsOther(ctx, field) + case "dataSharingFrequency": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequency(ctx, field) + case "dataSharingFrequencyContinually": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx, field) + case "dataSharingFrequencyOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx, field) + case "dataSharingStartsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsNote(ctx, field) + case "dataCollectionStarts": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStarts(ctx, field) + case "dataCollectionStartsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx, field) + case "dataCollectionFrequency": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequency(ctx, field) + case "dataCollectionFrequencyContinually": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx, field) + case "dataCollectionFrequencyOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx, field) + case "dataCollectionFrequencyNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx, field) + case "qualityReportingStarts": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStarts(ctx, field) + case "qualityReportingStartsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx, field) + case "qualityReportingStartsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx, field) + case "qualityReportingFrequency": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequency(ctx, field) + case "qualityReportingFrequencyContinually": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx, field) + case "qualityReportingFrequencyOther": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx, field) + case "modelLearningSystems": + return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystems(ctx, field) + case "modelLearningSystemsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx, field) + case "modelLearningSystemsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx, field) + case "anticipatedChallenges": + return ec.fieldContext_PlanOpsEvalAndLearning_anticipatedChallenges(ctx, field) + case "createdBy": + return ec.fieldContext_PlanOpsEvalAndLearning_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanOpsEvalAndLearning_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanOpsEvalAndLearning_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanOpsEvalAndLearning_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanOpsEvalAndLearning_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanOpsEvalAndLearning_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanOpsEvalAndLearning_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanOpsEvalAndLearning", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_collaborators(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_collaborators(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().Collaborators(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PlanCollaborator) + fc.Result = res + return ec.marshalNPlanCollaborator2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaboratorᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_collaborators(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCollaborator_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) + case "userID": + return ec.fieldContext_PlanCollaborator_userID(ctx, field) + case "userAccount": + return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) + case "teamRoles": + return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_documents(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_documents(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().Documents(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PlanDocument) + fc.Result = res + return ec.marshalNPlanDocument2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDocument_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) + case "isLink": + return ec.fieldContext_PlanDocument_isLink(ctx, field) + case "url": + return ec.fieldContext_PlanDocument_url(ctx, field) + case "fileType": + return ec.fieldContext_PlanDocument_fileType(ctx, field) + case "bucket": + return ec.fieldContext_PlanDocument_bucket(ctx, field) + case "fileKey": + return ec.fieldContext_PlanDocument_fileKey(ctx, field) + case "virusScanned": + return ec.fieldContext_PlanDocument_virusScanned(ctx, field) + case "virusClean": + return ec.fieldContext_PlanDocument_virusClean(ctx, field) + case "restricted": + return ec.fieldContext_PlanDocument_restricted(ctx, field) + case "fileName": + return ec.fieldContext_PlanDocument_fileName(ctx, field) + case "fileSize": + return ec.fieldContext_PlanDocument_fileSize(ctx, field) + case "documentType": + return ec.fieldContext_PlanDocument_documentType(ctx, field) + case "otherType": + return ec.fieldContext_PlanDocument_otherType(ctx, field) + case "optionalNotes": + return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) + case "downloadUrl": + return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) + case "deletedAt": + return ec.fieldContext_PlanDocument_deletedAt(ctx, field) + case "numLinkedSolutions": + return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDocument_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDocument_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_discussions(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_discussions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().Discussions(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PlanDiscussion) + fc.Result = res + return ec.marshalNPlanDiscussion2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDiscussion_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) + case "content": + return ec.fieldContext_PlanDiscussion_content(ctx, field) + case "userRole": + return ec.fieldContext_PlanDiscussion_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) + case "replies": + return ec.fieldContext_PlanDiscussion_replies(ctx, field) + case "isAssessment": + return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_payments(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_payments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().Payments(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanPayments) + fc.Result = res + return ec.marshalNPlanPayments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_payments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanPayments_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanPayments_modelPlanID(ctx, field) + case "fundingSource": + return ec.fieldContext_PlanPayments_fundingSource(ctx, field) + case "fundingSourcePatientProtectionInfo": + return ec.fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx, field) + case "fundingSourceMedicareAInfo": + return ec.fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx, field) + case "fundingSourceMedicareBInfo": + return ec.fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx, field) + case "fundingSourceOther": + return ec.fieldContext_PlanPayments_fundingSourceOther(ctx, field) + case "fundingSourceNote": + return ec.fieldContext_PlanPayments_fundingSourceNote(ctx, field) + case "fundingSourceR": + return ec.fieldContext_PlanPayments_fundingSourceR(ctx, field) + case "fundingSourceRPatientProtectionInfo": + return ec.fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field) + case "fundingSourceRMedicareAInfo": + return ec.fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx, field) + case "fundingSourceRMedicareBInfo": + return ec.fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx, field) + case "fundingSourceROther": + return ec.fieldContext_PlanPayments_fundingSourceROther(ctx, field) + case "fundingSourceRNote": + return ec.fieldContext_PlanPayments_fundingSourceRNote(ctx, field) + case "payRecipients": + return ec.fieldContext_PlanPayments_payRecipients(ctx, field) + case "payRecipientsOtherSpecification": + return ec.fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx, field) + case "payRecipientsNote": + return ec.fieldContext_PlanPayments_payRecipientsNote(ctx, field) + case "payType": + return ec.fieldContext_PlanPayments_payType(ctx, field) + case "payTypeNote": + return ec.fieldContext_PlanPayments_payTypeNote(ctx, field) + case "payClaims": + return ec.fieldContext_PlanPayments_payClaims(ctx, field) + case "payClaimsOther": + return ec.fieldContext_PlanPayments_payClaimsOther(ctx, field) + case "payClaimsNote": + return ec.fieldContext_PlanPayments_payClaimsNote(ctx, field) + case "shouldAnyProvidersExcludedFFSSystems": + return ec.fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field) + case "shouldAnyProviderExcludedFFSSystemsNote": + return ec.fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) + case "changesMedicarePhysicianFeeSchedule": + return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field) + case "changesMedicarePhysicianFeeScheduleNote": + return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field) + case "affectsMedicareSecondaryPayerClaims": + return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field) + case "affectsMedicareSecondaryPayerClaimsHow": + return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field) + case "affectsMedicareSecondaryPayerClaimsNote": + return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field) + case "payModelDifferentiation": + return ec.fieldContext_PlanPayments_payModelDifferentiation(ctx, field) + case "willBePaymentAdjustments": + return ec.fieldContext_PlanPayments_willBePaymentAdjustments(ctx, field) + case "willBePaymentAdjustmentsNote": + return ec.fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx, field) + case "creatingDependenciesBetweenServices": + return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx, field) + case "creatingDependenciesBetweenServicesNote": + return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field) + case "needsClaimsDataCollection": + return ec.fieldContext_PlanPayments_needsClaimsDataCollection(ctx, field) + case "needsClaimsDataCollectionNote": + return ec.fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx, field) + case "providingThirdPartyFile": + return ec.fieldContext_PlanPayments_providingThirdPartyFile(ctx, field) + case "isContractorAwareTestDataRequirements": + return ec.fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx, field) + case "beneficiaryCostSharingLevelAndHandling": + return ec.fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field) + case "waiveBeneficiaryCostSharingForAnyServices": + return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field) + case "waiveBeneficiaryCostSharingServiceSpecification": + return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) + case "waiverOnlyAppliesPartOfPayment": + return ec.fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field) + case "waiveBeneficiaryCostSharingNote": + return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field) + case "nonClaimsPayments": + return ec.fieldContext_PlanPayments_nonClaimsPayments(ctx, field) + case "nonClaimsPaymentOther": + return ec.fieldContext_PlanPayments_nonClaimsPaymentOther(ctx, field) + case "nonClaimsPaymentsNote": + return ec.fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx, field) + case "paymentCalculationOwner": + return ec.fieldContext_PlanPayments_paymentCalculationOwner(ctx, field) + case "numberPaymentsPerPayCycle": + return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx, field) + case "numberPaymentsPerPayCycleNote": + return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx, field) + case "sharedSystemsInvolvedAdditionalClaimPayment": + return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) + case "sharedSystemsInvolvedAdditionalClaimPaymentNote": + return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) + case "planningToUseInnovationPaymentContractor": + return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx, field) + case "planningToUseInnovationPaymentContractorNote": + return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field) + case "expectedCalculationComplexityLevel": + return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx, field) + case "expectedCalculationComplexityLevelNote": + return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx, field) + case "claimsProcessingPrecedence": + return ec.fieldContext_PlanPayments_claimsProcessingPrecedence(ctx, field) + case "claimsProcessingPrecedenceOther": + return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx, field) + case "claimsProcessingPrecedenceNote": + return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx, field) + case "canParticipantsSelectBetweenPaymentMechanisms": + return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) + case "canParticipantsSelectBetweenPaymentMechanismsHow": + return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) + case "canParticipantsSelectBetweenPaymentMechanismsNote": + return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) + case "anticipatedPaymentFrequency": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx, field) + case "anticipatedPaymentFrequencyContinually": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field) + case "anticipatedPaymentFrequencyOther": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx, field) + case "anticipatedPaymentFrequencyNote": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx, field) + case "willRecoverPayments": + return ec.fieldContext_PlanPayments_willRecoverPayments(ctx, field) + case "willRecoverPaymentsNote": + return ec.fieldContext_PlanPayments_willRecoverPaymentsNote(ctx, field) + case "anticipateReconcilingPaymentsRetrospectively": + return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field) + case "anticipateReconcilingPaymentsRetrospectivelyNote": + return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) + case "paymentReconciliationFrequency": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequency(ctx, field) + case "paymentReconciliationFrequencyContinually": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx, field) + case "paymentReconciliationFrequencyOther": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx, field) + case "paymentReconciliationFrequencyNote": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx, field) + case "paymentDemandRecoupmentFrequency": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx, field) + case "paymentDemandRecoupmentFrequencyContinually": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field) + case "paymentDemandRecoupmentFrequencyOther": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field) + case "paymentDemandRecoupmentFrequencyNote": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field) + case "paymentStartDate": + return ec.fieldContext_PlanPayments_paymentStartDate(ctx, field) + case "paymentStartDateNote": + return ec.fieldContext_PlanPayments_paymentStartDateNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanPayments_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanPayments_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanPayments_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanPayments_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanPayments_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanPayments_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanPayments_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanPayments_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanPayments_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanPayments_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanPayments_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanPayments_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanPayments", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_dataExchangeApproach(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().DataExchangeApproach(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDataExchangeApproach) + fc.Result = res + return ec.marshalNPlanDataExchangeApproach2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_dataExchangeApproach(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDataExchangeApproach_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDataExchangeApproach_modelPlanID(ctx, field) + case "dataToCollectFromParticipants": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field) + case "dataToCollectFromParticipantsReportsDetails": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field) + case "dataToCollectFromParticipantsOther": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field) + case "dataWillNotBeCollectedFromParticipants": + return ec.fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field) + case "dataToCollectFromParticipantsNote": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field) + case "dataToSendToParticipants": + return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx, field) + case "dataToSendToParticipantsNote": + return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field) + case "doesNeedToMakeMultiPayerDataAvailable": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field) + case "anticipatedMultiPayerDataAvailabilityUseCase": + return ec.fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) + case "doesNeedToMakeMultiPayerDataAvailableNote": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) + case "doesNeedToCollectAndAggregateMultiSourceData": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) + case "multiSourceDataToCollect": + return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field) + case "multiSourceDataToCollectOther": + return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field) + case "doesNeedToCollectAndAggregateMultiSourceDataNote": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) + case "willImplementNewDataExchangeMethods": + return ec.fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field) + case "newDataExchangeMethodsDescription": + return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field) + case "newDataExchangeMethodsNote": + return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field) + case "additionalDataExchangeConsiderationsDescription": + return ec.fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDataExchangeApproach_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDataExchangeApproach_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDataExchangeApproach_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDataExchangeApproach_modifiedDts(ctx, field) + case "isDataExchangeApproachComplete": + return ec.fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field) + case "markedCompleteBy": + return ec.fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx, field) + case "markedCompleteByUserAccount": + return ec.fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field) + case "markedCompleteDts": + return ec.fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx, field) + case "status": + return ec.fieldContext_PlanDataExchangeApproach_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDataExchangeApproach", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_status(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ModelStatus) + fc.Result = res + return ec.marshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_taskListStatus(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().TaskListStatus(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TaskStatus) + fc.Result = res + return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_taskListStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_suggestedPhase(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().SuggestedPhase(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.PhaseSuggestion) + fc.Result = res + return ec.marshalOPhaseSuggestion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPhaseSuggestion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_suggestedPhase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "phase": + return ec.fieldContext_PhaseSuggestion_phase(ctx, field) + case "suggestedStatuses": + return ec.fieldContext_PhaseSuggestion_suggestedStatuses(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PhaseSuggestion", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_isFavorite(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_isFavorite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().IsFavorite(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_isFavorite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_isCollaborator(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().IsCollaborator(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_isCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_crs(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_crs(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().Crs(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PlanCR) + fc.Result = res + return ec.marshalNPlanCR2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCRᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_crs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCR_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCR_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanCR_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanCR_dateInitiated(ctx, field) + case "dateImplemented": + return ec.fieldContext_PlanCR_dateImplemented(ctx, field) + case "title": + return ec.fieldContext_PlanCR_title(ctx, field) + case "note": + return ec.fieldContext_PlanCR_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCR_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCR_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCR_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCR_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_tdls(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_tdls(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().Tdls(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PlanTDL) + fc.Result = res + return ec.marshalNPlanTDL2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDLᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_tdls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanTDL_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanTDL_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) + case "title": + return ec.fieldContext_PlanTDL_title(ctx, field) + case "note": + return ec.fieldContext_PlanTDL_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanTDL_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanTDL_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_echimpCRsAndTDLs(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().EchimpCRsAndTDLs(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.EChimpCRAndTDLS) + fc.Result = res + return ec.marshalNEChimpCRAndTDLS2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐEChimpCRAndTDLSᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_echimpCRsAndTDLs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type EChimpCRAndTDLS does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_prepareForClearance(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().PrepareForClearance(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.PrepareForClearance) + fc.Result = res + return ec.marshalNPrepareForClearance2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearance(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_prepareForClearance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "status": + return ec.fieldContext_PrepareForClearance_status(ctx, field) + case "latestClearanceDts": + return ec.fieldContext_PrepareForClearance_latestClearanceDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PrepareForClearance", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_nameHistory(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_nameHistory(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().NameHistory(rctx, obj, fc.Args["sort"].(models.SortDirection)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_nameHistory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_ModelPlan_nameHistory_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_operationalNeeds(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().OperationalNeeds(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.OperationalNeed) + fc.Result = res + return ec.marshalNOperationalNeed2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_operationalNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalNeed_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) + case "needed": + return ec.fieldContext_OperationalNeed_needed(ctx, field) + case "solutions": + return ec.fieldContext_OperationalNeed_solutions(ctx, field) + case "key": + return ec.fieldContext_OperationalNeed_key(ctx, field) + case "name": + return ec.fieldContext_OperationalNeed_name(ctx, field) + case "nameOther": + return ec.fieldContext_OperationalNeed_nameOther(ctx, field) + case "section": + return ec.fieldContext_OperationalNeed_section(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalNeed_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalNeed_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalNeed", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_opSolutionLastModifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().OpSolutionLastModifiedDts(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_previousSuggestedPhase(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PreviousSuggestedPhase, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ModelPhase) + fc.Result = res + return ec.marshalOModelPhase2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_previousSuggestedPhase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelPhase does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_mtoMatrix(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().MtoMatrix(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelsToOperationMatrix) + fc.Result = res + return ec.marshalNModelsToOperationMatrix2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelsToOperationMatrix(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_mtoMatrix(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "categories": + return ec.fieldContext_ModelsToOperationMatrix_categories(ctx, field) + case "commonMilestones": + return ec.fieldContext_ModelsToOperationMatrix_commonMilestones(ctx, field) + case "commonSolutions": + return ec.fieldContext_ModelsToOperationMatrix_commonSolutions(ctx, field) + case "milestones": + return ec.fieldContext_ModelsToOperationMatrix_milestones(ctx, field) + case "solutions": + return ec.fieldContext_ModelsToOperationMatrix_solutions(ctx, field) + case "status": + return ec.fieldContext_ModelsToOperationMatrix_status(ctx, field) + case "recentEdit": + return ec.fieldContext_ModelsToOperationMatrix_recentEdit(ctx, field) + case "info": + return ec.fieldContext_ModelsToOperationMatrix_info(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelsToOperationMatrix", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlan_modelBySolutionStatus(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlan().ModelBySolutionStatus(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ModelBySolutionStatus) + fc.Result = res + return ec.marshalNModelBySolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelBySolutionStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlan_modelBySolutionStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlan", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelBySolutionStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlanAndPossibleOperationalSolution().PossibleOperationalSolution(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PossibleOperationalSolution) + fc.Result = res + return ec.marshalNPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolution(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanAndPossibleOperationalSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PossibleOperationalSolution_id(ctx, field) + case "name": + return ec.fieldContext_PossibleOperationalSolution_name(ctx, field) + case "key": + return ec.fieldContext_PossibleOperationalSolution_key(ctx, field) + case "treatAsOther": + return ec.fieldContext_PossibleOperationalSolution_treatAsOther(ctx, field) + case "pointsOfContact": + return ec.fieldContext_PossibleOperationalSolution_pointsOfContact(ctx, field) + case "primaryContact": + return ec.fieldContext_PossibleOperationalSolution_primaryContact(ctx, field) + case "filterView": + return ec.fieldContext_PossibleOperationalSolution_filterView(ctx, field) + case "createdBy": + return ec.fieldContext_PossibleOperationalSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PossibleOperationalSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PossibleOperationalSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PossibleOperationalSolution_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolution", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PossibleOperationalSolutionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanAndPossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.OperationalSolutionKey) + fc.Result = res + return ec.marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanAndPossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OperationalSolutionKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanAndPossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanAndPossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlanAndPossibleOperationalSolution().ModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanAndPossibleOperationalSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanSharedActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanSharedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanSharedActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanSharedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanSharedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanSharedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanSharedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelPlanSharedActivityMeta().ModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanSharedActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanSharedActivityMeta_optionalMessage(ctx context.Context, field graphql.CollectedField, obj *models.ModelPlanSharedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanSharedActivityMeta_optionalMessage(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OptionalMessage, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanSharedActivityMeta_optionalMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanSharedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanTranslation_modelName(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanTranslation_modelName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanTranslation_modelName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanTranslation_previousName(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanTranslation_previousName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PreviousName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanTranslation_previousName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanTranslation_nameHistory(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanTranslation_nameHistory(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NameHistory, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanTranslation_nameHistory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanTranslation_abbreviation(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanTranslation_abbreviation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Abbreviation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanTranslation_abbreviation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanTranslation_archived(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanTranslation_archived(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Archived, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanTranslation_archived(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelPlanTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.ModelPlanTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelPlanTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelPlanTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelPlanTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelsToOperationMatrix_categories(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelsToOperationMatrix_categories(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelsToOperationMatrix().Categories(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOCategory) + fc.Result = res + return ec.marshalNMTOCategory2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategoryᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelsToOperationMatrix_categories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelsToOperationMatrix", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOCategory_id(ctx, field) + case "name": + return ec.fieldContext_MTOCategory_name(ctx, field) + case "position": + return ec.fieldContext_MTOCategory_position(ctx, field) + case "isUncategorized": + return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) + case "subCategories": + return ec.fieldContext_MTOCategory_subCategories(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelsToOperationMatrix_commonMilestones(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelsToOperationMatrix_commonMilestones(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelsToOperationMatrix().CommonMilestones(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOCommonMilestone) + fc.Result = res + return ec.marshalNMTOCommonMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelsToOperationMatrix_commonMilestones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelsToOperationMatrix", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext_MTOCommonMilestone_name(ctx, field) + case "key": + return ec.fieldContext_MTOCommonMilestone_key(ctx, field) + case "categoryName": + return ec.fieldContext_MTOCommonMilestone_categoryName(ctx, field) + case "subCategoryName": + return ec.fieldContext_MTOCommonMilestone_subCategoryName(ctx, field) + case "facilitatedByRole": + return ec.fieldContext_MTOCommonMilestone_facilitatedByRole(ctx, field) + case "section": + return ec.fieldContext_MTOCommonMilestone_section(ctx, field) + case "isAdded": + return ec.fieldContext_MTOCommonMilestone_isAdded(ctx, field) + case "isSuggested": + return ec.fieldContext_MTOCommonMilestone_isSuggested(ctx, field) + case "commonSolutions": + return ec.fieldContext_MTOCommonMilestone_commonSolutions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCommonMilestone", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelsToOperationMatrix_commonSolutions(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelsToOperationMatrix_commonSolutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelsToOperationMatrix().CommonSolutions(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOCommonSolution) + fc.Result = res + return ec.marshalNMTOCommonSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelsToOperationMatrix_commonSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelsToOperationMatrix", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext_MTOCommonSolution_name(ctx, field) + case "key": + return ec.fieldContext_MTOCommonSolution_key(ctx, field) + case "type": + return ec.fieldContext_MTOCommonSolution_type(ctx, field) + case "subjects": + return ec.fieldContext_MTOCommonSolution_subjects(ctx, field) + case "filterView": + return ec.fieldContext_MTOCommonSolution_filterView(ctx, field) + case "isAdded": + return ec.fieldContext_MTOCommonSolution_isAdded(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCommonSolution", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelsToOperationMatrix_milestones(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelsToOperationMatrix_milestones(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelsToOperationMatrix().Milestones(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOMilestone) + fc.Result = res + return ec.marshalNMTOMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelsToOperationMatrix_milestones(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelsToOperationMatrix", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOMilestone_id(ctx, field) + case "name": + return ec.fieldContext_MTOMilestone_name(ctx, field) + case "key": + return ec.fieldContext_MTOMilestone_key(ctx, field) + case "mtoCategoryID": + return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) + case "needBy": + return ec.fieldContext_MTOMilestone_needBy(ctx, field) + case "status": + return ec.fieldContext_MTOMilestone_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) + case "isDraft": + return ec.fieldContext_MTOMilestone_isDraft(ctx, field) + case "createdBy": + return ec.fieldContext_MTOMilestone_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOMilestone_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) + case "addedFromMilestoneLibrary": + return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) + case "commonMilestone": + return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) + case "solutions": + return ec.fieldContext_MTOMilestone_solutions(ctx, field) + case "category": + return ec.fieldContext_MTOMilestone_category(ctx, field) + case "subCategory": + return ec.fieldContext_MTOMilestone_subCategory(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelsToOperationMatrix_solutions(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelsToOperationMatrix_solutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelsToOperationMatrix().Solutions(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.MTOSolution) + fc.Result = res + return ec.marshalNMTOSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelsToOperationMatrix_solutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelsToOperationMatrix", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOSolution_id(ctx, field) + case "name": + return ec.fieldContext_MTOSolution_name(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) + case "neededBy": + return ec.fieldContext_MTOSolution_neededBy(ctx, field) + case "status": + return ec.fieldContext_MTOSolution_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) + case "key": + return ec.fieldContext_MTOSolution_key(ctx, field) + case "type": + return ec.fieldContext_MTOSolution_type(ctx, field) + case "pocName": + return ec.fieldContext_MTOSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_MTOSolution_pocEmail(ctx, field) + case "createdBy": + return ec.fieldContext_MTOSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) + case "relatedMilestones": + return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) + case "addedFromSolutionLibrary": + return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) + case "commonSolution": + return ec.fieldContext_MTOSolution_commonSolution(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelsToOperationMatrix_status(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelsToOperationMatrix_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelsToOperationMatrix().Status(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.MTOStatus) + fc.Result = res + return ec.marshalNMTOStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelsToOperationMatrix_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelsToOperationMatrix", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MTOStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelsToOperationMatrix_recentEdit(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelsToOperationMatrix_recentEdit(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelsToOperationMatrix().RecentEdit(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.RecentModification) + fc.Result = res + return ec.marshalORecentModification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecentModification(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelsToOperationMatrix_recentEdit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelsToOperationMatrix", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "modifiedBy": + return ec.fieldContext_RecentModification_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_RecentModification_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_RecentModification_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RecentModification", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ModelsToOperationMatrix_info(ctx context.Context, field graphql.CollectedField, obj *models.ModelsToOperationMatrix) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ModelsToOperationMatrix_info(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.ModelsToOperationMatrix().Info(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOInfo) + fc.Result = res + return ec.marshalNMTOInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ModelsToOperationMatrix_info(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ModelsToOperationMatrix", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOInfo_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_MTOInfo_modelPlanID(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_MTOInfo_readyForReviewBy(ctx, field) + case "readyForReviewDTS": + return ec.fieldContext_MTOInfo_readyForReviewDTS(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_MTOInfo_readyForReviewByUserAccount(ctx, field) + case "createdBy": + return ec.fieldContext_MTOInfo_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOInfo_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOInfo_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOInfo_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOInfo_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOInfo_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createDiscussionReply(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createDiscussionReply(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateDiscussionReply(rctx, fc.Args["input"].(model.DiscussionReplyCreateInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.DiscussionReply); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.DiscussionReply`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.DiscussionReply) + fc.Result = res + return ec.marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createDiscussionReply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DiscussionReply_id(ctx, field) + case "discussionID": + return ec.fieldContext_DiscussionReply_discussionID(ctx, field) + case "content": + return ec.fieldContext_DiscussionReply_content(ctx, field) + case "userRole": + return ec.fieldContext_DiscussionReply_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) + case "isAssessment": + return ec.fieldContext_DiscussionReply_isAssessment(ctx, field) + case "createdBy": + return ec.fieldContext_DiscussionReply_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_DiscussionReply_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DiscussionReply", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createDiscussionReply_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateExistingModelLinks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateExistingModelLinks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateExistingModelLinks(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["fieldName"].(models.ExisitingModelLinkFieldType), fc.Args["existingModelIDs"].([]int), fc.Args["currentModelPlanIDs"].([]uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.ExistingModelLinks); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ExistingModelLinks`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ExistingModelLinks) + fc.Result = res + return ec.marshalNExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateExistingModelLinks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "links": + return ec.fieldContext_ExistingModelLinks_links(ctx, field) + case "fieldName": + return ec.fieldContext_ExistingModelLinks_fieldName(ctx, field) + case "modelPlanID": + return ec.fieldContext_ExistingModelLinks_modelPlanID(ctx, field) + case "names": + return ec.fieldContext_ExistingModelLinks_names(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExistingModelLinks", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateExistingModelLinks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_lockLockableSection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_lockLockableSection(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().LockLockableSection(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["section"].(models.LockableSection)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(bool); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_lockLockableSection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_lockLockableSection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_unlockLockableSection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_unlockLockableSection(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UnlockLockableSection(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["section"].(models.LockableSection)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(bool); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_unlockLockableSection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_unlockLockableSection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_unlockAllLockableSections(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_unlockAllLockableSections(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UnlockAllLockableSections(rctx, fc.Args["modelPlanID"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_ASSESSMENT") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*model.LockableSectionLockStatus); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/graph/model.LockableSectionLockStatus`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*model.LockableSectionLockStatus) + fc.Result = res + return ec.marshalNLockableSectionLockStatus2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_unlockAllLockableSections(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "modelPlanID": + return ec.fieldContext_LockableSectionLockStatus_modelPlanID(ctx, field) + case "section": + return ec.fieldContext_LockableSectionLockStatus_section(ctx, field) + case "lockedByUserAccount": + return ec.fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx, field) + case "isAssessment": + return ec.fieldContext_LockableSectionLockStatus_isAssessment(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatus", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_unlockAllLockableSections_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createModelPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createModelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateModelPlan(rctx, fc.Args["modelName"].(string)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.ModelPlan); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ModelPlan`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createModelPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateModelPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateModelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateModelPlan(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.ModelPlan); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ModelPlan`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateModelPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_shareModelPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_shareModelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().ShareModelPlan(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["viewFilter"].(*models.ModelViewFilter), fc.Args["usernames"].([]string), fc.Args["optionalMessage"].(*string)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(bool); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_shareModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_shareModelPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_markMTOReadyForReview(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_markMTOReadyForReview(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().MarkMTOReadyForReview(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["readyForReview"].(bool)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOInfo); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOInfo`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOInfo) + fc.Result = res + return ec.marshalNMTOInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_markMTOReadyForReview(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOInfo_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_MTOInfo_modelPlanID(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_MTOInfo_readyForReviewBy(ctx, field) + case "readyForReviewDTS": + return ec.fieldContext_MTOInfo_readyForReviewDTS(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_MTOInfo_readyForReviewByUserAccount(ctx, field) + case "createdBy": + return ec.fieldContext_MTOInfo_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOInfo_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOInfo_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOInfo_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOInfo_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOInfo_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOInfo", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_markMTOReadyForReview_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createMTOCategory(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createMTOCategory(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateMTOCategory(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["name"].(string), fc.Args["parentID"].(*uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOCategory); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOCategory`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOCategory) + fc.Result = res + return ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createMTOCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOCategory_id(ctx, field) + case "name": + return ec.fieldContext_MTOCategory_name(ctx, field) + case "position": + return ec.fieldContext_MTOCategory_position(ctx, field) + case "isUncategorized": + return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) + case "subCategories": + return ec.fieldContext_MTOCategory_subCategories(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createMTOCategory_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_renameMTOCategory(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_renameMTOCategory(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().RenameMTOCategory(rctx, fc.Args["id"].(uuid.UUID), fc.Args["name"].(string)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOCategory); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOCategory`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOCategory) + fc.Result = res + return ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_renameMTOCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOCategory_id(ctx, field) + case "name": + return ec.fieldContext_MTOCategory_name(ctx, field) + case "position": + return ec.fieldContext_MTOCategory_position(ctx, field) + case "isUncategorized": + return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) + case "subCategories": + return ec.fieldContext_MTOCategory_subCategories(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_renameMTOCategory_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_reorderMTOCategory(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_reorderMTOCategory(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().ReorderMTOCategory(rctx, fc.Args["id"].(uuid.UUID), fc.Args["newOrder"].(*int), fc.Args["parentID"].(*uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOCategory); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOCategory`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOCategory) + fc.Result = res + return ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_reorderMTOCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOCategory_id(ctx, field) + case "name": + return ec.fieldContext_MTOCategory_name(ctx, field) + case "position": + return ec.fieldContext_MTOCategory_position(ctx, field) + case "isUncategorized": + return ec.fieldContext_MTOCategory_isUncategorized(ctx, field) + case "subCategories": + return ec.fieldContext_MTOCategory_subCategories(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOCategory", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_reorderMTOCategory_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createMTOMilestoneCustom(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createMTOMilestoneCustom(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateMTOMilestoneCustom(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["name"].(string), fc.Args["mtoCategoryID"].(*uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOMilestone); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOMilestone`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOMilestone) + fc.Result = res + return ec.marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createMTOMilestoneCustom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOMilestone_id(ctx, field) + case "name": + return ec.fieldContext_MTOMilestone_name(ctx, field) + case "key": + return ec.fieldContext_MTOMilestone_key(ctx, field) + case "mtoCategoryID": + return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) + case "needBy": + return ec.fieldContext_MTOMilestone_needBy(ctx, field) + case "status": + return ec.fieldContext_MTOMilestone_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) + case "isDraft": + return ec.fieldContext_MTOMilestone_isDraft(ctx, field) + case "createdBy": + return ec.fieldContext_MTOMilestone_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOMilestone_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) + case "addedFromMilestoneLibrary": + return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) + case "commonMilestone": + return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) + case "solutions": + return ec.fieldContext_MTOMilestone_solutions(ctx, field) + case "category": + return ec.fieldContext_MTOMilestone_category(ctx, field) + case "subCategory": + return ec.fieldContext_MTOMilestone_subCategory(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createMTOMilestoneCustom_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createMTOMilestoneCommon(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createMTOMilestoneCommon(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateMTOMilestoneCommon(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["commonMilestoneKey"].(models.MTOCommonMilestoneKey)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOMilestone); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOMilestone`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOMilestone) + fc.Result = res + return ec.marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createMTOMilestoneCommon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOMilestone_id(ctx, field) + case "name": + return ec.fieldContext_MTOMilestone_name(ctx, field) + case "key": + return ec.fieldContext_MTOMilestone_key(ctx, field) + case "mtoCategoryID": + return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) + case "needBy": + return ec.fieldContext_MTOMilestone_needBy(ctx, field) + case "status": + return ec.fieldContext_MTOMilestone_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) + case "isDraft": + return ec.fieldContext_MTOMilestone_isDraft(ctx, field) + case "createdBy": + return ec.fieldContext_MTOMilestone_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOMilestone_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) + case "addedFromMilestoneLibrary": + return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) + case "commonMilestone": + return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) + case "solutions": + return ec.fieldContext_MTOMilestone_solutions(ctx, field) + case "category": + return ec.fieldContext_MTOMilestone_category(ctx, field) + case "subCategory": + return ec.fieldContext_MTOMilestone_subCategory(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createMTOMilestoneCommon_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateMTOMilestone(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateMTOMilestone(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateMTOMilestone(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOMilestone); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOMilestone`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOMilestone) + fc.Result = res + return ec.marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateMTOMilestone(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOMilestone_id(ctx, field) + case "name": + return ec.fieldContext_MTOMilestone_name(ctx, field) + case "key": + return ec.fieldContext_MTOMilestone_key(ctx, field) + case "mtoCategoryID": + return ec.fieldContext_MTOMilestone_mtoCategoryID(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOMilestone_facilitatedBy(ctx, field) + case "needBy": + return ec.fieldContext_MTOMilestone_needBy(ctx, field) + case "status": + return ec.fieldContext_MTOMilestone_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOMilestone_riskIndicator(ctx, field) + case "isDraft": + return ec.fieldContext_MTOMilestone_isDraft(ctx, field) + case "createdBy": + return ec.fieldContext_MTOMilestone_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOMilestone_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOMilestone_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOMilestone_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOMilestone_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOMilestone_modifiedDts(ctx, field) + case "addedFromMilestoneLibrary": + return ec.fieldContext_MTOMilestone_addedFromMilestoneLibrary(ctx, field) + case "commonMilestone": + return ec.fieldContext_MTOMilestone_commonMilestone(ctx, field) + case "solutions": + return ec.fieldContext_MTOMilestone_solutions(ctx, field) + case "category": + return ec.fieldContext_MTOMilestone_category(ctx, field) + case "subCategory": + return ec.fieldContext_MTOMilestone_subCategory(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOMilestone", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateMTOMilestone_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createMTOSolutionCustom(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createMTOSolutionCustom(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateMTOSolutionCustom(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["solutionType"].(models.MTOSolutionType), fc.Args["name"].(string), fc.Args["pocName"].(string), fc.Args["pocEmail"].(string)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOSolution); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOSolution`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOSolution) + fc.Result = res + return ec.marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createMTOSolutionCustom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOSolution_id(ctx, field) + case "name": + return ec.fieldContext_MTOSolution_name(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) + case "neededBy": + return ec.fieldContext_MTOSolution_neededBy(ctx, field) + case "status": + return ec.fieldContext_MTOSolution_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) + case "key": + return ec.fieldContext_MTOSolution_key(ctx, field) + case "type": + return ec.fieldContext_MTOSolution_type(ctx, field) + case "pocName": + return ec.fieldContext_MTOSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_MTOSolution_pocEmail(ctx, field) + case "createdBy": + return ec.fieldContext_MTOSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) + case "relatedMilestones": + return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) + case "addedFromSolutionLibrary": + return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) + case "commonSolution": + return ec.fieldContext_MTOSolution_commonSolution(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createMTOSolutionCustom_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createMTOSolutionCommon(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createMTOSolutionCommon(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateMTOSolutionCommon(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["key"].(models.MTOCommonSolutionKey)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOSolution); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOSolution`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOSolution) + fc.Result = res + return ec.marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createMTOSolutionCommon(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOSolution_id(ctx, field) + case "name": + return ec.fieldContext_MTOSolution_name(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) + case "neededBy": + return ec.fieldContext_MTOSolution_neededBy(ctx, field) + case "status": + return ec.fieldContext_MTOSolution_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) + case "key": + return ec.fieldContext_MTOSolution_key(ctx, field) + case "type": + return ec.fieldContext_MTOSolution_type(ctx, field) + case "pocName": + return ec.fieldContext_MTOSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_MTOSolution_pocEmail(ctx, field) + case "createdBy": + return ec.fieldContext_MTOSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) + case "relatedMilestones": + return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) + case "addedFromSolutionLibrary": + return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) + case "commonSolution": + return ec.fieldContext_MTOSolution_commonSolution(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createMTOSolutionCommon_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateMTOSolution(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateMTOSolution(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateMTOSolution(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.MTOSolution); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.MTOSolution`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.MTOSolution) + fc.Result = res + return ec.marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateMTOSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_MTOSolution_id(ctx, field) + case "name": + return ec.fieldContext_MTOSolution_name(ctx, field) + case "facilitatedBy": + return ec.fieldContext_MTOSolution_facilitatedBy(ctx, field) + case "neededBy": + return ec.fieldContext_MTOSolution_neededBy(ctx, field) + case "status": + return ec.fieldContext_MTOSolution_status(ctx, field) + case "riskIndicator": + return ec.fieldContext_MTOSolution_riskIndicator(ctx, field) + case "key": + return ec.fieldContext_MTOSolution_key(ctx, field) + case "type": + return ec.fieldContext_MTOSolution_type(ctx, field) + case "pocName": + return ec.fieldContext_MTOSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_MTOSolution_pocEmail(ctx, field) + case "createdBy": + return ec.fieldContext_MTOSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_MTOSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_MTOSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_MTOSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_MTOSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_MTOSolution_modifiedDts(ctx, field) + case "relatedMilestones": + return ec.fieldContext_MTOSolution_relatedMilestones(ctx, field) + case "addedFromSolutionLibrary": + return ec.fieldContext_MTOSolution_addedFromSolutionLibrary(ctx, field) + case "commonSolution": + return ec.fieldContext_MTOSolution_commonSolution(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type MTOSolution", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateMTOSolution_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_agreeToNDA(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_agreeToNDA(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().AgreeToNda(rctx, fc.Args["agree"].(bool)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*model.NDAInfo); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/graph/model.NDAInfo`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.NDAInfo) + fc.Result = res + return ec.marshalNNDAInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNDAInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_agreeToNDA(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "agreed": + return ec.fieldContext_NDAInfo_agreed(ctx, field) + case "agreedDts": + return ec.fieldContext_NDAInfo_agreedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NDAInfo", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_agreeToNDA_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_addOrUpdateCustomOperationalNeed(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_addOrUpdateCustomOperationalNeed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().AddOrUpdateCustomOperationalNeed(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["customNeedType"].(string), fc.Args["needed"].(bool)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.OperationalNeed); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalNeed`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.OperationalNeed) + fc.Result = res + return ec.marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_addOrUpdateCustomOperationalNeed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalNeed_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) + case "needed": + return ec.fieldContext_OperationalNeed_needed(ctx, field) + case "solutions": + return ec.fieldContext_OperationalNeed_solutions(ctx, field) + case "key": + return ec.fieldContext_OperationalNeed_key(ctx, field) + case "name": + return ec.fieldContext_OperationalNeed_name(ctx, field) + case "nameOther": + return ec.fieldContext_OperationalNeed_nameOther(ctx, field) + case "section": + return ec.fieldContext_OperationalNeed_section(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalNeed_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalNeed_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalNeed", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_addOrUpdateCustomOperationalNeed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateCustomOperationalNeedByID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateCustomOperationalNeedByID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateCustomOperationalNeedByID(rctx, fc.Args["id"].(uuid.UUID), fc.Args["customNeedType"].(*string), fc.Args["needed"].(bool)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.OperationalNeed); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalNeed`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.OperationalNeed) + fc.Result = res + return ec.marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateCustomOperationalNeedByID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalNeed_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) + case "needed": + return ec.fieldContext_OperationalNeed_needed(ctx, field) + case "solutions": + return ec.fieldContext_OperationalNeed_solutions(ctx, field) + case "key": + return ec.fieldContext_OperationalNeed_key(ctx, field) + case "name": + return ec.fieldContext_OperationalNeed_name(ctx, field) + case "nameOther": + return ec.fieldContext_OperationalNeed_nameOther(ctx, field) + case "section": + return ec.fieldContext_OperationalNeed_section(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalNeed_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalNeed_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalNeed", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateCustomOperationalNeedByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createOperationalSolution(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOperationalSolution(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOperationalSolution(rctx, fc.Args["operationalNeedID"].(uuid.UUID), fc.Args["solutionType"].(*models.OperationalSolutionKey), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.OperationalSolution); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalSolution`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.OperationalSolution) + fc.Result = res + return ec.marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createOperationalSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalSolution_id(ctx, field) + case "operationalNeedID": + return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) + case "solutionType": + return ec.fieldContext_OperationalSolution_solutionType(ctx, field) + case "needed": + return ec.fieldContext_OperationalSolution_needed(ctx, field) + case "name": + return ec.fieldContext_OperationalSolution_name(ctx, field) + case "key": + return ec.fieldContext_OperationalSolution_key(ctx, field) + case "nameOther": + return ec.fieldContext_OperationalSolution_nameOther(ctx, field) + case "pocName": + return ec.fieldContext_OperationalSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) + case "mustStartDts": + return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) + case "mustFinishDts": + return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) + case "isOther": + return ec.fieldContext_OperationalSolution_isOther(ctx, field) + case "isCommonSolution": + return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) + case "otherHeader": + return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) + case "status": + return ec.fieldContext_OperationalSolution_status(ctx, field) + case "documents": + return ec.fieldContext_OperationalSolution_documents(ctx, field) + case "operationalSolutionSubtasks": + return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createOperationalSolution_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateOperationalSolution(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOperationalSolution(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOperationalSolution(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.OperationalSolution); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalSolution`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.OperationalSolution) + fc.Result = res + return ec.marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateOperationalSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalSolution_id(ctx, field) + case "operationalNeedID": + return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) + case "solutionType": + return ec.fieldContext_OperationalSolution_solutionType(ctx, field) + case "needed": + return ec.fieldContext_OperationalSolution_needed(ctx, field) + case "name": + return ec.fieldContext_OperationalSolution_name(ctx, field) + case "key": + return ec.fieldContext_OperationalSolution_key(ctx, field) + case "nameOther": + return ec.fieldContext_OperationalSolution_nameOther(ctx, field) + case "pocName": + return ec.fieldContext_OperationalSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) + case "mustStartDts": + return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) + case "mustFinishDts": + return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) + case "isOther": + return ec.fieldContext_OperationalSolution_isOther(ctx, field) + case "isCommonSolution": + return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) + case "otherHeader": + return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) + case "status": + return ec.fieldContext_OperationalSolution_status(ctx, field) + case "documents": + return ec.fieldContext_OperationalSolution_documents(ctx, field) + case "operationalSolutionSubtasks": + return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateOperationalSolution_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createOperationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOperationalSolutionSubtasks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOperationalSolutionSubtasks(rctx, fc.Args["solutionID"].(uuid.UUID), fc.Args["inputs"].([]*model.CreateOperationalSolutionSubtaskInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.OperationalSolutionSubtask); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.OperationalSolutionSubtask`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*models.OperationalSolutionSubtask) + fc.Result = res + return ec.marshalOOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createOperationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalSolutionSubtask_id(ctx, field) + case "solutionID": + return ec.fieldContext_OperationalSolutionSubtask_solutionID(ctx, field) + case "name": + return ec.fieldContext_OperationalSolutionSubtask_name(ctx, field) + case "status": + return ec.fieldContext_OperationalSolutionSubtask_status(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalSolutionSubtask_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalSolutionSubtask_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalSolutionSubtask_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalSolutionSubtask_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalSolutionSubtask", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createOperationalSolutionSubtasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateOperationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOperationalSolutionSubtasks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOperationalSolutionSubtasks(rctx, fc.Args["inputs"].([]*model.UpdateOperationalSolutionSubtaskInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.OperationalSolutionSubtask); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.OperationalSolutionSubtask`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*models.OperationalSolutionSubtask) + fc.Result = res + return ec.marshalOOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateOperationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalSolutionSubtask_id(ctx, field) + case "solutionID": + return ec.fieldContext_OperationalSolutionSubtask_solutionID(ctx, field) + case "name": + return ec.fieldContext_OperationalSolutionSubtask_name(ctx, field) + case "status": + return ec.fieldContext_OperationalSolutionSubtask_status(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalSolutionSubtask_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalSolutionSubtask_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalSolutionSubtask_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalSolutionSubtask_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalSolutionSubtask", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateOperationalSolutionSubtasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteOperationalSolutionSubtask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteOperationalSolutionSubtask(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOperationalSolutionSubtask(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(int); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be int`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteOperationalSolutionSubtask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteOperationalSolutionSubtask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanBasics(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanBasics(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanBasics(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanBasics); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanBasics`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanBasics) + fc.Result = res + return ec.marshalNPlanBasics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBasics(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanBasics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanBasics_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanBasics_modelPlanID(ctx, field) + case "demoCode": + return ec.fieldContext_PlanBasics_demoCode(ctx, field) + case "amsModelID": + return ec.fieldContext_PlanBasics_amsModelID(ctx, field) + case "modelCategory": + return ec.fieldContext_PlanBasics_modelCategory(ctx, field) + case "additionalModelCategories": + return ec.fieldContext_PlanBasics_additionalModelCategories(ctx, field) + case "cmsCenters": + return ec.fieldContext_PlanBasics_cmsCenters(ctx, field) + case "cmmiGroups": + return ec.fieldContext_PlanBasics_cmmiGroups(ctx, field) + case "modelType": + return ec.fieldContext_PlanBasics_modelType(ctx, field) + case "modelTypeOther": + return ec.fieldContext_PlanBasics_modelTypeOther(ctx, field) + case "problem": + return ec.fieldContext_PlanBasics_problem(ctx, field) + case "goal": + return ec.fieldContext_PlanBasics_goal(ctx, field) + case "testInterventions": + return ec.fieldContext_PlanBasics_testInterventions(ctx, field) + case "note": + return ec.fieldContext_PlanBasics_note(ctx, field) + case "completeICIP": + return ec.fieldContext_PlanBasics_completeICIP(ctx, field) + case "clearanceStarts": + return ec.fieldContext_PlanBasics_clearanceStarts(ctx, field) + case "clearanceEnds": + return ec.fieldContext_PlanBasics_clearanceEnds(ctx, field) + case "announced": + return ec.fieldContext_PlanBasics_announced(ctx, field) + case "applicationsStart": + return ec.fieldContext_PlanBasics_applicationsStart(ctx, field) + case "applicationsEnd": + return ec.fieldContext_PlanBasics_applicationsEnd(ctx, field) + case "performancePeriodStarts": + return ec.fieldContext_PlanBasics_performancePeriodStarts(ctx, field) + case "performancePeriodEnds": + return ec.fieldContext_PlanBasics_performancePeriodEnds(ctx, field) + case "wrapUpEnds": + return ec.fieldContext_PlanBasics_wrapUpEnds(ctx, field) + case "highLevelNote": + return ec.fieldContext_PlanBasics_highLevelNote(ctx, field) + case "phasedIn": + return ec.fieldContext_PlanBasics_phasedIn(ctx, field) + case "phasedInNote": + return ec.fieldContext_PlanBasics_phasedInNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanBasics_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanBasics_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanBasics_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanBasics_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanBasics_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanBasics_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanBasics_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanBasics_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanBasics_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanBasics_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanBasics_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanBasics_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanBasics_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanBasics", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanBasics_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanBeneficiaries(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanBeneficiaries(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanBeneficiaries(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanBeneficiaries); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanBeneficiaries`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanBeneficiaries) + fc.Result = res + return ec.marshalNPlanBeneficiaries2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBeneficiaries(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanBeneficiaries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanBeneficiaries_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanBeneficiaries_modelPlanID(ctx, field) + case "beneficiaries": + return ec.fieldContext_PlanBeneficiaries_beneficiaries(ctx, field) + case "beneficiariesOther": + return ec.fieldContext_PlanBeneficiaries_beneficiariesOther(ctx, field) + case "beneficiariesNote": + return ec.fieldContext_PlanBeneficiaries_beneficiariesNote(ctx, field) + case "diseaseSpecificGroup": + return ec.fieldContext_PlanBeneficiaries_diseaseSpecificGroup(ctx, field) + case "treatDualElligibleDifferent": + return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferent(ctx, field) + case "treatDualElligibleDifferentHow": + return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentHow(ctx, field) + case "treatDualElligibleDifferentNote": + return ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentNote(ctx, field) + case "excludeCertainCharacteristics": + return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristics(ctx, field) + case "excludeCertainCharacteristicsCriteria": + return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx, field) + case "excludeCertainCharacteristicsNote": + return ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx, field) + case "numberPeopleImpacted": + return ec.fieldContext_PlanBeneficiaries_numberPeopleImpacted(ctx, field) + case "estimateConfidence": + return ec.fieldContext_PlanBeneficiaries_estimateConfidence(ctx, field) + case "confidenceNote": + return ec.fieldContext_PlanBeneficiaries_confidenceNote(ctx, field) + case "beneficiarySelectionMethod": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionMethod(ctx, field) + case "beneficiarySelectionOther": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionOther(ctx, field) + case "beneficiarySelectionNote": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionNote(ctx, field) + case "beneficiarySelectionFrequency": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequency(ctx, field) + case "beneficiarySelectionFrequencyContinually": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx, field) + case "beneficiarySelectionFrequencyOther": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx, field) + case "beneficiarySelectionFrequencyNote": + return ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx, field) + case "beneficiaryRemovalFrequency": + return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequency(ctx, field) + case "beneficiaryRemovalFrequencyContinually": + return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx, field) + case "beneficiaryRemovalFrequencyOther": + return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx, field) + case "beneficiaryRemovalFrequencyNote": + return ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx, field) + case "beneficiaryOverlap": + return ec.fieldContext_PlanBeneficiaries_beneficiaryOverlap(ctx, field) + case "beneficiaryOverlapNote": + return ec.fieldContext_PlanBeneficiaries_beneficiaryOverlapNote(ctx, field) + case "precedenceRules": + return ec.fieldContext_PlanBeneficiaries_precedenceRules(ctx, field) + case "precedenceRulesYes": + return ec.fieldContext_PlanBeneficiaries_precedenceRulesYes(ctx, field) + case "precedenceRulesNo": + return ec.fieldContext_PlanBeneficiaries_precedenceRulesNo(ctx, field) + case "precedenceRulesNote": + return ec.fieldContext_PlanBeneficiaries_precedenceRulesNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanBeneficiaries_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanBeneficiaries_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanBeneficiaries_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanBeneficiaries_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanBeneficiaries_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanBeneficiaries_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanBeneficiaries_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanBeneficiaries_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanBeneficiaries_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanBeneficiaries_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanBeneficiaries_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanBeneficiaries_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanBeneficiaries_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanBeneficiaries", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanBeneficiaries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createPlanCollaborator(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createPlanCollaborator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreatePlanCollaborator(rctx, fc.Args["input"].(model.PlanCollaboratorCreateInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanCollaborator); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCollaborator`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanCollaborator) + fc.Result = res + return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createPlanCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCollaborator_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) + case "userID": + return ec.fieldContext_PlanCollaborator_userID(ctx, field) + case "userAccount": + return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) + case "teamRoles": + return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createPlanCollaborator_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanCollaborator(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanCollaborator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanCollaborator(rctx, fc.Args["id"].(uuid.UUID), fc.Args["newRoles"].([]models.TeamRole)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanCollaborator); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCollaborator`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanCollaborator) + fc.Result = res + return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCollaborator_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) + case "userID": + return ec.fieldContext_PlanCollaborator_userID(ctx, field) + case "userAccount": + return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) + case "teamRoles": + return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanCollaborator_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deletePlanCollaborator(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deletePlanCollaborator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeletePlanCollaborator(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanCollaborator); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCollaborator`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanCollaborator) + fc.Result = res + return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deletePlanCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCollaborator_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) + case "userID": + return ec.fieldContext_PlanCollaborator_userID(ctx, field) + case "userAccount": + return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) + case "teamRoles": + return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deletePlanCollaborator_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createPlanCR(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createPlanCR(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreatePlanCr(rctx, fc.Args["input"].(model.PlanCRCreateInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanCR); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCR`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanCR) + fc.Result = res + return ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createPlanCR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCR_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCR_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanCR_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanCR_dateInitiated(ctx, field) + case "dateImplemented": + return ec.fieldContext_PlanCR_dateImplemented(ctx, field) + case "title": + return ec.fieldContext_PlanCR_title(ctx, field) + case "note": + return ec.fieldContext_PlanCR_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCR_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCR_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCR_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCR_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createPlanCR_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanCR(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanCR(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanCr(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanCR); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCR`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanCR) + fc.Result = res + return ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanCR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCR_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCR_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanCR_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanCR_dateInitiated(ctx, field) + case "dateImplemented": + return ec.fieldContext_PlanCR_dateImplemented(ctx, field) + case "title": + return ec.fieldContext_PlanCR_title(ctx, field) + case "note": + return ec.fieldContext_PlanCR_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCR_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCR_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCR_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCR_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanCR_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deletePlanCR(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deletePlanCR(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeletePlanCr(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanCR); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCR`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanCR) + fc.Result = res + return ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deletePlanCR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCR_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCR_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanCR_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanCR_dateInitiated(ctx, field) + case "dateImplemented": + return ec.fieldContext_PlanCR_dateImplemented(ctx, field) + case "title": + return ec.fieldContext_PlanCR_title(ctx, field) + case "note": + return ec.fieldContext_PlanCR_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCR_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCR_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCR_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCR_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deletePlanCR_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanDataExchangeApproach(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanDataExchangeApproach(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanDataExchangeApproach(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanDataExchangeApproach); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDataExchangeApproach`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDataExchangeApproach) + fc.Result = res + return ec.marshalNPlanDataExchangeApproach2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanDataExchangeApproach(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDataExchangeApproach_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDataExchangeApproach_modelPlanID(ctx, field) + case "dataToCollectFromParticipants": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field) + case "dataToCollectFromParticipantsReportsDetails": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field) + case "dataToCollectFromParticipantsOther": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field) + case "dataWillNotBeCollectedFromParticipants": + return ec.fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field) + case "dataToCollectFromParticipantsNote": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field) + case "dataToSendToParticipants": + return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx, field) + case "dataToSendToParticipantsNote": + return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field) + case "doesNeedToMakeMultiPayerDataAvailable": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field) + case "anticipatedMultiPayerDataAvailabilityUseCase": + return ec.fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) + case "doesNeedToMakeMultiPayerDataAvailableNote": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) + case "doesNeedToCollectAndAggregateMultiSourceData": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) + case "multiSourceDataToCollect": + return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field) + case "multiSourceDataToCollectOther": + return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field) + case "doesNeedToCollectAndAggregateMultiSourceDataNote": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) + case "willImplementNewDataExchangeMethods": + return ec.fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field) + case "newDataExchangeMethodsDescription": + return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field) + case "newDataExchangeMethodsNote": + return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field) + case "additionalDataExchangeConsiderationsDescription": + return ec.fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDataExchangeApproach_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDataExchangeApproach_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDataExchangeApproach_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDataExchangeApproach_modifiedDts(ctx, field) + case "isDataExchangeApproachComplete": + return ec.fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field) + case "markedCompleteBy": + return ec.fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx, field) + case "markedCompleteByUserAccount": + return ec.fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field) + case "markedCompleteDts": + return ec.fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx, field) + case "status": + return ec.fieldContext_PlanDataExchangeApproach_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDataExchangeApproach", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanDataExchangeApproach_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createPlanDiscussion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createPlanDiscussion(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreatePlanDiscussion(rctx, fc.Args["input"].(model.PlanDiscussionCreateInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanDiscussion); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDiscussion`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDiscussion) + fc.Result = res + return ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createPlanDiscussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDiscussion_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) + case "content": + return ec.fieldContext_PlanDiscussion_content(ctx, field) + case "userRole": + return ec.fieldContext_PlanDiscussion_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) + case "replies": + return ec.fieldContext_PlanDiscussion_replies(ctx, field) + case "isAssessment": + return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createPlanDiscussion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_uploadNewPlanDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_uploadNewPlanDocument(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UploadNewPlanDocument(rctx, fc.Args["input"].(model.PlanDocumentInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanDocument); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDocument`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDocument) + fc.Result = res + return ec.marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_uploadNewPlanDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDocument_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) + case "isLink": + return ec.fieldContext_PlanDocument_isLink(ctx, field) + case "url": + return ec.fieldContext_PlanDocument_url(ctx, field) + case "fileType": + return ec.fieldContext_PlanDocument_fileType(ctx, field) + case "bucket": + return ec.fieldContext_PlanDocument_bucket(ctx, field) + case "fileKey": + return ec.fieldContext_PlanDocument_fileKey(ctx, field) + case "virusScanned": + return ec.fieldContext_PlanDocument_virusScanned(ctx, field) + case "virusClean": + return ec.fieldContext_PlanDocument_virusClean(ctx, field) + case "restricted": + return ec.fieldContext_PlanDocument_restricted(ctx, field) + case "fileName": + return ec.fieldContext_PlanDocument_fileName(ctx, field) + case "fileSize": + return ec.fieldContext_PlanDocument_fileSize(ctx, field) + case "documentType": + return ec.fieldContext_PlanDocument_documentType(ctx, field) + case "otherType": + return ec.fieldContext_PlanDocument_otherType(ctx, field) + case "optionalNotes": + return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) + case "downloadUrl": + return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) + case "deletedAt": + return ec.fieldContext_PlanDocument_deletedAt(ctx, field) + case "numLinkedSolutions": + return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDocument_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDocument_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_uploadNewPlanDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_linkNewPlanDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_linkNewPlanDocument(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().LinkNewPlanDocument(rctx, fc.Args["input"].(model.PlanDocumentLinkInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanDocument); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDocument`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDocument) + fc.Result = res + return ec.marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_linkNewPlanDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDocument_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) + case "isLink": + return ec.fieldContext_PlanDocument_isLink(ctx, field) + case "url": + return ec.fieldContext_PlanDocument_url(ctx, field) + case "fileType": + return ec.fieldContext_PlanDocument_fileType(ctx, field) + case "bucket": + return ec.fieldContext_PlanDocument_bucket(ctx, field) + case "fileKey": + return ec.fieldContext_PlanDocument_fileKey(ctx, field) + case "virusScanned": + return ec.fieldContext_PlanDocument_virusScanned(ctx, field) + case "virusClean": + return ec.fieldContext_PlanDocument_virusClean(ctx, field) + case "restricted": + return ec.fieldContext_PlanDocument_restricted(ctx, field) + case "fileName": + return ec.fieldContext_PlanDocument_fileName(ctx, field) + case "fileSize": + return ec.fieldContext_PlanDocument_fileSize(ctx, field) + case "documentType": + return ec.fieldContext_PlanDocument_documentType(ctx, field) + case "otherType": + return ec.fieldContext_PlanDocument_otherType(ctx, field) + case "optionalNotes": + return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) + case "downloadUrl": + return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) + case "deletedAt": + return ec.fieldContext_PlanDocument_deletedAt(ctx, field) + case "numLinkedSolutions": + return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDocument_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDocument_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_linkNewPlanDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deletePlanDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deletePlanDocument(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeletePlanDocument(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(int); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be int`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deletePlanDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deletePlanDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createPlanDocumentSolutionLinks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createPlanDocumentSolutionLinks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreatePlanDocumentSolutionLinks(rctx, fc.Args["solutionID"].(uuid.UUID), fc.Args["documentIDs"].([]uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.PlanDocumentSolutionLink); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.PlanDocumentSolutionLink`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*models.PlanDocumentSolutionLink) + fc.Result = res + return ec.marshalOPlanDocumentSolutionLink2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentSolutionLinkᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createPlanDocumentSolutionLinks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDocumentSolutionLink_id(ctx, field) + case "solutionID": + return ec.fieldContext_PlanDocumentSolutionLink_solutionID(ctx, field) + case "documentID": + return ec.fieldContext_PlanDocumentSolutionLink_documentID(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDocumentSolutionLink_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDocumentSolutionLink_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDocumentSolutionLink_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDocumentSolutionLink_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDocumentSolutionLink_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDocumentSolutionLink_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDocumentSolutionLink", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createPlanDocumentSolutionLinks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_removePlanDocumentSolutionLinks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_removePlanDocumentSolutionLinks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().RemovePlanDocumentSolutionLinks(rctx, fc.Args["solutionID"].(uuid.UUID), fc.Args["documentIDs"].([]uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(bool); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_removePlanDocumentSolutionLinks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_removePlanDocumentSolutionLinks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_addPlanFavorite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_addPlanFavorite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().AddPlanFavorite(rctx, fc.Args["modelPlanID"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanFavorite); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanFavorite`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanFavorite) + fc.Result = res + return ec.marshalNPlanFavorite2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanFavorite(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_addPlanFavorite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanFavorite_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanFavorite_modelPlanID(ctx, field) + case "userID": + return ec.fieldContext_PlanFavorite_userID(ctx, field) + case "userAccount": + return ec.fieldContext_PlanFavorite_userAccount(ctx, field) + case "createdBy": + return ec.fieldContext_PlanFavorite_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanFavorite_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanFavorite_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanFavorite_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanFavorite_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanFavorite_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanFavorite", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_addPlanFavorite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deletePlanFavorite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deletePlanFavorite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeletePlanFavorite(rctx, fc.Args["modelPlanID"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanFavorite); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanFavorite`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanFavorite) + fc.Result = res + return ec.marshalNPlanFavorite2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanFavorite(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deletePlanFavorite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanFavorite_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanFavorite_modelPlanID(ctx, field) + case "userID": + return ec.fieldContext_PlanFavorite_userID(ctx, field) + case "userAccount": + return ec.fieldContext_PlanFavorite_userAccount(ctx, field) + case "createdBy": + return ec.fieldContext_PlanFavorite_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanFavorite_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanFavorite_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanFavorite_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanFavorite_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanFavorite_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanFavorite", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deletePlanFavorite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanGeneralCharacteristics(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanGeneralCharacteristics(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanGeneralCharacteristics(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanGeneralCharacteristics); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanGeneralCharacteristics`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanGeneralCharacteristics) + fc.Result = res + return ec.marshalNPlanGeneralCharacteristics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanGeneralCharacteristics(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanGeneralCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanGeneralCharacteristics_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanGeneralCharacteristics_modelPlanID(ctx, field) + case "isNewModel": + return ec.fieldContext_PlanGeneralCharacteristics_isNewModel(ctx, field) + case "existingModel": + return ec.fieldContext_PlanGeneralCharacteristics_existingModel(ctx, field) + case "currentModelPlanID": + return ec.fieldContext_PlanGeneralCharacteristics_currentModelPlanID(ctx, field) + case "currentModelPlan": + return ec.fieldContext_PlanGeneralCharacteristics_currentModelPlan(ctx, field) + case "existingModelID": + return ec.fieldContext_PlanGeneralCharacteristics_existingModelID(ctx, field) + case "existingModelPlan": + return ec.fieldContext_PlanGeneralCharacteristics_existingModelPlan(ctx, field) + case "resemblesExistingModel": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModel(ctx, field) + case "resemblesExistingModelWhyHow": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx, field) + case "resemblesExistingModelOtherSpecify": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx, field) + case "resemblesExistingModelOtherSelected": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx, field) + case "resemblesExistingModelOtherOption": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx, field) + case "resemblesExistingModelHow": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelHow(ctx, field) + case "resemblesExistingModelNote": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelNote(ctx, field) + case "resemblesExistingModelWhich": + return ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx, field) + case "participationInModelPrecondition": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPrecondition(ctx, field) + case "participationInModelPreconditionWhyHow": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx, field) + case "participationInModelPreconditionOtherSpecify": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx, field) + case "participationInModelPreconditionOtherSelected": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx, field) + case "participationInModelPreconditionOtherOption": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx, field) + case "participationInModelPreconditionNote": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx, field) + case "participationInModelPreconditionWhich": + return ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx, field) + case "hasComponentsOrTracks": + return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracks(ctx, field) + case "hasComponentsOrTracksDiffer": + return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx, field) + case "hasComponentsOrTracksNote": + return ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx, field) + case "agencyOrStateHelp": + return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelp(ctx, field) + case "agencyOrStateHelpOther": + return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx, field) + case "agencyOrStateHelpNote": + return ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx, field) + case "alternativePaymentModelTypes": + return ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx, field) + case "alternativePaymentModelNote": + return ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelNote(ctx, field) + case "keyCharacteristics": + return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristics(ctx, field) + case "keyCharacteristicsOther": + return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsOther(ctx, field) + case "keyCharacteristicsNote": + return ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsNote(ctx, field) + case "collectPlanBids": + return ec.fieldContext_PlanGeneralCharacteristics_collectPlanBids(ctx, field) + case "collectPlanBidsNote": + return ec.fieldContext_PlanGeneralCharacteristics_collectPlanBidsNote(ctx, field) + case "managePartCDEnrollment": + return ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollment(ctx, field) + case "managePartCDEnrollmentNote": + return ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx, field) + case "planContractUpdated": + return ec.fieldContext_PlanGeneralCharacteristics_planContractUpdated(ctx, field) + case "planContractUpdatedNote": + return ec.fieldContext_PlanGeneralCharacteristics_planContractUpdatedNote(ctx, field) + case "careCoordinationInvolved": + return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolved(ctx, field) + case "careCoordinationInvolvedDescription": + return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx, field) + case "careCoordinationInvolvedNote": + return ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx, field) + case "additionalServicesInvolved": + return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolved(ctx, field) + case "additionalServicesInvolvedDescription": + return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx, field) + case "additionalServicesInvolvedNote": + return ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx, field) + case "communityPartnersInvolved": + return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolved(ctx, field) + case "communityPartnersInvolvedDescription": + return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx, field) + case "communityPartnersInvolvedNote": + return ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx, field) + case "geographiesTargeted": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargeted(ctx, field) + case "geographiesTargetedTypes": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypes(ctx, field) + case "geographiesStatesAndTerritories": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx, field) + case "geographiesRegionTypes": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesRegionTypes(ctx, field) + case "geographiesTargetedTypesOther": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx, field) + case "geographiesTargetedAppliedTo": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx, field) + case "geographiesTargetedAppliedToOther": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx, field) + case "geographiesTargetedNote": + return ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedNote(ctx, field) + case "participationOptions": + return ec.fieldContext_PlanGeneralCharacteristics_participationOptions(ctx, field) + case "participationOptionsNote": + return ec.fieldContext_PlanGeneralCharacteristics_participationOptionsNote(ctx, field) + case "agreementTypes": + return ec.fieldContext_PlanGeneralCharacteristics_agreementTypes(ctx, field) + case "agreementTypesOther": + return ec.fieldContext_PlanGeneralCharacteristics_agreementTypesOther(ctx, field) + case "multiplePatricipationAgreementsNeeded": + return ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx, field) + case "multiplePatricipationAgreementsNeededNote": + return ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx, field) + case "rulemakingRequired": + return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequired(ctx, field) + case "rulemakingRequiredDescription": + return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx, field) + case "rulemakingRequiredNote": + return ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredNote(ctx, field) + case "authorityAllowances": + return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowances(ctx, field) + case "authorityAllowancesOther": + return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesOther(ctx, field) + case "authorityAllowancesNote": + return ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesNote(ctx, field) + case "waiversRequired": + return ec.fieldContext_PlanGeneralCharacteristics_waiversRequired(ctx, field) + case "waiversRequiredTypes": + return ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredTypes(ctx, field) + case "waiversRequiredNote": + return ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanGeneralCharacteristics_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanGeneralCharacteristics_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanGeneralCharacteristics_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanGeneralCharacteristics_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanGeneralCharacteristics_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanGeneralCharacteristics_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanGeneralCharacteristics_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanGeneralCharacteristics_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanGeneralCharacteristics", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanGeneralCharacteristics_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanOpsEvalAndLearning(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanOpsEvalAndLearning(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanOpsEvalAndLearning(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanOpsEvalAndLearning); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanOpsEvalAndLearning`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanOpsEvalAndLearning) + fc.Result = res + return ec.marshalNPlanOpsEvalAndLearning2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanOpsEvalAndLearning(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanOpsEvalAndLearning(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanOpsEvalAndLearning_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanOpsEvalAndLearning_modelPlanID(ctx, field) + case "stakeholders": + return ec.fieldContext_PlanOpsEvalAndLearning_stakeholders(ctx, field) + case "stakeholdersOther": + return ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersOther(ctx, field) + case "stakeholdersNote": + return ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersNote(ctx, field) + case "helpdeskUse": + return ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUse(ctx, field) + case "helpdeskUseNote": + return ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUseNote(ctx, field) + case "contractorSupport": + return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupport(ctx, field) + case "contractorSupportOther": + return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportOther(ctx, field) + case "contractorSupportHow": + return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportHow(ctx, field) + case "contractorSupportNote": + return ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportNote(ctx, field) + case "iddocSupport": + return ec.fieldContext_PlanOpsEvalAndLearning_iddocSupport(ctx, field) + case "iddocSupportNote": + return ec.fieldContext_PlanOpsEvalAndLearning_iddocSupportNote(ctx, field) + case "technicalContactsIdentified": + return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentified(ctx, field) + case "technicalContactsIdentifiedDetail": + return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx, field) + case "technicalContactsIdentifiedNote": + return ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx, field) + case "captureParticipantInfo": + return ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfo(ctx, field) + case "captureParticipantInfoNote": + return ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx, field) + case "icdOwner": + return ec.fieldContext_PlanOpsEvalAndLearning_icdOwner(ctx, field) + case "draftIcdDueDate": + return ec.fieldContext_PlanOpsEvalAndLearning_draftIcdDueDate(ctx, field) + case "icdNote": + return ec.fieldContext_PlanOpsEvalAndLearning_icdNote(ctx, field) + case "uatNeeds": + return ec.fieldContext_PlanOpsEvalAndLearning_uatNeeds(ctx, field) + case "stcNeeds": + return ec.fieldContext_PlanOpsEvalAndLearning_stcNeeds(ctx, field) + case "testingTimelines": + return ec.fieldContext_PlanOpsEvalAndLearning_testingTimelines(ctx, field) + case "testingNote": + return ec.fieldContext_PlanOpsEvalAndLearning_testingNote(ctx, field) + case "dataMonitoringFileTypes": + return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx, field) + case "dataMonitoringFileOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx, field) + case "dataResponseType": + return ec.fieldContext_PlanOpsEvalAndLearning_dataResponseType(ctx, field) + case "dataResponseFileFrequency": + return ec.fieldContext_PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx, field) + case "dataFullTimeOrIncremental": + return ec.fieldContext_PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx, field) + case "eftSetUp": + return ec.fieldContext_PlanOpsEvalAndLearning_eftSetUp(ctx, field) + case "unsolicitedAdjustmentsIncluded": + return ec.fieldContext_PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx, field) + case "dataFlowDiagramsNeeded": + return ec.fieldContext_PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx, field) + case "produceBenefitEnhancementFiles": + return ec.fieldContext_PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx, field) + case "fileNamingConventions": + return ec.fieldContext_PlanOpsEvalAndLearning_fileNamingConventions(ctx, field) + case "dataMonitoringNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringNote(ctx, field) + case "benchmarkForPerformance": + return ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformance(ctx, field) + case "benchmarkForPerformanceNote": + return ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx, field) + case "computePerformanceScores": + return ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScores(ctx, field) + case "computePerformanceScoresNote": + return ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx, field) + case "riskAdjustPerformance": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPerformance(ctx, field) + case "riskAdjustFeedback": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustFeedback(ctx, field) + case "riskAdjustPayments": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPayments(ctx, field) + case "riskAdjustOther": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustOther(ctx, field) + case "riskAdjustNote": + return ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustNote(ctx, field) + case "appealPerformance": + return ec.fieldContext_PlanOpsEvalAndLearning_appealPerformance(ctx, field) + case "appealFeedback": + return ec.fieldContext_PlanOpsEvalAndLearning_appealFeedback(ctx, field) + case "appealPayments": + return ec.fieldContext_PlanOpsEvalAndLearning_appealPayments(ctx, field) + case "appealOther": + return ec.fieldContext_PlanOpsEvalAndLearning_appealOther(ctx, field) + case "appealNote": + return ec.fieldContext_PlanOpsEvalAndLearning_appealNote(ctx, field) + case "evaluationApproaches": + return ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproaches(ctx, field) + case "evaluationApproachOther": + return ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproachOther(ctx, field) + case "evalutaionApproachNote": + return ec.fieldContext_PlanOpsEvalAndLearning_evalutaionApproachNote(ctx, field) + case "ccmInvolvment": + return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvment(ctx, field) + case "ccmInvolvmentOther": + return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx, field) + case "ccmInvolvmentNote": + return ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx, field) + case "dataNeededForMonitoring": + return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx, field) + case "dataNeededForMonitoringOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx, field) + case "dataNeededForMonitoringNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx, field) + case "dataToSendParticicipants": + return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipants(ctx, field) + case "dataToSendParticicipantsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx, field) + case "dataToSendParticicipantsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx, field) + case "shareCclfData": + return ec.fieldContext_PlanOpsEvalAndLearning_shareCclfData(ctx, field) + case "shareCclfDataNote": + return ec.fieldContext_PlanOpsEvalAndLearning_shareCclfDataNote(ctx, field) + case "sendFilesBetweenCcw": + return ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx, field) + case "sendFilesBetweenCcwNote": + return ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx, field) + case "appToSendFilesToKnown": + return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx, field) + case "appToSendFilesToWhich": + return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx, field) + case "appToSendFilesToNote": + return ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToNote(ctx, field) + case "useCcwForFileDistribiutionToParticipants": + return ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx, field) + case "useCcwForFileDistribiutionToParticipantsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx, field) + case "developNewQualityMeasures": + return ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasures(ctx, field) + case "developNewQualityMeasuresNote": + return ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx, field) + case "qualityPerformanceImpactsPayment": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx, field) + case "qualityPerformanceImpactsPaymentOther": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx, field) + case "qualityPerformanceImpactsPaymentNote": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx, field) + case "dataSharingStarts": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStarts(ctx, field) + case "dataSharingStartsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsOther(ctx, field) + case "dataSharingFrequency": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequency(ctx, field) + case "dataSharingFrequencyContinually": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx, field) + case "dataSharingFrequencyOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx, field) + case "dataSharingStartsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsNote(ctx, field) + case "dataCollectionStarts": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStarts(ctx, field) + case "dataCollectionStartsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx, field) + case "dataCollectionFrequency": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequency(ctx, field) + case "dataCollectionFrequencyContinually": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx, field) + case "dataCollectionFrequencyOther": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx, field) + case "dataCollectionFrequencyNote": + return ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx, field) + case "qualityReportingStarts": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStarts(ctx, field) + case "qualityReportingStartsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx, field) + case "qualityReportingStartsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx, field) + case "qualityReportingFrequency": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequency(ctx, field) + case "qualityReportingFrequencyContinually": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx, field) + case "qualityReportingFrequencyOther": + return ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx, field) + case "modelLearningSystems": + return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystems(ctx, field) + case "modelLearningSystemsOther": + return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx, field) + case "modelLearningSystemsNote": + return ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx, field) + case "anticipatedChallenges": + return ec.fieldContext_PlanOpsEvalAndLearning_anticipatedChallenges(ctx, field) + case "createdBy": + return ec.fieldContext_PlanOpsEvalAndLearning_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanOpsEvalAndLearning_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanOpsEvalAndLearning_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanOpsEvalAndLearning_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanOpsEvalAndLearning_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanOpsEvalAndLearning_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanOpsEvalAndLearning_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanOpsEvalAndLearning", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanOpsEvalAndLearning_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanParticipantsAndProviders(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanParticipantsAndProviders(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanParticipantsAndProviders(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanParticipantsAndProviders); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanParticipantsAndProviders`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanParticipantsAndProviders) + fc.Result = res + return ec.marshalNPlanParticipantsAndProviders2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanParticipantsAndProviders(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanParticipantsAndProviders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanParticipantsAndProviders_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanParticipantsAndProviders_modelPlanID(ctx, field) + case "participants": + return ec.fieldContext_PlanParticipantsAndProviders_participants(ctx, field) + case "medicareProviderType": + return ec.fieldContext_PlanParticipantsAndProviders_medicareProviderType(ctx, field) + case "isNewTypeOfProvidersOrSuppliers": + return ec.fieldContext_PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx, field) + case "statesEngagement": + return ec.fieldContext_PlanParticipantsAndProviders_statesEngagement(ctx, field) + case "participantsOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantsOther(ctx, field) + case "participantsNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantsNote(ctx, field) + case "participantsCurrentlyInModels": + return ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx, field) + case "participantsCurrentlyInModelsNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx, field) + case "modelApplicationLevel": + return ec.fieldContext_PlanParticipantsAndProviders_modelApplicationLevel(ctx, field) + case "expectedNumberOfParticipants": + return ec.fieldContext_PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx, field) + case "estimateConfidence": + return ec.fieldContext_PlanParticipantsAndProviders_estimateConfidence(ctx, field) + case "confidenceNote": + return ec.fieldContext_PlanParticipantsAndProviders_confidenceNote(ctx, field) + case "recruitmentMethod": + return ec.fieldContext_PlanParticipantsAndProviders_recruitmentMethod(ctx, field) + case "recruitmentOther": + return ec.fieldContext_PlanParticipantsAndProviders_recruitmentOther(ctx, field) + case "recruitmentNote": + return ec.fieldContext_PlanParticipantsAndProviders_recruitmentNote(ctx, field) + case "selectionMethod": + return ec.fieldContext_PlanParticipantsAndProviders_selectionMethod(ctx, field) + case "selectionOther": + return ec.fieldContext_PlanParticipantsAndProviders_selectionOther(ctx, field) + case "selectionNote": + return ec.fieldContext_PlanParticipantsAndProviders_selectionNote(ctx, field) + case "participantAddedFrequency": + return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequency(ctx, field) + case "participantAddedFrequencyContinually": + return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx, field) + case "participantAddedFrequencyOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx, field) + case "participantAddedFrequencyNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx, field) + case "participantRemovedFrequency": + return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequency(ctx, field) + case "participantRemovedFrequencyContinually": + return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx, field) + case "participantRemovedFrequencyOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx, field) + case "participantRemovedFrequencyNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx, field) + case "communicationMethod": + return ec.fieldContext_PlanParticipantsAndProviders_communicationMethod(ctx, field) + case "communicationMethodOther": + return ec.fieldContext_PlanParticipantsAndProviders_communicationMethodOther(ctx, field) + case "communicationNote": + return ec.fieldContext_PlanParticipantsAndProviders_communicationNote(ctx, field) + case "riskType": + return ec.fieldContext_PlanParticipantsAndProviders_riskType(ctx, field) + case "riskOther": + return ec.fieldContext_PlanParticipantsAndProviders_riskOther(ctx, field) + case "riskNote": + return ec.fieldContext_PlanParticipantsAndProviders_riskNote(ctx, field) + case "willRiskChange": + return ec.fieldContext_PlanParticipantsAndProviders_willRiskChange(ctx, field) + case "willRiskChangeNote": + return ec.fieldContext_PlanParticipantsAndProviders_willRiskChangeNote(ctx, field) + case "participantRequireFinancialGuarantee": + return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx, field) + case "participantRequireFinancialGuaranteeType": + return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx, field) + case "participantRequireFinancialGuaranteeOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx, field) + case "participantRequireFinancialGuaranteeNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx, field) + case "coordinateWork": + return ec.fieldContext_PlanParticipantsAndProviders_coordinateWork(ctx, field) + case "coordinateWorkNote": + return ec.fieldContext_PlanParticipantsAndProviders_coordinateWorkNote(ctx, field) + case "gainsharePayments": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePayments(ctx, field) + case "gainsharePaymentsTrack": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx, field) + case "gainsharePaymentsNote": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsNote(ctx, field) + case "gainsharePaymentsEligibility": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx, field) + case "gainsharePaymentsEligibilityOther": + return ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx, field) + case "participantsIds": + return ec.fieldContext_PlanParticipantsAndProviders_participantsIds(ctx, field) + case "participantsIdsOther": + return ec.fieldContext_PlanParticipantsAndProviders_participantsIdsOther(ctx, field) + case "participantsIDSNote": + return ec.fieldContext_PlanParticipantsAndProviders_participantsIDSNote(ctx, field) + case "providerAdditionFrequency": + return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequency(ctx, field) + case "providerAdditionFrequencyContinually": + return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx, field) + case "providerAdditionFrequencyOther": + return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx, field) + case "providerAdditionFrequencyNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx, field) + case "providerAddMethod": + return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethod(ctx, field) + case "providerAddMethodOther": + return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodOther(ctx, field) + case "providerAddMethodNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodNote(ctx, field) + case "providerLeaveMethod": + return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethod(ctx, field) + case "providerLeaveMethodOther": + return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodOther(ctx, field) + case "providerLeaveMethodNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodNote(ctx, field) + case "providerRemovalFrequency": + return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequency(ctx, field) + case "providerRemovalFrequencyContinually": + return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx, field) + case "providerRemovalFrequencyOther": + return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx, field) + case "providerRemovalFrequencyNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx, field) + case "providerOverlap": + return ec.fieldContext_PlanParticipantsAndProviders_providerOverlap(ctx, field) + case "providerOverlapHierarchy": + return ec.fieldContext_PlanParticipantsAndProviders_providerOverlapHierarchy(ctx, field) + case "providerOverlapNote": + return ec.fieldContext_PlanParticipantsAndProviders_providerOverlapNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanParticipantsAndProviders_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanParticipantsAndProviders_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanParticipantsAndProviders_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanParticipantsAndProviders_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanParticipantsAndProviders_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanParticipantsAndProviders_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanParticipantsAndProviders_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanParticipantsAndProviders_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanParticipantsAndProviders", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanParticipantsAndProviders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanPayments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanPayments(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanPayments); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanPayments`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanPayments) + fc.Result = res + return ec.marshalNPlanPayments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanPayments_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanPayments_modelPlanID(ctx, field) + case "fundingSource": + return ec.fieldContext_PlanPayments_fundingSource(ctx, field) + case "fundingSourcePatientProtectionInfo": + return ec.fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx, field) + case "fundingSourceMedicareAInfo": + return ec.fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx, field) + case "fundingSourceMedicareBInfo": + return ec.fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx, field) + case "fundingSourceOther": + return ec.fieldContext_PlanPayments_fundingSourceOther(ctx, field) + case "fundingSourceNote": + return ec.fieldContext_PlanPayments_fundingSourceNote(ctx, field) + case "fundingSourceR": + return ec.fieldContext_PlanPayments_fundingSourceR(ctx, field) + case "fundingSourceRPatientProtectionInfo": + return ec.fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field) + case "fundingSourceRMedicareAInfo": + return ec.fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx, field) + case "fundingSourceRMedicareBInfo": + return ec.fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx, field) + case "fundingSourceROther": + return ec.fieldContext_PlanPayments_fundingSourceROther(ctx, field) + case "fundingSourceRNote": + return ec.fieldContext_PlanPayments_fundingSourceRNote(ctx, field) + case "payRecipients": + return ec.fieldContext_PlanPayments_payRecipients(ctx, field) + case "payRecipientsOtherSpecification": + return ec.fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx, field) + case "payRecipientsNote": + return ec.fieldContext_PlanPayments_payRecipientsNote(ctx, field) + case "payType": + return ec.fieldContext_PlanPayments_payType(ctx, field) + case "payTypeNote": + return ec.fieldContext_PlanPayments_payTypeNote(ctx, field) + case "payClaims": + return ec.fieldContext_PlanPayments_payClaims(ctx, field) + case "payClaimsOther": + return ec.fieldContext_PlanPayments_payClaimsOther(ctx, field) + case "payClaimsNote": + return ec.fieldContext_PlanPayments_payClaimsNote(ctx, field) + case "shouldAnyProvidersExcludedFFSSystems": + return ec.fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field) + case "shouldAnyProviderExcludedFFSSystemsNote": + return ec.fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) + case "changesMedicarePhysicianFeeSchedule": + return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field) + case "changesMedicarePhysicianFeeScheduleNote": + return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field) + case "affectsMedicareSecondaryPayerClaims": + return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field) + case "affectsMedicareSecondaryPayerClaimsHow": + return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field) + case "affectsMedicareSecondaryPayerClaimsNote": + return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field) + case "payModelDifferentiation": + return ec.fieldContext_PlanPayments_payModelDifferentiation(ctx, field) + case "willBePaymentAdjustments": + return ec.fieldContext_PlanPayments_willBePaymentAdjustments(ctx, field) + case "willBePaymentAdjustmentsNote": + return ec.fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx, field) + case "creatingDependenciesBetweenServices": + return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx, field) + case "creatingDependenciesBetweenServicesNote": + return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field) + case "needsClaimsDataCollection": + return ec.fieldContext_PlanPayments_needsClaimsDataCollection(ctx, field) + case "needsClaimsDataCollectionNote": + return ec.fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx, field) + case "providingThirdPartyFile": + return ec.fieldContext_PlanPayments_providingThirdPartyFile(ctx, field) + case "isContractorAwareTestDataRequirements": + return ec.fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx, field) + case "beneficiaryCostSharingLevelAndHandling": + return ec.fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field) + case "waiveBeneficiaryCostSharingForAnyServices": + return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field) + case "waiveBeneficiaryCostSharingServiceSpecification": + return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) + case "waiverOnlyAppliesPartOfPayment": + return ec.fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field) + case "waiveBeneficiaryCostSharingNote": + return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field) + case "nonClaimsPayments": + return ec.fieldContext_PlanPayments_nonClaimsPayments(ctx, field) + case "nonClaimsPaymentOther": + return ec.fieldContext_PlanPayments_nonClaimsPaymentOther(ctx, field) + case "nonClaimsPaymentsNote": + return ec.fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx, field) + case "paymentCalculationOwner": + return ec.fieldContext_PlanPayments_paymentCalculationOwner(ctx, field) + case "numberPaymentsPerPayCycle": + return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx, field) + case "numberPaymentsPerPayCycleNote": + return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx, field) + case "sharedSystemsInvolvedAdditionalClaimPayment": + return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) + case "sharedSystemsInvolvedAdditionalClaimPaymentNote": + return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) + case "planningToUseInnovationPaymentContractor": + return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx, field) + case "planningToUseInnovationPaymentContractorNote": + return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field) + case "expectedCalculationComplexityLevel": + return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx, field) + case "expectedCalculationComplexityLevelNote": + return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx, field) + case "claimsProcessingPrecedence": + return ec.fieldContext_PlanPayments_claimsProcessingPrecedence(ctx, field) + case "claimsProcessingPrecedenceOther": + return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx, field) + case "claimsProcessingPrecedenceNote": + return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx, field) + case "canParticipantsSelectBetweenPaymentMechanisms": + return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) + case "canParticipantsSelectBetweenPaymentMechanismsHow": + return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) + case "canParticipantsSelectBetweenPaymentMechanismsNote": + return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) + case "anticipatedPaymentFrequency": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx, field) + case "anticipatedPaymentFrequencyContinually": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field) + case "anticipatedPaymentFrequencyOther": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx, field) + case "anticipatedPaymentFrequencyNote": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx, field) + case "willRecoverPayments": + return ec.fieldContext_PlanPayments_willRecoverPayments(ctx, field) + case "willRecoverPaymentsNote": + return ec.fieldContext_PlanPayments_willRecoverPaymentsNote(ctx, field) + case "anticipateReconcilingPaymentsRetrospectively": + return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field) + case "anticipateReconcilingPaymentsRetrospectivelyNote": + return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) + case "paymentReconciliationFrequency": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequency(ctx, field) + case "paymentReconciliationFrequencyContinually": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx, field) + case "paymentReconciliationFrequencyOther": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx, field) + case "paymentReconciliationFrequencyNote": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx, field) + case "paymentDemandRecoupmentFrequency": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx, field) + case "paymentDemandRecoupmentFrequencyContinually": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field) + case "paymentDemandRecoupmentFrequencyOther": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field) + case "paymentDemandRecoupmentFrequencyNote": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field) + case "paymentStartDate": + return ec.fieldContext_PlanPayments_paymentStartDate(ctx, field) + case "paymentStartDateNote": + return ec.fieldContext_PlanPayments_paymentStartDateNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanPayments_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanPayments_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanPayments_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanPayments_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanPayments_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanPayments_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanPayments_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanPayments_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanPayments_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanPayments_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanPayments_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanPayments_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanPayments", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanPayments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createPlanTDL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createPlanTDL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreatePlanTdl(rctx, fc.Args["input"].(model.PlanTDLCreateInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanTDL); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanTDL`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanTDL) + fc.Result = res + return ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createPlanTDL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanTDL_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanTDL_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) + case "title": + return ec.fieldContext_PlanTDL_title(ctx, field) + case "note": + return ec.fieldContext_PlanTDL_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanTDL_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanTDL_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createPlanTDL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePlanTDL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePlanTDL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePlanTdl(rctx, fc.Args["id"].(uuid.UUID), fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanTDL); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanTDL`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanTDL) + fc.Result = res + return ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePlanTDL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanTDL_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanTDL_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) + case "title": + return ec.fieldContext_PlanTDL_title(ctx, field) + case "note": + return ec.fieldContext_PlanTDL_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanTDL_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanTDL_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updatePlanTDL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deletePlanTDL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deletePlanTDL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeletePlanTdl(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanTDL); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanTDL`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanTDL) + fc.Result = res + return ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deletePlanTDL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanTDL_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanTDL_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) + case "title": + return ec.fieldContext_PlanTDL_title(ctx, field) + case "note": + return ec.fieldContext_PlanTDL_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanTDL_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanTDL_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deletePlanTDL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_reportAProblem(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_reportAProblem(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().ReportAProblem(rctx, fc.Args["input"].(model.ReportAProblemInput)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(bool); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_reportAProblem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_reportAProblem_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_sendFeedbackEmail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_sendFeedbackEmail(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().SendFeedbackEmail(rctx, fc.Args["input"].(model.SendFeedbackEmailInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_sendFeedbackEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_sendFeedbackEmail_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_markNotificationAsRead(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_markNotificationAsRead(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().MarkNotificationAsRead(rctx, fc.Args["notificationID"].(uuid.UUID)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.UserNotification) + fc.Result = res + return ec.marshalNUserNotification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotification(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_markNotificationAsRead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserNotification_id(ctx, field) + case "activityID": + return ec.fieldContext_UserNotification_activityID(ctx, field) + case "userID": + return ec.fieldContext_UserNotification_userID(ctx, field) + case "isRead": + return ec.fieldContext_UserNotification_isRead(ctx, field) + case "inAppSent": + return ec.fieldContext_UserNotification_inAppSent(ctx, field) + case "emailSent": + return ec.fieldContext_UserNotification_emailSent(ctx, field) + case "activity": + return ec.fieldContext_UserNotification_activity(ctx, field) + case "createdBy": + return ec.fieldContext_UserNotification_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_UserNotification_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_UserNotification_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_UserNotification_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserNotification", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_markNotificationAsRead_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_markAllNotificationsAsRead(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_markAllNotificationsAsRead(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().MarkAllNotificationsAsRead(rctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.UserNotification) + fc.Result = res + return ec.marshalNUserNotification2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_markAllNotificationsAsRead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserNotification_id(ctx, field) + case "activityID": + return ec.fieldContext_UserNotification_activityID(ctx, field) + case "userID": + return ec.fieldContext_UserNotification_userID(ctx, field) + case "isRead": + return ec.fieldContext_UserNotification_isRead(ctx, field) + case "inAppSent": + return ec.fieldContext_UserNotification_inAppSent(ctx, field) + case "emailSent": + return ec.fieldContext_UserNotification_emailSent(ctx, field) + case "activity": + return ec.fieldContext_UserNotification_activity(ctx, field) + case "createdBy": + return ec.fieldContext_UserNotification_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_UserNotification_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_UserNotification_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_UserNotification_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserNotification", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateUserNotificationPreferences(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateUserNotificationPreferences(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateUserNotificationPreferences(rctx, fc.Args["changes"].(map[string]interface{})) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.UserNotificationPreferences) + fc.Result = res + return ec.marshalNUserNotificationPreferences2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferences(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateUserNotificationPreferences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserNotificationPreferences_id(ctx, field) + case "userID": + return ec.fieldContext_UserNotificationPreferences_userID(ctx, field) + case "dailyDigestComplete": + return ec.fieldContext_UserNotificationPreferences_dailyDigestComplete(ctx, field) + case "addedAsCollaborator": + return ec.fieldContext_UserNotificationPreferences_addedAsCollaborator(ctx, field) + case "taggedInDiscussion": + return ec.fieldContext_UserNotificationPreferences_taggedInDiscussion(ctx, field) + case "taggedInDiscussionReply": + return ec.fieldContext_UserNotificationPreferences_taggedInDiscussionReply(ctx, field) + case "newDiscussionReply": + return ec.fieldContext_UserNotificationPreferences_newDiscussionReply(ctx, field) + case "modelPlanShared": + return ec.fieldContext_UserNotificationPreferences_modelPlanShared(ctx, field) + case "newModelPlan": + return ec.fieldContext_UserNotificationPreferences_newModelPlan(ctx, field) + case "datesChanged": + return ec.fieldContext_UserNotificationPreferences_datesChanged(ctx, field) + case "datesChangedNotificationType": + return ec.fieldContext_UserNotificationPreferences_datesChangedNotificationType(ctx, field) + case "dataExchangeApproachMarkedComplete": + return ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx, field) + case "dataExchangeApproachMarkedCompleteNotificationType": + return ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx, field) + case "createdBy": + return ec.fieldContext_UserNotificationPreferences_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_UserNotificationPreferences_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_UserNotificationPreferences_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_UserNotificationPreferences_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_UserNotificationPreferences_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_UserNotificationPreferences_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserNotificationPreferences", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateUserNotificationPreferences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateUserViewCustomization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateUserViewCustomization(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateUserViewCustomization(rctx, fc.Args["changes"].(map[string]interface{})) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.UserViewCustomization); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.UserViewCustomization`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.UserViewCustomization) + fc.Result = res + return ec.marshalNUserViewCustomization2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserViewCustomization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateUserViewCustomization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserViewCustomization_id(ctx, field) + case "userId": + return ec.fieldContext_UserViewCustomization_userId(ctx, field) + case "userAccount": + return ec.fieldContext_UserViewCustomization_userAccount(ctx, field) + case "viewCustomization": + return ec.fieldContext_UserViewCustomization_viewCustomization(ctx, field) + case "possibleOperationalSolutions": + return ec.fieldContext_UserViewCustomization_possibleOperationalSolutions(ctx, field) + case "createdBy": + return ec.fieldContext_UserViewCustomization_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_UserViewCustomization_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_UserViewCustomization_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_UserViewCustomization_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_UserViewCustomization_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_UserViewCustomization_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserViewCustomization", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateUserViewCustomization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _NDAInfo_agreed(ctx context.Context, field graphql.CollectedField, obj *model.NDAInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NDAInfo_agreed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Agreed, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NDAInfo_agreed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NDAInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NDAInfo_agreedDts(ctx context.Context, field graphql.CollectedField, obj *model.NDAInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NDAInfo_agreedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AgreedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NDAInfo_agreedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NDAInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewDiscussionRepliedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewDiscussionRepliedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewDiscussionRepliedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.NewDiscussionRepliedActivityMeta().ModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewDiscussionRepliedActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_discussionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DiscussionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewDiscussionRepliedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta_discussion(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_discussion(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.NewDiscussionRepliedActivityMeta().Discussion(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDiscussion) + fc.Result = res + return ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_discussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewDiscussionRepliedActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDiscussion_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) + case "content": + return ec.fieldContext_PlanDiscussion_content(ctx, field) + case "userRole": + return ec.fieldContext_PlanDiscussion_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) + case "replies": + return ec.fieldContext_PlanDiscussion_replies(ctx, field) + case "isAssessment": + return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta_replyID(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_replyID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReplyID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_replyID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewDiscussionRepliedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta_reply(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_reply(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.NewDiscussionRepliedActivityMeta().Reply(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.DiscussionReply) + fc.Result = res + return ec.marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_reply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewDiscussionRepliedActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DiscussionReply_id(ctx, field) + case "discussionID": + return ec.fieldContext_DiscussionReply_discussionID(ctx, field) + case "content": + return ec.fieldContext_DiscussionReply_content(ctx, field) + case "userRole": + return ec.fieldContext_DiscussionReply_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) + case "isAssessment": + return ec.fieldContext_DiscussionReply_isAssessment(ctx, field) + case "createdBy": + return ec.fieldContext_DiscussionReply_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_DiscussionReply_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DiscussionReply", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta_content(ctx context.Context, field graphql.CollectedField, obj *models.NewDiscussionRepliedActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewDiscussionRepliedActivityMeta_content(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Content, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewDiscussionRepliedActivityMeta_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewDiscussionRepliedActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewModelPlanActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.NewModelPlanActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewModelPlanActivityMeta_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewModelPlanActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewModelPlanActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewModelPlanActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.NewModelPlanActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewModelPlanActivityMeta_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewModelPlanActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewModelPlanActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewModelPlanActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.NewModelPlanActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewModelPlanActivityMeta_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewModelPlanActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewModelPlanActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NewModelPlanActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.NewModelPlanActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NewModelPlanActivityMeta_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.NewModelPlanActivityMeta().ModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NewModelPlanActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NewModelPlanActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_id(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_needed(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_needed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Needed, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_needed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_solutions(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_solutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.OperationalNeed().Solutions(rctx, obj, fc.Args["includeNotNeeded"].(bool)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.OperationalSolution) + fc.Result = res + return ec.marshalNOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_solutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalSolution_id(ctx, field) + case "operationalNeedID": + return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) + case "solutionType": + return ec.fieldContext_OperationalSolution_solutionType(ctx, field) + case "needed": + return ec.fieldContext_OperationalSolution_needed(ctx, field) + case "name": + return ec.fieldContext_OperationalSolution_name(ctx, field) + case "key": + return ec.fieldContext_OperationalSolution_key(ctx, field) + case "nameOther": + return ec.fieldContext_OperationalSolution_nameOther(ctx, field) + case "pocName": + return ec.fieldContext_OperationalSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) + case "mustStartDts": + return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) + case "mustFinishDts": + return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) + case "isOther": + return ec.fieldContext_OperationalSolution_isOther(ctx, field) + case "isCommonSolution": + return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) + case "otherHeader": + return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) + case "status": + return ec.fieldContext_OperationalSolution_status(ctx, field) + case "documents": + return ec.fieldContext_OperationalSolution_documents(ctx, field) + case "operationalSolutionSubtasks": + return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_OperationalNeed_solutions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_key(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.OperationalNeedKey) + fc.Result = res + return ec.marshalOOperationalNeedKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OperationalNeedKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_name(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_nameOther(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_nameOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NameOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_nameOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_section(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_section(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Section, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TaskListSection) + fc.Result = res + return ec.marshalOTaskListSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskListSection does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeed_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeed_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeedTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeedTranslation_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeedTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeedTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeedTranslation_nameOther(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeedTranslation_nameOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NameOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeedTranslation_nameOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeedTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeedTranslation_key(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeedTranslation_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeedTranslation_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeedTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeedTranslation_needed(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeedTranslation_needed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Needed, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeedTranslation_needed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeedTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalNeedTranslation_section(ctx context.Context, field graphql.CollectedField, obj *model.OperationalNeedTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalNeedTranslation_section(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Section, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalNeedTranslation_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalNeedTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_id(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_operationalNeedID(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OperationalNeedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_operationalNeedID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_solutionType(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_solutionType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*int) + fc.Result = res + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_solutionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_needed(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_needed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Needed, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_needed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_name(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.OperationalSolutionKey) + fc.Result = res + return ec.marshalOOperationalSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OperationalSolutionKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_nameOther(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_nameOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NameOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_nameOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_pocName(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_pocName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PocName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_pocName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_pocEmail(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_pocEmail(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PocEmail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_pocEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_mustStartDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MustStartDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_mustStartDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_mustFinishDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MustFinishDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_mustFinishDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_isOther(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_isOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalNBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_isOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_isCommonSolution(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsCommonSolution, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalNBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_isCommonSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_otherHeader(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_otherHeader(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OtherHeader, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_otherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_status(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.OpSolutionStatus) + fc.Result = res + return ec.marshalNOpSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OpSolutionStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_documents(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_documents(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.OperationalSolution().Documents(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PlanDocument) + fc.Result = res + return ec.marshalNPlanDocument2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDocument_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) + case "isLink": + return ec.fieldContext_PlanDocument_isLink(ctx, field) + case "url": + return ec.fieldContext_PlanDocument_url(ctx, field) + case "fileType": + return ec.fieldContext_PlanDocument_fileType(ctx, field) + case "bucket": + return ec.fieldContext_PlanDocument_bucket(ctx, field) + case "fileKey": + return ec.fieldContext_PlanDocument_fileKey(ctx, field) + case "virusScanned": + return ec.fieldContext_PlanDocument_virusScanned(ctx, field) + case "virusClean": + return ec.fieldContext_PlanDocument_virusClean(ctx, field) + case "restricted": + return ec.fieldContext_PlanDocument_restricted(ctx, field) + case "fileName": + return ec.fieldContext_PlanDocument_fileName(ctx, field) + case "fileSize": + return ec.fieldContext_PlanDocument_fileSize(ctx, field) + case "documentType": + return ec.fieldContext_PlanDocument_documentType(ctx, field) + case "otherType": + return ec.fieldContext_PlanDocument_otherType(ctx, field) + case "optionalNotes": + return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) + case "downloadUrl": + return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) + case "deletedAt": + return ec.fieldContext_PlanDocument_deletedAt(ctx, field) + case "numLinkedSolutions": + return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDocument_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDocument_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_operationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.OperationalSolution().OperationalSolutionSubtasks(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.OperationalSolutionSubtask) + fc.Result = res + return ec.marshalNOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalSolutionSubtask_id(ctx, field) + case "solutionID": + return ec.fieldContext_OperationalSolutionSubtask_solutionID(ctx, field) + case "name": + return ec.fieldContext_OperationalSolutionSubtask_name(ctx, field) + case "status": + return ec.fieldContext_OperationalSolutionSubtask_status(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalSolutionSubtask_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalSolutionSubtask_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalSolutionSubtask_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalSolutionSubtask_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalSolutionSubtask", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolution_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolution_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_id(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_solutionID(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_solutionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_solutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_name(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_status(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.OperationalSolutionSubtaskStatus) + fc.Result = res + return ec.marshalNOperationalSolutionSubtaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OperationalSolutionSubtaskStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtask_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.OperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtask_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtask_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtaskTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionSubtaskTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtaskTranslation_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtaskTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtaskTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionSubtaskTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionSubtaskTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionSubtaskTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionSubtaskTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionSubtaskTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_nameOther(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_nameOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NameOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_nameOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_isOther(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_isOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_isOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_otherHeader(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_otherHeader(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OtherHeader, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_otherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_pocName(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_pocName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PocName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_pocName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_pocEmail(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_pocEmail(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PocEmail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_pocEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_mustStartDts(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_mustStartDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MustStartDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_mustStartDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_mustFinishDts(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_mustFinishDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MustFinishDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_mustFinishDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_needed(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_needed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Needed, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_needed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_key(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OperationalSolutionTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.OperationalSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OperationalSolutionTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OperationalSolutionTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OperationalSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PhaseSuggestion_phase(ctx context.Context, field graphql.CollectedField, obj *model.PhaseSuggestion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PhaseSuggestion_phase(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Phase, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ModelPhase) + fc.Result = res + return ec.marshalNModelPhase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PhaseSuggestion_phase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PhaseSuggestion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelPhase does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PhaseSuggestion_suggestedStatuses(ctx context.Context, field graphql.CollectedField, obj *model.PhaseSuggestion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PhaseSuggestion_suggestedStatuses(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SuggestedStatuses, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.ModelStatus) + fc.Result = res + return ec.marshalNModelStatus2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatusᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PhaseSuggestion_suggestedStatuses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PhaseSuggestion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_demoCode(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_demoCode(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DemoCode, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_demoCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_amsModelID(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_amsModelID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AmsModelID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_amsModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_modelCategory(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_modelCategory(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelCategory, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ModelCategory) + fc.Result = res + return ec.marshalOModelCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_modelCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelCategory does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_additionalModelCategories(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_additionalModelCategories(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanBasics().AdditionalModelCategories(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.ModelCategory) + fc.Result = res + return ec.marshalNModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_additionalModelCategories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelCategory does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_cmsCenters(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_cmsCenters(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanBasics().CmsCenters(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.CMSCenter) + fc.Result = res + return ec.marshalNCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_cmsCenters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type CMSCenter does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_cmmiGroups(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_cmmiGroups(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanBasics().CmmiGroups(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.CMMIGroup) + fc.Result = res + return ec.marshalNCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_cmmiGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type CMMIGroup does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_modelType(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_modelType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanBasics().ModelType(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.ModelType) + fc.Result = res + return ec.marshalNModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_modelType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_modelTypeOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_modelTypeOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelTypeOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_modelTypeOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_problem(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_problem(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Problem, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_problem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_goal(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_goal(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Goal, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_goal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_testInterventions(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_testInterventions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TestInterventions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_testInterventions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_note(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_note(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Note, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_completeICIP(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_completeICIP(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CompleteICIP, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_completeICIP(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_clearanceStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_clearanceStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClearanceStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_clearanceStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_clearanceEnds(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_clearanceEnds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClearanceEnds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_clearanceEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_announced(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_announced(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Announced, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_announced(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_applicationsStart(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_applicationsStart(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ApplicationsStart, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_applicationsStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_applicationsEnd(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_applicationsEnd(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ApplicationsEnd, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_applicationsEnd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_performancePeriodStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_performancePeriodStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PerformancePeriodStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_performancePeriodStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_performancePeriodEnds(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_performancePeriodEnds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PerformancePeriodEnds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_performancePeriodEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_wrapUpEnds(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_wrapUpEnds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WrapUpEnds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_wrapUpEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_highLevelNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_highLevelNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HighLevelNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_highLevelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_phasedIn(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_phasedIn(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PhasedIn, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_phasedIn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_phasedInNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_phasedInNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PhasedInNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_phasedInNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_readyForReviewByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_readyForClearanceByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasics_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanBasics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasics_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TaskStatus) + fc.Result = res + return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasics_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_modelCategory(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_modelCategory(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelCategory, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_modelCategory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_additionalModelCategories(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_additionalModelCategories(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdditionalModelCategories, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_additionalModelCategories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_demoCode(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_demoCode(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DemoCode, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_demoCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_amsModelID(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_amsModelID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AmsModelID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_amsModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_cmsCenters(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_cmsCenters(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CmsCenters, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_cmsCenters(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_cmmiGroups(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_cmmiGroups(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CmmiGroups, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_cmmiGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_modelType(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_modelType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_modelType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_modelTypeOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_modelTypeOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelTypeOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_modelTypeOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_problem(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_problem(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Problem, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_problem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_goal(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_goal(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Goal, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_goal(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_testInterventions(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_testInterventions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TestInterventions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_testInterventions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_note(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_note(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Note, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_completeICIP(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_completeICIP(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CompleteIcip, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_completeICIP(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_clearanceStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_clearanceStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClearanceStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_clearanceStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_clearanceEnds(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_clearanceEnds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClearanceEnds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_clearanceEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_announced(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_announced(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Announced, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_announced(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_applicationsStart(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_applicationsStart(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ApplicationsStart, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_applicationsStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_applicationsEnd(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_applicationsEnd(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ApplicationsEnd, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_applicationsEnd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_performancePeriodStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_performancePeriodStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PerformancePeriodStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_performancePeriodStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_performancePeriodEnds(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_performancePeriodEnds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PerformancePeriodEnds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_performancePeriodEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_wrapUpEnds(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_wrapUpEnds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WrapUpEnds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_wrapUpEnds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_highLevelNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_highLevelNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HighLevelNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_highLevelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_phasedIn(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_phasedIn(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PhasedIn, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_phasedIn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_phasedInNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_phasedInNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PhasedInNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_phasedInNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBasicsTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanBasicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBasicsTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBasicsTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBasicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiaries(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaries(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanBeneficiaries().Beneficiaries(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.BeneficiariesType) + fc.Result = res + return ec.marshalNBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type BeneficiariesType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiariesOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiariesOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiariesOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiariesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiariesNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiariesNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiariesNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiariesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_diseaseSpecificGroup(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_diseaseSpecificGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DiseaseSpecificGroup, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_diseaseSpecificGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_treatDualElligibleDifferent(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TreatDualElligibleDifferent, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TriStateAnswer) + fc.Result = res + return ec.marshalOTriStateAnswer2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTriStateAnswer(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_treatDualElligibleDifferent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TriStateAnswer does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_treatDualElligibleDifferentHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TreatDualElligibleDifferentHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_treatDualElligibleDifferentHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_treatDualElligibleDifferentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_treatDualElligibleDifferentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TreatDualElligibleDifferentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_treatDualElligibleDifferentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_excludeCertainCharacteristics(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristics(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExcludeCertainCharacteristics, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TriStateAnswer) + fc.Result = res + return ec.marshalOTriStateAnswer2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTriStateAnswer(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_excludeCertainCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TriStateAnswer does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExcludeCertainCharacteristicsCriteria, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExcludeCertainCharacteristicsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_numberPeopleImpacted(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_numberPeopleImpacted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberPeopleImpacted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*int) + fc.Result = res + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_numberPeopleImpacted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_estimateConfidence(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_estimateConfidence(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EstimateConfidence, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ConfidenceType) + fc.Result = res + return ec.marshalOConfidenceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐConfidenceType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_estimateConfidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ConfidenceType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_confidenceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_confidenceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ConfidenceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_confidenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanBeneficiaries().BeneficiarySelectionMethod(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.SelectionMethodType) + fc.Result = res + return ec.marshalNSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type SelectionMethodType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanBeneficiaries().BeneficiarySelectionFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiaryRemovalFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanBeneficiaries().BeneficiaryRemovalFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryRemovalFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryRemovalFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryRemovalFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiaryOverlap(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryOverlap(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryOverlap, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.OverlapType) + fc.Result = res + return ec.marshalOOverlapType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOverlapType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryOverlap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OverlapType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_beneficiaryOverlapNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_beneficiaryOverlapNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryOverlapNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_beneficiaryOverlapNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_precedenceRules(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_precedenceRules(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanBeneficiaries().PrecedenceRules(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.YesNoType) + fc.Result = res + return ec.marshalNYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_precedenceRules(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type YesNoType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_precedenceRulesYes(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_precedenceRulesYes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PrecedenceRulesYes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_precedenceRulesYes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_precedenceRulesNo(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_precedenceRulesNo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PrecedenceRulesNo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_precedenceRulesNo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_precedenceRulesNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_precedenceRulesNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PrecedenceRulesNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_precedenceRulesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_readyForReviewByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_readyForClearanceByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiaries_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanBeneficiaries) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiaries_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TaskStatus) + fc.Result = res + return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiaries_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiaries", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaries(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaries(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Beneficiaries, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaries(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiariesOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiariesOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiariesOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiariesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiariesNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiariesNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiariesNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiariesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_diseaseSpecificGroup(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_diseaseSpecificGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DiseaseSpecificGroup, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_diseaseSpecificGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_treatDualElligibleDifferent(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TreatDualElligibleDifferent, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_treatDualElligibleDifferentHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferentHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TreatDualElligibleDifferentHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferentHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_treatDualElligibleDifferentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TreatDualElligibleDifferentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_treatDualElligibleDifferentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_excludeCertainCharacteristics(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristics(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExcludeCertainCharacteristics, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_excludeCertainCharacteristicsCriteria(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristicsCriteria(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExcludeCertainCharacteristicsCriteria, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristicsCriteria(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_excludeCertainCharacteristicsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristicsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExcludeCertainCharacteristicsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_excludeCertainCharacteristicsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_numberPeopleImpacted(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_numberPeopleImpacted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberPeopleImpacted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_numberPeopleImpacted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_estimateConfidence(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_estimateConfidence(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EstimateConfidence, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_estimateConfidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_confidenceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_confidenceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ConfidenceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_confidenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionMethod, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiarySelectionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiarySelectionFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiarySelectionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryRemovalFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryRemovalFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryRemovalFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryRemovalFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryRemovalFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryOverlap(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryOverlap(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryOverlap, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryOverlap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_beneficiaryOverlapNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_beneficiaryOverlapNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryOverlapNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_beneficiaryOverlapNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_precedenceRules(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_precedenceRules(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PrecedenceRules, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_precedenceRules(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_precedenceRulesYes(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_precedenceRulesYes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PrecedenceRulesYes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_precedenceRulesYes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_precedenceRulesNo(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_precedenceRulesNo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PrecedenceRulesNo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_precedenceRulesNo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_precedenceRulesNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_precedenceRulesNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PrecedenceRulesNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_precedenceRulesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanBeneficiariesTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanBeneficiariesTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanBeneficiariesTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanBeneficiariesTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanBeneficiariesTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_idNumber(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_idNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IDNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_idNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_dateInitiated(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_dateInitiated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DateInitiated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_dateInitiated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_dateImplemented(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_dateImplemented(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DateImplemented, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_dateImplemented(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_title(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_title(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Title, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_note(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_note(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Note, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCR_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanCR) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCR_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCR_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCR", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCRTranslation_idNumber(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCRTranslation_idNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IDNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCRTranslation_idNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCRTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCRTranslation_title(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCRTranslation_title(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Title, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCRTranslation_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCRTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCRTranslation_dateInitiated(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCRTranslation_dateInitiated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DateInitiated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCRTranslation_dateInitiated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCRTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCRTranslation_dateImplemented(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCRTranslation_dateImplemented(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DateImplemented, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCRTranslation_dateImplemented(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCRTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCRTranslation_note(ctx context.Context, field graphql.CollectedField, obj *model.PlanCRTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCRTranslation_note(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Note, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCRTranslation_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCRTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_userID(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_userID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_userAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_userAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_teamRoles(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanCollaborator().TeamRoles(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.TeamRole) + fc.Result = res + return ec.marshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_teamRoles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TeamRole does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaborator_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanCollaborator) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaborator_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaborator", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaboratorTranslation_username(ctx context.Context, field graphql.CollectedField, obj *model.PlanCollaboratorTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaboratorTranslation_username(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Username, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaboratorTranslation_username(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaboratorTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaboratorTranslation_userID(ctx context.Context, field graphql.CollectedField, obj *model.PlanCollaboratorTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaboratorTranslation_userID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaboratorTranslation_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaboratorTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanCollaboratorTranslation_teamRoles(ctx context.Context, field graphql.CollectedField, obj *model.PlanCollaboratorTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanCollaboratorTranslation_teamRoles(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TeamRoles, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanCollaboratorTranslation_teamRoles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanCollaboratorTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_dataToCollectFromParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDataExchangeApproach().DataToCollectFromParticipants(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.DataToCollectFromParticipants) + fc.Result = res + return ec.marshalNDataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataToCollectFromParticipants does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToCollectFromParticipantsReportsDetails, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToCollectFromParticipantsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataWillNotBeCollectedFromParticipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToCollectFromParticipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_dataToSendToParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDataExchangeApproach().DataToSendToParticipants(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.DataToSendToParticipants) + fc.Result = res + return ec.marshalNDataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataToSendToParticipants does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToSendToParticipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DoesNeedToMakeMultiPayerDataAvailable, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDataExchangeApproach().AnticipatedMultiPayerDataAvailabilityUseCase(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.AnticipatedMultiPayerDataAvailabilityUseCase) + fc.Result = res + return ec.marshalNAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type AnticipatedMultiPayerDataAvailabilityUseCase does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DoesNeedToMakeMultiPayerDataAvailableNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DoesNeedToCollectAndAggregateMultiSourceData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_multiSourceDataToCollect(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDataExchangeApproach().MultiSourceDataToCollect(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.MultiSourceDataToCollect) + fc.Result = res + return ec.marshalNMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MultiSourceDataToCollect does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiSourceDataToCollectOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DoesNeedToCollectAndAggregateMultiSourceDataNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillImplementNewDataExchangeMethods, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NewDataExchangeMethodsDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NewDataExchangeMethodsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdditionalDataExchangeConsiderationsDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsDataExchangeApproachComplete(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_markedCompleteBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MarkedCompleteBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_markedCompleteByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MarkedCompleteByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_markedCompleteDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MarkedCompleteDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproach_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproach) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproach_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.DataExchangeApproachStatus) + fc.Result = res + return ec.marshalNDataExchangeApproachStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproach_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproach", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataExchangeApproachStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproachID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproachID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataExchangeApproachID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproachID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproach(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproach(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDataExchangeApproachMarkedCompleteActivityMeta().DataExchangeApproach(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDataExchangeApproach) + fc.Result = res + return ec.marshalNPlanDataExchangeApproach2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproach(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDataExchangeApproach_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDataExchangeApproach_modelPlanID(ctx, field) + case "dataToCollectFromParticipants": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field) + case "dataToCollectFromParticipantsReportsDetails": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field) + case "dataToCollectFromParticipantsOther": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field) + case "dataWillNotBeCollectedFromParticipants": + return ec.fieldContext_PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field) + case "dataToCollectFromParticipantsNote": + return ec.fieldContext_PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field) + case "dataToSendToParticipants": + return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipants(ctx, field) + case "dataToSendToParticipantsNote": + return ec.fieldContext_PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field) + case "doesNeedToMakeMultiPayerDataAvailable": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field) + case "anticipatedMultiPayerDataAvailabilityUseCase": + return ec.fieldContext_PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) + case "doesNeedToMakeMultiPayerDataAvailableNote": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) + case "doesNeedToCollectAndAggregateMultiSourceData": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) + case "multiSourceDataToCollect": + return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field) + case "multiSourceDataToCollectOther": + return ec.fieldContext_PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field) + case "doesNeedToCollectAndAggregateMultiSourceDataNote": + return ec.fieldContext_PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) + case "willImplementNewDataExchangeMethods": + return ec.fieldContext_PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field) + case "newDataExchangeMethodsDescription": + return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field) + case "newDataExchangeMethodsNote": + return ec.fieldContext_PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field) + case "additionalDataExchangeConsiderationsDescription": + return ec.fieldContext_PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDataExchangeApproach_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDataExchangeApproach_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDataExchangeApproach_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDataExchangeApproach_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDataExchangeApproach_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDataExchangeApproach_modifiedDts(ctx, field) + case "isDataExchangeApproachComplete": + return ec.fieldContext_PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field) + case "markedCompleteBy": + return ec.fieldContext_PlanDataExchangeApproach_markedCompleteBy(ctx, field) + case "markedCompleteByUserAccount": + return ec.fieldContext_PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field) + case "markedCompleteDts": + return ec.fieldContext_PlanDataExchangeApproach_markedCompleteDts(ctx, field) + case "status": + return ec.fieldContext_PlanDataExchangeApproach_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDataExchangeApproach", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDataExchangeApproachMarkedCompleteActivityMeta().ModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MarkedCompleteBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDataExchangeApproachMarkedCompleteActivityMeta().MarkedCompleteByUserAccount(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachMarkedCompleteActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToCollectFromParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToCollectFromParticipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsReportsDetails(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsReportsDetails(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToCollectFromParticipantsReportsDetails, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsReportsDetails(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToCollectFromParticipantsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataWillNotBeCollectedFromParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataWillNotBeCollectedFromParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataWillNotBeCollectedFromParticipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataWillNotBeCollectedFromParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToCollectFromParticipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToSendToParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToSendToParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToSendToParticipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToSendToParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_dataToSendToParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_dataToSendToParticipantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToSendToParticipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_dataToSendToParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailable(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailable(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DoesNeedToMakeMultiPayerDataAvailable, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_anticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedMultiPayerDataAvailabilityUseCase, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_anticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailableNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DoesNeedToMakeMultiPayerDataAvailableNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailableNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceData(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DoesNeedToCollectAndAggregateMultiSourceData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_multiSourceDataToCollect(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_multiSourceDataToCollect(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiSourceDataToCollect, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_multiSourceDataToCollect(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_multiSourceDataToCollectOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_multiSourceDataToCollectOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiSourceDataToCollectOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_multiSourceDataToCollectOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DoesNeedToCollectAndAggregateMultiSourceDataNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_willImplementNewDataExchangeMethods(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_willImplementNewDataExchangeMethods(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillImplementNewDataExchangeMethods, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_willImplementNewDataExchangeMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_newDataExchangeMethodsDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_newDataExchangeMethodsDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NewDataExchangeMethodsDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_newDataExchangeMethodsDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_newDataExchangeMethodsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_newDataExchangeMethodsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NewDataExchangeMethodsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_newDataExchangeMethodsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_additionalDataExchangeConsiderationsDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_additionalDataExchangeConsiderationsDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdditionalDataExchangeConsiderationsDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_additionalDataExchangeConsiderationsDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_isDataExchangeApproachComplete(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_isDataExchangeApproachComplete(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsDataExchangeApproachComplete, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_isDataExchangeApproachComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_markedCompleteBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_markedCompleteBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MarkedCompleteBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_markedCompleteBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_markedCompleteDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_markedCompleteDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MarkedCompleteDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_markedCompleteDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanDataExchangeApproachTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDataExchangeApproachTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDataExchangeApproachTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDataExchangeApproachTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_content(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_content(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDiscussion().Content(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TaggedContent) + fc.Result = res + return ec.marshalOTaggedContent2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedContent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "rawContent": + return ec.fieldContext_TaggedContent_rawContent(ctx, field) + case "tags": + return ec.fieldContext_TaggedContent_tags(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaggedContent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_userRole(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_userRole(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRole, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.DiscussionUserRole) + fc.Result = res + return ec.marshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DiscussionUserRole does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRoleDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_replies(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_replies(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDiscussion().Replies(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.DiscussionReply) + fc.Result = res + return ec.marshalNDiscussionReply2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReplyᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_replies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DiscussionReply_id(ctx, field) + case "discussionID": + return ec.fieldContext_DiscussionReply_discussionID(ctx, field) + case "content": + return ec.fieldContext_DiscussionReply_content(ctx, field) + case "userRole": + return ec.fieldContext_DiscussionReply_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) + case "isAssessment": + return ec.fieldContext_DiscussionReply_isAssessment(ctx, field) + case "createdBy": + return ec.fieldContext_DiscussionReply_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_DiscussionReply_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DiscussionReply", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_isAssessment(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsAssessment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussion_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDiscussion) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussion_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussion", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussionTranslation_userRole(ctx context.Context, field graphql.CollectedField, obj *model.PlanDiscussionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussionTranslation_userRole(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRole, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussionTranslation_userRole(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussionTranslation_userRoleDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanDiscussionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussionTranslation_userRoleDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserRoleDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussionTranslation_userRoleDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussionTranslation_content(ctx context.Context, field graphql.CollectedField, obj *model.PlanDiscussionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussionTranslation_content(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Content, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussionTranslation_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDiscussionTranslation_isAssessment(ctx context.Context, field graphql.CollectedField, obj *model.PlanDiscussionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDiscussionTranslation_isAssessment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsAssessment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDiscussionTranslation_isAssessment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDiscussionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_isLink(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_isLink(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsLink, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_isLink(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_url(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_url(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDocument().URL(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_fileType(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_fileType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FileType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_fileType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_bucket(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_bucket(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Bucket, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_bucket(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_fileKey(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_fileKey(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FileKey, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_fileKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_virusScanned(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_virusScanned(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.VirusScanned, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_virusScanned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_virusClean(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_virusClean(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.VirusClean, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_virusClean(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_restricted(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_restricted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Restricted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_restricted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_fileName(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_fileName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FileName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_fileName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_fileSize(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_fileSize(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FileSize, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_fileSize(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_documentType(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_documentType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.DocumentType) + fc.Result = res + return ec.marshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_documentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DocumentType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_otherType(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_otherType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDocument().OtherType(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_otherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_optionalNotes(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_optionalNotes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDocument().OptionalNotes(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_optionalNotes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_downloadUrl(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_downloadUrl(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDocument().DownloadURL(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_downloadUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_deletedAt(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_deletedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_numLinkedSolutions(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanDocument().NumLinkedSolutions(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_numLinkedSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocument_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocument) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocument_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocument_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocument", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLink_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLink_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLink_solutionID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLink_solutionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_solutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLink_documentID(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLink_documentID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_documentID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLink_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLink_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLink_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLink_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLink", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLink_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLink_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLink_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLink_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLink_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLink_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLink", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLink_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLink_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLink_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLinkTranslation_solutionID(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentSolutionLinkTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLinkTranslation_solutionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLinkTranslation_solutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLinkTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentSolutionLinkTranslation_documentID(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentSolutionLinkTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentSolutionLinkTranslation_documentID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentSolutionLinkTranslation_documentID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentSolutionLinkTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentTranslation_isLink(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentTranslation_isLink(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsLink, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentTranslation_isLink(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentTranslation_url(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentTranslation_url(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.URL, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentTranslation_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentTranslation_fileName(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentTranslation_fileName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FileName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentTranslation_fileName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentTranslation_documentType(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentTranslation_documentType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentTranslation_documentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentTranslation_otherType(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentTranslation_otherType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OtherType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentTranslation_otherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentTranslation_fileType(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentTranslation_fileType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FileType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentTranslation_fileType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentTranslation_restricted(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentTranslation_restricted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Restricted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentTranslation_restricted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanDocumentTranslation_optionalNotes(ctx context.Context, field graphql.CollectedField, obj *model.PlanDocumentTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanDocumentTranslation_optionalNotes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OptionalNotes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanDocumentTranslation_optionalNotes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanDocumentTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_userID(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_userID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_userAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_userAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanFavorite_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanFavorite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanFavorite_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanFavorite_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanFavorite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_isNewModel(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_isNewModel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNewModel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_isNewModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_existingModel(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_existingModel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().ExistingModel(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_existingModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_currentModelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_currentModelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CurrentModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_currentModelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_currentModelPlan(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_currentModelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().CurrentModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalOModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_currentModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_existingModelID(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_existingModelID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExistingModelID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*int) + fc.Result = res + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_existingModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_existingModelPlan(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_existingModelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().ExistingModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ExistingModel) + fc.Result = res + return ec.marshalOExistingModel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModel(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_existingModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ExistingModel_id(ctx, field) + case "modelName": + return ec.fieldContext_ExistingModel_modelName(ctx, field) + case "stage": + return ec.fieldContext_ExistingModel_stage(ctx, field) + case "numberOfParticipants": + return ec.fieldContext_ExistingModel_numberOfParticipants(ctx, field) + case "category": + return ec.fieldContext_ExistingModel_category(ctx, field) + case "authority": + return ec.fieldContext_ExistingModel_authority(ctx, field) + case "description": + return ec.fieldContext_ExistingModel_description(ctx, field) + case "numberOfBeneficiariesImpacted": + return ec.fieldContext_ExistingModel_numberOfBeneficiariesImpacted(ctx, field) + case "numberOfPhysiciansImpacted": + return ec.fieldContext_ExistingModel_numberOfPhysiciansImpacted(ctx, field) + case "dateBegan": + return ec.fieldContext_ExistingModel_dateBegan(ctx, field) + case "dateEnded": + return ec.fieldContext_ExistingModel_dateEnded(ctx, field) + case "states": + return ec.fieldContext_ExistingModel_states(ctx, field) + case "keywords": + return ec.fieldContext_ExistingModel_keywords(ctx, field) + case "url": + return ec.fieldContext_ExistingModel_url(ctx, field) + case "displayModelSummary": + return ec.fieldContext_ExistingModel_displayModelSummary(ctx, field) + case "createdBy": + return ec.fieldContext_ExistingModel_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ExistingModel_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ExistingModel_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ExistingModel_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ExistingModel_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ExistingModel_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExistingModel", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModel(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.YesNoOtherType) + fc.Result = res + return ec.marshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type YesNoOtherType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelWhyHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelOtherSpecify, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelOtherSelected, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelOtherOption, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().ResemblesExistingModelWhich(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ExistingModelLinks) + fc.Result = res + return ec.marshalOExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "links": + return ec.fieldContext_ExistingModelLinks_links(ctx, field) + case "fieldName": + return ec.fieldContext_ExistingModelLinks_fieldName(ctx, field) + case "modelPlanID": + return ec.fieldContext_ExistingModelLinks_modelPlanID(ctx, field) + case "names": + return ec.fieldContext_ExistingModelLinks_names(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExistingModelLinks", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPrecondition(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPrecondition(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPrecondition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.YesNoOtherType) + fc.Result = res + return ec.marshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPrecondition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type YesNoOtherType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionWhyHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionOtherSpecify, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionOtherSelected, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionOtherOption, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().ParticipationInModelPreconditionWhich(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ExistingModelLinks) + fc.Result = res + return ec.marshalOExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "links": + return ec.fieldContext_ExistingModelLinks_links(ctx, field) + case "fieldName": + return ec.fieldContext_ExistingModelLinks_fieldName(ctx, field) + case "modelPlanID": + return ec.fieldContext_ExistingModelLinks_modelPlanID(ctx, field) + case "names": + return ec.fieldContext_ExistingModelLinks_names(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExistingModelLinks", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_hasComponentsOrTracks(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HasComponentsOrTracks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HasComponentsOrTracksDiffer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HasComponentsOrTracksNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_agencyOrStateHelp(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelp(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().AgencyOrStateHelp(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.AgencyOrStateHelpType) + fc.Result = res + return ec.marshalNAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agencyOrStateHelp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type AgencyOrStateHelpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AgencyOrStateHelpOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AgencyOrStateHelpNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().AlternativePaymentModelTypes(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.AlternativePaymentModelType) + fc.Result = res + return ec.marshalNAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type AlternativePaymentModelType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_alternativePaymentModelNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_alternativePaymentModelNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AlternativePaymentModelNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_alternativePaymentModelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_keyCharacteristics(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristics(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().KeyCharacteristics(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.KeyCharacteristic) + fc.Result = res + return ec.marshalNKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_keyCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type KeyCharacteristic does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_keyCharacteristicsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.KeyCharacteristicsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_keyCharacteristicsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_keyCharacteristicsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_keyCharacteristicsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.KeyCharacteristicsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_keyCharacteristicsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_collectPlanBids(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_collectPlanBids(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CollectPlanBids, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_collectPlanBids(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_collectPlanBidsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_collectPlanBidsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CollectPlanBidsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_collectPlanBidsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_managePartCDEnrollment(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ManagePartCDEnrollment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_managePartCDEnrollment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ManagePartCDEnrollmentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_planContractUpdated(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_planContractUpdated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanContractUpdated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_planContractUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_planContractUpdatedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_planContractUpdatedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanContractUpdatedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_planContractUpdatedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_careCoordinationInvolved(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolved(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CareCoordinationInvolved, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_careCoordinationInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CareCoordinationInvolvedDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CareCoordinationInvolvedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_additionalServicesInvolved(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolved(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdditionalServicesInvolved, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_additionalServicesInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdditionalServicesInvolvedDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdditionalServicesInvolvedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_communityPartnersInvolved(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolved(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunityPartnersInvolved, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_communityPartnersInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunityPartnersInvolvedDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunityPartnersInvolvedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargeted(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargeted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargeted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargeted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().GeographiesTargetedTypes(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.GeographyType) + fc.Result = res + return ec.marshalNGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GeographyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().GeographiesStatesAndTerritories(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.StatesAndTerritories) + fc.Result = res + return ec.marshalNStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type StatesAndTerritories does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_geographiesRegionTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesRegionTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().GeographiesRegionTypes(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.GeographyRegionType) + fc.Result = res + return ec.marshalNGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesRegionTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GeographyRegionType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargetedTypesOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().GeographiesTargetedAppliedTo(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.GeographyApplication) + fc.Result = res + return ec.marshalNGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GeographyApplication does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargetedAppliedToOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_geographiesTargetedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_geographiesTargetedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargetedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_geographiesTargetedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_participationOptions(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationOptions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationOptions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_participationOptionsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_participationOptionsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationOptionsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_participationOptionsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_agreementTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_agreementTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().AgreementTypes(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.AgreementType) + fc.Result = res + return ec.marshalNAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agreementTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type AgreementType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_agreementTypesOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_agreementTypesOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AgreementTypesOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_agreementTypesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiplePatricipationAgreementsNeeded, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiplePatricipationAgreementsNeededNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_rulemakingRequired(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequired(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RulemakingRequired, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_rulemakingRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RulemakingRequiredDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_rulemakingRequiredNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_rulemakingRequiredNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RulemakingRequiredNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_rulemakingRequiredNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_authorityAllowances(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_authorityAllowances(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().AuthorityAllowances(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.AuthorityAllowance) + fc.Result = res + return ec.marshalNAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_authorityAllowances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type AuthorityAllowance does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_authorityAllowancesOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AuthorityAllowancesOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_authorityAllowancesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_authorityAllowancesNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_authorityAllowancesNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AuthorityAllowancesNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_authorityAllowancesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_waiversRequired(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_waiversRequired(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiversRequired, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_waiversRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_waiversRequiredTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanGeneralCharacteristics().WaiversRequiredTypes(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.WaiverType) + fc.Result = res + return ec.marshalNWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_waiversRequiredTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type WaiverType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_waiversRequiredNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_waiversRequiredNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiversRequiredNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_waiversRequiredNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristics_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanGeneralCharacteristics) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristics_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TaskStatus) + fc.Result = res + return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristics_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristics", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_isNewModel(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_isNewModel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNewModel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_isNewModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_currentModelPlanID(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_currentModelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CurrentModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_currentModelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_existingModelID(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_existingModelID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExistingModelID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_existingModelID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_existingModel(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_existingModel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExistingModel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_existingModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModel(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhyHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhyHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelWhyHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhyHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherSpecify(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherSpecify(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelOtherSpecify, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherSpecify(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherOption(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherOption(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelOtherOption, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhich(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhich(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ResemblesExistingModelWhich, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPrecondition(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPrecondition(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPrecondition, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPrecondition(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhyHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhyHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionWhyHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhyHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherSpecify(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherSpecify(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionOtherSpecify, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherSpecify(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherOption(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherOption(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionOtherOption, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherOption(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhich(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhich(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationInModelPreconditionWhich, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_hasComponentsOrTracks(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HasComponentsOrTracks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksDiffer(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksDiffer(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HasComponentsOrTracksDiffer, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksDiffer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HasComponentsOrTracksNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agencyOrStateHelp(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelp(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AgencyOrStateHelp, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agencyOrStateHelpOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelpOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AgencyOrStateHelpOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelpOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agencyOrStateHelpNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelpNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AgencyOrStateHelpNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agencyOrStateHelpNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_alternativePaymentModelTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_alternativePaymentModelTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AlternativePaymentModelTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_alternativePaymentModelTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_alternativePaymentModelNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_alternativePaymentModelNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AlternativePaymentModelNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_alternativePaymentModelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_keyCharacteristics(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristics(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.KeyCharacteristics, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_keyCharacteristicsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristicsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.KeyCharacteristicsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristicsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_keyCharacteristicsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristicsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.KeyCharacteristicsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_keyCharacteristicsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_collectPlanBids(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_collectPlanBids(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CollectPlanBids, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_collectPlanBids(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_collectPlanBidsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_collectPlanBidsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CollectPlanBidsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_collectPlanBidsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_managePartCDEnrollment(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_managePartCDEnrollment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ManagePartCDEnrollment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_managePartCDEnrollment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_managePartCDEnrollmentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_managePartCDEnrollmentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ManagePartCDEnrollmentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_managePartCDEnrollmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_planContractUpdated(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_planContractUpdated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanContractUpdated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_planContractUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_planContractUpdatedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_planContractUpdatedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanContractUpdatedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_planContractUpdatedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_careCoordinationInvolved(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolved(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CareCoordinationInvolved, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CareCoordinationInvolvedDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CareCoordinationInvolvedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_additionalServicesInvolved(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolved(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdditionalServicesInvolved, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdditionalServicesInvolvedDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AdditionalServicesInvolvedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_communityPartnersInvolved(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolved(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunityPartnersInvolved, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolved(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunityPartnersInvolvedDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunityPartnersInvolvedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargeted(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargeted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargeted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargeted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargetedTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParentAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithParentAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParentAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParentAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParentAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParentAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParentAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParentAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParentAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParentAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParentAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParentAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParentAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParentAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParentAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParentAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParentAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParentAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParentAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithParentAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithParentAndChildren_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParentAndChildren_parentRelation(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithParentAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParentAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesStatesAndTerritories(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesStatesAndTerritories(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesStatesAndTerritories, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesStatesAndTerritories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesRegionTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesRegionTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesRegionTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesRegionTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedTypesOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedTypesOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargetedTypesOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedTypesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedTo(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedTo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargetedAppliedTo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedTo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedToOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedToOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargetedAppliedToOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedToOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_geographiesTargetedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GeographiesTargetedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_geographiesTargetedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationOptions(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationOptions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationOptions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_participationOptionsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_participationOptionsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipationOptionsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_participationOptionsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agreementTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agreementTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AgreementTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agreementTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_agreementTypesOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_agreementTypesOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AgreementTypesOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_agreementTypesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeeded(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeeded(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiplePatricipationAgreementsNeeded, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeeded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeededNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeededNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiplePatricipationAgreementsNeededNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeededNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_rulemakingRequired(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequired(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RulemakingRequired, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_rulemakingRequiredDescription(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequiredDescription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RulemakingRequiredDescription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequiredDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_rulemakingRequiredNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequiredNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RulemakingRequiredNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_rulemakingRequiredNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_authorityAllowances(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowances(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AuthorityAllowances, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_authorityAllowancesOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowancesOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AuthorityAllowancesOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowancesOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_authorityAllowancesNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowancesNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AuthorityAllowancesNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_authorityAllowancesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_waiversRequired(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequired(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiversRequired, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequired(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_waiversRequiredTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequiredTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiversRequiredTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequiredTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_waiversRequiredNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequiredNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiversRequiredNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_waiversRequiredNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanGeneralCharacteristicsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanGeneralCharacteristicsTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanGeneralCharacteristicsTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanGeneralCharacteristicsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_stakeholders(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_stakeholders(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().Stakeholders(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.StakeholdersType) + fc.Result = res + return ec.marshalNStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_stakeholders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type StakeholdersType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_stakeholdersOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StakeholdersOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_stakeholdersOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_stakeholdersNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_stakeholdersNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StakeholdersNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_stakeholdersNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_helpdeskUse(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUse(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HelpdeskUse, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_helpdeskUse(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_helpdeskUseNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_helpdeskUseNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HelpdeskUseNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_helpdeskUseNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_contractorSupport(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_contractorSupport(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().ContractorSupport(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.ContractorSupportType) + fc.Result = res + return ec.marshalNContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_contractorSupport(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ContractorSupportType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_contractorSupportOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ContractorSupportOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_contractorSupportOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_contractorSupportHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ContractorSupportHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_contractorSupportHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_contractorSupportNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_contractorSupportNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ContractorSupportNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_contractorSupportNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_iddocSupport(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_iddocSupport(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IddocSupport, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_iddocSupport(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_iddocSupportNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_iddocSupportNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IddocSupportNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_iddocSupportNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_technicalContactsIdentified(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentified(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TechnicalContactsIdentified, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentified(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TechnicalContactsIdentifiedDetail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TechnicalContactsIdentifiedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_captureParticipantInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CaptureParticipantInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_captureParticipantInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CaptureParticipantInfoNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_icdOwner(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_icdOwner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IcdOwner, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_icdOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_draftIcdDueDate(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_draftIcdDueDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DraftIcdDueDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_draftIcdDueDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_icdNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_icdNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IcdNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_icdNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_uatNeeds(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_uatNeeds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UatNeeds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_uatNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_stcNeeds(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_stcNeeds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StcNeeds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_stcNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_testingTimelines(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_testingTimelines(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TestingTimelines, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_testingTimelines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_testingNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_testingNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TestingNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_testingNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().DataMonitoringFileTypes(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.MonitoringFileType) + fc.Result = res + return ec.marshalNMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type MonitoringFileType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataMonitoringFileOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataResponseType(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataResponseType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataResponseType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataResponseType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataResponseFileFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataFullTimeOrIncremental, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.DataFullTimeOrIncrementalType) + fc.Result = res + return ec.marshalODataFullTimeOrIncrementalType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataFullTimeOrIncrementalType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataFullTimeOrIncrementalType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_eftSetUp(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_eftSetUp(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EftSetUp, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_eftSetUp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UnsolicitedAdjustmentsIncluded, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataFlowDiagramsNeeded, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProduceBenefitEnhancementFiles, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_fileNamingConventions(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_fileNamingConventions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FileNamingConventions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_fileNamingConventions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataMonitoringNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataMonitoringNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataMonitoringNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataMonitoringNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_benchmarkForPerformance(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformance(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BenchmarkForPerformance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.BenchmarkForPerformanceType) + fc.Result = res + return ec.marshalOBenchmarkForPerformanceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐBenchmarkForPerformanceType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type BenchmarkForPerformanceType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BenchmarkForPerformanceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_computePerformanceScores(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScores(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ComputePerformanceScores, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_computePerformanceScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ComputePerformanceScoresNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustPerformance(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPerformance(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustPerformance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustFeedback(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustFeedback(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustFeedback, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustFeedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustPayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustPayments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_riskAdjustNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_riskAdjustNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_riskAdjustNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_appealPerformance(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealPerformance(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealPerformance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_appealFeedback(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealFeedback(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealFeedback, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealFeedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_appealPayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealPayments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_appealOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_appealNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appealNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appealNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_evaluationApproaches(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproaches(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().EvaluationApproaches(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.EvaluationApproachType) + fc.Result = res + return ec.marshalNEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_evaluationApproaches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type EvaluationApproachType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_evaluationApproachOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_evaluationApproachOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EvaluationApproachOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_evaluationApproachOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_evalutaionApproachNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_evalutaionApproachNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EvalutaionApproachNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_evalutaionApproachNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_ccmInvolvment(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().CcmInvolvment(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.CcmInvolvmentType) + fc.Result = res + return ec.marshalNCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_ccmInvolvment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type CcmInvolvmentType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CcmInvolvmentOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CcmInvolvmentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().DataNeededForMonitoring(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.DataForMonitoringType) + fc.Result = res + return ec.marshalNDataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataForMonitoringType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataNeededForMonitoringOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataNeededForMonitoringNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataToSendParticicipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().DataToSendParticicipants(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.DataToSendParticipantsType) + fc.Result = res + return ec.marshalNDataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataToSendParticipantsType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToSendParticicipantsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToSendParticicipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_shareCclfData(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_shareCclfData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ShareCclfData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_shareCclfData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_shareCclfDataNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_shareCclfDataNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ShareCclfDataNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_shareCclfDataNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SendFilesBetweenCcw, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SendFilesBetweenCcwNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppToSendFilesToKnown, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppToSendFilesToWhich, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_appToSendFilesToNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_appToSendFilesToNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppToSendFilesToNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_appToSendFilesToNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UseCcwForFileDistribiutionToParticipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UseCcwForFileDistribiutionToParticipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_developNewQualityMeasures(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasures(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DevelopNewQualityMeasures, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DevelopNewQualityMeasuresNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityPerformanceImpactsPayment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.YesNoOtherType) + fc.Result = res + return ec.marshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type YesNoOtherType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityPerformanceImpactsPaymentOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityPerformanceImpactsPaymentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.DataStartsType) + fc.Result = res + return ec.marshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataStartsType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingStartsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingStartsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().DataSharingFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataSharingStartsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataSharingStartsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingStartsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataSharingStartsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.DataStartsType) + fc.Result = res + return ec.marshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataStartsType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionStartsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().DataCollectionFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingStarts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.DataStartsType) + fc.Result = res + return ec.marshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataStartsType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingStartsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingStartsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().QualityReportingFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_modelLearningSystems(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystems(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanOpsEvalAndLearning().ModelLearningSystems(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.ModelLearningSystemType) + fc.Result = res + return ec.marshalNModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modelLearningSystems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelLearningSystemType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelLearningSystemsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelLearningSystemsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_anticipatedChallenges(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_anticipatedChallenges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedChallenges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_anticipatedChallenges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearning_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanOpsEvalAndLearning) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearning_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TaskStatus) + fc.Result = res + return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearning_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearning", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_stakeholders(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_stakeholders(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Stakeholders, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_stakeholders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_stakeholdersOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_stakeholdersOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StakeholdersOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_stakeholdersOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_stakeholdersNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_stakeholdersNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StakeholdersNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_stakeholdersNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_helpdeskUse(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_helpdeskUse(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HelpdeskUse, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_helpdeskUse(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_helpdeskUseNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_helpdeskUseNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HelpdeskUseNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_helpdeskUseNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_contractorSupport(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupport(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ContractorSupport, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupport(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_contractorSupportOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ContractorSupportOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_contractorSupportHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ContractorSupportHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_contractorSupportNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ContractorSupportNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_contractorSupportNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_iddocSupport(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_iddocSupport(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IddocSupport, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_iddocSupport(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_iddocSupportNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_iddocSupportNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IddocSupportNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_iddocSupportNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_technicalContactsIdentified(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentified(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TechnicalContactsIdentified, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentified(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedDetail(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedDetail(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TechnicalContactsIdentifiedDetail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedDetail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TechnicalContactsIdentifiedNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_captureParticipantInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_captureParticipantInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CaptureParticipantInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_captureParticipantInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_captureParticipantInfoNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_captureParticipantInfoNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CaptureParticipantInfoNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_captureParticipantInfoNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_icdOwner(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_icdOwner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IcdOwner, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_icdOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_draftIcdDueDate(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_draftIcdDueDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DraftIcdDueDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_draftIcdDueDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_icdNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_icdNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IcdNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_icdNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_uatNeeds(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_uatNeeds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UatNeeds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_uatNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_stcNeeds(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_stcNeeds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StcNeeds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_stcNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_testingTimelines(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_testingTimelines(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TestingTimelines, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_testingTimelines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_testingNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_testingNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TestingNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_testingNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataMonitoringFileTypes(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringFileTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataMonitoringFileTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringFileTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataMonitoringFileOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringFileOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataMonitoringFileOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringFileOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataResponseType(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataResponseType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataResponseType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataResponseType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataResponseFileFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataResponseFileFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataResponseFileFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataResponseFileFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataFullTimeOrIncremental(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataFullTimeOrIncremental(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataFullTimeOrIncremental, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataFullTimeOrIncremental(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_eftSetUp(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_eftSetUp(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EftSetUp, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_eftSetUp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_unsolicitedAdjustmentsIncluded(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_unsolicitedAdjustmentsIncluded(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UnsolicitedAdjustmentsIncluded, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_unsolicitedAdjustmentsIncluded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataFlowDiagramsNeeded(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataFlowDiagramsNeeded(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataFlowDiagramsNeeded, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataFlowDiagramsNeeded(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_produceBenefitEnhancementFiles(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_produceBenefitEnhancementFiles(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProduceBenefitEnhancementFiles, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_produceBenefitEnhancementFiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_fileNamingConventions(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_fileNamingConventions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FileNamingConventions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_fileNamingConventions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataMonitoringNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataMonitoringNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataMonitoringNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_benchmarkForPerformance(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_benchmarkForPerformance(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BenchmarkForPerformance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_benchmarkForPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_benchmarkForPerformanceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_benchmarkForPerformanceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BenchmarkForPerformanceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_benchmarkForPerformanceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_computePerformanceScores(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_computePerformanceScores(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ComputePerformanceScores, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_computePerformanceScores(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_computePerformanceScoresNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_computePerformanceScoresNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ComputePerformanceScoresNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_computePerformanceScoresNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustPerformance(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustPerformance(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustPerformance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustFeedback(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustFeedback(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustFeedback, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustFeedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustPayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustPayments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_riskAdjustNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskAdjustNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_riskAdjustNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealPerformance(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealPerformance(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealPerformance, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealPerformance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealFeedback(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealFeedback(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealFeedback, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealFeedback(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealPayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealPayments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appealNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appealNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppealNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appealNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_evaluationApproaches(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_evaluationApproaches(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EvaluationApproaches, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_evaluationApproaches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_evaluationApproachOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_evaluationApproachOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EvaluationApproachOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_evaluationApproachOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_evalutaionApproachNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_evalutaionApproachNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EvalutaionApproachNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_evalutaionApproachNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_ccmInvolvment(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CcmInvolvment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_ccmInvolvmentOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvmentOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CcmInvolvmentOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvmentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_ccmInvolvmentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvmentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CcmInvolvmentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_ccmInvolvmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataNeededForMonitoring(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoring(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataNeededForMonitoring, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoring(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataNeededForMonitoringOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataNeededForMonitoringNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataToSendParticicipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToSendParticicipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToSendParticicipantsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataToSendParticicipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_shareCclfData(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_shareCclfData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ShareCclfData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_shareCclfData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_shareCclfDataNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_shareCclfDataNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ShareCclfDataNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_shareCclfDataNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcw(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcw(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SendFilesBetweenCcw, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcw(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcwNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcwNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SendFilesBetweenCcwNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcwNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appToSendFilesToKnown(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToKnown(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppToSendFilesToKnown, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToKnown(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appToSendFilesToWhich(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToWhich(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppToSendFilesToWhich, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToWhich(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_appToSendFilesToNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AppToSendFilesToNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_appToSendFilesToNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UseCcwForFileDistribiutionToParticipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UseCcwForFileDistribiutionToParticipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_developNewQualityMeasures(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_developNewQualityMeasures(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DevelopNewQualityMeasures, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_developNewQualityMeasures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_developNewQualityMeasuresNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_developNewQualityMeasuresNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DevelopNewQualityMeasuresNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_developNewQualityMeasuresNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPayment(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPayment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityPerformanceImpactsPayment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityPerformanceImpactsPaymentOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityPerformanceImpactsPaymentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingStartsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStartsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingStartsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataSharingStartsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStartsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataSharingStartsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataSharingStartsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionStartsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionStartsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionStartsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataCollectionFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingStarts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStarts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingStarts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStarts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingStartsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStartsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingStartsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStartsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingStartsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStartsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingStartsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingStartsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QualityReportingFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_modelLearningSystems(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystems(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelLearningSystems, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_modelLearningSystemsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystemsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelLearningSystemsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystemsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_modelLearningSystemsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystemsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelLearningSystemsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_modelLearningSystemsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_anticipatedChallenges(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_anticipatedChallenges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedChallenges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_anticipatedChallenges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanOpsEvalAndLearningTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanOpsEvalAndLearningTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanOpsEvalAndLearningTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanOpsEvalAndLearningTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participants(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().Participants(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.ParticipantsType) + fc.Result = res + return ec.marshalNParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ParticipantsType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_medicareProviderType(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_medicareProviderType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MedicareProviderType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_medicareProviderType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNewTypeOfProvidersOrSuppliers, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_statesEngagement(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_statesEngagement(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StatesEngagement, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_statesEngagement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsCurrentlyInModels, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsCurrentlyInModelsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_modelApplicationLevel(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_modelApplicationLevel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelApplicationLevel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modelApplicationLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpectedNumberOfParticipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*int) + fc.Result = res + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_estimateConfidence(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_estimateConfidence(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EstimateConfidence, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ConfidenceType) + fc.Result = res + return ec.marshalOConfidenceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐConfidenceType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_estimateConfidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ConfidenceType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_confidenceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_confidenceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ConfidenceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_confidenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_recruitmentMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_recruitmentMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RecruitmentMethod, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.RecruitmentType) + fc.Result = res + return ec.marshalORecruitmentType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecruitmentType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_recruitmentMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type RecruitmentType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_recruitmentOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_recruitmentOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RecruitmentOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_recruitmentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_recruitmentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_recruitmentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RecruitmentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_recruitmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_selectionMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_selectionMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().SelectionMethod(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.ParticipantSelectionType) + fc.Result = res + return ec.marshalNParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_selectionMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ParticipantSelectionType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_selectionOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_selectionOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SelectionOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_selectionOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_selectionNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_selectionNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SelectionNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_selectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantAddedFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().ParticipantAddedFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantAddedFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantAddedFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantAddedFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantAddedFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantRemovedFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().ParticipantRemovedFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRemovedFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRemovedFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRemovedFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRemovedFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_communicationMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_communicationMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().CommunicationMethod(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.ParticipantCommunicationType) + fc.Result = res + return ec.marshalNParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_communicationMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ParticipantCommunicationType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_communicationMethodOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_communicationMethodOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunicationMethodOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_communicationMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_communicationNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_communicationNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunicationNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_communicationNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_riskType(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_riskType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().RiskType(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.ParticipantRiskType) + fc.Result = res + return ec.marshalNParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_riskType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ParticipantRiskType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_riskOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_riskOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_riskOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_riskNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_riskNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_riskNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_willRiskChange(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_willRiskChange(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillRiskChange, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_willRiskChange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_willRiskChangeNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_willRiskChangeNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillRiskChangeNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_willRiskChangeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRequireFinancialGuarantee, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().ParticipantRequireFinancialGuaranteeType(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.ParticipantRequireFinancialGuaranteeType) + fc.Result = res + return ec.marshalNParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ParticipantRequireFinancialGuaranteeType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRequireFinancialGuaranteeOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRequireFinancialGuaranteeNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_coordinateWork(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_coordinateWork(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CoordinateWork, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_coordinateWork(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_coordinateWorkNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_coordinateWorkNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CoordinateWorkNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_coordinateWorkNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GainsharePayments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GainsharePaymentsTrack, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePaymentsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GainsharePaymentsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().GainsharePaymentsEligibility(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.GainshareArrangementEligibility) + fc.Result = res + return ec.marshalNGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GainshareArrangementEligibility does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GainsharePaymentsEligibilityOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantsIds(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsIds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().ParticipantsIds(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.ParticipantsIDType) + fc.Result = res + return ec.marshalNParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsIds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ParticipantsIDType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantsIdsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsIdsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsIdsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsIdsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_participantsIDSNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_participantsIDSNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsIDSNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_participantsIDSNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerAdditionFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().ProviderAdditionFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAdditionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAdditionFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAdditionFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAdditionFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerAddMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAddMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().ProviderAddMethod(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.ProviderAddType) + fc.Result = res + return ec.marshalNProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAddMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ProviderAddType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerAddMethodOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAddMethodOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAddMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerAddMethodNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerAddMethodNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAddMethodNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerAddMethodNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerLeaveMethod(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().ProviderLeaveMethod(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.ProviderLeaveType) + fc.Result = res + return ec.marshalNProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerLeaveMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ProviderLeaveType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerLeaveMethodOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderLeaveMethodOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerLeaveMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerLeaveMethodNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerLeaveMethodNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderLeaveMethodNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerLeaveMethodNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerRemovalFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanParticipantsAndProviders().ProviderRemovalFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerRemovalFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderRemovalFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderRemovalFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderRemovalFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerOverlap(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerOverlap(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderOverlap, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.OverlapType) + fc.Result = res + return ec.marshalOOverlapType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOverlapType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerOverlap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OverlapType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerOverlapHierarchy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerOverlapHierarchy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderOverlapHierarchy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerOverlapHierarchy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_providerOverlapNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_providerOverlapNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderOverlapNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_providerOverlapNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProviders_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanParticipantsAndProviders) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProviders_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TaskStatus) + fc.Result = res + return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProviders_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProviders", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participants(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Participants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_medicareProviderType(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_medicareProviderType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MedicareProviderType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_medicareProviderType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_isNewTypeOfProvidersOrSuppliers(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_isNewTypeOfProvidersOrSuppliers(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNewTypeOfProvidersOrSuppliers, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_isNewTypeOfProvidersOrSuppliers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_statesEngagement(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_statesEngagement(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StatesEngagement, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_statesEngagement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModels(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModels(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsCurrentlyInModels, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModelsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModelsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsCurrentlyInModelsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModelsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_modelApplicationLevel(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_modelApplicationLevel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelApplicationLevel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_modelApplicationLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_expectedNumberOfParticipants(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_expectedNumberOfParticipants(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpectedNumberOfParticipants, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_expectedNumberOfParticipants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_estimateConfidence(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_estimateConfidence(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EstimateConfidence, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_estimateConfidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_confidenceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_confidenceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ConfidenceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_confidenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_recruitmentMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RecruitmentMethod, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_recruitmentOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RecruitmentOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_recruitmentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RecruitmentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_recruitmentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_selectionMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_selectionMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SelectionMethod, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_selectionMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_selectionOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_selectionOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SelectionOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_selectionOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_selectionNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_selectionNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SelectionNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_selectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantAddedFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantAddedFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantAddedFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantAddedFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantAddedFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantAddedFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantAddedFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantAddedFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantAddedFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRemovedFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRemovedFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRemovedFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRemovedFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRemovedFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_communicationMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_communicationMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunicationMethod, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_communicationMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_communicationMethodOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_communicationMethodOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunicationMethodOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_communicationMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_communicationNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_communicationNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommunicationNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_communicationNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_riskType(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_riskType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_riskType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_riskOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_riskOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_riskOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_riskNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_riskNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_riskNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_willRiskChange(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_willRiskChange(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillRiskChange, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_willRiskChange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_willRiskChangeNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_willRiskChangeNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillRiskChangeNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_willRiskChangeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuarantee(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuarantee(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRequireFinancialGuarantee, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuarantee(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeType(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRequireFinancialGuaranteeType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRequireFinancialGuaranteeOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantRequireFinancialGuaranteeNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_coordinateWork(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_coordinateWork(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CoordinateWork, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_coordinateWork(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_coordinateWorkNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_coordinateWorkNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CoordinateWorkNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_coordinateWorkNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GainsharePayments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePaymentsTrack(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsTrack(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GainsharePaymentsTrack, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsTrack(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePaymentsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GainsharePaymentsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibility(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibility(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GainsharePaymentsEligibility, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibility(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibilityOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibilityOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GainsharePaymentsEligibilityOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibilityOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsIds(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsIds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsIds, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsIds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsIdsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsIdsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsIdsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsIdsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_participantsIDSNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_participantsIDSNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParticipantsIDSNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_participantsIDSNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAdditionFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAdditionFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAdditionFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAdditionFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAdditionFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAddMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAddMethod, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAddMethodOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethodOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAddMethodOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerAddMethodNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethodNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderAddMethodNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerAddMethodNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerLeaveMethod(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethod(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderLeaveMethod, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethod(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerLeaveMethodOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethodOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderLeaveMethodOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethodOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerLeaveMethodNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethodNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderLeaveMethodNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerLeaveMethodNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerRemovalFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderRemovalFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderRemovalFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderRemovalFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderRemovalFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerOverlap(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlap(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderOverlap, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerOverlapHierarchy(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlapHierarchy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderOverlapHierarchy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlapHierarchy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_providerOverlapNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlapNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProviderOverlapNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_providerOverlapNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanParticipantsAndProvidersTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanParticipantsAndProvidersTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanParticipantsAndProvidersTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanParticipantsAndProvidersTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSource(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSource(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().FundingSource(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FundingSource) + fc.Result = res + return ec.marshalNFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FundingSource does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourcePatientProtectionInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourcePatientProtectionInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceMedicareAInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceMedicareAInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceMedicareBInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceMedicareBInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceR(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceR(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().FundingSourceR(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FundingSource) + fc.Result = res + return ec.marshalNFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FundingSource does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceRPatientProtectionInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceRPatientProtectionInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceRMedicareAInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceRMedicareAInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceRMedicareBInfo(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceRMedicareBInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceROther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceROther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceROther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceROther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_fundingSourceRNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_fundingSourceRNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceRNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_fundingSourceRNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_payRecipients(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_payRecipients(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().PayRecipients(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.PayRecipient) + fc.Result = res + return ec.marshalNPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_payRecipients(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type PayRecipient does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_payRecipientsOtherSpecification(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayRecipientsOtherSpecification, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_payRecipientsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_payRecipientsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayRecipientsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_payRecipientsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_payType(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_payType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().PayType(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.PayType) + fc.Result = res + return ec.marshalNPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_payType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type PayType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_payTypeNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_payTypeNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayTypeNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_payTypeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_payClaims(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_payClaims(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().PayClaims(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.ClaimsBasedPayType) + fc.Result = res + return ec.marshalNClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_payClaims(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ClaimsBasedPayType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_payClaimsOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_payClaimsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayClaimsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_payClaimsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_payClaimsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_payClaimsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayClaimsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_payClaimsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ShouldAnyProvidersExcludedFFSSystems, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ShouldAnyProviderExcludedFFSSystemsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_changesMedicarePhysicianFeeSchedule(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ChangesMedicarePhysicianFeeSchedule, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ChangesMedicarePhysicianFeeScheduleNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_affectsMedicareSecondaryPayerClaims(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AffectsMedicareSecondaryPayerClaims, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AffectsMedicareSecondaryPayerClaimsHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AffectsMedicareSecondaryPayerClaimsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_payModelDifferentiation(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_payModelDifferentiation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayModelDifferentiation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_payModelDifferentiation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_willBePaymentAdjustments(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_willBePaymentAdjustments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillBePaymentAdjustments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_willBePaymentAdjustments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_willBePaymentAdjustmentsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillBePaymentAdjustmentsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_creatingDependenciesBetweenServices(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatingDependenciesBetweenServices, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_creatingDependenciesBetweenServicesNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatingDependenciesBetweenServicesNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_needsClaimsDataCollection(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_needsClaimsDataCollection(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedsClaimsDataCollection, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_needsClaimsDataCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_needsClaimsDataCollectionNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedsClaimsDataCollectionNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_providingThirdPartyFile(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_providingThirdPartyFile(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProvidingThirdPartyFile, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_providingThirdPartyFile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_isContractorAwareTestDataRequirements(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsContractorAwareTestDataRequirements, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryCostSharingLevelAndHandling, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiveBeneficiaryCostSharingForAnyServices, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiveBeneficiaryCostSharingServiceSpecification, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_waiverOnlyAppliesPartOfPayment(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiverOnlyAppliesPartOfPayment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_waiveBeneficiaryCostSharingNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiveBeneficiaryCostSharingNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_nonClaimsPayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_nonClaimsPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().NonClaimsPayments(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.NonClaimsBasedPayType) + fc.Result = res + return ec.marshalNNonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_nonClaimsPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type NonClaimsBasedPayType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_nonClaimsPaymentOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_nonClaimsPaymentOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().NonClaimsPaymentOther(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_nonClaimsPaymentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_nonClaimsPaymentsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NonClaimsPaymentsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentCalculationOwner(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentCalculationOwner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentCalculationOwner, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentCalculationOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_numberPaymentsPerPayCycle(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberPaymentsPerPayCycle, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_numberPaymentsPerPayCycleNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberPaymentsPerPayCycleNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SharedSystemsInvolvedAdditionalClaimPayment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SharedSystemsInvolvedAdditionalClaimPaymentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_planningToUseInnovationPaymentContractor(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanningToUseInnovationPaymentContractor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_planningToUseInnovationPaymentContractorNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanningToUseInnovationPaymentContractorNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_expectedCalculationComplexityLevel(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpectedCalculationComplexityLevel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ComplexityCalculationLevelType) + fc.Result = res + return ec.marshalOComplexityCalculationLevelType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐComplexityCalculationLevelType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ComplexityCalculationLevelType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_expectedCalculationComplexityLevelNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpectedCalculationComplexityLevelNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_claimsProcessingPrecedence(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_claimsProcessingPrecedence(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClaimsProcessingPrecedence, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_claimsProcessingPrecedence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_claimsProcessingPrecedenceOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClaimsProcessingPrecedenceOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_claimsProcessingPrecedenceNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClaimsProcessingPrecedenceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CanParticipantsSelectBetweenPaymentMechanisms, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CanParticipantsSelectBetweenPaymentMechanismsHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CanParticipantsSelectBetweenPaymentMechanismsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_anticipatedPaymentFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().AnticipatedPaymentFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_anticipatedPaymentFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedPaymentFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_anticipatedPaymentFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedPaymentFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_anticipatedPaymentFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedPaymentFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_willRecoverPayments(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_willRecoverPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillRecoverPayments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_willRecoverPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_willRecoverPaymentsNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_willRecoverPaymentsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillRecoverPaymentsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_willRecoverPaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipateReconcilingPaymentsRetrospectively, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipateReconcilingPaymentsRetrospectivelyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentReconciliationFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentReconciliationFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().PaymentReconciliationFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentReconciliationFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentReconciliationFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentReconciliationFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentReconciliationFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentReconciliationFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentReconciliationFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentReconciliationFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentDemandRecoupmentFrequency(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PlanPayments().PaymentDemandRecoupmentFrequency(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.FrequencyType) + fc.Result = res + return ec.marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FrequencyType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentDemandRecoupmentFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentDemandRecoupmentFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentDemandRecoupmentFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentStartDate(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentStartDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentStartDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentStartDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_paymentStartDateNote(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_paymentStartDateNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentStartDateNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_paymentStartDateNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_readyForReviewByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_readyForReviewByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPayments_status(ctx context.Context, field graphql.CollectedField, obj *models.PlanPayments) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPayments_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TaskStatus) + fc.Result = res + return ec.marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPayments_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPayments", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSource(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSource(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSource, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourcePatientProtectionInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourcePatientProtectionInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourcePatientProtectionInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourcePatientProtectionInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceMedicareAInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceMedicareAInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceMedicareAInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceMedicareAInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceMedicareBInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceMedicareBInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceMedicareBInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceMedicareBInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceR(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceR(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceR, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceRPatientProtectionInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceRPatientProtectionInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceRPatientProtectionInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceRPatientProtectionInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceRMedicareAInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceRMedicareAInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceRMedicareAInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceRMedicareAInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceRMedicareBInfo(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceRMedicareBInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceRMedicareBInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceRMedicareBInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceROther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceROther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceROther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceROther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_fundingSourceRNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_fundingSourceRNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FundingSourceRNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_fundingSourceRNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_payRecipients(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_payRecipients(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayRecipients, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payRecipients(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_payRecipientsOtherSpecification(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_payRecipientsOtherSpecification(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayRecipientsOtherSpecification, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payRecipientsOtherSpecification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_payRecipientsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_payRecipientsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayRecipientsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payRecipientsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_payType(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_payType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_payTypeNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_payTypeNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayTypeNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payTypeNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_payClaims(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_payClaims(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayClaims, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payClaims(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_payClaimsOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_payClaimsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayClaimsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payClaimsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_payClaimsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_payClaimsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayClaimsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payClaimsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_shouldAnyProvidersExcludedFFSSystems(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_shouldAnyProvidersExcludedFFSSystems(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ShouldAnyProvidersExcludedFFSSystems, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_shouldAnyProvidersExcludedFFSSystems(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_shouldAnyProviderExcludedFFSSystemsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ShouldAnyProviderExcludedFFSSystemsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_shouldAnyProviderExcludedFFSSystemsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_changesMedicarePhysicianFeeSchedule(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_changesMedicarePhysicianFeeSchedule(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ChangesMedicarePhysicianFeeSchedule, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_changesMedicarePhysicianFeeSchedule(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_changesMedicarePhysicianFeeScheduleNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_changesMedicarePhysicianFeeScheduleNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ChangesMedicarePhysicianFeeScheduleNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_changesMedicarePhysicianFeeScheduleNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaims(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaims(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AffectsMedicareSecondaryPayerClaims, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaims(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AffectsMedicareSecondaryPayerClaimsHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AffectsMedicareSecondaryPayerClaimsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_payModelDifferentiation(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_payModelDifferentiation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PayModelDifferentiation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_payModelDifferentiation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_willBePaymentAdjustments(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_willBePaymentAdjustments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillBePaymentAdjustments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_willBePaymentAdjustments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_willBePaymentAdjustmentsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_willBePaymentAdjustmentsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillBePaymentAdjustmentsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_willBePaymentAdjustmentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_creatingDependenciesBetweenServices(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_creatingDependenciesBetweenServices(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatingDependenciesBetweenServices, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_creatingDependenciesBetweenServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_creatingDependenciesBetweenServicesNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_creatingDependenciesBetweenServicesNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatingDependenciesBetweenServicesNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_creatingDependenciesBetweenServicesNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_needsClaimsDataCollection(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_needsClaimsDataCollection(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedsClaimsDataCollection, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_needsClaimsDataCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_needsClaimsDataCollectionNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_needsClaimsDataCollectionNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedsClaimsDataCollectionNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_needsClaimsDataCollectionNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_providingThirdPartyFile(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_providingThirdPartyFile(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProvidingThirdPartyFile, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_providingThirdPartyFile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_isContractorAwareTestDataRequirements(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_isContractorAwareTestDataRequirements(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsContractorAwareTestDataRequirements, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_isContractorAwareTestDataRequirements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_beneficiaryCostSharingLevelAndHandling(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_beneficiaryCostSharingLevelAndHandling(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BeneficiaryCostSharingLevelAndHandling, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_beneficiaryCostSharingLevelAndHandling(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_waiveBeneficiaryCostSharingForAnyServices(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingForAnyServices(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiveBeneficiaryCostSharingForAnyServices, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingForAnyServices(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_waiveBeneficiaryCostSharingServiceSpecification(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiveBeneficiaryCostSharingServiceSpecification, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingServiceSpecification(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_waiverOnlyAppliesPartOfPayment(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_waiverOnlyAppliesPartOfPayment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiverOnlyAppliesPartOfPayment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_waiverOnlyAppliesPartOfPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_waiveBeneficiaryCostSharingNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WaiveBeneficiaryCostSharingNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_waiveBeneficiaryCostSharingNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_nonClaimsPayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_nonClaimsPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NonClaimsPayments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_nonClaimsPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_nonClaimsPaymentOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_nonClaimsPaymentOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NonClaimsPaymentOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_nonClaimsPaymentOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_nonClaimsPaymentsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_nonClaimsPaymentsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NonClaimsPaymentsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_nonClaimsPaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentCalculationOwner(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentCalculationOwner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentCalculationOwner, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentCalculationOwner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_numberPaymentsPerPayCycle(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_numberPaymentsPerPayCycle(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberPaymentsPerPayCycle, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithParent) + fc.Result = res + return ec.marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_numberPaymentsPerPayCycle(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_numberPaymentsPerPayCycleNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_numberPaymentsPerPayCycleNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberPaymentsPerPayCycleNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_numberPaymentsPerPayCycleNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPayment(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SharedSystemsInvolvedAdditionalClaimPayment, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SharedSystemsInvolvedAdditionalClaimPaymentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_planningToUseInnovationPaymentContractor(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_planningToUseInnovationPaymentContractor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanningToUseInnovationPaymentContractor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndParent) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_planningToUseInnovationPaymentContractor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + case "parentRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndParent", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_planningToUseInnovationPaymentContractorNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_planningToUseInnovationPaymentContractorNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanningToUseInnovationPaymentContractorNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_planningToUseInnovationPaymentContractorNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_expectedCalculationComplexityLevel(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_expectedCalculationComplexityLevel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpectedCalculationComplexityLevel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_expectedCalculationComplexityLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_expectedCalculationComplexityLevelNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_expectedCalculationComplexityLevelNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpectedCalculationComplexityLevelNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_expectedCalculationComplexityLevelNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_claimsProcessingPrecedence(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedence(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClaimsProcessingPrecedence, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_claimsProcessingPrecedenceOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedenceOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClaimsProcessingPrecedenceOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedenceOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_claimsProcessingPrecedenceNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedenceNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ClaimsProcessingPrecedenceNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_claimsProcessingPrecedenceNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanisms(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CanParticipantsSelectBetweenPaymentMechanisms, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanisms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsHow(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CanParticipantsSelectBetweenPaymentMechanismsHow, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsHow(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CanParticipantsSelectBetweenPaymentMechanismsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_anticipatedPaymentFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedPaymentFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_anticipatedPaymentFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedPaymentFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_anticipatedPaymentFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedPaymentFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_anticipatedPaymentFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipatedPaymentFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipatedPaymentFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_willRecoverPayments(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_willRecoverPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillRecoverPayments, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_willRecoverPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_willRecoverPaymentsNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_willRecoverPaymentsNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.WillRecoverPaymentsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_willRecoverPaymentsNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectively(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectively(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipateReconcilingPaymentsRetrospectively, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectively(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectivelyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AnticipateReconcilingPaymentsRetrospectivelyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectivelyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentReconciliationFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentReconciliationFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentReconciliationFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentReconciliationFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentReconciliationFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentReconciliationFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentReconciliationFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentReconciliationFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentReconciliationFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentDemandRecoupmentFrequency(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequency(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentDemandRecoupmentFrequency, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequency(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyContinually(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyContinually(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentDemandRecoupmentFrequencyContinually, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyContinually(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyOther(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentDemandRecoupmentFrequencyOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentDemandRecoupmentFrequencyNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentStartDate(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentStartDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentStartDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentStartDate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_paymentStartDateNote(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_paymentStartDateNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PaymentStartDateNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_paymentStartDateNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_readyForReviewBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_readyForReviewBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_readyForReviewDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForReviewDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_readyForReviewDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_readyForClearanceBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_readyForClearanceBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_readyForClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadyForClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_readyForClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanPaymentsTranslation_status(ctx context.Context, field graphql.CollectedField, obj *model.PlanPaymentsTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanPaymentsTranslation_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanPaymentsTranslation_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanPaymentsTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_id(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_idNumber(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_idNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IDNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_idNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_dateInitiated(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_dateInitiated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DateInitiated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_dateInitiated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_title(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_title(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Title, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_note(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_note(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Note, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDL_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PlanTDL) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDL_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDL_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDL", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDLTranslation_idNumber(ctx context.Context, field graphql.CollectedField, obj *model.PlanTDLTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDLTranslation_idNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IDNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDLTranslation_idNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDLTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDLTranslation_title(ctx context.Context, field graphql.CollectedField, obj *model.PlanTDLTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDLTranslation_title(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Title, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDLTranslation_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDLTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDLTranslation_dateInitiated(ctx context.Context, field graphql.CollectedField, obj *model.PlanTDLTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDLTranslation_dateInitiated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DateInitiated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDLTranslation_dateInitiated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDLTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PlanTDLTranslation_note(ctx context.Context, field graphql.CollectedField, obj *model.PlanTDLTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PlanTDLTranslation_note(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Note, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PlanTDLTranslation_note(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PlanTDLTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_id(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_possibleSolutions(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_possibleSolutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PossibleOperationalNeed().PossibleSolutions(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PossibleOperationalSolution) + fc.Result = res + return ec.marshalNPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_possibleSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PossibleOperationalSolution_id(ctx, field) + case "name": + return ec.fieldContext_PossibleOperationalSolution_name(ctx, field) + case "key": + return ec.fieldContext_PossibleOperationalSolution_key(ctx, field) + case "treatAsOther": + return ec.fieldContext_PossibleOperationalSolution_treatAsOther(ctx, field) + case "pointsOfContact": + return ec.fieldContext_PossibleOperationalSolution_pointsOfContact(ctx, field) + case "primaryContact": + return ec.fieldContext_PossibleOperationalSolution_primaryContact(ctx, field) + case "filterView": + return ec.fieldContext_PossibleOperationalSolution_filterView(ctx, field) + case "createdBy": + return ec.fieldContext_PossibleOperationalSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PossibleOperationalSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PossibleOperationalSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PossibleOperationalSolution_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolution", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_name(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_key(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.OperationalNeedKey) + fc.Result = res + return ec.marshalNOperationalNeedKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OperationalNeedKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_section(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_section(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Section, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(models.TaskListSection) + fc.Result = res + return ec.marshalOTaskListSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_section(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaskListSection does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalNeed_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalNeed_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalNeed_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_id(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_name(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_key(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_key(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Key, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.OperationalSolutionKey) + fc.Result = res + return ec.marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OperationalSolutionKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_treatAsOther(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_treatAsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TreatAsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_treatAsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_pointsOfContact(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_pointsOfContact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PossibleOperationalSolution().PointsOfContact(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PossibleOperationalSolutionContact) + fc.Result = res + return ec.marshalNPossibleOperationalSolutionContact2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContactᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_pointsOfContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PossibleOperationalSolutionContact_id(ctx, field) + case "possibleOperationalSolutionID": + return ec.fieldContext_PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx, field) + case "name": + return ec.fieldContext_PossibleOperationalSolutionContact_name(ctx, field) + case "email": + return ec.fieldContext_PossibleOperationalSolutionContact_email(ctx, field) + case "isTeam": + return ec.fieldContext_PossibleOperationalSolutionContact_isTeam(ctx, field) + case "role": + return ec.fieldContext_PossibleOperationalSolutionContact_role(ctx, field) + case "isPrimary": + return ec.fieldContext_PossibleOperationalSolutionContact_isPrimary(ctx, field) + case "createdBy": + return ec.fieldContext_PossibleOperationalSolutionContact_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PossibleOperationalSolutionContact_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PossibleOperationalSolutionContact_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PossibleOperationalSolutionContact_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PossibleOperationalSolutionContact_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PossibleOperationalSolutionContact_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolutionContact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_primaryContact(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_primaryContact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.PossibleOperationalSolution().PrimaryContact(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.PossibleOperationalSolutionContact) + fc.Result = res + return ec.marshalOPossibleOperationalSolutionContact2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_primaryContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PossibleOperationalSolutionContact_id(ctx, field) + case "possibleOperationalSolutionID": + return ec.fieldContext_PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx, field) + case "name": + return ec.fieldContext_PossibleOperationalSolutionContact_name(ctx, field) + case "email": + return ec.fieldContext_PossibleOperationalSolutionContact_email(ctx, field) + case "isTeam": + return ec.fieldContext_PossibleOperationalSolutionContact_isTeam(ctx, field) + case "role": + return ec.fieldContext_PossibleOperationalSolutionContact_role(ctx, field) + case "isPrimary": + return ec.fieldContext_PossibleOperationalSolutionContact_isPrimary(ctx, field) + case "createdBy": + return ec.fieldContext_PossibleOperationalSolutionContact_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PossibleOperationalSolutionContact_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PossibleOperationalSolutionContact_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PossibleOperationalSolutionContact_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PossibleOperationalSolutionContact_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PossibleOperationalSolutionContact_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolutionContact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_filterView(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_filterView(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FilterView, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.ModelViewFilter) + fc.Result = res + return ec.marshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_filterView(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ModelViewFilter does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolution_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolution_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolution_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_id(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PossibleOperationalSolutionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_name(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_email(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_email(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Email, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_isTeam(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_isTeam(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsTeam, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_isTeam(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_role(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_role(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Role, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_role(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_isPrimary(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_isPrimary(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsPrimary, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_isPrimary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PossibleOperationalSolutionContact_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.PossibleOperationalSolutionContact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PossibleOperationalSolutionContact_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PossibleOperationalSolutionContact_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PossibleOperationalSolutionContact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PrepareForClearance_status(ctx context.Context, field graphql.CollectedField, obj *model.PrepareForClearance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PrepareForClearance_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(model.PrepareForClearanceStatus) + fc.Result = res + return ec.marshalNPrepareForClearanceStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearanceStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PrepareForClearance_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PrepareForClearance", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type PrepareForClearanceStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _PrepareForClearance_latestClearanceDts(ctx context.Context, field graphql.CollectedField, obj *model.PrepareForClearance) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PrepareForClearance_latestClearanceDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LatestClearanceDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PrepareForClearance_latestClearanceDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PrepareForClearance", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Query_analyzedAudits(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_analyzedAudits(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().AnalyzedAudits(rctx, fc.Args["dateAnalyzed"].(time.Time)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.AnalyzedAudit); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.AnalyzedAudit`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.AnalyzedAudit) + fc.Result = res + return ec.marshalNAnalyzedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_analyzedAudits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_AnalyzedAudit_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_AnalyzedAudit_modelPlanID(ctx, field) + case "modelName": + return ec.fieldContext_AnalyzedAudit_modelName(ctx, field) + case "date": + return ec.fieldContext_AnalyzedAudit_date(ctx, field) + case "changes": + return ec.fieldContext_AnalyzedAudit_changes(ctx, field) + case "createdBy": + return ec.fieldContext_AnalyzedAudit_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_AnalyzedAudit_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_AnalyzedAudit_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_AnalyzedAudit_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_AnalyzedAudit_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_AnalyzedAudit_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AnalyzedAudit", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_analyzedAudits_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_auditChanges(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_auditChanges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().AuditChanges(rctx, fc.Args["tableName"].(models.TableName), fc.Args["primaryKey"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.AuditChange); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.AuditChange`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.AuditChange) + fc.Result = res + return ec.marshalNAuditChange2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditChangeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_auditChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_AuditChange_id(ctx, field) + case "primaryKey": + return ec.fieldContext_AuditChange_primaryKey(ctx, field) + case "foreignKey": + return ec.fieldContext_AuditChange_foreignKey(ctx, field) + case "tableName": + return ec.fieldContext_AuditChange_tableName(ctx, field) + case "action": + return ec.fieldContext_AuditChange_action(ctx, field) + case "fields": + return ec.fieldContext_AuditChange_fields(ctx, field) + case "modifiedBy": + return ec.fieldContext_AuditChange_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_AuditChange_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_AuditChange_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AuditChange", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_auditChanges_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_currentUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_currentUser(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().CurrentUser(rctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.CurrentUser) + fc.Result = res + return ec.marshalNCurrentUser2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐCurrentUser(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_currentUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "launchDarkly": + return ec.fieldContext_CurrentUser_launchDarkly(ctx, field) + case "account": + return ec.fieldContext_CurrentUser_account(ctx, field) + case "notifications": + return ec.fieldContext_CurrentUser_notifications(ctx, field) + case "notificationPreferences": + return ec.fieldContext_CurrentUser_notificationPreferences(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type CurrentUser", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Query_mostRecentDiscussionRoleSelection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_mostRecentDiscussionRoleSelection(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().MostRecentDiscussionRoleSelection(rctx) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.DiscussionRoleSelection); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.DiscussionRoleSelection`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.DiscussionRoleSelection) + fc.Result = res + return ec.marshalODiscussionRoleSelection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionRoleSelection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_mostRecentDiscussionRoleSelection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "userRole": + return ec.fieldContext_DiscussionRoleSelection_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_DiscussionRoleSelection_userRoleDescription(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DiscussionRoleSelection", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Query_existingModelCollection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_existingModelCollection(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().ExistingModelCollection(rctx) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.ExistingModel); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.ExistingModel`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.ExistingModel) + fc.Result = res + return ec.marshalNExistingModel2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_existingModelCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ExistingModel_id(ctx, field) + case "modelName": + return ec.fieldContext_ExistingModel_modelName(ctx, field) + case "stage": + return ec.fieldContext_ExistingModel_stage(ctx, field) + case "numberOfParticipants": + return ec.fieldContext_ExistingModel_numberOfParticipants(ctx, field) + case "category": + return ec.fieldContext_ExistingModel_category(ctx, field) + case "authority": + return ec.fieldContext_ExistingModel_authority(ctx, field) + case "description": + return ec.fieldContext_ExistingModel_description(ctx, field) + case "numberOfBeneficiariesImpacted": + return ec.fieldContext_ExistingModel_numberOfBeneficiariesImpacted(ctx, field) + case "numberOfPhysiciansImpacted": + return ec.fieldContext_ExistingModel_numberOfPhysiciansImpacted(ctx, field) + case "dateBegan": + return ec.fieldContext_ExistingModel_dateBegan(ctx, field) + case "dateEnded": + return ec.fieldContext_ExistingModel_dateEnded(ctx, field) + case "states": + return ec.fieldContext_ExistingModel_states(ctx, field) + case "keywords": + return ec.fieldContext_ExistingModel_keywords(ctx, field) + case "url": + return ec.fieldContext_ExistingModel_url(ctx, field) + case "displayModelSummary": + return ec.fieldContext_ExistingModel_displayModelSummary(ctx, field) + case "createdBy": + return ec.fieldContext_ExistingModel_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ExistingModel_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ExistingModel_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ExistingModel_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ExistingModel_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ExistingModel_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExistingModel", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Query_existingModelLink(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_existingModelLink(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().ExistingModelLink(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.ExistingModelLink); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ExistingModelLink`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ExistingModelLink) + fc.Result = res + return ec.marshalNExistingModelLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLink(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_existingModelLink(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ExistingModelLink_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_ExistingModelLink_modelPlanID(ctx, field) + case "existingModelID": + return ec.fieldContext_ExistingModelLink_existingModelID(ctx, field) + case "currentModelPlanID": + return ec.fieldContext_ExistingModelLink_currentModelPlanID(ctx, field) + case "fieldName": + return ec.fieldContext_ExistingModelLink_fieldName(ctx, field) + case "model": + return ec.fieldContext_ExistingModelLink_model(ctx, field) + case "createdBy": + return ec.fieldContext_ExistingModelLink_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ExistingModelLink_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ExistingModelLink_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ExistingModelLink_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ExistingModelLink_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ExistingModelLink_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ExistingModelLink", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_existingModelLink_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_lockableSectionLocks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_lockableSectionLocks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().LockableSectionLocks(rctx, fc.Args["modelPlanID"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*model.LockableSectionLockStatus); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/graph/model.LockableSectionLockStatus`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*model.LockableSectionLockStatus) + fc.Result = res + return ec.marshalNLockableSectionLockStatus2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_lockableSectionLocks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "modelPlanID": + return ec.fieldContext_LockableSectionLockStatus_modelPlanID(ctx, field) + case "section": + return ec.fieldContext_LockableSectionLockStatus_section(ctx, field) + case "lockedByUserAccount": + return ec.fieldContext_LockableSectionLockStatus_lockedByUserAccount(ctx, field) + case "isAssessment": + return ec.fieldContext_LockableSectionLockStatus_isAssessment(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatus", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_lockableSectionLocks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_modelPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().ModelPlan(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.ModelPlan); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.ModelPlan`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_modelPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_modelPlanCollection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_modelPlanCollection(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().ModelPlanCollection(rctx, fc.Args["filter"].(model.ModelPlanFilter)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.ModelPlan); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.ModelPlan`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_modelPlanCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_modelPlanCollection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_modelPlansByOperationalSolutionKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_modelPlansByOperationalSolutionKey(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().ModelPlansByOperationalSolutionKey(rctx, fc.Args["operationalSolutionKey"].(models.OperationalSolutionKey)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.ModelPlanAndPossibleOperationalSolution); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.ModelPlanAndPossibleOperationalSolution`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.ModelPlanAndPossibleOperationalSolution) + fc.Result = res + return ec.marshalNModelPlanAndPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanAndPossibleOperationalSolutionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_modelPlansByOperationalSolutionKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "possibleOperationalSolution": + return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx, field) + case "possibleOperationalSolutionID": + return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx, field) + case "key": + return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_key(ctx, field) + case "modelPlanID": + return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx, field) + case "modelPlan": + return ec.fieldContext_ModelPlanAndPossibleOperationalSolution_modelPlan(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlanAndPossibleOperationalSolution", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_modelPlansByOperationalSolutionKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_ndaInfo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_ndaInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().NdaInfo(rctx) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*model.NDAInfo); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/graph/model.NDAInfo`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.NDAInfo) + fc.Result = res + return ec.marshalNNDAInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNDAInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_ndaInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "agreed": + return ec.fieldContext_NDAInfo_agreed(ctx, field) + case "agreedDts": + return ec.fieldContext_NDAInfo_agreedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NDAInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Query_operationalNeed(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_operationalNeed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().OperationalNeed(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.OperationalNeed); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalNeed`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.OperationalNeed) + fc.Result = res + return ec.marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_operationalNeed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalNeed_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_OperationalNeed_modelPlanID(ctx, field) + case "needed": + return ec.fieldContext_OperationalNeed_needed(ctx, field) + case "solutions": + return ec.fieldContext_OperationalNeed_solutions(ctx, field) + case "key": + return ec.fieldContext_OperationalNeed_key(ctx, field) + case "name": + return ec.fieldContext_OperationalNeed_name(ctx, field) + case "nameOther": + return ec.fieldContext_OperationalNeed_nameOther(ctx, field) + case "section": + return ec.fieldContext_OperationalNeed_section(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalNeed_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalNeed_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalNeed_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalNeed_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalNeed_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalNeed_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalNeed", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_operationalNeed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_operationalSolutions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_operationalSolutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().OperationalSolutions(rctx, fc.Args["operationalNeedID"].(uuid.UUID), fc.Args["includeNotNeeded"].(bool)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.OperationalSolution); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.OperationalSolution`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.OperationalSolution) + fc.Result = res + return ec.marshalNOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_operationalSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalSolution_id(ctx, field) + case "operationalNeedID": + return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) + case "solutionType": + return ec.fieldContext_OperationalSolution_solutionType(ctx, field) + case "needed": + return ec.fieldContext_OperationalSolution_needed(ctx, field) + case "name": + return ec.fieldContext_OperationalSolution_name(ctx, field) + case "key": + return ec.fieldContext_OperationalSolution_key(ctx, field) + case "nameOther": + return ec.fieldContext_OperationalSolution_nameOther(ctx, field) + case "pocName": + return ec.fieldContext_OperationalSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) + case "mustStartDts": + return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) + case "mustFinishDts": + return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) + case "isOther": + return ec.fieldContext_OperationalSolution_isOther(ctx, field) + case "isCommonSolution": + return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) + case "otherHeader": + return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) + case "status": + return ec.fieldContext_OperationalSolution_status(ctx, field) + case "documents": + return ec.fieldContext_OperationalSolution_documents(ctx, field) + case "operationalSolutionSubtasks": + return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_operationalSolutions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_operationalSolution(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_operationalSolution(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().OperationalSolution(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.OperationalSolution); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.OperationalSolution`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.OperationalSolution) + fc.Result = res + return ec.marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_operationalSolution(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OperationalSolution_id(ctx, field) + case "operationalNeedID": + return ec.fieldContext_OperationalSolution_operationalNeedID(ctx, field) + case "solutionType": + return ec.fieldContext_OperationalSolution_solutionType(ctx, field) + case "needed": + return ec.fieldContext_OperationalSolution_needed(ctx, field) + case "name": + return ec.fieldContext_OperationalSolution_name(ctx, field) + case "key": + return ec.fieldContext_OperationalSolution_key(ctx, field) + case "nameOther": + return ec.fieldContext_OperationalSolution_nameOther(ctx, field) + case "pocName": + return ec.fieldContext_OperationalSolution_pocName(ctx, field) + case "pocEmail": + return ec.fieldContext_OperationalSolution_pocEmail(ctx, field) + case "mustStartDts": + return ec.fieldContext_OperationalSolution_mustStartDts(ctx, field) + case "mustFinishDts": + return ec.fieldContext_OperationalSolution_mustFinishDts(ctx, field) + case "isOther": + return ec.fieldContext_OperationalSolution_isOther(ctx, field) + case "isCommonSolution": + return ec.fieldContext_OperationalSolution_isCommonSolution(ctx, field) + case "otherHeader": + return ec.fieldContext_OperationalSolution_otherHeader(ctx, field) + case "status": + return ec.fieldContext_OperationalSolution_status(ctx, field) + case "documents": + return ec.fieldContext_OperationalSolution_documents(ctx, field) + case "operationalSolutionSubtasks": + return ec.fieldContext_OperationalSolution_operationalSolutionSubtasks(ctx, field) + case "createdBy": + return ec.fieldContext_OperationalSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_OperationalSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_OperationalSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_OperationalSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_OperationalSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_OperationalSolution_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OperationalSolution", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_operationalSolution_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_planCollaboratorByID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_planCollaboratorByID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().PlanCollaboratorByID(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanCollaborator); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCollaborator`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanCollaborator) + fc.Result = res + return ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_planCollaboratorByID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCollaborator_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCollaborator_modelPlanID(ctx, field) + case "userID": + return ec.fieldContext_PlanCollaborator_userID(ctx, field) + case "userAccount": + return ec.fieldContext_PlanCollaborator_userAccount(ctx, field) + case "teamRoles": + return ec.fieldContext_PlanCollaborator_teamRoles(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCollaborator_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCollaborator_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCollaborator_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCollaborator_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCollaborator_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCollaborator_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCollaborator", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_planCollaboratorByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_planCR(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_planCR(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().PlanCr(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanCR); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanCR`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanCR) + fc.Result = res + return ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_planCR(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanCR_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanCR_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanCR_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanCR_dateInitiated(ctx, field) + case "dateImplemented": + return ec.fieldContext_PlanCR_dateImplemented(ctx, field) + case "title": + return ec.fieldContext_PlanCR_title(ctx, field) + case "note": + return ec.fieldContext_PlanCR_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanCR_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanCR_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanCR_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanCR_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanCR_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanCR_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanCR", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_planCR_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_planDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_planDocument(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().PlanDocument(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanDocument); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanDocument`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDocument) + fc.Result = res + return ec.marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_planDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDocument_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDocument_modelPlanID(ctx, field) + case "isLink": + return ec.fieldContext_PlanDocument_isLink(ctx, field) + case "url": + return ec.fieldContext_PlanDocument_url(ctx, field) + case "fileType": + return ec.fieldContext_PlanDocument_fileType(ctx, field) + case "bucket": + return ec.fieldContext_PlanDocument_bucket(ctx, field) + case "fileKey": + return ec.fieldContext_PlanDocument_fileKey(ctx, field) + case "virusScanned": + return ec.fieldContext_PlanDocument_virusScanned(ctx, field) + case "virusClean": + return ec.fieldContext_PlanDocument_virusClean(ctx, field) + case "restricted": + return ec.fieldContext_PlanDocument_restricted(ctx, field) + case "fileName": + return ec.fieldContext_PlanDocument_fileName(ctx, field) + case "fileSize": + return ec.fieldContext_PlanDocument_fileSize(ctx, field) + case "documentType": + return ec.fieldContext_PlanDocument_documentType(ctx, field) + case "otherType": + return ec.fieldContext_PlanDocument_otherType(ctx, field) + case "optionalNotes": + return ec.fieldContext_PlanDocument_optionalNotes(ctx, field) + case "downloadUrl": + return ec.fieldContext_PlanDocument_downloadUrl(ctx, field) + case "deletedAt": + return ec.fieldContext_PlanDocument_deletedAt(ctx, field) + case "numLinkedSolutions": + return ec.fieldContext_PlanDocument_numLinkedSolutions(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDocument_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDocument_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDocument_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDocument_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDocument_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDocument_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDocument", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_planDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_planPayments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_planPayments(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().PlanPayments(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanPayments); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanPayments`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanPayments) + fc.Result = res + return ec.marshalNPlanPayments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_planPayments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanPayments_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanPayments_modelPlanID(ctx, field) + case "fundingSource": + return ec.fieldContext_PlanPayments_fundingSource(ctx, field) + case "fundingSourcePatientProtectionInfo": + return ec.fieldContext_PlanPayments_fundingSourcePatientProtectionInfo(ctx, field) + case "fundingSourceMedicareAInfo": + return ec.fieldContext_PlanPayments_fundingSourceMedicareAInfo(ctx, field) + case "fundingSourceMedicareBInfo": + return ec.fieldContext_PlanPayments_fundingSourceMedicareBInfo(ctx, field) + case "fundingSourceOther": + return ec.fieldContext_PlanPayments_fundingSourceOther(ctx, field) + case "fundingSourceNote": + return ec.fieldContext_PlanPayments_fundingSourceNote(ctx, field) + case "fundingSourceR": + return ec.fieldContext_PlanPayments_fundingSourceR(ctx, field) + case "fundingSourceRPatientProtectionInfo": + return ec.fieldContext_PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field) + case "fundingSourceRMedicareAInfo": + return ec.fieldContext_PlanPayments_fundingSourceRMedicareAInfo(ctx, field) + case "fundingSourceRMedicareBInfo": + return ec.fieldContext_PlanPayments_fundingSourceRMedicareBInfo(ctx, field) + case "fundingSourceROther": + return ec.fieldContext_PlanPayments_fundingSourceROther(ctx, field) + case "fundingSourceRNote": + return ec.fieldContext_PlanPayments_fundingSourceRNote(ctx, field) + case "payRecipients": + return ec.fieldContext_PlanPayments_payRecipients(ctx, field) + case "payRecipientsOtherSpecification": + return ec.fieldContext_PlanPayments_payRecipientsOtherSpecification(ctx, field) + case "payRecipientsNote": + return ec.fieldContext_PlanPayments_payRecipientsNote(ctx, field) + case "payType": + return ec.fieldContext_PlanPayments_payType(ctx, field) + case "payTypeNote": + return ec.fieldContext_PlanPayments_payTypeNote(ctx, field) + case "payClaims": + return ec.fieldContext_PlanPayments_payClaims(ctx, field) + case "payClaimsOther": + return ec.fieldContext_PlanPayments_payClaimsOther(ctx, field) + case "payClaimsNote": + return ec.fieldContext_PlanPayments_payClaimsNote(ctx, field) + case "shouldAnyProvidersExcludedFFSSystems": + return ec.fieldContext_PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field) + case "shouldAnyProviderExcludedFFSSystemsNote": + return ec.fieldContext_PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field) + case "changesMedicarePhysicianFeeSchedule": + return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field) + case "changesMedicarePhysicianFeeScheduleNote": + return ec.fieldContext_PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field) + case "affectsMedicareSecondaryPayerClaims": + return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field) + case "affectsMedicareSecondaryPayerClaimsHow": + return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field) + case "affectsMedicareSecondaryPayerClaimsNote": + return ec.fieldContext_PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field) + case "payModelDifferentiation": + return ec.fieldContext_PlanPayments_payModelDifferentiation(ctx, field) + case "willBePaymentAdjustments": + return ec.fieldContext_PlanPayments_willBePaymentAdjustments(ctx, field) + case "willBePaymentAdjustmentsNote": + return ec.fieldContext_PlanPayments_willBePaymentAdjustmentsNote(ctx, field) + case "creatingDependenciesBetweenServices": + return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServices(ctx, field) + case "creatingDependenciesBetweenServicesNote": + return ec.fieldContext_PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field) + case "needsClaimsDataCollection": + return ec.fieldContext_PlanPayments_needsClaimsDataCollection(ctx, field) + case "needsClaimsDataCollectionNote": + return ec.fieldContext_PlanPayments_needsClaimsDataCollectionNote(ctx, field) + case "providingThirdPartyFile": + return ec.fieldContext_PlanPayments_providingThirdPartyFile(ctx, field) + case "isContractorAwareTestDataRequirements": + return ec.fieldContext_PlanPayments_isContractorAwareTestDataRequirements(ctx, field) + case "beneficiaryCostSharingLevelAndHandling": + return ec.fieldContext_PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field) + case "waiveBeneficiaryCostSharingForAnyServices": + return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field) + case "waiveBeneficiaryCostSharingServiceSpecification": + return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field) + case "waiverOnlyAppliesPartOfPayment": + return ec.fieldContext_PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field) + case "waiveBeneficiaryCostSharingNote": + return ec.fieldContext_PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field) + case "nonClaimsPayments": + return ec.fieldContext_PlanPayments_nonClaimsPayments(ctx, field) + case "nonClaimsPaymentOther": + return ec.fieldContext_PlanPayments_nonClaimsPaymentOther(ctx, field) + case "nonClaimsPaymentsNote": + return ec.fieldContext_PlanPayments_nonClaimsPaymentsNote(ctx, field) + case "paymentCalculationOwner": + return ec.fieldContext_PlanPayments_paymentCalculationOwner(ctx, field) + case "numberPaymentsPerPayCycle": + return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycle(ctx, field) + case "numberPaymentsPerPayCycleNote": + return ec.fieldContext_PlanPayments_numberPaymentsPerPayCycleNote(ctx, field) + case "sharedSystemsInvolvedAdditionalClaimPayment": + return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field) + case "sharedSystemsInvolvedAdditionalClaimPaymentNote": + return ec.fieldContext_PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field) + case "planningToUseInnovationPaymentContractor": + return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractor(ctx, field) + case "planningToUseInnovationPaymentContractorNote": + return ec.fieldContext_PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field) + case "expectedCalculationComplexityLevel": + return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevel(ctx, field) + case "expectedCalculationComplexityLevelNote": + return ec.fieldContext_PlanPayments_expectedCalculationComplexityLevelNote(ctx, field) + case "claimsProcessingPrecedence": + return ec.fieldContext_PlanPayments_claimsProcessingPrecedence(ctx, field) + case "claimsProcessingPrecedenceOther": + return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceOther(ctx, field) + case "claimsProcessingPrecedenceNote": + return ec.fieldContext_PlanPayments_claimsProcessingPrecedenceNote(ctx, field) + case "canParticipantsSelectBetweenPaymentMechanisms": + return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field) + case "canParticipantsSelectBetweenPaymentMechanismsHow": + return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field) + case "canParticipantsSelectBetweenPaymentMechanismsNote": + return ec.fieldContext_PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field) + case "anticipatedPaymentFrequency": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequency(ctx, field) + case "anticipatedPaymentFrequencyContinually": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field) + case "anticipatedPaymentFrequencyOther": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyOther(ctx, field) + case "anticipatedPaymentFrequencyNote": + return ec.fieldContext_PlanPayments_anticipatedPaymentFrequencyNote(ctx, field) + case "willRecoverPayments": + return ec.fieldContext_PlanPayments_willRecoverPayments(ctx, field) + case "willRecoverPaymentsNote": + return ec.fieldContext_PlanPayments_willRecoverPaymentsNote(ctx, field) + case "anticipateReconcilingPaymentsRetrospectively": + return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field) + case "anticipateReconcilingPaymentsRetrospectivelyNote": + return ec.fieldContext_PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field) + case "paymentReconciliationFrequency": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequency(ctx, field) + case "paymentReconciliationFrequencyContinually": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyContinually(ctx, field) + case "paymentReconciliationFrequencyOther": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyOther(ctx, field) + case "paymentReconciliationFrequencyNote": + return ec.fieldContext_PlanPayments_paymentReconciliationFrequencyNote(ctx, field) + case "paymentDemandRecoupmentFrequency": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequency(ctx, field) + case "paymentDemandRecoupmentFrequencyContinually": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field) + case "paymentDemandRecoupmentFrequencyOther": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field) + case "paymentDemandRecoupmentFrequencyNote": + return ec.fieldContext_PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field) + case "paymentStartDate": + return ec.fieldContext_PlanPayments_paymentStartDate(ctx, field) + case "paymentStartDateNote": + return ec.fieldContext_PlanPayments_paymentStartDateNote(ctx, field) + case "createdBy": + return ec.fieldContext_PlanPayments_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanPayments_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanPayments_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanPayments_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanPayments_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanPayments_modifiedDts(ctx, field) + case "readyForReviewBy": + return ec.fieldContext_PlanPayments_readyForReviewBy(ctx, field) + case "readyForReviewByUserAccount": + return ec.fieldContext_PlanPayments_readyForReviewByUserAccount(ctx, field) + case "readyForReviewDts": + return ec.fieldContext_PlanPayments_readyForReviewDts(ctx, field) + case "readyForClearanceBy": + return ec.fieldContext_PlanPayments_readyForClearanceBy(ctx, field) + case "readyForClearanceByUserAccount": + return ec.fieldContext_PlanPayments_readyForClearanceByUserAccount(ctx, field) + case "readyForClearanceDts": + return ec.fieldContext_PlanPayments_readyForClearanceDts(ctx, field) + case "status": + return ec.fieldContext_PlanPayments_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanPayments", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_planPayments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_planTDL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_planTDL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().PlanTdl(rctx, fc.Args["id"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.PlanTDL); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.PlanTDL`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanTDL) + fc.Result = res + return ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_planTDL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanTDL_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanTDL_modelPlanID(ctx, field) + case "idNumber": + return ec.fieldContext_PlanTDL_idNumber(ctx, field) + case "dateInitiated": + return ec.fieldContext_PlanTDL_dateInitiated(ctx, field) + case "title": + return ec.fieldContext_PlanTDL_title(ctx, field) + case "note": + return ec.fieldContext_PlanTDL_note(ctx, field) + case "createdBy": + return ec.fieldContext_PlanTDL_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanTDL_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanTDL_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanTDL_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanTDL_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanTDL_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanTDL", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_planTDL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_possibleOperationalNeeds(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_possibleOperationalNeeds(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().PossibleOperationalNeeds(rctx) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.PossibleOperationalNeed); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.PossibleOperationalNeed`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PossibleOperationalNeed) + fc.Result = res + return ec.marshalNPossibleOperationalNeed2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalNeedᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_possibleOperationalNeeds(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PossibleOperationalNeed_id(ctx, field) + case "possibleSolutions": + return ec.fieldContext_PossibleOperationalNeed_possibleSolutions(ctx, field) + case "name": + return ec.fieldContext_PossibleOperationalNeed_name(ctx, field) + case "key": + return ec.fieldContext_PossibleOperationalNeed_key(ctx, field) + case "section": + return ec.fieldContext_PossibleOperationalNeed_section(ctx, field) + case "createdBy": + return ec.fieldContext_PossibleOperationalNeed_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PossibleOperationalNeed_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PossibleOperationalNeed_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PossibleOperationalNeed_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PossibleOperationalNeed_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PossibleOperationalNeed_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalNeed", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Query_possibleOperationalSolutions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_possibleOperationalSolutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().PossibleOperationalSolutions(rctx) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.PossibleOperationalSolution); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.PossibleOperationalSolution`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.PossibleOperationalSolution) + fc.Result = res + return ec.marshalNPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_possibleOperationalSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PossibleOperationalSolution_id(ctx, field) + case "name": + return ec.fieldContext_PossibleOperationalSolution_name(ctx, field) + case "key": + return ec.fieldContext_PossibleOperationalSolution_key(ctx, field) + case "treatAsOther": + return ec.fieldContext_PossibleOperationalSolution_treatAsOther(ctx, field) + case "pointsOfContact": + return ec.fieldContext_PossibleOperationalSolution_pointsOfContact(ctx, field) + case "primaryContact": + return ec.fieldContext_PossibleOperationalSolution_primaryContact(ctx, field) + case "filterView": + return ec.fieldContext_PossibleOperationalSolution_filterView(ctx, field) + case "createdBy": + return ec.fieldContext_PossibleOperationalSolution_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PossibleOperationalSolution_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PossibleOperationalSolution_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PossibleOperationalSolution_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PossibleOperationalSolution_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PossibleOperationalSolution_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PossibleOperationalSolution", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Query_translatedAuditCollection(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_translatedAuditCollection(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().TranslatedAuditCollection(rctx, fc.Args["modelPlanID"].(uuid.UUID), fc.Args["limit"].(*int), fc.Args["offset"].(*int)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.TranslatedAudit); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.TranslatedAudit`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*models.TranslatedAudit) + fc.Result = res + return ec.marshalOTranslatedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_translatedAuditCollection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_TranslatedAudit_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_TranslatedAudit_modelPlanID(ctx, field) + case "tableID": + return ec.fieldContext_TranslatedAudit_tableID(ctx, field) + case "tableName": + return ec.fieldContext_TranslatedAudit_tableName(ctx, field) + case "primaryKey": + return ec.fieldContext_TranslatedAudit_primaryKey(ctx, field) + case "date": + return ec.fieldContext_TranslatedAudit_date(ctx, field) + case "action": + return ec.fieldContext_TranslatedAudit_action(ctx, field) + case "restricted": + return ec.fieldContext_TranslatedAudit_restricted(ctx, field) + case "actorID": + return ec.fieldContext_TranslatedAudit_actorID(ctx, field) + case "actorName": + return ec.fieldContext_TranslatedAudit_actorName(ctx, field) + case "changeID": + return ec.fieldContext_TranslatedAudit_changeID(ctx, field) + case "metaDataType": + return ec.fieldContext_TranslatedAudit_metaDataType(ctx, field) + case "metaData": + return ec.fieldContext_TranslatedAudit_metaData(ctx, field) + case "translatedFields": + return ec.fieldContext_TranslatedAudit_translatedFields(ctx, field) + case "createdBy": + return ec.fieldContext_TranslatedAudit_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_TranslatedAudit_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_TranslatedAudit_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_TranslatedAudit_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_TranslatedAudit_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_TranslatedAudit_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslatedAudit", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_translatedAuditCollection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_userAccount(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().UserAccount(rctx, fc.Args["username"].(string)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*authentication.UserAccount); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/authentication.UserAccount`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_userAccount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_searchOktaUsers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_searchOktaUsers(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().SearchOktaUsers(rctx, fc.Args["searchTerm"].(string)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.([]*models.UserInfo); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/cms-enterprise/mint-app/pkg/models.UserInfo`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.UserInfo) + fc.Result = res + return ec.marshalNUserInfo2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserInfoᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_searchOktaUsers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "firstName": + return ec.fieldContext_UserInfo_firstName(ctx, field) + case "lastName": + return ec.fieldContext_UserInfo_lastName(ctx, field) + case "displayName": + return ec.fieldContext_UserInfo_displayName(ctx, field) + case "email": + return ec.fieldContext_UserInfo_email(ctx, field) + case "username": + return ec.fieldContext_UserInfo_username(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserInfo", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_searchOktaUsers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_userViewCustomization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userViewCustomization(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().UserViewCustomization(rctx) + } + directive1 := func(ctx context.Context) (interface{}, error) { + roles, err := ec.unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx, []interface{}{"MINT_USER", "MINT_MAC"}) + if err != nil { + return nil, err + } + if ec.directives.HasAnyRole == nil { + return nil, errors.New("directive hasAnyRole is not implemented") + } + return ec.directives.HasAnyRole(ctx, nil, directive0, roles) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*models.UserViewCustomization); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/cms-enterprise/mint-app/pkg/models.UserViewCustomization`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.UserViewCustomization) + fc.Result = res + return ec.marshalNUserViewCustomization2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserViewCustomization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_userViewCustomization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserViewCustomization_id(ctx, field) + case "userId": + return ec.fieldContext_UserViewCustomization_userId(ctx, field) + case "userAccount": + return ec.fieldContext_UserViewCustomization_userAccount(ctx, field) + case "viewCustomization": + return ec.fieldContext_UserViewCustomization_viewCustomization(ctx, field) + case "possibleOperationalSolutions": + return ec.fieldContext_UserViewCustomization_possibleOperationalSolutions(ctx, field) + case "createdBy": + return ec.fieldContext_UserViewCustomization_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_UserViewCustomization_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_UserViewCustomization_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_UserViewCustomization_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_UserViewCustomization_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_UserViewCustomization_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserViewCustomization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.introspectType(fc.Args["name"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___schema(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.introspectSchema() + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Schema) + fc.Result = res + return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "description": + return ec.fieldContext___Schema_description(ctx, field) + case "types": + return ec.fieldContext___Schema_types(ctx, field) + case "queryType": + return ec.fieldContext___Schema_queryType(ctx, field) + case "mutationType": + return ec.fieldContext___Schema_mutationType(ctx, field) + case "subscriptionType": + return ec.fieldContext___Schema_subscriptionType(ctx, field) + case "directives": + return ec.fieldContext___Schema_directives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _RecentModification_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.RecentModification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RecentModification_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RecentModification_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RecentModification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _RecentModification_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.RecentModification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RecentModification_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RecentModification_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RecentModification", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _RecentModification_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.RecentModification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RecentModification_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RecentModification_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RecentModification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Subscription_onLockableSectionLocksChanged(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { + fc, err := ec.fieldContext_Subscription_onLockableSectionLocksChanged(ctx, field) + if err != nil { + return nil + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Subscription().OnLockableSectionLocksChanged(rctx, fc.Args["modelPlanID"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(<-chan *model.LockableSectionLockStatusChanged); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be <-chan *github.com/cms-enterprise/mint-app/pkg/graph/model.LockableSectionLockStatusChanged`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return nil + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return nil + } + return func(ctx context.Context) graphql.Marshaler { + select { + case res, ok := <-resTmp.(<-chan *model.LockableSectionLockStatusChanged): + if !ok { + return nil + } + return graphql.WriterFunc(func(w io.Writer) { + w.Write([]byte{'{'}) + graphql.MarshalString(field.Alias).MarshalGQL(w) + w.Write([]byte{':'}) + ec.marshalNLockableSectionLockStatusChanged2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusChanged(ctx, field.Selections, res).MarshalGQL(w) + w.Write([]byte{'}'}) + }) + case <-ctx.Done(): + return nil + } + } +} + +func (ec *executionContext) fieldContext_Subscription_onLockableSectionLocksChanged(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Subscription", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "changeType": + return ec.fieldContext_LockableSectionLockStatusChanged_changeType(ctx, field) + case "lockStatus": + return ec.fieldContext_LockableSectionLockStatusChanged_lockStatus(ctx, field) + case "actionType": + return ec.fieldContext_LockableSectionLockStatusChanged_actionType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatusChanged", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subscription_onLockableSectionLocksChanged_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Subscription_onLockLockableSectionContext(ctx context.Context, field graphql.CollectedField) (ret func(ctx context.Context) graphql.Marshaler) { + fc, err := ec.fieldContext_Subscription_onLockLockableSectionContext(ctx, field) + if err != nil { + return nil + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Subscription().OnLockLockableSectionContext(rctx, fc.Args["modelPlanID"].(uuid.UUID)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + role, err := ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, "MINT_USER") + if err != nil { + return nil, err + } + if ec.directives.HasRole == nil { + return nil, errors.New("directive hasRole is not implemented") + } + return ec.directives.HasRole(ctx, nil, directive0, role) + } + + tmp, err := directive1(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(<-chan *model.LockableSectionLockStatusChanged); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be <-chan *github.com/cms-enterprise/mint-app/pkg/graph/model.LockableSectionLockStatusChanged`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return nil + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return nil + } + return func(ctx context.Context) graphql.Marshaler { + select { + case res, ok := <-resTmp.(<-chan *model.LockableSectionLockStatusChanged): + if !ok { + return nil + } + return graphql.WriterFunc(func(w io.Writer) { + w.Write([]byte{'{'}) + graphql.MarshalString(field.Alias).MarshalGQL(w) + w.Write([]byte{':'}) + ec.marshalNLockableSectionLockStatusChanged2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusChanged(ctx, field.Selections, res).MarshalGQL(w) + w.Write([]byte{'}'}) + }) + case <-ctx.Done(): + return nil + } + } +} + +func (ec *executionContext) fieldContext_Subscription_onLockLockableSectionContext(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Subscription", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "changeType": + return ec.fieldContext_LockableSectionLockStatusChanged_changeType(ctx, field) + case "lockStatus": + return ec.fieldContext_LockableSectionLockStatusChanged_lockStatus(ctx, field) + case "actionType": + return ec.fieldContext_LockableSectionLockStatusChanged_actionType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type LockableSectionLockStatusChanged", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Subscription_onLockLockableSectionContext_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Tag_id(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_tagType(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_tagType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TagType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TagType) + fc.Result = res + return ec.marshalNTagType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_tagType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TagType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_taggedField(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_taggedField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TaggedField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_taggedField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_taggedContentTable(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_taggedContentTable(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TaggedContentTable, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_taggedContentTable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_taggedContentID(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_taggedContentID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TaggedContentID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_taggedContentID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_entityUUID(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_entityUUID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityUUID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_entityUUID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_entityIntID(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_entityIntID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityIntID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*int) + fc.Result = res + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_entityIntID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_entity(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_entity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Tag().Entity(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(models.TaggedEntity) + fc.Result = res + return ec.marshalOTaggedEntity2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedEntity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_entity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TaggedEntity does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Tag_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.Tag) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Tag_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Tag_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Tag", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedContent_rawContent(ctx context.Context, field graphql.CollectedField, obj *models.TaggedContent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedContent_rawContent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TaggedContent().RawContent(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedContent_rawContent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedContent", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedContent_tags(ctx context.Context, field graphql.CollectedField, obj *models.TaggedContent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedContent_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.Tag) + fc.Result = res + return ec.marshalNTag2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedContent_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedContent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Tag_id(ctx, field) + case "tagType": + return ec.fieldContext_Tag_tagType(ctx, field) + case "taggedField": + return ec.fieldContext_Tag_taggedField(ctx, field) + case "taggedContentTable": + return ec.fieldContext_Tag_taggedContentTable(ctx, field) + case "taggedContentID": + return ec.fieldContext_Tag_taggedContentID(ctx, field) + case "entityUUID": + return ec.fieldContext_Tag_entityUUID(ctx, field) + case "entityIntID": + return ec.fieldContext_Tag_entityIntID(ctx, field) + case "entity": + return ec.fieldContext_Tag_entity(ctx, field) + case "createdBy": + return ec.fieldContext_Tag_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_Tag_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_Tag_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_Tag_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_Tag_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_Tag_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Tag", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInDiscussionReplyActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInDiscussionReplyActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInDiscussionReplyActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TaggedInDiscussionReplyActivityMeta().ModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInDiscussionReplyActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_discussionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DiscussionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInDiscussionReplyActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_discussion(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_discussion(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TaggedInDiscussionReplyActivityMeta().Discussion(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDiscussion) + fc.Result = res + return ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_discussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInDiscussionReplyActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDiscussion_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) + case "content": + return ec.fieldContext_PlanDiscussion_content(ctx, field) + case "userRole": + return ec.fieldContext_PlanDiscussion_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) + case "replies": + return ec.fieldContext_PlanDiscussion_replies(ctx, field) + case "isAssessment": + return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_replyID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_replyID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReplyID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_replyID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInDiscussionReplyActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_reply(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_reply(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TaggedInDiscussionReplyActivityMeta().Reply(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.DiscussionReply) + fc.Result = res + return ec.marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_reply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInDiscussionReplyActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DiscussionReply_id(ctx, field) + case "discussionID": + return ec.fieldContext_DiscussionReply_discussionID(ctx, field) + case "content": + return ec.fieldContext_DiscussionReply_content(ctx, field) + case "userRole": + return ec.fieldContext_DiscussionReply_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_DiscussionReply_userRoleDescription(ctx, field) + case "isAssessment": + return ec.fieldContext_DiscussionReply_isAssessment(ctx, field) + case "createdBy": + return ec.fieldContext_DiscussionReply_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_DiscussionReply_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_DiscussionReply_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_DiscussionReply_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_DiscussionReply_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_DiscussionReply_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DiscussionReply", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta_content(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInDiscussionReplyActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInDiscussionReplyActivityMeta_content(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Content, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInDiscussionReplyActivityMeta_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInDiscussionReplyActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_version(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInPlanDiscussionActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_type(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.ActivityType) + fc.Result = res + return ec.marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInPlanDiscussionActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActivityType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInPlanDiscussionActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_modelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TaggedInPlanDiscussionActivityMeta().ModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.ModelPlan) + fc.Result = res + return ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_modelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInPlanDiscussionActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ModelPlan_id(ctx, field) + case "modelName": + return ec.fieldContext_ModelPlan_modelName(ctx, field) + case "abbreviation": + return ec.fieldContext_ModelPlan_abbreviation(ctx, field) + case "archived": + return ec.fieldContext_ModelPlan_archived(ctx, field) + case "createdBy": + return ec.fieldContext_ModelPlan_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_ModelPlan_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_ModelPlan_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_ModelPlan_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_ModelPlan_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_ModelPlan_modifiedDts(ctx, field) + case "basics": + return ec.fieldContext_ModelPlan_basics(ctx, field) + case "generalCharacteristics": + return ec.fieldContext_ModelPlan_generalCharacteristics(ctx, field) + case "participantsAndProviders": + return ec.fieldContext_ModelPlan_participantsAndProviders(ctx, field) + case "beneficiaries": + return ec.fieldContext_ModelPlan_beneficiaries(ctx, field) + case "opsEvalAndLearning": + return ec.fieldContext_ModelPlan_opsEvalAndLearning(ctx, field) + case "collaborators": + return ec.fieldContext_ModelPlan_collaborators(ctx, field) + case "documents": + return ec.fieldContext_ModelPlan_documents(ctx, field) + case "discussions": + return ec.fieldContext_ModelPlan_discussions(ctx, field) + case "payments": + return ec.fieldContext_ModelPlan_payments(ctx, field) + case "dataExchangeApproach": + return ec.fieldContext_ModelPlan_dataExchangeApproach(ctx, field) + case "status": + return ec.fieldContext_ModelPlan_status(ctx, field) + case "taskListStatus": + return ec.fieldContext_ModelPlan_taskListStatus(ctx, field) + case "suggestedPhase": + return ec.fieldContext_ModelPlan_suggestedPhase(ctx, field) + case "isFavorite": + return ec.fieldContext_ModelPlan_isFavorite(ctx, field) + case "isCollaborator": + return ec.fieldContext_ModelPlan_isCollaborator(ctx, field) + case "crs": + return ec.fieldContext_ModelPlan_crs(ctx, field) + case "tdls": + return ec.fieldContext_ModelPlan_tdls(ctx, field) + case "echimpCRsAndTDLs": + return ec.fieldContext_ModelPlan_echimpCRsAndTDLs(ctx, field) + case "prepareForClearance": + return ec.fieldContext_ModelPlan_prepareForClearance(ctx, field) + case "nameHistory": + return ec.fieldContext_ModelPlan_nameHistory(ctx, field) + case "operationalNeeds": + return ec.fieldContext_ModelPlan_operationalNeeds(ctx, field) + case "opSolutionLastModifiedDts": + return ec.fieldContext_ModelPlan_opSolutionLastModifiedDts(ctx, field) + case "previousSuggestedPhase": + return ec.fieldContext_ModelPlan_previousSuggestedPhase(ctx, field) + case "mtoMatrix": + return ec.fieldContext_ModelPlan_mtoMatrix(ctx, field) + case "modelBySolutionStatus": + return ec.fieldContext_ModelPlan_modelBySolutionStatus(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ModelPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_discussionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DiscussionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInPlanDiscussionActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_discussion(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_discussion(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TaggedInPlanDiscussionActivityMeta().Discussion(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.PlanDiscussion) + fc.Result = res + return ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_discussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInPlanDiscussionActivityMeta", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PlanDiscussion_id(ctx, field) + case "modelPlanID": + return ec.fieldContext_PlanDiscussion_modelPlanID(ctx, field) + case "content": + return ec.fieldContext_PlanDiscussion_content(ctx, field) + case "userRole": + return ec.fieldContext_PlanDiscussion_userRole(ctx, field) + case "userRoleDescription": + return ec.fieldContext_PlanDiscussion_userRoleDescription(ctx, field) + case "replies": + return ec.fieldContext_PlanDiscussion_replies(ctx, field) + case "isAssessment": + return ec.fieldContext_PlanDiscussion_isAssessment(ctx, field) + case "createdBy": + return ec.fieldContext_PlanDiscussion_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_PlanDiscussion_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_PlanDiscussion_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_PlanDiscussion_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_PlanDiscussion_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_PlanDiscussion_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PlanDiscussion", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta_content(ctx context.Context, field graphql.CollectedField, obj *models.TaggedInPlanDiscussionActivityMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaggedInPlanDiscussionActivityMeta_content(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Content, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaggedInPlanDiscussionActivityMeta_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaggedInPlanDiscussionActivityMeta", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_id(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_modelPlanID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_modelPlanID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModelPlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_modelPlanID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_tableID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_tableID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_tableID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_tableName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TableName) + fc.Result = res + return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_primaryKey(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_primaryKey(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PrimaryKey, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_primaryKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_date(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_date(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Date, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_date(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_action(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_action(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Action, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.DatabaseOperation) + fc.Result = res + return ec.marshalNDatabaseOperation2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatabaseOperation(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_action(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DatabaseOperation does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_restricted(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_restricted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Restricted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_restricted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_actorID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_actorID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActorID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_actorID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_actorName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_actorName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActorName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_actorName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_changeID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_changeID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ChangeID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_changeID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_metaDataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_metaDataType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MetaDataType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TranslatedAuditMetaDataType) + fc.Result = res + return ec.marshalOTranslatedAuditMetaDataType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaDataType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_metaDataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslatedAuditMetaDataType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_metaData(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_metaData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MetaData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(models.TranslatedAuditMetaData) + fc.Result = res + return ec.marshalOTranslatedAuditMetaData2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaData(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_metaData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslatedAuditMetaData does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_translatedFields(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_translatedFields(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TranslatedAudit().TranslatedFields(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.TranslatedAuditField) + fc.Result = res + return ec.marshalNTranslatedAuditField2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditFieldᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_translatedFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_TranslatedAuditField_id(ctx, field) + case "translatedAuditID": + return ec.fieldContext_TranslatedAuditField_translatedAuditID(ctx, field) + case "changeType": + return ec.fieldContext_TranslatedAuditField_changeType(ctx, field) + case "dataType": + return ec.fieldContext_TranslatedAuditField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslatedAuditField_formType(ctx, field) + case "fieldName": + return ec.fieldContext_TranslatedAuditField_fieldName(ctx, field) + case "fieldNameTranslated": + return ec.fieldContext_TranslatedAuditField_fieldNameTranslated(ctx, field) + case "fieldOrder": + return ec.fieldContext_TranslatedAuditField_fieldOrder(ctx, field) + case "referenceLabel": + return ec.fieldContext_TranslatedAuditField_referenceLabel(ctx, field) + case "questionType": + return ec.fieldContext_TranslatedAuditField_questionType(ctx, field) + case "notApplicableQuestions": + return ec.fieldContext_TranslatedAuditField_notApplicableQuestions(ctx, field) + case "old": + return ec.fieldContext_TranslatedAuditField_old(ctx, field) + case "oldTranslated": + return ec.fieldContext_TranslatedAuditField_oldTranslated(ctx, field) + case "new": + return ec.fieldContext_TranslatedAuditField_new(ctx, field) + case "newTranslated": + return ec.fieldContext_TranslatedAuditField_newTranslated(ctx, field) + case "createdBy": + return ec.fieldContext_TranslatedAuditField_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_TranslatedAuditField_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_TranslatedAuditField_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_TranslatedAuditField_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_TranslatedAuditField_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_TranslatedAuditField_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslatedAuditField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAudit_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAudit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAudit_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAudit_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAudit", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_id(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_translatedAuditID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_translatedAuditID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TranslatedAuditID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_translatedAuditID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_changeType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_changeType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ChangeType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.AuditFieldChangeType) + fc.Result = res + return ec.marshalNAuditFieldChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditFieldChangeType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_changeType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type AuditFieldChangeType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_dataType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationDataType) + fc.Result = res + return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationDataType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_formType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FormType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFormType) + fc.Result = res + return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationFormType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_fieldName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_fieldName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FieldName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_fieldName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_fieldNameTranslated(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_fieldNameTranslated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FieldNameTranslated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_fieldNameTranslated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_fieldOrder(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_fieldOrder(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FieldOrder, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(float64) + fc.Result = res + return ec.marshalNFloat2float64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_fieldOrder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_referenceLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_referenceLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReferenceLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_referenceLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_questionType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_questionType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QuestionType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TranslationQuestionType) + fc.Result = res + return ec.marshalOTranslationQuestionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationQuestionType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_questionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationQuestionType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_notApplicableQuestions(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_notApplicableQuestions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TranslatedAuditField().NotApplicableQuestions(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_notApplicableQuestions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_old(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_old(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Old, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(interface{}) + fc.Result = res + return ec.marshalOAny2interface(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_old(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Any does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_oldTranslated(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_oldTranslated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OldTranslated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(interface{}) + fc.Result = res + return ec.marshalOAny2interface(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_oldTranslated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Any does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_new(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_new(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.New, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(interface{}) + fc.Result = res + return ec.marshalOAny2interface(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_new(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Any does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_newTranslated(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_newTranslated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NewTranslated, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(interface{}) + fc.Result = res + return ec.marshalOAny2interface(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_newTranslated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Any does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditField_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditField_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditField_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaBaseStruct_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaBaseStruct) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaBaseStruct_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaBaseStruct_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaBaseStruct", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaBaseStruct_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaBaseStruct) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaBaseStruct_tableName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TableName) + fc.Result = res + return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaBaseStruct_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaBaseStruct", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_tableName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TableName) + fc.Result = res + return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_discussionID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_discussionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DiscussionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_discussionID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_discussionContent(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_discussionContent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DiscussionContent, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_discussionContent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDiscussionReply_numberOfReplies(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDiscussionReply) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDiscussionReply_numberOfReplies(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberOfReplies, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDiscussionReply_numberOfReplies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDiscussionReply", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_tableName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TableName) + fc.Result = res + return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_solutionName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_solutionOtherHeader(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionOtherHeader(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionOtherHeader, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionOtherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_solutionIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionIsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionIsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_solutionIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_needName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_needName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_needName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_needIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_needIsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedIsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_needIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentOtherType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentOtherType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentURL(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentURL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentURL, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentVisibility(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentVisibility(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentVisibility, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentVisibility(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentRestricted(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentRestricted(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentRestricted, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentRestricted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink_documentID(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaDocumentSolutionLink) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaDocumentSolutionLink_documentID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaDocumentSolutionLink", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaGeneric_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaGeneric) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaGeneric_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaGeneric_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaGeneric", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaGeneric_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaGeneric) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaGeneric_tableName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TableName) + fc.Result = res + return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaGeneric_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaGeneric", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaGeneric_relation(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaGeneric) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaGeneric_relation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Relation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaGeneric_relation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaGeneric", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaGeneric_relationContent(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaGeneric) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaGeneric_relationContent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RelationContent, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaGeneric_relationContent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaGeneric", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalNeed_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalNeed_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalNeed_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalNeed_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalNeed_tableName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TableName) + fc.Result = res + return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalNeed_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalNeed_needName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalNeed_needName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalNeed_needName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalNeed_isOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalNeed) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalNeed_isOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalNeed_isOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalNeed", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_tableName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TableName) + fc.Result = res + return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionOtherHeader(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionOtherHeader(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionOtherHeader, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionOtherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionIsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionIsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_numberOfSubtasks(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_numberOfSubtasks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberOfSubtasks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_numberOfSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_needName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_needName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_needName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_needIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_needIsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedIsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_needIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionStatus(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionStatus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionStatus, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionMustStart(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionMustStart(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionMustStart, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionMustStart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution_solutionMustFinish(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolution) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolution_solutionMustFinish(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionMustFinish, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolution_solutionMustFinish(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolution", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_version(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_version(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_tableName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_tableName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TableName) + fc.Result = res + return ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_tableName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_solutionName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_solutionOtherHeader(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionOtherHeader(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionOtherHeader, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionOtherHeader(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_solutionIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionIsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionIsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_solutionIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_numberOfSubtasks(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_numberOfSubtasks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumberOfSubtasks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_numberOfSubtasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_needName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_needName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_needName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_needIsOther(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_needIsOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NeedIsOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_needIsOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask_subtaskName(ctx context.Context, field graphql.CollectedField, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_subtaskName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubtaskName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslatedAuditMetaOperationalSolutionSubtask_subtaskName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslatedAuditMetaOperationalSolutionSubtask", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_gqlField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GqlField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_goField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GoField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_dbField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DBField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_label(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Label, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadOnlyLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_sublabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiSelectLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_isArray(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsArray, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_dataType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationDataType) + fc.Result = res + return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationDataType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_formType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FormType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFormType) + fc.Result = res + return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationFormType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_isNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_order(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Order, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(float64) + fc.Result = res + return ec.marshalNFloat2float64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_isOtherType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsOtherType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_otherParentField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OtherParentField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParentReferencesLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_exportLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationField_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationField_tableReference(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TableName) + fc.Result = res + return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationField_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationField", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GqlField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GoField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DBField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Label, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadOnlyLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiSelectLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsArray, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationDataType) + fc.Result = res + return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationDataType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FormType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFormType) + fc.Result = res + return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationFormType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Order, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(float64) + fc.Result = res + return ec.marshalNFloat2float64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsOtherType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OtherParentField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParentReferencesLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TableName) + fc.Result = res + return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_options(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Options, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalNMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptions_exportOptions(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportOptions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptions_exportOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptions", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GqlField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GoField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DBField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Label, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadOnlyLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiSelectLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsArray, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationDataType) + fc.Result = res + return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationDataType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FormType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFormType) + fc.Result = res + return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationFormType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Order, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(float64) + fc.Result = res + return ec.marshalNFloat2float64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsOtherType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OtherParentField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParentReferencesLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TableName) + fc.Result = res + return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_options(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Options, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalNMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_exportOptions(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportOptions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren_childRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TranslationFieldWithOptionsAndChildren().ChildRelation(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalNMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndChildren", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GqlField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GoField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DBField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_label(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Label, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadOnlyLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiSelectLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsArray, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationDataType) + fc.Result = res + return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationDataType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FormType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFormType) + fc.Result = res + return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationFormType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_order(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Order, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(float64) + fc.Result = res + return ec.marshalNFloat2float64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsOtherType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OtherParentField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParentReferencesLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TableName) + fc.Result = res + return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_options(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_options(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Options, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalNMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_exportOptions(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportOptions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_exportOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent_parentRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithOptionsAndParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParentRelation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithOptionsAndParent_parentRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithOptionsAndParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_gqlField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GqlField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_goField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GoField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_dbField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DBField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_label(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Label, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_readonlyLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadOnlyLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_sublabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiSelectLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_isArray(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsArray, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_dataType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationDataType) + fc.Result = res + return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationDataType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_formType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FormType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFormType) + fc.Result = res + return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationFormType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_isNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_order(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Order, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(float64) + fc.Result = res + return ec.marshalNFloat2float64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_isOtherType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsOtherType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_otherParentField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OtherParentField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParentReferencesLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_exportLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_tableReference(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TableName) + fc.Result = res + return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParent_parentRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParent) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParent_parentRelation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParentRelation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParent_parentRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParent", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_gqlField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_gqlField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GqlField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_gqlField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_goField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_goField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GoField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_goField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_dbField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_dbField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DBField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_dbField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_label(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_label(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Label, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_label(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_readonlyLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_readonlyLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ReadOnlyLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_readonlyLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_sublabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_sublabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_sublabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_multiSelectLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_multiSelectLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MultiSelectLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_multiSelectLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_isArray(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_isArray(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsArray, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_isArray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_dataType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_dataType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationDataType) + fc.Result = res + return ec.marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_dataType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationDataType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_formType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_formType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FormType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFormType) + fc.Result = res + return ec.marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_formType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TranslationFormType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_isNote(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_isNote(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsNote, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_isNote(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_order(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_order(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Order, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(float64) + fc.Result = res + return ec.marshalNFloat2float64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_order(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_isOtherType(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_isOtherType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsOtherType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_isOtherType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_otherParentField(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_otherParentField(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OtherParentField, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_otherParentField(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParentReferencesLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_exportLabel(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_exportLabel(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportLabel, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_exportLabel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_tableReference(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_tableReference(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TableReference, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.TableName) + fc.Result = res + return ec.marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_tableReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type TableName does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_options(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_options(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Options, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalNMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_options(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_exportOptions(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_exportOptions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExportOptions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_exportOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_parentRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_parentRelation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ParentRelation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptionsAndChildren) + fc.Result = res + return ec.marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_parentRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field) + case "childRelation": + return ec.fieldContext_TranslationFieldWithOptionsAndChildren_childRelation(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptionsAndChildren", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren_childRelation(ctx context.Context, field graphql.CollectedField, obj *models.TranslationFieldWithParentAndChildren) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TranslationFieldWithParentAndChildren_childRelation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.TranslationFieldWithParentAndChildren().ChildRelation(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalNMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TranslationFieldWithParentAndChildren_childRelation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TranslationFieldWithParentAndChildren", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_id(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_username(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_username(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Username, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalNString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_username(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_isEUAID(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_isEUAID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsEUAID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_isEUAID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_commonName(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_commonName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CommonName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_commonName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_locale(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_locale(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Locale, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_locale(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_email(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_email(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Email, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_givenName(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_givenName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GivenName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_givenName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_familyName(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_familyName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FamilyName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_familyName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_zoneInfo(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_zoneInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ZoneInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_zoneInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserAccount_hasLoggedIn(ctx context.Context, field graphql.CollectedField, obj *authentication.UserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HasLoggedIn, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserAccount_hasLoggedIn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserAccount", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserInfo_firstName(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserInfo_firstName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FirstName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserInfo_firstName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserInfo_lastName(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserInfo_lastName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LastName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserInfo_lastName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserInfo_displayName(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserInfo_displayName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserInfo_displayName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserInfo_email(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserInfo_email(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Email, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserInfo_email(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserInfo_username(ctx context.Context, field graphql.CollectedField, obj *models.UserInfo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserInfo_username(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Username, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserInfo_username(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserInfo", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_id(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_activityID(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_activityID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActivityID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_activityID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_userID(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_userID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_isRead(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_isRead(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsRead, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_isRead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_inAppSent(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_inAppSent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InAppSent, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_inAppSent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_emailSent(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_emailSent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EmailSent, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_emailSent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_activity(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_activity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotification().Activity(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*models.Activity) + fc.Result = res + return ec.marshalNActivity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_activity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Activity_id(ctx, field) + case "actorID": + return ec.fieldContext_Activity_actorID(ctx, field) + case "actorUserAccount": + return ec.fieldContext_Activity_actorUserAccount(ctx, field) + case "entityID": + return ec.fieldContext_Activity_entityID(ctx, field) + case "activityType": + return ec.fieldContext_Activity_activityType(ctx, field) + case "metaData": + return ec.fieldContext_Activity_metaData(ctx, field) + case "createdBy": + return ec.fieldContext_Activity_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_Activity_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_Activity_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_Activity_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_Activity_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_Activity_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotification_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.UserNotification) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotification_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotification_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotification", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_id(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_userID(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_userID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_userID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_dailyDigestComplete(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_dailyDigestComplete(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotificationPreferences().DailyDigestComplete(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.UserNotificationPreferenceFlag) + fc.Result = res + return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_dailyDigestComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_addedAsCollaborator(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_addedAsCollaborator(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotificationPreferences().AddedAsCollaborator(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.UserNotificationPreferenceFlag) + fc.Result = res + return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_addedAsCollaborator(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_taggedInDiscussion(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_taggedInDiscussion(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotificationPreferences().TaggedInDiscussion(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.UserNotificationPreferenceFlag) + fc.Result = res + return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_taggedInDiscussion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_taggedInDiscussionReply(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_taggedInDiscussionReply(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotificationPreferences().TaggedInDiscussionReply(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.UserNotificationPreferenceFlag) + fc.Result = res + return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_taggedInDiscussionReply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_newDiscussionReply(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_newDiscussionReply(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotificationPreferences().NewDiscussionReply(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.UserNotificationPreferenceFlag) + fc.Result = res + return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_newDiscussionReply(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_modelPlanShared(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_modelPlanShared(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotificationPreferences().ModelPlanShared(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.UserNotificationPreferenceFlag) + fc.Result = res + return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_modelPlanShared(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_newModelPlan(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_newModelPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotificationPreferences().NewModelPlan(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.UserNotificationPreferenceFlag) + fc.Result = res + return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_newModelPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_datesChanged(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_datesChanged(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotificationPreferences().DatesChanged(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.UserNotificationPreferenceFlag) + fc.Result = res + return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_datesChanged(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_datesChangedNotificationType(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_datesChangedNotificationType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DatesChangedNotificationType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.DatesChangedNotificationType) + fc.Result = res + return ec.marshalODatesChangedNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatesChangedNotificationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_datesChangedNotificationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DatesChangedNotificationType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserNotificationPreferences().DataExchangeApproachMarkedComplete(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.UserNotificationPreferenceFlag) + fc.Result = res + return ec.marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserNotificationPreferenceFlag does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DataExchangeApproachMarkedCompleteNotificationType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*models.DataExchangeApproachMarkedCompleteNotificationType) + fc.Result = res + return ec.marshalODataExchangeApproachMarkedCompleteNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachMarkedCompleteNotificationType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DataExchangeApproachMarkedCompleteNotificationType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotificationPreferences_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.UserNotificationPreferences) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotificationPreferences_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotificationPreferences_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotificationPreferences", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotifications_numUnreadNotifications(ctx context.Context, field graphql.CollectedField, obj *models.UserNotifications) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotifications_numUnreadNotifications(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.NumUnreadNotifications(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotifications_numUnreadNotifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotifications", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotifications_notifications(ctx context.Context, field graphql.CollectedField, obj *models.UserNotifications) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotifications_notifications(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Notifications, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.UserNotification) + fc.Result = res + return ec.marshalNUserNotification2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotifications_notifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotifications", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserNotification_id(ctx, field) + case "activityID": + return ec.fieldContext_UserNotification_activityID(ctx, field) + case "userID": + return ec.fieldContext_UserNotification_userID(ctx, field) + case "isRead": + return ec.fieldContext_UserNotification_isRead(ctx, field) + case "inAppSent": + return ec.fieldContext_UserNotification_inAppSent(ctx, field) + case "emailSent": + return ec.fieldContext_UserNotification_emailSent(ctx, field) + case "activity": + return ec.fieldContext_UserNotification_activity(ctx, field) + case "createdBy": + return ec.fieldContext_UserNotification_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_UserNotification_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_UserNotification_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_UserNotification_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserNotification", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserNotifications_unreadNotifications(ctx context.Context, field graphql.CollectedField, obj *models.UserNotifications) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserNotifications_unreadNotifications(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UnreadNotifications(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]*models.UserNotification) + fc.Result = res + return ec.marshalNUserNotification2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserNotifications_unreadNotifications(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserNotifications", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserNotification_id(ctx, field) + case "activityID": + return ec.fieldContext_UserNotification_activityID(ctx, field) + case "userID": + return ec.fieldContext_UserNotification_userID(ctx, field) + case "isRead": + return ec.fieldContext_UserNotification_isRead(ctx, field) + case "inAppSent": + return ec.fieldContext_UserNotification_inAppSent(ctx, field) + case "emailSent": + return ec.fieldContext_UserNotification_emailSent(ctx, field) + case "activity": + return ec.fieldContext_UserNotification_activity(ctx, field) + case "createdBy": + return ec.fieldContext_UserNotification_createdBy(ctx, field) + case "createdByUserAccount": + return ec.fieldContext_UserNotification_createdByUserAccount(ctx, field) + case "createdDts": + return ec.fieldContext_UserNotification_createdDts(ctx, field) + case "modifiedBy": + return ec.fieldContext_UserNotification_modifiedBy(ctx, field) + case "modifiedByUserAccount": + return ec.fieldContext_UserNotification_modifiedByUserAccount(ctx, field) + case "modifiedDts": + return ec.fieldContext_UserNotification_modifiedDts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserNotification", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_id(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_userId(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_userId(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_userId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_userAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_userAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_userAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_viewCustomization(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_viewCustomization(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserViewCustomization().ViewCustomization(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.ViewCustomizationType) + fc.Result = res + return ec.marshalNViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_viewCustomization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ViewCustomizationType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_possibleOperationalSolutions(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_possibleOperationalSolutions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.UserViewCustomization().PossibleOperationalSolutions(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]models.OperationalSolutionKey) + fc.Result = res + return ec.marshalNOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_possibleOperationalSolutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type OperationalSolutionKey does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_createdBy(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(uuid.UUID) + fc.Result = res + return ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_createdByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_createdByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_createdByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_createdDts(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_createdDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_createdDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_modifiedBy(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_modifiedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*uuid.UUID) + fc.Result = res + return ec.marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_modifiedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UUID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_modifiedByUserAccount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedByUserAccount(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*authentication.UserAccount) + fc.Result = res + return ec.marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_modifiedByUserAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserAccount_id(ctx, field) + case "username": + return ec.fieldContext_UserAccount_username(ctx, field) + case "isEUAID": + return ec.fieldContext_UserAccount_isEUAID(ctx, field) + case "commonName": + return ec.fieldContext_UserAccount_commonName(ctx, field) + case "locale": + return ec.fieldContext_UserAccount_locale(ctx, field) + case "email": + return ec.fieldContext_UserAccount_email(ctx, field) + case "givenName": + return ec.fieldContext_UserAccount_givenName(ctx, field) + case "familyName": + return ec.fieldContext_UserAccount_familyName(ctx, field) + case "zoneInfo": + return ec.fieldContext_UserAccount_zoneInfo(ctx, field) + case "hasLoggedIn": + return ec.fieldContext_UserAccount_hasLoggedIn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserAccount", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserViewCustomization_modifiedDts(ctx context.Context, field graphql.CollectedField, obj *models.UserViewCustomization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserViewCustomization_modifiedDts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ModifiedDts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserViewCustomization_modifiedDts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserViewCustomization", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_locations(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Locations, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type __DirectiveLocation does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_args(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Args, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]introspection.InputValue) + fc.Result = res + return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsRepeatable, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsDeprecated(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeprecationReason(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_args(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Args, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]introspection.InputValue) + fc.Result = res + return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsDeprecated(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeprecationReason(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DefaultValue, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_types(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Types(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_queryType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QueryType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_mutationType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MutationType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubscriptionType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_directives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Directives(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]introspection.Directive) + fc.Result = res + return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___Directive_name(ctx, field) + case "description": + return ec.fieldContext___Directive_description(ctx, field) + case "locations": + return ec.fieldContext___Directive_locations(ctx, field) + case "args": + return ec.fieldContext___Directive_args(ctx, field) + case "isRepeatable": + return ec.fieldContext___Directive_isRepeatable(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_kind(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Kind(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalN__TypeKind2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type __TypeKind does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_fields(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.Field) + fc.Result = res + return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___Field_name(ctx, field) + case "description": + return ec.fieldContext___Field_description(ctx, field) + case "args": + return ec.fieldContext___Field_args(ctx, field) + case "type": + return ec.fieldContext___Field_type(ctx, field) + case "isDeprecated": + return ec.fieldContext___Field_isDeprecated(ctx, field) + case "deprecationReason": + return ec.fieldContext___Field_deprecationReason(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_interfaces(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Interfaces(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PossibleTypes(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_enumValues(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.EnumValue) + fc.Result = res + return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___EnumValue_name(ctx, field) + case "description": + return ec.fieldContext___EnumValue_description(ctx, field) + case "isDeprecated": + return ec.fieldContext___EnumValue_isDeprecated(ctx, field) + case "deprecationReason": + return ec.fieldContext___EnumValue_deprecationReason(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_inputFields(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InputFields(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.InputValue) + fc.Result = res + return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_ofType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OfType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SpecifiedByURL(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +func (ec *executionContext) unmarshalInputCreateOperationalSolutionSubtaskInput(ctx context.Context, obj interface{}) (model.CreateOperationalSolutionSubtaskInput, error) { + var it model.CreateOperationalSolutionSubtaskInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"name", "status"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "name": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "status": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalNOperationalSolutionSubtaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskStatus(ctx, v) + if err != nil { + return it, err + } + it.Status = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputDiscussionReplyCreateInput(ctx context.Context, obj interface{}) (model.DiscussionReplyCreateInput, error) { + var it model.DiscussionReplyCreateInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"discussionID", "content", "userRole", "userRoleDescription"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "discussionID": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discussionID")) + data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) + if err != nil { + return it, err + } + it.DiscussionID = data + case "content": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content")) + data, err := ec.unmarshalNTaggedHTML2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedHTML(ctx, v) + if err != nil { + return it, err + } + it.Content = data + case "userRole": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userRole")) + data, err := ec.unmarshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, v) + if err != nil { + return it, err + } + it.UserRole = data + case "userRoleDescription": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userRoleDescription")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserRoleDescription = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputPlanCRCreateInput(ctx context.Context, obj interface{}) (model.PlanCRCreateInput, error) { + var it model.PlanCRCreateInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"modelPlanID", "idNumber", "dateInitiated", "dateImplemented", "title", "note"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "modelPlanID": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) + if err != nil { + return it, err + } + it.ModelPlanID = data + case "idNumber": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNumber")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.IDNumber = data + case "dateInitiated": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateInitiated")) + data, err := ec.unmarshalNTime2timeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DateInitiated = data + case "dateImplemented": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateImplemented")) + data, err := ec.unmarshalNTime2timeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DateImplemented = data + case "title": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Title = data + case "note": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Note = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputPlanCollaboratorCreateInput(ctx context.Context, obj interface{}) (model.PlanCollaboratorCreateInput, error) { + var it model.PlanCollaboratorCreateInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"modelPlanID", "userName", "teamRoles"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "modelPlanID": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) + if err != nil { + return it, err + } + it.ModelPlanID = data + case "userName": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userName")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.UserName = data + case "teamRoles": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("teamRoles")) + data, err := ec.unmarshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx, v) + if err != nil { + return it, err + } + it.TeamRoles = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputPlanDiscussionCreateInput(ctx context.Context, obj interface{}) (model.PlanDiscussionCreateInput, error) { + var it model.PlanDiscussionCreateInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"modelPlanID", "content", "userRole", "userRoleDescription"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "modelPlanID": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) + if err != nil { + return it, err + } + it.ModelPlanID = data + case "content": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content")) + data, err := ec.unmarshalNTaggedHTML2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedHTML(ctx, v) + if err != nil { + return it, err + } + it.Content = data + case "userRole": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userRole")) + data, err := ec.unmarshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx, v) + if err != nil { + return it, err + } + it.UserRole = data + case "userRoleDescription": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userRoleDescription")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserRoleDescription = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputPlanDocumentInput(ctx context.Context, obj interface{}) (model.PlanDocumentInput, error) { + var it model.PlanDocumentInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"modelPlanID", "fileData", "documentType", "restricted", "otherTypeDescription", "optionalNotes"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "modelPlanID": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) + if err != nil { + return it, err + } + it.ModelPlanID = data + case "fileData": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileData")) + data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) + if err != nil { + return it, err + } + it.FileData = data + case "documentType": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentType")) + data, err := ec.unmarshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx, v) + if err != nil { + return it, err + } + it.DocumentType = data + case "restricted": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("restricted")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.Restricted = data + case "otherTypeDescription": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("otherTypeDescription")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OtherTypeDescription = data + case "optionalNotes": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("optionalNotes")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OptionalNotes = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputPlanDocumentLinkInput(ctx context.Context, obj interface{}) (model.PlanDocumentLinkInput, error) { + var it model.PlanDocumentLinkInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"modelPlanID", "url", "name", "documentType", "restricted", "otherTypeDescription", "optionalNotes"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "modelPlanID": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) + if err != nil { + return it, err + } + it.ModelPlanID = data + case "url": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.URL = data + case "name": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "documentType": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentType")) + data, err := ec.unmarshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx, v) + if err != nil { + return it, err + } + it.DocumentType = data + case "restricted": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("restricted")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.Restricted = data + case "otherTypeDescription": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("otherTypeDescription")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OtherTypeDescription = data + case "optionalNotes": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("optionalNotes")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OptionalNotes = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputPlanTDLCreateInput(ctx context.Context, obj interface{}) (model.PlanTDLCreateInput, error) { + var it model.PlanTDLCreateInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"modelPlanID", "idNumber", "dateInitiated", "title", "note"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "modelPlanID": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("modelPlanID")) + data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) + if err != nil { + return it, err + } + it.ModelPlanID = data + case "idNumber": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNumber")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.IDNumber = data + case "dateInitiated": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateInitiated")) + data, err := ec.unmarshalNTime2timeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DateInitiated = data + case "title": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Title = data + case "note": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Note = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputReportAProblemInput(ctx context.Context, obj interface{}) (model.ReportAProblemInput, error) { + var it model.ReportAProblemInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"isAnonymousSubmission", "allowContact", "section", "sectionOther", "whatDoing", "whatWentWrong", "severity", "severityOther"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "isAnonymousSubmission": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isAnonymousSubmission")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.IsAnonymousSubmission = data + case "allowContact": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowContact")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.AllowContact = data + case "section": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("section")) + data, err := ec.unmarshalOReportAProblemSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSection(ctx, v) + if err != nil { + return it, err + } + it.Section = data + case "sectionOther": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sectionOther")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SectionOther = data + case "whatDoing": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("whatDoing")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.WhatDoing = data + case "whatWentWrong": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("whatWentWrong")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.WhatWentWrong = data + case "severity": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severity")) + data, err := ec.unmarshalOReportAProblemSeverity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSeverity(ctx, v) + if err != nil { + return it, err + } + it.Severity = data + case "severityOther": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severityOther")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SeverityOther = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSendFeedbackEmailInput(ctx context.Context, obj interface{}) (model.SendFeedbackEmailInput, error) { + var it model.SendFeedbackEmailInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"isAnonymousSubmission", "allowContact", "cmsRole", "mintUsedFor", "mintUsedForOther", "systemEasyToUse", "systemEasyToUseOther", "howSatisfied", "howCanWeImprove"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "isAnonymousSubmission": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isAnonymousSubmission")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.IsAnonymousSubmission = data + case "allowContact": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowContact")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.AllowContact = data + case "cmsRole": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cmsRole")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CmsRole = data + case "mintUsedFor": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mintUsedFor")) + data, err := ec.unmarshalOMintUses2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUsesᚄ(ctx, v) + if err != nil { + return it, err + } + it.MintUsedFor = data + case "mintUsedForOther": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mintUsedForOther")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MintUsedForOther = data + case "systemEasyToUse": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("systemEasyToUse")) + data, err := ec.unmarshalOEaseOfUse2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEaseOfUse(ctx, v) + if err != nil { + return it, err + } + it.SystemEasyToUse = data + case "systemEasyToUseOther": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("systemEasyToUseOther")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SystemEasyToUseOther = data + case "howSatisfied": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("howSatisfied")) + data, err := ec.unmarshalOSatisfactionLevel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSatisfactionLevel(ctx, v) + if err != nil { + return it, err + } + it.HowSatisfied = data + case "howCanWeImprove": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("howCanWeImprove")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.HowCanWeImprove = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateOperationalSolutionSubtaskInput(ctx context.Context, obj interface{}) (model.UpdateOperationalSolutionSubtaskInput, error) { + var it model.UpdateOperationalSolutionSubtaskInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"id", "changes"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "id": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "changes": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changes")) + data, err := ec.unmarshalNUpdateOperationalSolutionSubtaskChangesInput2map(ctx, v) + if err != nil { + return it, err + } + it.Changes = data + } + } + + return it, nil +} + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +func (ec *executionContext) _ActivityMetaData(ctx context.Context, sel ast.SelectionSet, obj models.ActivityMetaData) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case *models.TaggedInPlanDiscussionActivityMeta: + if obj == nil { + return graphql.Null + } + return ec._TaggedInPlanDiscussionActivityMeta(ctx, sel, obj) + case *models.TaggedInDiscussionReplyActivityMeta: + if obj == nil { + return graphql.Null + } + return ec._TaggedInDiscussionReplyActivityMeta(ctx, sel, obj) + case *models.DailyDigestCompleteActivityMeta: + if obj == nil { + return graphql.Null + } + return ec._DailyDigestCompleteActivityMeta(ctx, sel, obj) + case *models.NewDiscussionRepliedActivityMeta: + if obj == nil { + return graphql.Null + } + return ec._NewDiscussionRepliedActivityMeta(ctx, sel, obj) + case *models.AddedAsCollaboratorMeta: + if obj == nil { + return graphql.Null + } + return ec._AddedAsCollaboratorMeta(ctx, sel, obj) + case *models.ModelPlanSharedActivityMeta: + if obj == nil { + return graphql.Null + } + return ec._ModelPlanSharedActivityMeta(ctx, sel, obj) + case *models.NewModelPlanActivityMeta: + if obj == nil { + return graphql.Null + } + return ec._NewModelPlanActivityMeta(ctx, sel, obj) + case *models.DatesChangedActivityMeta: + if obj == nil { + return graphql.Null + } + return ec._DatesChangedActivityMeta(ctx, sel, obj) + case *models.PlanDataExchangeApproachMarkedCompleteActivityMeta: + if obj == nil { + return graphql.Null + } + return ec._PlanDataExchangeApproachMarkedCompleteActivityMeta(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _EChimpCRAndTDLS(ctx context.Context, sel ast.SelectionSet, obj models.EChimpCRAndTDLS) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case *models.EChimpCR: + if obj == nil { + return graphql.Null + } + return ec._EChimpCR(ctx, sel, obj) + case *models.EChimpTDL: + if obj == nil { + return graphql.Null + } + return ec._EChimpTDL(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _LinkedExistingModel(ctx context.Context, sel ast.SelectionSet, obj models.LinkedExistingModel) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case models.ExistingModel: + return ec._ExistingModel(ctx, sel, &obj) + case *models.ExistingModel: + if obj == nil { + return graphql.Null + } + return ec._ExistingModel(ctx, sel, obj) + case models.ModelPlan: + return ec._ModelPlan(ctx, sel, &obj) + case *models.ModelPlan: + if obj == nil { + return graphql.Null + } + return ec._ModelPlan(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TaggedEntity(ctx context.Context, sel ast.SelectionSet, obj models.TaggedEntity) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case authentication.UserAccount: + return ec._UserAccount(ctx, sel, &obj) + case *authentication.UserAccount: + if obj == nil { + return graphql.Null + } + return ec._UserAccount(ctx, sel, obj) + case models.PossibleOperationalSolution: + return ec._PossibleOperationalSolution(ctx, sel, &obj) + case *models.PossibleOperationalSolution: + if obj == nil { + return graphql.Null + } + return ec._PossibleOperationalSolution(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _TranslatedAuditMetaData(ctx context.Context, sel ast.SelectionSet, obj models.TranslatedAuditMetaData) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case *models.TranslatedAuditMetaBaseStruct: + if obj == nil { + return graphql.Null + } + return ec._TranslatedAuditMetaBaseStruct(ctx, sel, obj) + case *models.TranslatedAuditMetaGeneric: + if obj == nil { + return graphql.Null + } + return ec._TranslatedAuditMetaGeneric(ctx, sel, obj) + case *models.TranslatedAuditMetaDiscussionReply: + if obj == nil { + return graphql.Null + } + return ec._TranslatedAuditMetaDiscussionReply(ctx, sel, obj) + case *models.TranslatedAuditMetaOperationalNeed: + if obj == nil { + return graphql.Null + } + return ec._TranslatedAuditMetaOperationalNeed(ctx, sel, obj) + case *models.TranslatedAuditMetaOperationalSolution: + if obj == nil { + return graphql.Null + } + return ec._TranslatedAuditMetaOperationalSolution(ctx, sel, obj) + case *models.TranslatedAuditMetaOperationalSolutionSubtask: + if obj == nil { + return graphql.Null + } + return ec._TranslatedAuditMetaOperationalSolutionSubtask(ctx, sel, obj) + case *models.TranslatedAuditMetaDocumentSolutionLink: + if obj == nil { + return graphql.Null + } + return ec._TranslatedAuditMetaDocumentSolutionLink(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var activityImplementors = []string{"Activity"} + +func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, obj *models.Activity) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, activityImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Activity") + case "id": + out.Values[i] = ec._Activity_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "actorID": + out.Values[i] = ec._Activity_actorID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "actorUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Activity_actorUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entityID": + out.Values[i] = ec._Activity_entityID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "activityType": + out.Values[i] = ec._Activity_activityType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "metaData": + out.Values[i] = ec._Activity_metaData(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._Activity_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Activity_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._Activity_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._Activity_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Activity_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._Activity_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var addedAsCollaboratorMetaImplementors = []string{"AddedAsCollaboratorMeta", "ActivityMetaData"} + +func (ec *executionContext) _AddedAsCollaboratorMeta(ctx context.Context, sel ast.SelectionSet, obj *models.AddedAsCollaboratorMeta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, addedAsCollaboratorMetaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AddedAsCollaboratorMeta") + case "version": + out.Values[i] = ec._AddedAsCollaboratorMeta_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._AddedAsCollaboratorMeta_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._AddedAsCollaboratorMeta_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._AddedAsCollaboratorMeta_modelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "collaboratorID": + out.Values[i] = ec._AddedAsCollaboratorMeta_collaboratorID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "collaborator": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._AddedAsCollaboratorMeta_collaborator(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var analyzedAuditImplementors = []string{"AnalyzedAudit"} + +func (ec *executionContext) _AnalyzedAudit(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedAudit) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, analyzedAuditImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AnalyzedAudit") + case "id": + out.Values[i] = ec._AnalyzedAudit_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._AnalyzedAudit_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelName": + out.Values[i] = ec._AnalyzedAudit_modelName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "date": + out.Values[i] = ec._AnalyzedAudit_date(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "changes": + out.Values[i] = ec._AnalyzedAudit_changes(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._AnalyzedAudit_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._AnalyzedAudit_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._AnalyzedAudit_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._AnalyzedAudit_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._AnalyzedAudit_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._AnalyzedAudit_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var analyzedAuditChangeImplementors = []string{"AnalyzedAuditChange"} + +func (ec *executionContext) _AnalyzedAuditChange(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedAuditChange) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, analyzedAuditChangeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AnalyzedAuditChange") + case "modelPlan": + out.Values[i] = ec._AnalyzedAuditChange_modelPlan(ctx, field, obj) + case "documents": + out.Values[i] = ec._AnalyzedAuditChange_documents(ctx, field, obj) + case "crTdls": + out.Values[i] = ec._AnalyzedAuditChange_crTdls(ctx, field, obj) + case "planSections": + out.Values[i] = ec._AnalyzedAuditChange_planSections(ctx, field, obj) + case "modelLeads": + out.Values[i] = ec._AnalyzedAuditChange_modelLeads(ctx, field, obj) + case "planDiscussions": + out.Values[i] = ec._AnalyzedAuditChange_planDiscussions(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var analyzedCrTdlsImplementors = []string{"AnalyzedCrTdls"} + +func (ec *executionContext) _AnalyzedCrTdls(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedCrTdls) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, analyzedCrTdlsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AnalyzedCrTdls") + case "activity": + out.Values[i] = ec._AnalyzedCrTdls_activity(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var analyzedDocumentsImplementors = []string{"AnalyzedDocuments"} + +func (ec *executionContext) _AnalyzedDocuments(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedDocuments) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, analyzedDocumentsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AnalyzedDocuments") + case "count": + out.Values[i] = ec._AnalyzedDocuments_count(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var analyzedModelLeadInfoImplementors = []string{"AnalyzedModelLeadInfo"} + +func (ec *executionContext) _AnalyzedModelLeadInfo(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedModelLeadInfo) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, analyzedModelLeadInfoImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AnalyzedModelLeadInfo") + case "id": + out.Values[i] = ec._AnalyzedModelLeadInfo_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._AnalyzedModelLeadInfo_userAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "commonName": + out.Values[i] = ec._AnalyzedModelLeadInfo_commonName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var analyzedModelLeadsImplementors = []string{"AnalyzedModelLeads"} + +func (ec *executionContext) _AnalyzedModelLeads(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedModelLeads) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, analyzedModelLeadsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AnalyzedModelLeads") + case "added": + out.Values[i] = ec._AnalyzedModelLeads_added(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var analyzedModelPlanImplementors = []string{"AnalyzedModelPlan"} + +func (ec *executionContext) _AnalyzedModelPlan(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedModelPlan) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, analyzedModelPlanImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AnalyzedModelPlan") + case "oldName": + out.Values[i] = ec._AnalyzedModelPlan_oldName(ctx, field, obj) + case "statusChanges": + out.Values[i] = ec._AnalyzedModelPlan_statusChanges(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var analyzedPlanDiscussionsImplementors = []string{"AnalyzedPlanDiscussions"} + +func (ec *executionContext) _AnalyzedPlanDiscussions(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedPlanDiscussions) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, analyzedPlanDiscussionsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AnalyzedPlanDiscussions") + case "activity": + out.Values[i] = ec._AnalyzedPlanDiscussions_activity(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var analyzedPlanSectionsImplementors = []string{"AnalyzedPlanSections"} + +func (ec *executionContext) _AnalyzedPlanSections(ctx context.Context, sel ast.SelectionSet, obj *models.AnalyzedPlanSections) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, analyzedPlanSectionsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AnalyzedPlanSections") + case "updated": + out.Values[i] = ec._AnalyzedPlanSections_updated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReview": + out.Values[i] = ec._AnalyzedPlanSections_readyForReview(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearance": + out.Values[i] = ec._AnalyzedPlanSections_readyForClearance(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataExchangeApproachMarkedComplete": + out.Values[i] = ec._AnalyzedPlanSections_dataExchangeApproachMarkedComplete(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var auditChangeImplementors = []string{"AuditChange"} + +func (ec *executionContext) _AuditChange(ctx context.Context, sel ast.SelectionSet, obj *models.AuditChange) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, auditChangeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AuditChange") + case "id": + out.Values[i] = ec._AuditChange_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "primaryKey": + out.Values[i] = ec._AuditChange_primaryKey(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "foreignKey": + out.Values[i] = ec._AuditChange_foreignKey(ctx, field, obj) + case "tableName": + out.Values[i] = ec._AuditChange_tableName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "action": + out.Values[i] = ec._AuditChange_action(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fields": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._AuditChange_fields(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedBy": + out.Values[i] = ec._AuditChange_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._AuditChange_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._AuditChange_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var currentUserImplementors = []string{"CurrentUser"} + +func (ec *executionContext) _CurrentUser(ctx context.Context, sel ast.SelectionSet, obj *models.CurrentUser) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, currentUserImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("CurrentUser") + case "launchDarkly": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._CurrentUser_launchDarkly(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "account": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._CurrentUser_account(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "notifications": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._CurrentUser_notifications(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "notificationPreferences": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._CurrentUser_notificationPreferences(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var dailyDigestCompleteActivityMetaImplementors = []string{"DailyDigestCompleteActivityMeta", "ActivityMetaData"} + +func (ec *executionContext) _DailyDigestCompleteActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.DailyDigestCompleteActivityMeta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dailyDigestCompleteActivityMetaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DailyDigestCompleteActivityMeta") + case "version": + out.Values[i] = ec._DailyDigestCompleteActivityMeta_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._DailyDigestCompleteActivityMeta_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanIDs": + out.Values[i] = ec._DailyDigestCompleteActivityMeta_modelPlanIDs(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "analyzedAudits": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DailyDigestCompleteActivityMeta_analyzedAudits(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "userID": + out.Values[i] = ec._DailyDigestCompleteActivityMeta_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "date": + out.Values[i] = ec._DailyDigestCompleteActivityMeta_date(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var dateChangeImplementors = []string{"DateChange"} + +func (ec *executionContext) _DateChange(ctx context.Context, sel ast.SelectionSet, obj *models.DateChange) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, dateChangeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DateChange") + case "isChanged": + out.Values[i] = ec._DateChange_isChanged(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "field": + out.Values[i] = ec._DateChange_field(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isRange": + out.Values[i] = ec._DateChange_isRange(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "oldDate": + out.Values[i] = ec._DateChange_oldDate(ctx, field, obj) + case "newDate": + out.Values[i] = ec._DateChange_newDate(ctx, field, obj) + case "oldRangeStart": + out.Values[i] = ec._DateChange_oldRangeStart(ctx, field, obj) + case "oldRangeEnd": + out.Values[i] = ec._DateChange_oldRangeEnd(ctx, field, obj) + case "newRangeStart": + out.Values[i] = ec._DateChange_newRangeStart(ctx, field, obj) + case "newRangeEnd": + out.Values[i] = ec._DateChange_newRangeEnd(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var datesChangedActivityMetaImplementors = []string{"DatesChangedActivityMeta", "ActivityMetaData"} + +func (ec *executionContext) _DatesChangedActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.DatesChangedActivityMeta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, datesChangedActivityMetaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DatesChangedActivityMeta") + case "version": + out.Values[i] = ec._DatesChangedActivityMeta_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._DatesChangedActivityMeta_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._DatesChangedActivityMeta_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DatesChangedActivityMeta_modelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dateChanges": + out.Values[i] = ec._DatesChangedActivityMeta_dateChanges(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var discussionReplyImplementors = []string{"DiscussionReply"} + +func (ec *executionContext) _DiscussionReply(ctx context.Context, sel ast.SelectionSet, obj *models.DiscussionReply) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, discussionReplyImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DiscussionReply") + case "id": + out.Values[i] = ec._DiscussionReply_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "discussionID": + out.Values[i] = ec._DiscussionReply_discussionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "content": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DiscussionReply_content(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "userRole": + out.Values[i] = ec._DiscussionReply_userRole(ctx, field, obj) + case "userRoleDescription": + out.Values[i] = ec._DiscussionReply_userRoleDescription(ctx, field, obj) + case "isAssessment": + out.Values[i] = ec._DiscussionReply_isAssessment(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._DiscussionReply_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DiscussionReply_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._DiscussionReply_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._DiscussionReply_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DiscussionReply_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._DiscussionReply_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var discussionReplyTranslationImplementors = []string{"DiscussionReplyTranslation"} + +func (ec *executionContext) _DiscussionReplyTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.DiscussionReplyTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, discussionReplyTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DiscussionReplyTranslation") + case "userRole": + out.Values[i] = ec._DiscussionReplyTranslation_userRole(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "userRoleDescription": + out.Values[i] = ec._DiscussionReplyTranslation_userRoleDescription(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "content": + out.Values[i] = ec._DiscussionReplyTranslation_content(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isAssessment": + out.Values[i] = ec._DiscussionReplyTranslation_isAssessment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var discussionRoleSelectionImplementors = []string{"DiscussionRoleSelection"} + +func (ec *executionContext) _DiscussionRoleSelection(ctx context.Context, sel ast.SelectionSet, obj *models.DiscussionRoleSelection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, discussionRoleSelectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DiscussionRoleSelection") + case "userRole": + out.Values[i] = ec._DiscussionRoleSelection_userRole(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "userRoleDescription": + out.Values[i] = ec._DiscussionRoleSelection_userRoleDescription(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eChimpCRImplementors = []string{"EChimpCR", "EChimpCRAndTDLS"} + +func (ec *executionContext) _EChimpCR(ctx context.Context, sel ast.SelectionSet, obj *models.EChimpCR) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eChimpCRImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EChimpCR") + case "id": + out.Values[i] = ec._EChimpCR_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "versionNum": + out.Values[i] = ec._EChimpCR_versionNum(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "initiator": + out.Values[i] = ec._EChimpCR_initiator(ctx, field, obj) + case "firstName": + out.Values[i] = ec._EChimpCR_firstName(ctx, field, obj) + case "lastName": + out.Values[i] = ec._EChimpCR_lastName(ctx, field, obj) + case "title": + out.Values[i] = ec._EChimpCR_title(ctx, field, obj) + case "sensitiveFlag": + out.Values[i] = ec._EChimpCR_sensitiveFlag(ctx, field, obj) + case "implementationDate": + out.Values[i] = ec._EChimpCR_implementationDate(ctx, field, obj) + case "crSummary": + out.Values[i] = ec._EChimpCR_crSummary(ctx, field, obj) + case "crStatus": + out.Values[i] = ec._EChimpCR_crStatus(ctx, field, obj) + case "emergencyCrFlag": + out.Values[i] = ec._EChimpCR_emergencyCrFlag(ctx, field, obj) + case "relatedCrNumbers": + out.Values[i] = ec._EChimpCR_relatedCrNumbers(ctx, field, obj) + case "relatedCrTdlNumbers": + out.Values[i] = ec._EChimpCR_relatedCrTdlNumbers(ctx, field, obj) + case "associatedModelUids": + out.Values[i] = ec._EChimpCR_associatedModelUids(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eChimpTDLImplementors = []string{"EChimpTDL", "EChimpCRAndTDLS"} + +func (ec *executionContext) _EChimpTDL(ctx context.Context, sel ast.SelectionSet, obj *models.EChimpTDL) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eChimpTDLImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EChimpTDL") + case "id": + out.Values[i] = ec._EChimpTDL_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "versionNum": + out.Values[i] = ec._EChimpTDL_versionNum(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "initiator": + out.Values[i] = ec._EChimpTDL_initiator(ctx, field, obj) + case "firstName": + out.Values[i] = ec._EChimpTDL_firstName(ctx, field, obj) + case "lastName": + out.Values[i] = ec._EChimpTDL_lastName(ctx, field, obj) + case "title": + out.Values[i] = ec._EChimpTDL_title(ctx, field, obj) + case "issuedDate": + out.Values[i] = ec._EChimpTDL_issuedDate(ctx, field, obj) + case "status": + out.Values[i] = ec._EChimpTDL_status(ctx, field, obj) + case "associatedModelUids": + out.Values[i] = ec._EChimpTDL_associatedModelUids(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var enumTranslationImplementors = []string{"EnumTranslation"} + +func (ec *executionContext) _EnumTranslation(ctx context.Context, sel ast.SelectionSet, obj *models.EnumTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, enumTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EnumTranslation") + case "generalName": + out.Values[i] = ec._EnumTranslation_generalName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "groupedName": + out.Values[i] = ec._EnumTranslation_groupedName(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var existingModelImplementors = []string{"ExistingModel", "LinkedExistingModel"} + +func (ec *executionContext) _ExistingModel(ctx context.Context, sel ast.SelectionSet, obj *models.ExistingModel) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, existingModelImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ExistingModel") + case "id": + out.Values[i] = ec._ExistingModel_id(ctx, field, obj) + case "modelName": + out.Values[i] = ec._ExistingModel_modelName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "stage": + out.Values[i] = ec._ExistingModel_stage(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "numberOfParticipants": + out.Values[i] = ec._ExistingModel_numberOfParticipants(ctx, field, obj) + case "category": + out.Values[i] = ec._ExistingModel_category(ctx, field, obj) + case "authority": + out.Values[i] = ec._ExistingModel_authority(ctx, field, obj) + case "description": + out.Values[i] = ec._ExistingModel_description(ctx, field, obj) + case "numberOfBeneficiariesImpacted": + out.Values[i] = ec._ExistingModel_numberOfBeneficiariesImpacted(ctx, field, obj) + case "numberOfPhysiciansImpacted": + out.Values[i] = ec._ExistingModel_numberOfPhysiciansImpacted(ctx, field, obj) + case "dateBegan": + out.Values[i] = ec._ExistingModel_dateBegan(ctx, field, obj) + case "dateEnded": + out.Values[i] = ec._ExistingModel_dateEnded(ctx, field, obj) + case "states": + out.Values[i] = ec._ExistingModel_states(ctx, field, obj) + case "keywords": + out.Values[i] = ec._ExistingModel_keywords(ctx, field, obj) + case "url": + out.Values[i] = ec._ExistingModel_url(ctx, field, obj) + case "displayModelSummary": + out.Values[i] = ec._ExistingModel_displayModelSummary(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._ExistingModel_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ExistingModel_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._ExistingModel_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._ExistingModel_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ExistingModel_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._ExistingModel_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var existingModelLinkImplementors = []string{"ExistingModelLink"} + +func (ec *executionContext) _ExistingModelLink(ctx context.Context, sel ast.SelectionSet, obj *models.ExistingModelLink) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, existingModelLinkImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ExistingModelLink") + case "id": + out.Values[i] = ec._ExistingModelLink_id(ctx, field, obj) + case "modelPlanID": + out.Values[i] = ec._ExistingModelLink_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "existingModelID": + out.Values[i] = ec._ExistingModelLink_existingModelID(ctx, field, obj) + case "currentModelPlanID": + out.Values[i] = ec._ExistingModelLink_currentModelPlanID(ctx, field, obj) + case "fieldName": + out.Values[i] = ec._ExistingModelLink_fieldName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "model": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ExistingModelLink_model(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._ExistingModelLink_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ExistingModelLink_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._ExistingModelLink_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._ExistingModelLink_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ExistingModelLink_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._ExistingModelLink_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var existingModelLinkTranslationImplementors = []string{"ExistingModelLinkTranslation"} + +func (ec *executionContext) _ExistingModelLinkTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.ExistingModelLinkTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, existingModelLinkTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ExistingModelLinkTranslation") + case "existingModelID": + out.Values[i] = ec._ExistingModelLinkTranslation_existingModelID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "currentModelPlanID": + out.Values[i] = ec._ExistingModelLinkTranslation_currentModelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fieldName": + out.Values[i] = ec._ExistingModelLinkTranslation_fieldName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var existingModelLinksImplementors = []string{"ExistingModelLinks"} + +func (ec *executionContext) _ExistingModelLinks(ctx context.Context, sel ast.SelectionSet, obj *models.ExistingModelLinks) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, existingModelLinksImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ExistingModelLinks") + case "links": + out.Values[i] = ec._ExistingModelLinks_links(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fieldName": + out.Values[i] = ec._ExistingModelLinks_fieldName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._ExistingModelLinks_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "names": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ExistingModelLinks_names(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var launchDarklySettingsImplementors = []string{"LaunchDarklySettings"} + +func (ec *executionContext) _LaunchDarklySettings(ctx context.Context, sel ast.SelectionSet, obj *model.LaunchDarklySettings) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, launchDarklySettingsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("LaunchDarklySettings") + case "userKey": + out.Values[i] = ec._LaunchDarklySettings_userKey(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "signedHash": + out.Values[i] = ec._LaunchDarklySettings_signedHash(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var lockableSectionLockStatusImplementors = []string{"LockableSectionLockStatus"} + +func (ec *executionContext) _LockableSectionLockStatus(ctx context.Context, sel ast.SelectionSet, obj *model.LockableSectionLockStatus) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, lockableSectionLockStatusImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("LockableSectionLockStatus") + case "modelPlanID": + out.Values[i] = ec._LockableSectionLockStatus_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "section": + out.Values[i] = ec._LockableSectionLockStatus_section(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "lockedByUserAccount": + out.Values[i] = ec._LockableSectionLockStatus_lockedByUserAccount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isAssessment": + out.Values[i] = ec._LockableSectionLockStatus_isAssessment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var lockableSectionLockStatusChangedImplementors = []string{"LockableSectionLockStatusChanged"} + +func (ec *executionContext) _LockableSectionLockStatusChanged(ctx context.Context, sel ast.SelectionSet, obj *model.LockableSectionLockStatusChanged) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, lockableSectionLockStatusChangedImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("LockableSectionLockStatusChanged") + case "changeType": + out.Values[i] = ec._LockableSectionLockStatusChanged_changeType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "lockStatus": + out.Values[i] = ec._LockableSectionLockStatusChanged_lockStatus(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "actionType": + out.Values[i] = ec._LockableSectionLockStatusChanged_actionType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOCategoryImplementors = []string{"MTOCategory"} + +func (ec *executionContext) _MTOCategory(ctx context.Context, sel ast.SelectionSet, obj *models.MTOCategory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOCategoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOCategory") + case "id": + out.Values[i] = ec._MTOCategory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._MTOCategory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "position": + out.Values[i] = ec._MTOCategory_position(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isUncategorized": + out.Values[i] = ec._MTOCategory_isUncategorized(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "subCategories": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOCategory_subCategories(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOCategoryTranslationImplementors = []string{"MTOCategoryTranslation"} + +func (ec *executionContext) _MTOCategoryTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.MTOCategoryTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOCategoryTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOCategoryTranslation") + case "name": + out.Values[i] = ec._MTOCategoryTranslation_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOCommonMilestoneImplementors = []string{"MTOCommonMilestone"} + +func (ec *executionContext) _MTOCommonMilestone(ctx context.Context, sel ast.SelectionSet, obj *models.MTOCommonMilestone) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOCommonMilestoneImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOCommonMilestone") + case "name": + out.Values[i] = ec._MTOCommonMilestone_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "key": + out.Values[i] = ec._MTOCommonMilestone_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "categoryName": + out.Values[i] = ec._MTOCommonMilestone_categoryName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "subCategoryName": + out.Values[i] = ec._MTOCommonMilestone_subCategoryName(ctx, field, obj) + case "facilitatedByRole": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOCommonMilestone_facilitatedByRole(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "section": + out.Values[i] = ec._MTOCommonMilestone_section(ctx, field, obj) + case "isAdded": + out.Values[i] = ec._MTOCommonMilestone_isAdded(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isSuggested": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOCommonMilestone_isSuggested(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "commonSolutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOCommonMilestone_commonSolutions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOCommonSolutionImplementors = []string{"MTOCommonSolution"} + +func (ec *executionContext) _MTOCommonSolution(ctx context.Context, sel ast.SelectionSet, obj *models.MTOCommonSolution) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOCommonSolutionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOCommonSolution") + case "name": + out.Values[i] = ec._MTOCommonSolution_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "key": + out.Values[i] = ec._MTOCommonSolution_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._MTOCommonSolution_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "subjects": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOCommonSolution_subjects(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "filterView": + out.Values[i] = ec._MTOCommonSolution_filterView(ctx, field, obj) + case "isAdded": + out.Values[i] = ec._MTOCommonSolution_isAdded(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOInfoImplementors = []string{"MTOInfo"} + +func (ec *executionContext) _MTOInfo(ctx context.Context, sel ast.SelectionSet, obj *models.MTOInfo) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOInfoImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOInfo") + case "id": + out.Values[i] = ec._MTOInfo_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._MTOInfo_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "readyForReviewBy": + out.Values[i] = ec._MTOInfo_readyForReviewBy(ctx, field, obj) + case "readyForReviewDTS": + out.Values[i] = ec._MTOInfo_readyForReviewDTS(ctx, field, obj) + case "readyForReviewByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOInfo_readyForReviewByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._MTOInfo_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOInfo_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._MTOInfo_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._MTOInfo_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOInfo_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._MTOInfo_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOInfoTranslationImplementors = []string{"MTOInfoTranslation"} + +func (ec *executionContext) _MTOInfoTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.MTOInfoTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOInfoTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOInfoTranslation") + case "readyForReviewBy": + out.Values[i] = ec._MTOInfoTranslation_readyForReviewBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewDTS": + out.Values[i] = ec._MTOInfoTranslation_readyForReviewDTS(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOMilestoneImplementors = []string{"MTOMilestone"} + +func (ec *executionContext) _MTOMilestone(ctx context.Context, sel ast.SelectionSet, obj *models.MTOMilestone) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOMilestoneImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOMilestone") + case "id": + out.Values[i] = ec._MTOMilestone_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._MTOMilestone_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "key": + out.Values[i] = ec._MTOMilestone_key(ctx, field, obj) + case "mtoCategoryID": + out.Values[i] = ec._MTOMilestone_mtoCategoryID(ctx, field, obj) + case "facilitatedBy": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOMilestone_facilitatedBy(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "needBy": + out.Values[i] = ec._MTOMilestone_needBy(ctx, field, obj) + case "status": + out.Values[i] = ec._MTOMilestone_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "riskIndicator": + out.Values[i] = ec._MTOMilestone_riskIndicator(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isDraft": + out.Values[i] = ec._MTOMilestone_isDraft(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._MTOMilestone_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOMilestone_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._MTOMilestone_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._MTOMilestone_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOMilestone_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._MTOMilestone_modifiedDts(ctx, field, obj) + case "addedFromMilestoneLibrary": + out.Values[i] = ec._MTOMilestone_addedFromMilestoneLibrary(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "commonMilestone": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOMilestone_commonMilestone(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "solutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOMilestone_solutions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "category": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOMilestone_category(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "subCategory": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOMilestone_subCategory(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOMilestoneTranslationImplementors = []string{"MTOMilestoneTranslation"} + +func (ec *executionContext) _MTOMilestoneTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.MTOMilestoneTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOMilestoneTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOMilestoneTranslation") + case "name": + out.Values[i] = ec._MTOMilestoneTranslation_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOSolutionImplementors = []string{"MTOSolution"} + +func (ec *executionContext) _MTOSolution(ctx context.Context, sel ast.SelectionSet, obj *models.MTOSolution) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOSolutionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOSolution") + case "id": + out.Values[i] = ec._MTOSolution_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._MTOSolution_name(ctx, field, obj) + case "facilitatedBy": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOSolution_facilitatedBy(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "neededBy": + out.Values[i] = ec._MTOSolution_neededBy(ctx, field, obj) + case "status": + out.Values[i] = ec._MTOSolution_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "riskIndicator": + out.Values[i] = ec._MTOSolution_riskIndicator(ctx, field, obj) + case "key": + out.Values[i] = ec._MTOSolution_key(ctx, field, obj) + case "type": + out.Values[i] = ec._MTOSolution_type(ctx, field, obj) + case "pocName": + out.Values[i] = ec._MTOSolution_pocName(ctx, field, obj) + case "pocEmail": + out.Values[i] = ec._MTOSolution_pocEmail(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._MTOSolution_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOSolution_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._MTOSolution_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._MTOSolution_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOSolution_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._MTOSolution_modifiedDts(ctx, field, obj) + case "relatedMilestones": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOSolution_relatedMilestones(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "addedFromSolutionLibrary": + out.Values[i] = ec._MTOSolution_addedFromSolutionLibrary(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "commonSolution": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOSolution_commonSolution(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mTOSubcategoryImplementors = []string{"MTOSubcategory"} + +func (ec *executionContext) _MTOSubcategory(ctx context.Context, sel ast.SelectionSet, obj *models.MTOSubcategory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOSubcategoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOSubcategory") + case "id": + out.Values[i] = ec._MTOSubcategory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._MTOSubcategory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "position": + out.Values[i] = ec._MTOSubcategory_position(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isUncategorized": + out.Values[i] = ec._MTOSubcategory_isUncategorized(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "milestones": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._MTOSubcategory_milestones(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var modelPlanImplementors = []string{"ModelPlan", "LinkedExistingModel"} + +func (ec *executionContext) _ModelPlan(ctx context.Context, sel ast.SelectionSet, obj *models.ModelPlan) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, modelPlanImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ModelPlan") + case "id": + out.Values[i] = ec._ModelPlan_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelName": + out.Values[i] = ec._ModelPlan_modelName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "abbreviation": + out.Values[i] = ec._ModelPlan_abbreviation(ctx, field, obj) + case "archived": + out.Values[i] = ec._ModelPlan_archived(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._ModelPlan_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._ModelPlan_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._ModelPlan_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._ModelPlan_modifiedDts(ctx, field, obj) + case "basics": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_basics(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "generalCharacteristics": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_generalCharacteristics(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "participantsAndProviders": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_participantsAndProviders(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "beneficiaries": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_beneficiaries(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "opsEvalAndLearning": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_opsEvalAndLearning(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "collaborators": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_collaborators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "documents": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_documents(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "discussions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_discussions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "payments": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_payments(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dataExchangeApproach": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_dataExchangeApproach(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "status": + out.Values[i] = ec._ModelPlan_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "taskListStatus": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_taskListStatus(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "suggestedPhase": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_suggestedPhase(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "isFavorite": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_isFavorite(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "isCollaborator": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_isCollaborator(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "crs": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_crs(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "tdls": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_tdls(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "echimpCRsAndTDLs": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_echimpCRsAndTDLs(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "prepareForClearance": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_prepareForClearance(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "nameHistory": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_nameHistory(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "operationalNeeds": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_operationalNeeds(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "opSolutionLastModifiedDts": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_opSolutionLastModifiedDts(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "previousSuggestedPhase": + out.Values[i] = ec._ModelPlan_previousSuggestedPhase(ctx, field, obj) + case "mtoMatrix": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_mtoMatrix(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modelBySolutionStatus": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlan_modelBySolutionStatus(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var modelPlanAndPossibleOperationalSolutionImplementors = []string{"ModelPlanAndPossibleOperationalSolution"} + +func (ec *executionContext) _ModelPlanAndPossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, obj *models.ModelPlanAndPossibleOperationalSolution) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, modelPlanAndPossibleOperationalSolutionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ModelPlanAndPossibleOperationalSolution") + case "possibleOperationalSolution": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlanAndPossibleOperationalSolution_possibleOperationalSolution(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "possibleOperationalSolutionID": + out.Values[i] = ec._ModelPlanAndPossibleOperationalSolution_possibleOperationalSolutionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "key": + out.Values[i] = ec._ModelPlanAndPossibleOperationalSolution_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._ModelPlanAndPossibleOperationalSolution_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlanAndPossibleOperationalSolution_modelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var modelPlanSharedActivityMetaImplementors = []string{"ModelPlanSharedActivityMeta", "ActivityMetaData"} + +func (ec *executionContext) _ModelPlanSharedActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.ModelPlanSharedActivityMeta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, modelPlanSharedActivityMetaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ModelPlanSharedActivityMeta") + case "version": + out.Values[i] = ec._ModelPlanSharedActivityMeta_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._ModelPlanSharedActivityMeta_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._ModelPlanSharedActivityMeta_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelPlanSharedActivityMeta_modelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "optionalMessage": + out.Values[i] = ec._ModelPlanSharedActivityMeta_optionalMessage(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var modelPlanTranslationImplementors = []string{"ModelPlanTranslation"} + +func (ec *executionContext) _ModelPlanTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.ModelPlanTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, modelPlanTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ModelPlanTranslation") + case "modelName": + out.Values[i] = ec._ModelPlanTranslation_modelName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "previousName": + out.Values[i] = ec._ModelPlanTranslation_previousName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "nameHistory": + out.Values[i] = ec._ModelPlanTranslation_nameHistory(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "abbreviation": + out.Values[i] = ec._ModelPlanTranslation_abbreviation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "archived": + out.Values[i] = ec._ModelPlanTranslation_archived(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._ModelPlanTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var modelsToOperationMatrixImplementors = []string{"ModelsToOperationMatrix"} + +func (ec *executionContext) _ModelsToOperationMatrix(ctx context.Context, sel ast.SelectionSet, obj *models.ModelsToOperationMatrix) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, modelsToOperationMatrixImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ModelsToOperationMatrix") + case "categories": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelsToOperationMatrix_categories(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "commonMilestones": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelsToOperationMatrix_commonMilestones(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "commonSolutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelsToOperationMatrix_commonSolutions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "milestones": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelsToOperationMatrix_milestones(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "solutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelsToOperationMatrix_solutions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "status": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelsToOperationMatrix_status(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "recentEdit": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelsToOperationMatrix_recentEdit(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "info": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ModelsToOperationMatrix_info(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var mutationImplementors = []string{"Mutation"} + +func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) + ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ + Object: "Mutation", + }) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ + Object: field.Name, + Field: field, + }) + + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Mutation") + case "createDiscussionReply": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createDiscussionReply(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateExistingModelLinks": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateExistingModelLinks(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "lockLockableSection": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_lockLockableSection(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "unlockLockableSection": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_unlockLockableSection(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "unlockAllLockableSections": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_unlockAllLockableSections(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createModelPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createModelPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateModelPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateModelPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "shareModelPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_shareModelPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "markMTOReadyForReview": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_markMTOReadyForReview(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createMTOCategory": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createMTOCategory(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "renameMTOCategory": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_renameMTOCategory(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "reorderMTOCategory": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_reorderMTOCategory(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createMTOMilestoneCustom": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createMTOMilestoneCustom(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createMTOMilestoneCommon": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createMTOMilestoneCommon(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateMTOMilestone": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateMTOMilestone(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createMTOSolutionCustom": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createMTOSolutionCustom(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createMTOSolutionCommon": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createMTOSolutionCommon(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateMTOSolution": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateMTOSolution(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "agreeToNDA": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_agreeToNDA(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "addOrUpdateCustomOperationalNeed": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_addOrUpdateCustomOperationalNeed(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateCustomOperationalNeedByID": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateCustomOperationalNeedByID(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createOperationalSolution": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOperationalSolution(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateOperationalSolution": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOperationalSolution(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createOperationalSolutionSubtasks": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOperationalSolutionSubtasks(ctx, field) + }) + case "updateOperationalSolutionSubtasks": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOperationalSolutionSubtasks(ctx, field) + }) + case "deleteOperationalSolutionSubtask": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteOperationalSolutionSubtask(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanBasics": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanBasics(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanBeneficiaries": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanBeneficiaries(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createPlanCollaborator": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createPlanCollaborator(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanCollaborator": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanCollaborator(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deletePlanCollaborator": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deletePlanCollaborator(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createPlanCR": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createPlanCR(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanCR": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanCR(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deletePlanCR": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deletePlanCR(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanDataExchangeApproach": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanDataExchangeApproach(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createPlanDiscussion": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createPlanDiscussion(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "uploadNewPlanDocument": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_uploadNewPlanDocument(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "linkNewPlanDocument": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_linkNewPlanDocument(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deletePlanDocument": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deletePlanDocument(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createPlanDocumentSolutionLinks": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createPlanDocumentSolutionLinks(ctx, field) + }) + case "removePlanDocumentSolutionLinks": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_removePlanDocumentSolutionLinks(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "addPlanFavorite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_addPlanFavorite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deletePlanFavorite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deletePlanFavorite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanGeneralCharacteristics": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanGeneralCharacteristics(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanOpsEvalAndLearning": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanOpsEvalAndLearning(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanParticipantsAndProviders": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanParticipantsAndProviders(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanPayments": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanPayments(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createPlanTDL": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createPlanTDL(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePlanTDL": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePlanTDL(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deletePlanTDL": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deletePlanTDL(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "reportAProblem": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_reportAProblem(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "sendFeedbackEmail": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_sendFeedbackEmail(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "markNotificationAsRead": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_markNotificationAsRead(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "markAllNotificationsAsRead": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_markAllNotificationsAsRead(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateUserNotificationPreferences": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateUserNotificationPreferences(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateUserViewCustomization": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateUserViewCustomization(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var nDAInfoImplementors = []string{"NDAInfo"} + +func (ec *executionContext) _NDAInfo(ctx context.Context, sel ast.SelectionSet, obj *model.NDAInfo) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, nDAInfoImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NDAInfo") + case "agreed": + out.Values[i] = ec._NDAInfo_agreed(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "agreedDts": + out.Values[i] = ec._NDAInfo_agreedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var newDiscussionRepliedActivityMetaImplementors = []string{"NewDiscussionRepliedActivityMeta", "ActivityMetaData"} + +func (ec *executionContext) _NewDiscussionRepliedActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.NewDiscussionRepliedActivityMeta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, newDiscussionRepliedActivityMetaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NewDiscussionRepliedActivityMeta") + case "version": + out.Values[i] = ec._NewDiscussionRepliedActivityMeta_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._NewDiscussionRepliedActivityMeta_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._NewDiscussionRepliedActivityMeta_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._NewDiscussionRepliedActivityMeta_modelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "discussionID": + out.Values[i] = ec._NewDiscussionRepliedActivityMeta_discussionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "discussion": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._NewDiscussionRepliedActivityMeta_discussion(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "replyID": + out.Values[i] = ec._NewDiscussionRepliedActivityMeta_replyID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "reply": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._NewDiscussionRepliedActivityMeta_reply(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "content": + out.Values[i] = ec._NewDiscussionRepliedActivityMeta_content(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var newModelPlanActivityMetaImplementors = []string{"NewModelPlanActivityMeta", "ActivityMetaData"} + +func (ec *executionContext) _NewModelPlanActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.NewModelPlanActivityMeta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, newModelPlanActivityMetaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NewModelPlanActivityMeta") + case "version": + out.Values[i] = ec._NewModelPlanActivityMeta_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._NewModelPlanActivityMeta_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._NewModelPlanActivityMeta_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._NewModelPlanActivityMeta_modelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var operationalNeedImplementors = []string{"OperationalNeed"} + +func (ec *executionContext) _OperationalNeed(ctx context.Context, sel ast.SelectionSet, obj *models.OperationalNeed) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, operationalNeedImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OperationalNeed") + case "id": + out.Values[i] = ec._OperationalNeed_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._OperationalNeed_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "needed": + out.Values[i] = ec._OperationalNeed_needed(ctx, field, obj) + case "solutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OperationalNeed_solutions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "key": + out.Values[i] = ec._OperationalNeed_key(ctx, field, obj) + case "name": + out.Values[i] = ec._OperationalNeed_name(ctx, field, obj) + case "nameOther": + out.Values[i] = ec._OperationalNeed_nameOther(ctx, field, obj) + case "section": + out.Values[i] = ec._OperationalNeed_section(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._OperationalNeed_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OperationalNeed_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._OperationalNeed_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._OperationalNeed_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OperationalNeed_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._OperationalNeed_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var operationalNeedTranslationImplementors = []string{"OperationalNeedTranslation"} + +func (ec *executionContext) _OperationalNeedTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.OperationalNeedTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, operationalNeedTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OperationalNeedTranslation") + case "name": + out.Values[i] = ec._OperationalNeedTranslation_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "nameOther": + out.Values[i] = ec._OperationalNeedTranslation_nameOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "key": + out.Values[i] = ec._OperationalNeedTranslation_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needed": + out.Values[i] = ec._OperationalNeedTranslation_needed(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "section": + out.Values[i] = ec._OperationalNeedTranslation_section(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var operationalSolutionImplementors = []string{"OperationalSolution"} + +func (ec *executionContext) _OperationalSolution(ctx context.Context, sel ast.SelectionSet, obj *models.OperationalSolution) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, operationalSolutionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OperationalSolution") + case "id": + out.Values[i] = ec._OperationalSolution_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "operationalNeedID": + out.Values[i] = ec._OperationalSolution_operationalNeedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "solutionType": + out.Values[i] = ec._OperationalSolution_solutionType(ctx, field, obj) + case "needed": + out.Values[i] = ec._OperationalSolution_needed(ctx, field, obj) + case "name": + out.Values[i] = ec._OperationalSolution_name(ctx, field, obj) + case "key": + out.Values[i] = ec._OperationalSolution_key(ctx, field, obj) + case "nameOther": + out.Values[i] = ec._OperationalSolution_nameOther(ctx, field, obj) + case "pocName": + out.Values[i] = ec._OperationalSolution_pocName(ctx, field, obj) + case "pocEmail": + out.Values[i] = ec._OperationalSolution_pocEmail(ctx, field, obj) + case "mustStartDts": + out.Values[i] = ec._OperationalSolution_mustStartDts(ctx, field, obj) + case "mustFinishDts": + out.Values[i] = ec._OperationalSolution_mustFinishDts(ctx, field, obj) + case "isOther": + out.Values[i] = ec._OperationalSolution_isOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isCommonSolution": + out.Values[i] = ec._OperationalSolution_isCommonSolution(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "otherHeader": + out.Values[i] = ec._OperationalSolution_otherHeader(ctx, field, obj) + case "status": + out.Values[i] = ec._OperationalSolution_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "documents": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OperationalSolution_documents(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "operationalSolutionSubtasks": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OperationalSolution_operationalSolutionSubtasks(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._OperationalSolution_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OperationalSolution_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._OperationalSolution_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._OperationalSolution_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OperationalSolution_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._OperationalSolution_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var operationalSolutionSubtaskImplementors = []string{"OperationalSolutionSubtask"} + +func (ec *executionContext) _OperationalSolutionSubtask(ctx context.Context, sel ast.SelectionSet, obj *models.OperationalSolutionSubtask) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, operationalSolutionSubtaskImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OperationalSolutionSubtask") + case "id": + out.Values[i] = ec._OperationalSolutionSubtask_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "solutionID": + out.Values[i] = ec._OperationalSolutionSubtask_solutionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._OperationalSolutionSubtask_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "status": + out.Values[i] = ec._OperationalSolutionSubtask_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._OperationalSolutionSubtask_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OperationalSolutionSubtask_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._OperationalSolutionSubtask_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._OperationalSolutionSubtask_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._OperationalSolutionSubtask_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._OperationalSolutionSubtask_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var operationalSolutionSubtaskTranslationImplementors = []string{"OperationalSolutionSubtaskTranslation"} + +func (ec *executionContext) _OperationalSolutionSubtaskTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.OperationalSolutionSubtaskTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, operationalSolutionSubtaskTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OperationalSolutionSubtaskTranslation") + case "name": + out.Values[i] = ec._OperationalSolutionSubtaskTranslation_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._OperationalSolutionSubtaskTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var operationalSolutionTranslationImplementors = []string{"OperationalSolutionTranslation"} + +func (ec *executionContext) _OperationalSolutionTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.OperationalSolutionTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, operationalSolutionTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OperationalSolutionTranslation") + case "name": + out.Values[i] = ec._OperationalSolutionTranslation_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "nameOther": + out.Values[i] = ec._OperationalSolutionTranslation_nameOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isOther": + out.Values[i] = ec._OperationalSolutionTranslation_isOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "otherHeader": + out.Values[i] = ec._OperationalSolutionTranslation_otherHeader(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "pocName": + out.Values[i] = ec._OperationalSolutionTranslation_pocName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "pocEmail": + out.Values[i] = ec._OperationalSolutionTranslation_pocEmail(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "mustStartDts": + out.Values[i] = ec._OperationalSolutionTranslation_mustStartDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "mustFinishDts": + out.Values[i] = ec._OperationalSolutionTranslation_mustFinishDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needed": + out.Values[i] = ec._OperationalSolutionTranslation_needed(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "key": + out.Values[i] = ec._OperationalSolutionTranslation_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._OperationalSolutionTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var phaseSuggestionImplementors = []string{"PhaseSuggestion"} + +func (ec *executionContext) _PhaseSuggestion(ctx context.Context, sel ast.SelectionSet, obj *model.PhaseSuggestion) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, phaseSuggestionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PhaseSuggestion") + case "phase": + out.Values[i] = ec._PhaseSuggestion_phase(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "suggestedStatuses": + out.Values[i] = ec._PhaseSuggestion_suggestedStatuses(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planBasicsImplementors = []string{"PlanBasics"} + +func (ec *executionContext) _PlanBasics(ctx context.Context, sel ast.SelectionSet, obj *models.PlanBasics) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planBasicsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanBasics") + case "id": + out.Values[i] = ec._PlanBasics_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanBasics_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "demoCode": + out.Values[i] = ec._PlanBasics_demoCode(ctx, field, obj) + case "amsModelID": + out.Values[i] = ec._PlanBasics_amsModelID(ctx, field, obj) + case "modelCategory": + out.Values[i] = ec._PlanBasics_modelCategory(ctx, field, obj) + case "additionalModelCategories": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBasics_additionalModelCategories(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "cmsCenters": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBasics_cmsCenters(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "cmmiGroups": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBasics_cmmiGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modelType": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBasics_modelType(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modelTypeOther": + out.Values[i] = ec._PlanBasics_modelTypeOther(ctx, field, obj) + case "problem": + out.Values[i] = ec._PlanBasics_problem(ctx, field, obj) + case "goal": + out.Values[i] = ec._PlanBasics_goal(ctx, field, obj) + case "testInterventions": + out.Values[i] = ec._PlanBasics_testInterventions(ctx, field, obj) + case "note": + out.Values[i] = ec._PlanBasics_note(ctx, field, obj) + case "completeICIP": + out.Values[i] = ec._PlanBasics_completeICIP(ctx, field, obj) + case "clearanceStarts": + out.Values[i] = ec._PlanBasics_clearanceStarts(ctx, field, obj) + case "clearanceEnds": + out.Values[i] = ec._PlanBasics_clearanceEnds(ctx, field, obj) + case "announced": + out.Values[i] = ec._PlanBasics_announced(ctx, field, obj) + case "applicationsStart": + out.Values[i] = ec._PlanBasics_applicationsStart(ctx, field, obj) + case "applicationsEnd": + out.Values[i] = ec._PlanBasics_applicationsEnd(ctx, field, obj) + case "performancePeriodStarts": + out.Values[i] = ec._PlanBasics_performancePeriodStarts(ctx, field, obj) + case "performancePeriodEnds": + out.Values[i] = ec._PlanBasics_performancePeriodEnds(ctx, field, obj) + case "wrapUpEnds": + out.Values[i] = ec._PlanBasics_wrapUpEnds(ctx, field, obj) + case "highLevelNote": + out.Values[i] = ec._PlanBasics_highLevelNote(ctx, field, obj) + case "phasedIn": + out.Values[i] = ec._PlanBasics_phasedIn(ctx, field, obj) + case "phasedInNote": + out.Values[i] = ec._PlanBasics_phasedInNote(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PlanBasics_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBasics_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanBasics_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanBasics_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBasics_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanBasics_modifiedDts(ctx, field, obj) + case "readyForReviewBy": + out.Values[i] = ec._PlanBasics_readyForReviewBy(ctx, field, obj) + case "readyForReviewByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBasics_readyForReviewByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForReviewDts": + out.Values[i] = ec._PlanBasics_readyForReviewDts(ctx, field, obj) + case "readyForClearanceBy": + out.Values[i] = ec._PlanBasics_readyForClearanceBy(ctx, field, obj) + case "readyForClearanceByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBasics_readyForClearanceByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForClearanceDts": + out.Values[i] = ec._PlanBasics_readyForClearanceDts(ctx, field, obj) + case "status": + out.Values[i] = ec._PlanBasics_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planBasicsTranslationImplementors = []string{"PlanBasicsTranslation"} + +func (ec *executionContext) _PlanBasicsTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanBasicsTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planBasicsTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanBasicsTranslation") + case "modelCategory": + out.Values[i] = ec._PlanBasicsTranslation_modelCategory(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "additionalModelCategories": + out.Values[i] = ec._PlanBasicsTranslation_additionalModelCategories(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "demoCode": + out.Values[i] = ec._PlanBasicsTranslation_demoCode(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "amsModelID": + out.Values[i] = ec._PlanBasicsTranslation_amsModelID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "cmsCenters": + out.Values[i] = ec._PlanBasicsTranslation_cmsCenters(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "cmmiGroups": + out.Values[i] = ec._PlanBasicsTranslation_cmmiGroups(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "modelType": + out.Values[i] = ec._PlanBasicsTranslation_modelType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "modelTypeOther": + out.Values[i] = ec._PlanBasicsTranslation_modelTypeOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "problem": + out.Values[i] = ec._PlanBasicsTranslation_problem(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "goal": + out.Values[i] = ec._PlanBasicsTranslation_goal(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "testInterventions": + out.Values[i] = ec._PlanBasicsTranslation_testInterventions(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "note": + out.Values[i] = ec._PlanBasicsTranslation_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "completeICIP": + out.Values[i] = ec._PlanBasicsTranslation_completeICIP(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "clearanceStarts": + out.Values[i] = ec._PlanBasicsTranslation_clearanceStarts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "clearanceEnds": + out.Values[i] = ec._PlanBasicsTranslation_clearanceEnds(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "announced": + out.Values[i] = ec._PlanBasicsTranslation_announced(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "applicationsStart": + out.Values[i] = ec._PlanBasicsTranslation_applicationsStart(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "applicationsEnd": + out.Values[i] = ec._PlanBasicsTranslation_applicationsEnd(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "performancePeriodStarts": + out.Values[i] = ec._PlanBasicsTranslation_performancePeriodStarts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "performancePeriodEnds": + out.Values[i] = ec._PlanBasicsTranslation_performancePeriodEnds(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "wrapUpEnds": + out.Values[i] = ec._PlanBasicsTranslation_wrapUpEnds(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "highLevelNote": + out.Values[i] = ec._PlanBasicsTranslation_highLevelNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "phasedIn": + out.Values[i] = ec._PlanBasicsTranslation_phasedIn(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "phasedInNote": + out.Values[i] = ec._PlanBasicsTranslation_phasedInNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewBy": + out.Values[i] = ec._PlanBasicsTranslation_readyForReviewBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewDts": + out.Values[i] = ec._PlanBasicsTranslation_readyForReviewDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceBy": + out.Values[i] = ec._PlanBasicsTranslation_readyForClearanceBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceDts": + out.Values[i] = ec._PlanBasicsTranslation_readyForClearanceDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._PlanBasicsTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planBeneficiariesImplementors = []string{"PlanBeneficiaries"} + +func (ec *executionContext) _PlanBeneficiaries(ctx context.Context, sel ast.SelectionSet, obj *models.PlanBeneficiaries) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planBeneficiariesImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanBeneficiaries") + case "id": + out.Values[i] = ec._PlanBeneficiaries_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanBeneficiaries_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "beneficiaries": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBeneficiaries_beneficiaries(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "beneficiariesOther": + out.Values[i] = ec._PlanBeneficiaries_beneficiariesOther(ctx, field, obj) + case "beneficiariesNote": + out.Values[i] = ec._PlanBeneficiaries_beneficiariesNote(ctx, field, obj) + case "diseaseSpecificGroup": + out.Values[i] = ec._PlanBeneficiaries_diseaseSpecificGroup(ctx, field, obj) + case "treatDualElligibleDifferent": + out.Values[i] = ec._PlanBeneficiaries_treatDualElligibleDifferent(ctx, field, obj) + case "treatDualElligibleDifferentHow": + out.Values[i] = ec._PlanBeneficiaries_treatDualElligibleDifferentHow(ctx, field, obj) + case "treatDualElligibleDifferentNote": + out.Values[i] = ec._PlanBeneficiaries_treatDualElligibleDifferentNote(ctx, field, obj) + case "excludeCertainCharacteristics": + out.Values[i] = ec._PlanBeneficiaries_excludeCertainCharacteristics(ctx, field, obj) + case "excludeCertainCharacteristicsCriteria": + out.Values[i] = ec._PlanBeneficiaries_excludeCertainCharacteristicsCriteria(ctx, field, obj) + case "excludeCertainCharacteristicsNote": + out.Values[i] = ec._PlanBeneficiaries_excludeCertainCharacteristicsNote(ctx, field, obj) + case "numberPeopleImpacted": + out.Values[i] = ec._PlanBeneficiaries_numberPeopleImpacted(ctx, field, obj) + case "estimateConfidence": + out.Values[i] = ec._PlanBeneficiaries_estimateConfidence(ctx, field, obj) + case "confidenceNote": + out.Values[i] = ec._PlanBeneficiaries_confidenceNote(ctx, field, obj) + case "beneficiarySelectionMethod": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBeneficiaries_beneficiarySelectionMethod(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "beneficiarySelectionOther": + out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionOther(ctx, field, obj) + case "beneficiarySelectionNote": + out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionNote(ctx, field, obj) + case "beneficiarySelectionFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBeneficiaries_beneficiarySelectionFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "beneficiarySelectionFrequencyContinually": + out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionFrequencyContinually(ctx, field, obj) + case "beneficiarySelectionFrequencyOther": + out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionFrequencyOther(ctx, field, obj) + case "beneficiarySelectionFrequencyNote": + out.Values[i] = ec._PlanBeneficiaries_beneficiarySelectionFrequencyNote(ctx, field, obj) + case "beneficiaryRemovalFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBeneficiaries_beneficiaryRemovalFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "beneficiaryRemovalFrequencyContinually": + out.Values[i] = ec._PlanBeneficiaries_beneficiaryRemovalFrequencyContinually(ctx, field, obj) + case "beneficiaryRemovalFrequencyOther": + out.Values[i] = ec._PlanBeneficiaries_beneficiaryRemovalFrequencyOther(ctx, field, obj) + case "beneficiaryRemovalFrequencyNote": + out.Values[i] = ec._PlanBeneficiaries_beneficiaryRemovalFrequencyNote(ctx, field, obj) + case "beneficiaryOverlap": + out.Values[i] = ec._PlanBeneficiaries_beneficiaryOverlap(ctx, field, obj) + case "beneficiaryOverlapNote": + out.Values[i] = ec._PlanBeneficiaries_beneficiaryOverlapNote(ctx, field, obj) + case "precedenceRules": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBeneficiaries_precedenceRules(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "precedenceRulesYes": + out.Values[i] = ec._PlanBeneficiaries_precedenceRulesYes(ctx, field, obj) + case "precedenceRulesNo": + out.Values[i] = ec._PlanBeneficiaries_precedenceRulesNo(ctx, field, obj) + case "precedenceRulesNote": + out.Values[i] = ec._PlanBeneficiaries_precedenceRulesNote(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PlanBeneficiaries_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBeneficiaries_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanBeneficiaries_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanBeneficiaries_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBeneficiaries_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanBeneficiaries_modifiedDts(ctx, field, obj) + case "readyForReviewBy": + out.Values[i] = ec._PlanBeneficiaries_readyForReviewBy(ctx, field, obj) + case "readyForReviewByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBeneficiaries_readyForReviewByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForReviewDts": + out.Values[i] = ec._PlanBeneficiaries_readyForReviewDts(ctx, field, obj) + case "readyForClearanceBy": + out.Values[i] = ec._PlanBeneficiaries_readyForClearanceBy(ctx, field, obj) + case "readyForClearanceByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanBeneficiaries_readyForClearanceByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForClearanceDts": + out.Values[i] = ec._PlanBeneficiaries_readyForClearanceDts(ctx, field, obj) + case "status": + out.Values[i] = ec._PlanBeneficiaries_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planBeneficiariesTranslationImplementors = []string{"PlanBeneficiariesTranslation"} + +func (ec *executionContext) _PlanBeneficiariesTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanBeneficiariesTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planBeneficiariesTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanBeneficiariesTranslation") + case "beneficiaries": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaries(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiariesOther": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiariesOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiariesNote": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiariesNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "diseaseSpecificGroup": + out.Values[i] = ec._PlanBeneficiariesTranslation_diseaseSpecificGroup(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "treatDualElligibleDifferent": + out.Values[i] = ec._PlanBeneficiariesTranslation_treatDualElligibleDifferent(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "treatDualElligibleDifferentHow": + out.Values[i] = ec._PlanBeneficiariesTranslation_treatDualElligibleDifferentHow(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "treatDualElligibleDifferentNote": + out.Values[i] = ec._PlanBeneficiariesTranslation_treatDualElligibleDifferentNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "excludeCertainCharacteristics": + out.Values[i] = ec._PlanBeneficiariesTranslation_excludeCertainCharacteristics(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "excludeCertainCharacteristicsCriteria": + out.Values[i] = ec._PlanBeneficiariesTranslation_excludeCertainCharacteristicsCriteria(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "excludeCertainCharacteristicsNote": + out.Values[i] = ec._PlanBeneficiariesTranslation_excludeCertainCharacteristicsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "numberPeopleImpacted": + out.Values[i] = ec._PlanBeneficiariesTranslation_numberPeopleImpacted(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "estimateConfidence": + out.Values[i] = ec._PlanBeneficiariesTranslation_estimateConfidence(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "confidenceNote": + out.Values[i] = ec._PlanBeneficiariesTranslation_confidenceNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiarySelectionMethod": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionMethod(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiarySelectionOther": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiarySelectionNote": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiarySelectionFrequency": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiarySelectionFrequencyContinually": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiarySelectionFrequencyOther": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiarySelectionFrequencyNote": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiarySelectionFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiaryRemovalFrequency": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryRemovalFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiaryRemovalFrequencyContinually": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiaryRemovalFrequencyOther": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiaryRemovalFrequencyNote": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryRemovalFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiaryOverlap": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryOverlap(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiaryOverlapNote": + out.Values[i] = ec._PlanBeneficiariesTranslation_beneficiaryOverlapNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "precedenceRules": + out.Values[i] = ec._PlanBeneficiariesTranslation_precedenceRules(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "precedenceRulesYes": + out.Values[i] = ec._PlanBeneficiariesTranslation_precedenceRulesYes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "precedenceRulesNo": + out.Values[i] = ec._PlanBeneficiariesTranslation_precedenceRulesNo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "precedenceRulesNote": + out.Values[i] = ec._PlanBeneficiariesTranslation_precedenceRulesNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewBy": + out.Values[i] = ec._PlanBeneficiariesTranslation_readyForReviewBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewDts": + out.Values[i] = ec._PlanBeneficiariesTranslation_readyForReviewDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceBy": + out.Values[i] = ec._PlanBeneficiariesTranslation_readyForClearanceBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceDts": + out.Values[i] = ec._PlanBeneficiariesTranslation_readyForClearanceDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._PlanBeneficiariesTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planCRImplementors = []string{"PlanCR"} + +func (ec *executionContext) _PlanCR(ctx context.Context, sel ast.SelectionSet, obj *models.PlanCR) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planCRImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanCR") + case "id": + out.Values[i] = ec._PlanCR_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanCR_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "idNumber": + out.Values[i] = ec._PlanCR_idNumber(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dateInitiated": + out.Values[i] = ec._PlanCR_dateInitiated(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dateImplemented": + out.Values[i] = ec._PlanCR_dateImplemented(ctx, field, obj) + case "title": + out.Values[i] = ec._PlanCR_title(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "note": + out.Values[i] = ec._PlanCR_note(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PlanCR_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanCR_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanCR_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanCR_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanCR_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanCR_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planCRTranslationImplementors = []string{"PlanCRTranslation"} + +func (ec *executionContext) _PlanCRTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanCRTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planCRTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanCRTranslation") + case "idNumber": + out.Values[i] = ec._PlanCRTranslation_idNumber(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "title": + out.Values[i] = ec._PlanCRTranslation_title(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dateInitiated": + out.Values[i] = ec._PlanCRTranslation_dateInitiated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dateImplemented": + out.Values[i] = ec._PlanCRTranslation_dateImplemented(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "note": + out.Values[i] = ec._PlanCRTranslation_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planCollaboratorImplementors = []string{"PlanCollaborator"} + +func (ec *executionContext) _PlanCollaborator(ctx context.Context, sel ast.SelectionSet, obj *models.PlanCollaborator) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planCollaboratorImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanCollaborator") + case "id": + out.Values[i] = ec._PlanCollaborator_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanCollaborator_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userID": + out.Values[i] = ec._PlanCollaborator_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanCollaborator_userAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "teamRoles": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanCollaborator_teamRoles(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._PlanCollaborator_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanCollaborator_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanCollaborator_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanCollaborator_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanCollaborator_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanCollaborator_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planCollaboratorTranslationImplementors = []string{"PlanCollaboratorTranslation"} + +func (ec *executionContext) _PlanCollaboratorTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanCollaboratorTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planCollaboratorTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanCollaboratorTranslation") + case "username": + out.Values[i] = ec._PlanCollaboratorTranslation_username(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "userID": + out.Values[i] = ec._PlanCollaboratorTranslation_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "teamRoles": + out.Values[i] = ec._PlanCollaboratorTranslation_teamRoles(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planDataExchangeApproachImplementors = []string{"PlanDataExchangeApproach"} + +func (ec *executionContext) _PlanDataExchangeApproach(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDataExchangeApproach) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planDataExchangeApproachImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanDataExchangeApproach") + case "id": + out.Values[i] = ec._PlanDataExchangeApproach_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanDataExchangeApproach_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dataToCollectFromParticipants": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproach_dataToCollectFromParticipants(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dataToCollectFromParticipantsReportsDetails": + out.Values[i] = ec._PlanDataExchangeApproach_dataToCollectFromParticipantsReportsDetails(ctx, field, obj) + case "dataToCollectFromParticipantsOther": + out.Values[i] = ec._PlanDataExchangeApproach_dataToCollectFromParticipantsOther(ctx, field, obj) + case "dataWillNotBeCollectedFromParticipants": + out.Values[i] = ec._PlanDataExchangeApproach_dataWillNotBeCollectedFromParticipants(ctx, field, obj) + case "dataToCollectFromParticipantsNote": + out.Values[i] = ec._PlanDataExchangeApproach_dataToCollectFromParticipantsNote(ctx, field, obj) + case "dataToSendToParticipants": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproach_dataToSendToParticipants(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dataToSendToParticipantsNote": + out.Values[i] = ec._PlanDataExchangeApproach_dataToSendToParticipantsNote(ctx, field, obj) + case "doesNeedToMakeMultiPayerDataAvailable": + out.Values[i] = ec._PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailable(ctx, field, obj) + case "anticipatedMultiPayerDataAvailabilityUseCase": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproach_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "doesNeedToMakeMultiPayerDataAvailableNote": + out.Values[i] = ec._PlanDataExchangeApproach_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field, obj) + case "doesNeedToCollectAndAggregateMultiSourceData": + out.Values[i] = ec._PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceData(ctx, field, obj) + case "multiSourceDataToCollect": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproach_multiSourceDataToCollect(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "multiSourceDataToCollectOther": + out.Values[i] = ec._PlanDataExchangeApproach_multiSourceDataToCollectOther(ctx, field, obj) + case "doesNeedToCollectAndAggregateMultiSourceDataNote": + out.Values[i] = ec._PlanDataExchangeApproach_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field, obj) + case "willImplementNewDataExchangeMethods": + out.Values[i] = ec._PlanDataExchangeApproach_willImplementNewDataExchangeMethods(ctx, field, obj) + case "newDataExchangeMethodsDescription": + out.Values[i] = ec._PlanDataExchangeApproach_newDataExchangeMethodsDescription(ctx, field, obj) + case "newDataExchangeMethodsNote": + out.Values[i] = ec._PlanDataExchangeApproach_newDataExchangeMethodsNote(ctx, field, obj) + case "additionalDataExchangeConsiderationsDescription": + out.Values[i] = ec._PlanDataExchangeApproach_additionalDataExchangeConsiderationsDescription(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PlanDataExchangeApproach_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproach_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanDataExchangeApproach_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanDataExchangeApproach_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproach_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanDataExchangeApproach_modifiedDts(ctx, field, obj) + case "isDataExchangeApproachComplete": + out.Values[i] = ec._PlanDataExchangeApproach_isDataExchangeApproachComplete(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "markedCompleteBy": + out.Values[i] = ec._PlanDataExchangeApproach_markedCompleteBy(ctx, field, obj) + case "markedCompleteByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproach_markedCompleteByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "markedCompleteDts": + out.Values[i] = ec._PlanDataExchangeApproach_markedCompleteDts(ctx, field, obj) + case "status": + out.Values[i] = ec._PlanDataExchangeApproach_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planDataExchangeApproachMarkedCompleteActivityMetaImplementors = []string{"PlanDataExchangeApproachMarkedCompleteActivityMeta", "ActivityMetaData"} + +func (ec *executionContext) _PlanDataExchangeApproachMarkedCompleteActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDataExchangeApproachMarkedCompleteActivityMeta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planDataExchangeApproachMarkedCompleteActivityMetaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanDataExchangeApproachMarkedCompleteActivityMeta") + case "version": + out.Values[i] = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dataExchangeApproachID": + out.Values[i] = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproachID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dataExchangeApproach": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_dataExchangeApproach(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_modelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "markedCompleteBy": + out.Values[i] = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "markedCompleteByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDataExchangeApproachMarkedCompleteActivityMeta_markedCompleteByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planDataExchangeApproachTranslationImplementors = []string{"PlanDataExchangeApproachTranslation"} + +func (ec *executionContext) _PlanDataExchangeApproachTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanDataExchangeApproachTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planDataExchangeApproachTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanDataExchangeApproachTranslation") + case "dataToCollectFromParticipants": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToCollectFromParticipants(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataToCollectFromParticipantsReportsDetails": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsReportsDetails(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataToCollectFromParticipantsOther": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataWillNotBeCollectedFromParticipants": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataWillNotBeCollectedFromParticipants(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataToCollectFromParticipantsNote": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToCollectFromParticipantsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataToSendToParticipants": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToSendToParticipants(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataToSendToParticipantsNote": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_dataToSendToParticipantsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "doesNeedToMakeMultiPayerDataAvailable": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailable(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "anticipatedMultiPayerDataAvailabilityUseCase": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_anticipatedMultiPayerDataAvailabilityUseCase(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "doesNeedToMakeMultiPayerDataAvailableNote": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_doesNeedToMakeMultiPayerDataAvailableNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "doesNeedToCollectAndAggregateMultiSourceData": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceData(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "multiSourceDataToCollect": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_multiSourceDataToCollect(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "multiSourceDataToCollectOther": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_multiSourceDataToCollectOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "doesNeedToCollectAndAggregateMultiSourceDataNote": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_doesNeedToCollectAndAggregateMultiSourceDataNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "willImplementNewDataExchangeMethods": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_willImplementNewDataExchangeMethods(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "newDataExchangeMethodsDescription": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_newDataExchangeMethodsDescription(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "newDataExchangeMethodsNote": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_newDataExchangeMethodsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "additionalDataExchangeConsiderationsDescription": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_additionalDataExchangeConsiderationsDescription(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isDataExchangeApproachComplete": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_isDataExchangeApproachComplete(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "markedCompleteBy": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_markedCompleteBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "markedCompleteDts": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_markedCompleteDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._PlanDataExchangeApproachTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planDiscussionImplementors = []string{"PlanDiscussion"} + +func (ec *executionContext) _PlanDiscussion(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDiscussion) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planDiscussionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanDiscussion") + case "id": + out.Values[i] = ec._PlanDiscussion_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanDiscussion_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "content": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDiscussion_content(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "userRole": + out.Values[i] = ec._PlanDiscussion_userRole(ctx, field, obj) + case "userRoleDescription": + out.Values[i] = ec._PlanDiscussion_userRoleDescription(ctx, field, obj) + case "replies": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDiscussion_replies(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "isAssessment": + out.Values[i] = ec._PlanDiscussion_isAssessment(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._PlanDiscussion_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDiscussion_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanDiscussion_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanDiscussion_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDiscussion_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanDiscussion_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planDiscussionTranslationImplementors = []string{"PlanDiscussionTranslation"} + +func (ec *executionContext) _PlanDiscussionTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanDiscussionTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planDiscussionTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanDiscussionTranslation") + case "userRole": + out.Values[i] = ec._PlanDiscussionTranslation_userRole(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "userRoleDescription": + out.Values[i] = ec._PlanDiscussionTranslation_userRoleDescription(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "content": + out.Values[i] = ec._PlanDiscussionTranslation_content(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isAssessment": + out.Values[i] = ec._PlanDiscussionTranslation_isAssessment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planDocumentImplementors = []string{"PlanDocument"} + +func (ec *executionContext) _PlanDocument(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDocument) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planDocumentImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanDocument") + case "id": + out.Values[i] = ec._PlanDocument_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanDocument_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isLink": + out.Values[i] = ec._PlanDocument_isLink(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "url": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDocument_url(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "fileType": + out.Values[i] = ec._PlanDocument_fileType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "bucket": + out.Values[i] = ec._PlanDocument_bucket(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fileKey": + out.Values[i] = ec._PlanDocument_fileKey(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "virusScanned": + out.Values[i] = ec._PlanDocument_virusScanned(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "virusClean": + out.Values[i] = ec._PlanDocument_virusClean(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "restricted": + out.Values[i] = ec._PlanDocument_restricted(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fileName": + out.Values[i] = ec._PlanDocument_fileName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fileSize": + out.Values[i] = ec._PlanDocument_fileSize(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "documentType": + out.Values[i] = ec._PlanDocument_documentType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "otherType": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDocument_otherType(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "optionalNotes": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDocument_optionalNotes(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "downloadUrl": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDocument_downloadUrl(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "deletedAt": + out.Values[i] = ec._PlanDocument_deletedAt(ctx, field, obj) + case "numLinkedSolutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDocument_numLinkedSolutions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._PlanDocument_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDocument_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanDocument_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanDocument_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDocument_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanDocument_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planDocumentSolutionLinkImplementors = []string{"PlanDocumentSolutionLink"} + +func (ec *executionContext) _PlanDocumentSolutionLink(ctx context.Context, sel ast.SelectionSet, obj *models.PlanDocumentSolutionLink) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planDocumentSolutionLinkImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanDocumentSolutionLink") + case "id": + out.Values[i] = ec._PlanDocumentSolutionLink_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "solutionID": + out.Values[i] = ec._PlanDocumentSolutionLink_solutionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "documentID": + out.Values[i] = ec._PlanDocumentSolutionLink_documentID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._PlanDocumentSolutionLink_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDocumentSolutionLink_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanDocumentSolutionLink_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanDocumentSolutionLink_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanDocumentSolutionLink_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanDocumentSolutionLink_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planDocumentSolutionLinkTranslationImplementors = []string{"PlanDocumentSolutionLinkTranslation"} + +func (ec *executionContext) _PlanDocumentSolutionLinkTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanDocumentSolutionLinkTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planDocumentSolutionLinkTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanDocumentSolutionLinkTranslation") + case "solutionID": + out.Values[i] = ec._PlanDocumentSolutionLinkTranslation_solutionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "documentID": + out.Values[i] = ec._PlanDocumentSolutionLinkTranslation_documentID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planDocumentTranslationImplementors = []string{"PlanDocumentTranslation"} + +func (ec *executionContext) _PlanDocumentTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanDocumentTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planDocumentTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanDocumentTranslation") + case "isLink": + out.Values[i] = ec._PlanDocumentTranslation_isLink(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "url": + out.Values[i] = ec._PlanDocumentTranslation_url(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fileName": + out.Values[i] = ec._PlanDocumentTranslation_fileName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "documentType": + out.Values[i] = ec._PlanDocumentTranslation_documentType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "otherType": + out.Values[i] = ec._PlanDocumentTranslation_otherType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fileType": + out.Values[i] = ec._PlanDocumentTranslation_fileType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "restricted": + out.Values[i] = ec._PlanDocumentTranslation_restricted(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "optionalNotes": + out.Values[i] = ec._PlanDocumentTranslation_optionalNotes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planFavoriteImplementors = []string{"PlanFavorite"} + +func (ec *executionContext) _PlanFavorite(ctx context.Context, sel ast.SelectionSet, obj *models.PlanFavorite) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planFavoriteImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanFavorite") + case "id": + out.Values[i] = ec._PlanFavorite_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanFavorite_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userID": + out.Values[i] = ec._PlanFavorite_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanFavorite_userAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._PlanFavorite_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanFavorite_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanFavorite_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanFavorite_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanFavorite_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanFavorite_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planGeneralCharacteristicsImplementors = []string{"PlanGeneralCharacteristics"} + +func (ec *executionContext) _PlanGeneralCharacteristics(ctx context.Context, sel ast.SelectionSet, obj *models.PlanGeneralCharacteristics) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planGeneralCharacteristicsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanGeneralCharacteristics") + case "id": + out.Values[i] = ec._PlanGeneralCharacteristics_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanGeneralCharacteristics_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isNewModel": + out.Values[i] = ec._PlanGeneralCharacteristics_isNewModel(ctx, field, obj) + case "existingModel": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_existingModel(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "currentModelPlanID": + out.Values[i] = ec._PlanGeneralCharacteristics_currentModelPlanID(ctx, field, obj) + case "currentModelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_currentModelPlan(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "existingModelID": + out.Values[i] = ec._PlanGeneralCharacteristics_existingModelID(ctx, field, obj) + case "existingModelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_existingModelPlan(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "resemblesExistingModel": + out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModel(ctx, field, obj) + case "resemblesExistingModelWhyHow": + out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelWhyHow(ctx, field, obj) + case "resemblesExistingModelOtherSpecify": + out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelOtherSpecify(ctx, field, obj) + case "resemblesExistingModelOtherSelected": + out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelOtherSelected(ctx, field, obj) + case "resemblesExistingModelOtherOption": + out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelOtherOption(ctx, field, obj) + case "resemblesExistingModelHow": + out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelHow(ctx, field, obj) + case "resemblesExistingModelNote": + out.Values[i] = ec._PlanGeneralCharacteristics_resemblesExistingModelNote(ctx, field, obj) + case "resemblesExistingModelWhich": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_resemblesExistingModelWhich(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "participationInModelPrecondition": + out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPrecondition(ctx, field, obj) + case "participationInModelPreconditionWhyHow": + out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionWhyHow(ctx, field, obj) + case "participationInModelPreconditionOtherSpecify": + out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionOtherSpecify(ctx, field, obj) + case "participationInModelPreconditionOtherSelected": + out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionOtherSelected(ctx, field, obj) + case "participationInModelPreconditionOtherOption": + out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionOtherOption(ctx, field, obj) + case "participationInModelPreconditionNote": + out.Values[i] = ec._PlanGeneralCharacteristics_participationInModelPreconditionNote(ctx, field, obj) + case "participationInModelPreconditionWhich": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_participationInModelPreconditionWhich(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "hasComponentsOrTracks": + out.Values[i] = ec._PlanGeneralCharacteristics_hasComponentsOrTracks(ctx, field, obj) + case "hasComponentsOrTracksDiffer": + out.Values[i] = ec._PlanGeneralCharacteristics_hasComponentsOrTracksDiffer(ctx, field, obj) + case "hasComponentsOrTracksNote": + out.Values[i] = ec._PlanGeneralCharacteristics_hasComponentsOrTracksNote(ctx, field, obj) + case "agencyOrStateHelp": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_agencyOrStateHelp(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "agencyOrStateHelpOther": + out.Values[i] = ec._PlanGeneralCharacteristics_agencyOrStateHelpOther(ctx, field, obj) + case "agencyOrStateHelpNote": + out.Values[i] = ec._PlanGeneralCharacteristics_agencyOrStateHelpNote(ctx, field, obj) + case "alternativePaymentModelTypes": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_alternativePaymentModelTypes(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "alternativePaymentModelNote": + out.Values[i] = ec._PlanGeneralCharacteristics_alternativePaymentModelNote(ctx, field, obj) + case "keyCharacteristics": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_keyCharacteristics(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "keyCharacteristicsOther": + out.Values[i] = ec._PlanGeneralCharacteristics_keyCharacteristicsOther(ctx, field, obj) + case "keyCharacteristicsNote": + out.Values[i] = ec._PlanGeneralCharacteristics_keyCharacteristicsNote(ctx, field, obj) + case "collectPlanBids": + out.Values[i] = ec._PlanGeneralCharacteristics_collectPlanBids(ctx, field, obj) + case "collectPlanBidsNote": + out.Values[i] = ec._PlanGeneralCharacteristics_collectPlanBidsNote(ctx, field, obj) + case "managePartCDEnrollment": + out.Values[i] = ec._PlanGeneralCharacteristics_managePartCDEnrollment(ctx, field, obj) + case "managePartCDEnrollmentNote": + out.Values[i] = ec._PlanGeneralCharacteristics_managePartCDEnrollmentNote(ctx, field, obj) + case "planContractUpdated": + out.Values[i] = ec._PlanGeneralCharacteristics_planContractUpdated(ctx, field, obj) + case "planContractUpdatedNote": + out.Values[i] = ec._PlanGeneralCharacteristics_planContractUpdatedNote(ctx, field, obj) + case "careCoordinationInvolved": + out.Values[i] = ec._PlanGeneralCharacteristics_careCoordinationInvolved(ctx, field, obj) + case "careCoordinationInvolvedDescription": + out.Values[i] = ec._PlanGeneralCharacteristics_careCoordinationInvolvedDescription(ctx, field, obj) + case "careCoordinationInvolvedNote": + out.Values[i] = ec._PlanGeneralCharacteristics_careCoordinationInvolvedNote(ctx, field, obj) + case "additionalServicesInvolved": + out.Values[i] = ec._PlanGeneralCharacteristics_additionalServicesInvolved(ctx, field, obj) + case "additionalServicesInvolvedDescription": + out.Values[i] = ec._PlanGeneralCharacteristics_additionalServicesInvolvedDescription(ctx, field, obj) + case "additionalServicesInvolvedNote": + out.Values[i] = ec._PlanGeneralCharacteristics_additionalServicesInvolvedNote(ctx, field, obj) + case "communityPartnersInvolved": + out.Values[i] = ec._PlanGeneralCharacteristics_communityPartnersInvolved(ctx, field, obj) + case "communityPartnersInvolvedDescription": + out.Values[i] = ec._PlanGeneralCharacteristics_communityPartnersInvolvedDescription(ctx, field, obj) + case "communityPartnersInvolvedNote": + out.Values[i] = ec._PlanGeneralCharacteristics_communityPartnersInvolvedNote(ctx, field, obj) + case "geographiesTargeted": + out.Values[i] = ec._PlanGeneralCharacteristics_geographiesTargeted(ctx, field, obj) + case "geographiesTargetedTypes": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_geographiesTargetedTypes(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "geographiesStatesAndTerritories": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_geographiesStatesAndTerritories(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "geographiesRegionTypes": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_geographiesRegionTypes(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "geographiesTargetedTypesOther": + out.Values[i] = ec._PlanGeneralCharacteristics_geographiesTargetedTypesOther(ctx, field, obj) + case "geographiesTargetedAppliedTo": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_geographiesTargetedAppliedTo(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "geographiesTargetedAppliedToOther": + out.Values[i] = ec._PlanGeneralCharacteristics_geographiesTargetedAppliedToOther(ctx, field, obj) + case "geographiesTargetedNote": + out.Values[i] = ec._PlanGeneralCharacteristics_geographiesTargetedNote(ctx, field, obj) + case "participationOptions": + out.Values[i] = ec._PlanGeneralCharacteristics_participationOptions(ctx, field, obj) + case "participationOptionsNote": + out.Values[i] = ec._PlanGeneralCharacteristics_participationOptionsNote(ctx, field, obj) + case "agreementTypes": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_agreementTypes(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "agreementTypesOther": + out.Values[i] = ec._PlanGeneralCharacteristics_agreementTypesOther(ctx, field, obj) + case "multiplePatricipationAgreementsNeeded": + out.Values[i] = ec._PlanGeneralCharacteristics_multiplePatricipationAgreementsNeeded(ctx, field, obj) + case "multiplePatricipationAgreementsNeededNote": + out.Values[i] = ec._PlanGeneralCharacteristics_multiplePatricipationAgreementsNeededNote(ctx, field, obj) + case "rulemakingRequired": + out.Values[i] = ec._PlanGeneralCharacteristics_rulemakingRequired(ctx, field, obj) + case "rulemakingRequiredDescription": + out.Values[i] = ec._PlanGeneralCharacteristics_rulemakingRequiredDescription(ctx, field, obj) + case "rulemakingRequiredNote": + out.Values[i] = ec._PlanGeneralCharacteristics_rulemakingRequiredNote(ctx, field, obj) + case "authorityAllowances": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_authorityAllowances(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "authorityAllowancesOther": + out.Values[i] = ec._PlanGeneralCharacteristics_authorityAllowancesOther(ctx, field, obj) + case "authorityAllowancesNote": + out.Values[i] = ec._PlanGeneralCharacteristics_authorityAllowancesNote(ctx, field, obj) + case "waiversRequired": + out.Values[i] = ec._PlanGeneralCharacteristics_waiversRequired(ctx, field, obj) + case "waiversRequiredTypes": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_waiversRequiredTypes(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "waiversRequiredNote": + out.Values[i] = ec._PlanGeneralCharacteristics_waiversRequiredNote(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PlanGeneralCharacteristics_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanGeneralCharacteristics_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanGeneralCharacteristics_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanGeneralCharacteristics_modifiedDts(ctx, field, obj) + case "readyForReviewBy": + out.Values[i] = ec._PlanGeneralCharacteristics_readyForReviewBy(ctx, field, obj) + case "readyForReviewByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_readyForReviewByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForReviewDts": + out.Values[i] = ec._PlanGeneralCharacteristics_readyForReviewDts(ctx, field, obj) + case "readyForClearanceBy": + out.Values[i] = ec._PlanGeneralCharacteristics_readyForClearanceBy(ctx, field, obj) + case "readyForClearanceByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanGeneralCharacteristics_readyForClearanceByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForClearanceDts": + out.Values[i] = ec._PlanGeneralCharacteristics_readyForClearanceDts(ctx, field, obj) + case "status": + out.Values[i] = ec._PlanGeneralCharacteristics_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planGeneralCharacteristicsTranslationImplementors = []string{"PlanGeneralCharacteristicsTranslation"} + +func (ec *executionContext) _PlanGeneralCharacteristicsTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanGeneralCharacteristicsTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planGeneralCharacteristicsTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanGeneralCharacteristicsTranslation") + case "isNewModel": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_isNewModel(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "currentModelPlanID": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_currentModelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "existingModelID": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_existingModelID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "existingModel": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_existingModel(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resemblesExistingModel": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModel(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resemblesExistingModelWhyHow": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhyHow(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resemblesExistingModelOtherSpecify": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherSpecify(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resemblesExistingModelOtherOption": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelOtherOption(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resemblesExistingModelHow": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelHow(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resemblesExistingModelNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "resemblesExistingModelWhich": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_resemblesExistingModelWhich(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participationInModelPrecondition": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPrecondition(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participationInModelPreconditionWhyHow": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhyHow(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participationInModelPreconditionOtherSpecify": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherSpecify(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participationInModelPreconditionOtherOption": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionOtherOption(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participationInModelPreconditionNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participationInModelPreconditionWhich": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationInModelPreconditionWhich(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "hasComponentsOrTracks": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_hasComponentsOrTracks(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "hasComponentsOrTracksDiffer": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksDiffer(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "hasComponentsOrTracksNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_hasComponentsOrTracksNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "agencyOrStateHelp": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agencyOrStateHelp(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "agencyOrStateHelpOther": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agencyOrStateHelpOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "agencyOrStateHelpNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agencyOrStateHelpNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "alternativePaymentModelTypes": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_alternativePaymentModelTypes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "alternativePaymentModelNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_alternativePaymentModelNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "keyCharacteristics": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_keyCharacteristics(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "keyCharacteristicsOther": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_keyCharacteristicsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "keyCharacteristicsNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_keyCharacteristicsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "collectPlanBids": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_collectPlanBids(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "collectPlanBidsNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_collectPlanBidsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "managePartCDEnrollment": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_managePartCDEnrollment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "managePartCDEnrollmentNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_managePartCDEnrollmentNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "planContractUpdated": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_planContractUpdated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "planContractUpdatedNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_planContractUpdatedNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "careCoordinationInvolved": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_careCoordinationInvolved(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "careCoordinationInvolvedDescription": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedDescription(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "careCoordinationInvolvedNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_careCoordinationInvolvedNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "additionalServicesInvolved": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_additionalServicesInvolved(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "additionalServicesInvolvedDescription": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedDescription(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "additionalServicesInvolvedNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_additionalServicesInvolvedNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "communityPartnersInvolved": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_communityPartnersInvolved(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "communityPartnersInvolvedDescription": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedDescription(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "communityPartnersInvolvedNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_communityPartnersInvolvedNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "geographiesTargeted": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargeted(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "geographiesTargetedTypes": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedTypes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "geographiesStatesAndTerritories": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesStatesAndTerritories(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "geographiesRegionTypes": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesRegionTypes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "geographiesTargetedTypesOther": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedTypesOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "geographiesTargetedAppliedTo": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedTo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "geographiesTargetedAppliedToOther": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedAppliedToOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "geographiesTargetedNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_geographiesTargetedNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participationOptions": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationOptions(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participationOptionsNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_participationOptionsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "agreementTypes": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agreementTypes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "agreementTypesOther": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_agreementTypesOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "multiplePatricipationAgreementsNeeded": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeeded(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "multiplePatricipationAgreementsNeededNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_multiplePatricipationAgreementsNeededNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "rulemakingRequired": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_rulemakingRequired(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "rulemakingRequiredDescription": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_rulemakingRequiredDescription(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "rulemakingRequiredNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_rulemakingRequiredNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "authorityAllowances": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_authorityAllowances(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "authorityAllowancesOther": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_authorityAllowancesOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "authorityAllowancesNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_authorityAllowancesNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "waiversRequired": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_waiversRequired(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "waiversRequiredTypes": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_waiversRequiredTypes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "waiversRequiredNote": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_waiversRequiredNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewBy": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_readyForReviewBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewDts": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_readyForReviewDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceBy": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_readyForClearanceBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceDts": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_readyForClearanceDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._PlanGeneralCharacteristicsTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planOpsEvalAndLearningImplementors = []string{"PlanOpsEvalAndLearning"} + +func (ec *executionContext) _PlanOpsEvalAndLearning(ctx context.Context, sel ast.SelectionSet, obj *models.PlanOpsEvalAndLearning) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planOpsEvalAndLearningImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanOpsEvalAndLearning") + case "id": + out.Values[i] = ec._PlanOpsEvalAndLearning_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanOpsEvalAndLearning_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "stakeholders": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_stakeholders(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "stakeholdersOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_stakeholdersOther(ctx, field, obj) + case "stakeholdersNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_stakeholdersNote(ctx, field, obj) + case "helpdeskUse": + out.Values[i] = ec._PlanOpsEvalAndLearning_helpdeskUse(ctx, field, obj) + case "helpdeskUseNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_helpdeskUseNote(ctx, field, obj) + case "contractorSupport": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_contractorSupport(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "contractorSupportOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_contractorSupportOther(ctx, field, obj) + case "contractorSupportHow": + out.Values[i] = ec._PlanOpsEvalAndLearning_contractorSupportHow(ctx, field, obj) + case "contractorSupportNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_contractorSupportNote(ctx, field, obj) + case "iddocSupport": + out.Values[i] = ec._PlanOpsEvalAndLearning_iddocSupport(ctx, field, obj) + case "iddocSupportNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_iddocSupportNote(ctx, field, obj) + case "technicalContactsIdentified": + out.Values[i] = ec._PlanOpsEvalAndLearning_technicalContactsIdentified(ctx, field, obj) + case "technicalContactsIdentifiedDetail": + out.Values[i] = ec._PlanOpsEvalAndLearning_technicalContactsIdentifiedDetail(ctx, field, obj) + case "technicalContactsIdentifiedNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_technicalContactsIdentifiedNote(ctx, field, obj) + case "captureParticipantInfo": + out.Values[i] = ec._PlanOpsEvalAndLearning_captureParticipantInfo(ctx, field, obj) + case "captureParticipantInfoNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_captureParticipantInfoNote(ctx, field, obj) + case "icdOwner": + out.Values[i] = ec._PlanOpsEvalAndLearning_icdOwner(ctx, field, obj) + case "draftIcdDueDate": + out.Values[i] = ec._PlanOpsEvalAndLearning_draftIcdDueDate(ctx, field, obj) + case "icdNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_icdNote(ctx, field, obj) + case "uatNeeds": + out.Values[i] = ec._PlanOpsEvalAndLearning_uatNeeds(ctx, field, obj) + case "stcNeeds": + out.Values[i] = ec._PlanOpsEvalAndLearning_stcNeeds(ctx, field, obj) + case "testingTimelines": + out.Values[i] = ec._PlanOpsEvalAndLearning_testingTimelines(ctx, field, obj) + case "testingNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_testingNote(ctx, field, obj) + case "dataMonitoringFileTypes": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_dataMonitoringFileTypes(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dataMonitoringFileOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataMonitoringFileOther(ctx, field, obj) + case "dataResponseType": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataResponseType(ctx, field, obj) + case "dataResponseFileFrequency": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataResponseFileFrequency(ctx, field, obj) + case "dataFullTimeOrIncremental": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataFullTimeOrIncremental(ctx, field, obj) + case "eftSetUp": + out.Values[i] = ec._PlanOpsEvalAndLearning_eftSetUp(ctx, field, obj) + case "unsolicitedAdjustmentsIncluded": + out.Values[i] = ec._PlanOpsEvalAndLearning_unsolicitedAdjustmentsIncluded(ctx, field, obj) + case "dataFlowDiagramsNeeded": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataFlowDiagramsNeeded(ctx, field, obj) + case "produceBenefitEnhancementFiles": + out.Values[i] = ec._PlanOpsEvalAndLearning_produceBenefitEnhancementFiles(ctx, field, obj) + case "fileNamingConventions": + out.Values[i] = ec._PlanOpsEvalAndLearning_fileNamingConventions(ctx, field, obj) + case "dataMonitoringNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataMonitoringNote(ctx, field, obj) + case "benchmarkForPerformance": + out.Values[i] = ec._PlanOpsEvalAndLearning_benchmarkForPerformance(ctx, field, obj) + case "benchmarkForPerformanceNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_benchmarkForPerformanceNote(ctx, field, obj) + case "computePerformanceScores": + out.Values[i] = ec._PlanOpsEvalAndLearning_computePerformanceScores(ctx, field, obj) + case "computePerformanceScoresNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_computePerformanceScoresNote(ctx, field, obj) + case "riskAdjustPerformance": + out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustPerformance(ctx, field, obj) + case "riskAdjustFeedback": + out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustFeedback(ctx, field, obj) + case "riskAdjustPayments": + out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustPayments(ctx, field, obj) + case "riskAdjustOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustOther(ctx, field, obj) + case "riskAdjustNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_riskAdjustNote(ctx, field, obj) + case "appealPerformance": + out.Values[i] = ec._PlanOpsEvalAndLearning_appealPerformance(ctx, field, obj) + case "appealFeedback": + out.Values[i] = ec._PlanOpsEvalAndLearning_appealFeedback(ctx, field, obj) + case "appealPayments": + out.Values[i] = ec._PlanOpsEvalAndLearning_appealPayments(ctx, field, obj) + case "appealOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_appealOther(ctx, field, obj) + case "appealNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_appealNote(ctx, field, obj) + case "evaluationApproaches": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_evaluationApproaches(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "evaluationApproachOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_evaluationApproachOther(ctx, field, obj) + case "evalutaionApproachNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_evalutaionApproachNote(ctx, field, obj) + case "ccmInvolvment": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_ccmInvolvment(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "ccmInvolvmentOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_ccmInvolvmentOther(ctx, field, obj) + case "ccmInvolvmentNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_ccmInvolvmentNote(ctx, field, obj) + case "dataNeededForMonitoring": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_dataNeededForMonitoring(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dataNeededForMonitoringOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataNeededForMonitoringOther(ctx, field, obj) + case "dataNeededForMonitoringNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataNeededForMonitoringNote(ctx, field, obj) + case "dataToSendParticicipants": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_dataToSendParticicipants(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dataToSendParticicipantsOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataToSendParticicipantsOther(ctx, field, obj) + case "dataToSendParticicipantsNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataToSendParticicipantsNote(ctx, field, obj) + case "shareCclfData": + out.Values[i] = ec._PlanOpsEvalAndLearning_shareCclfData(ctx, field, obj) + case "shareCclfDataNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_shareCclfDataNote(ctx, field, obj) + case "sendFilesBetweenCcw": + out.Values[i] = ec._PlanOpsEvalAndLearning_sendFilesBetweenCcw(ctx, field, obj) + case "sendFilesBetweenCcwNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_sendFilesBetweenCcwNote(ctx, field, obj) + case "appToSendFilesToKnown": + out.Values[i] = ec._PlanOpsEvalAndLearning_appToSendFilesToKnown(ctx, field, obj) + case "appToSendFilesToWhich": + out.Values[i] = ec._PlanOpsEvalAndLearning_appToSendFilesToWhich(ctx, field, obj) + case "appToSendFilesToNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_appToSendFilesToNote(ctx, field, obj) + case "useCcwForFileDistribiutionToParticipants": + out.Values[i] = ec._PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipants(ctx, field, obj) + case "useCcwForFileDistribiutionToParticipantsNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_useCcwForFileDistribiutionToParticipantsNote(ctx, field, obj) + case "developNewQualityMeasures": + out.Values[i] = ec._PlanOpsEvalAndLearning_developNewQualityMeasures(ctx, field, obj) + case "developNewQualityMeasuresNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_developNewQualityMeasuresNote(ctx, field, obj) + case "qualityPerformanceImpactsPayment": + out.Values[i] = ec._PlanOpsEvalAndLearning_qualityPerformanceImpactsPayment(ctx, field, obj) + case "qualityPerformanceImpactsPaymentOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentOther(ctx, field, obj) + case "qualityPerformanceImpactsPaymentNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_qualityPerformanceImpactsPaymentNote(ctx, field, obj) + case "dataSharingStarts": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingStarts(ctx, field, obj) + case "dataSharingStartsOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingStartsOther(ctx, field, obj) + case "dataSharingFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_dataSharingFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dataSharingFrequencyContinually": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingFrequencyContinually(ctx, field, obj) + case "dataSharingFrequencyOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingFrequencyOther(ctx, field, obj) + case "dataSharingStartsNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataSharingStartsNote(ctx, field, obj) + case "dataCollectionStarts": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionStarts(ctx, field, obj) + case "dataCollectionStartsOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionStartsOther(ctx, field, obj) + case "dataCollectionFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_dataCollectionFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dataCollectionFrequencyContinually": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionFrequencyContinually(ctx, field, obj) + case "dataCollectionFrequencyOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionFrequencyOther(ctx, field, obj) + case "dataCollectionFrequencyNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_dataCollectionFrequencyNote(ctx, field, obj) + case "qualityReportingStarts": + out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingStarts(ctx, field, obj) + case "qualityReportingStartsOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingStartsOther(ctx, field, obj) + case "qualityReportingStartsNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingStartsNote(ctx, field, obj) + case "qualityReportingFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_qualityReportingFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "qualityReportingFrequencyContinually": + out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingFrequencyContinually(ctx, field, obj) + case "qualityReportingFrequencyOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_qualityReportingFrequencyOther(ctx, field, obj) + case "modelLearningSystems": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_modelLearningSystems(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modelLearningSystemsOther": + out.Values[i] = ec._PlanOpsEvalAndLearning_modelLearningSystemsOther(ctx, field, obj) + case "modelLearningSystemsNote": + out.Values[i] = ec._PlanOpsEvalAndLearning_modelLearningSystemsNote(ctx, field, obj) + case "anticipatedChallenges": + out.Values[i] = ec._PlanOpsEvalAndLearning_anticipatedChallenges(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PlanOpsEvalAndLearning_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanOpsEvalAndLearning_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanOpsEvalAndLearning_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanOpsEvalAndLearning_modifiedDts(ctx, field, obj) + case "readyForReviewBy": + out.Values[i] = ec._PlanOpsEvalAndLearning_readyForReviewBy(ctx, field, obj) + case "readyForReviewByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_readyForReviewByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForReviewDts": + out.Values[i] = ec._PlanOpsEvalAndLearning_readyForReviewDts(ctx, field, obj) + case "readyForClearanceBy": + out.Values[i] = ec._PlanOpsEvalAndLearning_readyForClearanceBy(ctx, field, obj) + case "readyForClearanceByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanOpsEvalAndLearning_readyForClearanceByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForClearanceDts": + out.Values[i] = ec._PlanOpsEvalAndLearning_readyForClearanceDts(ctx, field, obj) + case "status": + out.Values[i] = ec._PlanOpsEvalAndLearning_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planOpsEvalAndLearningTranslationImplementors = []string{"PlanOpsEvalAndLearningTranslation"} + +func (ec *executionContext) _PlanOpsEvalAndLearningTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanOpsEvalAndLearningTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planOpsEvalAndLearningTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanOpsEvalAndLearningTranslation") + case "stakeholders": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_stakeholders(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "stakeholdersOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_stakeholdersOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "stakeholdersNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_stakeholdersNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "helpdeskUse": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_helpdeskUse(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "helpdeskUseNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_helpdeskUseNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "contractorSupport": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_contractorSupport(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "contractorSupportOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_contractorSupportOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "contractorSupportHow": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_contractorSupportHow(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "contractorSupportNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_contractorSupportNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "iddocSupport": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_iddocSupport(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "iddocSupportNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_iddocSupportNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "technicalContactsIdentified": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_technicalContactsIdentified(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "technicalContactsIdentifiedDetail": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedDetail(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "technicalContactsIdentifiedNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_technicalContactsIdentifiedNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "captureParticipantInfo": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_captureParticipantInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "captureParticipantInfoNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_captureParticipantInfoNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "icdOwner": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_icdOwner(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "draftIcdDueDate": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_draftIcdDueDate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "icdNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_icdNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "uatNeeds": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_uatNeeds(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "stcNeeds": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_stcNeeds(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "testingTimelines": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_testingTimelines(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "testingNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_testingNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataMonitoringFileTypes": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataMonitoringFileTypes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataMonitoringFileOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataMonitoringFileOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataResponseType": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataResponseType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataResponseFileFrequency": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataResponseFileFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataFullTimeOrIncremental": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataFullTimeOrIncremental(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "eftSetUp": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_eftSetUp(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "unsolicitedAdjustmentsIncluded": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_unsolicitedAdjustmentsIncluded(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataFlowDiagramsNeeded": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataFlowDiagramsNeeded(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "produceBenefitEnhancementFiles": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_produceBenefitEnhancementFiles(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fileNamingConventions": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_fileNamingConventions(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataMonitoringNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataMonitoringNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "benchmarkForPerformance": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_benchmarkForPerformance(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "benchmarkForPerformanceNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_benchmarkForPerformanceNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "computePerformanceScores": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_computePerformanceScores(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "computePerformanceScoresNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_computePerformanceScoresNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "riskAdjustPerformance": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustPerformance(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "riskAdjustFeedback": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustFeedback(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "riskAdjustPayments": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustPayments(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "riskAdjustOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "riskAdjustNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_riskAdjustNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "appealPerformance": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealPerformance(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "appealFeedback": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealFeedback(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "appealPayments": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealPayments(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "appealOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "appealNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appealNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "evaluationApproaches": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_evaluationApproaches(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "evaluationApproachOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_evaluationApproachOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "evalutaionApproachNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_evalutaionApproachNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ccmInvolvment": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_ccmInvolvment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ccmInvolvmentOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_ccmInvolvmentOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ccmInvolvmentNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_ccmInvolvmentNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataNeededForMonitoring": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataNeededForMonitoring(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataNeededForMonitoringOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataNeededForMonitoringNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataNeededForMonitoringNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataToSendParticicipants": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataToSendParticicipants(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataToSendParticicipantsOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataToSendParticicipantsNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataToSendParticicipantsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "shareCclfData": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_shareCclfData(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "shareCclfDataNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_shareCclfDataNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "sendFilesBetweenCcw": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcw(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "sendFilesBetweenCcwNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_sendFilesBetweenCcwNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "appToSendFilesToKnown": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appToSendFilesToKnown(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "appToSendFilesToWhich": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appToSendFilesToWhich(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "appToSendFilesToNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_appToSendFilesToNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "useCcwForFileDistribiutionToParticipants": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipants(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "useCcwForFileDistribiutionToParticipantsNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_useCcwForFileDistribiutionToParticipantsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "developNewQualityMeasures": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_developNewQualityMeasures(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "developNewQualityMeasuresNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_developNewQualityMeasuresNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "qualityPerformanceImpactsPayment": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPayment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "qualityPerformanceImpactsPaymentOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "qualityPerformanceImpactsPaymentNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityPerformanceImpactsPaymentNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataSharingStarts": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingStarts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataSharingStartsOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingStartsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataSharingFrequency": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataSharingFrequencyContinually": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataSharingFrequencyOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataSharingStartsNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataSharingStartsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataCollectionStarts": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionStarts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataCollectionStartsOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionStartsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataCollectionFrequency": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataCollectionFrequencyContinually": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataCollectionFrequencyOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dataCollectionFrequencyNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_dataCollectionFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "qualityReportingStarts": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingStarts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "qualityReportingStartsOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingStartsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "qualityReportingStartsNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingStartsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "qualityReportingFrequency": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "qualityReportingFrequencyContinually": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "qualityReportingFrequencyOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_qualityReportingFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "modelLearningSystems": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_modelLearningSystems(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "modelLearningSystemsOther": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_modelLearningSystemsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "modelLearningSystemsNote": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_modelLearningSystemsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "anticipatedChallenges": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_anticipatedChallenges(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewBy": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_readyForReviewBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewDts": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_readyForReviewDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceBy": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_readyForClearanceBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceDts": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_readyForClearanceDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._PlanOpsEvalAndLearningTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planParticipantsAndProvidersImplementors = []string{"PlanParticipantsAndProviders"} + +func (ec *executionContext) _PlanParticipantsAndProviders(ctx context.Context, sel ast.SelectionSet, obj *models.PlanParticipantsAndProviders) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planParticipantsAndProvidersImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanParticipantsAndProviders") + case "id": + out.Values[i] = ec._PlanParticipantsAndProviders_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanParticipantsAndProviders_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "participants": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_participants(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "medicareProviderType": + out.Values[i] = ec._PlanParticipantsAndProviders_medicareProviderType(ctx, field, obj) + case "isNewTypeOfProvidersOrSuppliers": + out.Values[i] = ec._PlanParticipantsAndProviders_isNewTypeOfProvidersOrSuppliers(ctx, field, obj) + case "statesEngagement": + out.Values[i] = ec._PlanParticipantsAndProviders_statesEngagement(ctx, field, obj) + case "participantsOther": + out.Values[i] = ec._PlanParticipantsAndProviders_participantsOther(ctx, field, obj) + case "participantsNote": + out.Values[i] = ec._PlanParticipantsAndProviders_participantsNote(ctx, field, obj) + case "participantsCurrentlyInModels": + out.Values[i] = ec._PlanParticipantsAndProviders_participantsCurrentlyInModels(ctx, field, obj) + case "participantsCurrentlyInModelsNote": + out.Values[i] = ec._PlanParticipantsAndProviders_participantsCurrentlyInModelsNote(ctx, field, obj) + case "modelApplicationLevel": + out.Values[i] = ec._PlanParticipantsAndProviders_modelApplicationLevel(ctx, field, obj) + case "expectedNumberOfParticipants": + out.Values[i] = ec._PlanParticipantsAndProviders_expectedNumberOfParticipants(ctx, field, obj) + case "estimateConfidence": + out.Values[i] = ec._PlanParticipantsAndProviders_estimateConfidence(ctx, field, obj) + case "confidenceNote": + out.Values[i] = ec._PlanParticipantsAndProviders_confidenceNote(ctx, field, obj) + case "recruitmentMethod": + out.Values[i] = ec._PlanParticipantsAndProviders_recruitmentMethod(ctx, field, obj) + case "recruitmentOther": + out.Values[i] = ec._PlanParticipantsAndProviders_recruitmentOther(ctx, field, obj) + case "recruitmentNote": + out.Values[i] = ec._PlanParticipantsAndProviders_recruitmentNote(ctx, field, obj) + case "selectionMethod": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_selectionMethod(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "selectionOther": + out.Values[i] = ec._PlanParticipantsAndProviders_selectionOther(ctx, field, obj) + case "selectionNote": + out.Values[i] = ec._PlanParticipantsAndProviders_selectionNote(ctx, field, obj) + case "participantAddedFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_participantAddedFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "participantAddedFrequencyContinually": + out.Values[i] = ec._PlanParticipantsAndProviders_participantAddedFrequencyContinually(ctx, field, obj) + case "participantAddedFrequencyOther": + out.Values[i] = ec._PlanParticipantsAndProviders_participantAddedFrequencyOther(ctx, field, obj) + case "participantAddedFrequencyNote": + out.Values[i] = ec._PlanParticipantsAndProviders_participantAddedFrequencyNote(ctx, field, obj) + case "participantRemovedFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_participantRemovedFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "participantRemovedFrequencyContinually": + out.Values[i] = ec._PlanParticipantsAndProviders_participantRemovedFrequencyContinually(ctx, field, obj) + case "participantRemovedFrequencyOther": + out.Values[i] = ec._PlanParticipantsAndProviders_participantRemovedFrequencyOther(ctx, field, obj) + case "participantRemovedFrequencyNote": + out.Values[i] = ec._PlanParticipantsAndProviders_participantRemovedFrequencyNote(ctx, field, obj) + case "communicationMethod": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_communicationMethod(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "communicationMethodOther": + out.Values[i] = ec._PlanParticipantsAndProviders_communicationMethodOther(ctx, field, obj) + case "communicationNote": + out.Values[i] = ec._PlanParticipantsAndProviders_communicationNote(ctx, field, obj) + case "riskType": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_riskType(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "riskOther": + out.Values[i] = ec._PlanParticipantsAndProviders_riskOther(ctx, field, obj) + case "riskNote": + out.Values[i] = ec._PlanParticipantsAndProviders_riskNote(ctx, field, obj) + case "willRiskChange": + out.Values[i] = ec._PlanParticipantsAndProviders_willRiskChange(ctx, field, obj) + case "willRiskChangeNote": + out.Values[i] = ec._PlanParticipantsAndProviders_willRiskChangeNote(ctx, field, obj) + case "participantRequireFinancialGuarantee": + out.Values[i] = ec._PlanParticipantsAndProviders_participantRequireFinancialGuarantee(ctx, field, obj) + case "participantRequireFinancialGuaranteeType": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_participantRequireFinancialGuaranteeType(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "participantRequireFinancialGuaranteeOther": + out.Values[i] = ec._PlanParticipantsAndProviders_participantRequireFinancialGuaranteeOther(ctx, field, obj) + case "participantRequireFinancialGuaranteeNote": + out.Values[i] = ec._PlanParticipantsAndProviders_participantRequireFinancialGuaranteeNote(ctx, field, obj) + case "coordinateWork": + out.Values[i] = ec._PlanParticipantsAndProviders_coordinateWork(ctx, field, obj) + case "coordinateWorkNote": + out.Values[i] = ec._PlanParticipantsAndProviders_coordinateWorkNote(ctx, field, obj) + case "gainsharePayments": + out.Values[i] = ec._PlanParticipantsAndProviders_gainsharePayments(ctx, field, obj) + case "gainsharePaymentsTrack": + out.Values[i] = ec._PlanParticipantsAndProviders_gainsharePaymentsTrack(ctx, field, obj) + case "gainsharePaymentsNote": + out.Values[i] = ec._PlanParticipantsAndProviders_gainsharePaymentsNote(ctx, field, obj) + case "gainsharePaymentsEligibility": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_gainsharePaymentsEligibility(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "gainsharePaymentsEligibilityOther": + out.Values[i] = ec._PlanParticipantsAndProviders_gainsharePaymentsEligibilityOther(ctx, field, obj) + case "participantsIds": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_participantsIds(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "participantsIdsOther": + out.Values[i] = ec._PlanParticipantsAndProviders_participantsIdsOther(ctx, field, obj) + case "participantsIDSNote": + out.Values[i] = ec._PlanParticipantsAndProviders_participantsIDSNote(ctx, field, obj) + case "providerAdditionFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_providerAdditionFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "providerAdditionFrequencyContinually": + out.Values[i] = ec._PlanParticipantsAndProviders_providerAdditionFrequencyContinually(ctx, field, obj) + case "providerAdditionFrequencyOther": + out.Values[i] = ec._PlanParticipantsAndProviders_providerAdditionFrequencyOther(ctx, field, obj) + case "providerAdditionFrequencyNote": + out.Values[i] = ec._PlanParticipantsAndProviders_providerAdditionFrequencyNote(ctx, field, obj) + case "providerAddMethod": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_providerAddMethod(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "providerAddMethodOther": + out.Values[i] = ec._PlanParticipantsAndProviders_providerAddMethodOther(ctx, field, obj) + case "providerAddMethodNote": + out.Values[i] = ec._PlanParticipantsAndProviders_providerAddMethodNote(ctx, field, obj) + case "providerLeaveMethod": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_providerLeaveMethod(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "providerLeaveMethodOther": + out.Values[i] = ec._PlanParticipantsAndProviders_providerLeaveMethodOther(ctx, field, obj) + case "providerLeaveMethodNote": + out.Values[i] = ec._PlanParticipantsAndProviders_providerLeaveMethodNote(ctx, field, obj) + case "providerRemovalFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_providerRemovalFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "providerRemovalFrequencyContinually": + out.Values[i] = ec._PlanParticipantsAndProviders_providerRemovalFrequencyContinually(ctx, field, obj) + case "providerRemovalFrequencyOther": + out.Values[i] = ec._PlanParticipantsAndProviders_providerRemovalFrequencyOther(ctx, field, obj) + case "providerRemovalFrequencyNote": + out.Values[i] = ec._PlanParticipantsAndProviders_providerRemovalFrequencyNote(ctx, field, obj) + case "providerOverlap": + out.Values[i] = ec._PlanParticipantsAndProviders_providerOverlap(ctx, field, obj) + case "providerOverlapHierarchy": + out.Values[i] = ec._PlanParticipantsAndProviders_providerOverlapHierarchy(ctx, field, obj) + case "providerOverlapNote": + out.Values[i] = ec._PlanParticipantsAndProviders_providerOverlapNote(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PlanParticipantsAndProviders_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanParticipantsAndProviders_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanParticipantsAndProviders_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanParticipantsAndProviders_modifiedDts(ctx, field, obj) + case "readyForReviewBy": + out.Values[i] = ec._PlanParticipantsAndProviders_readyForReviewBy(ctx, field, obj) + case "readyForReviewByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_readyForReviewByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForReviewDts": + out.Values[i] = ec._PlanParticipantsAndProviders_readyForReviewDts(ctx, field, obj) + case "readyForClearanceBy": + out.Values[i] = ec._PlanParticipantsAndProviders_readyForClearanceBy(ctx, field, obj) + case "readyForClearanceByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanParticipantsAndProviders_readyForClearanceByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForClearanceDts": + out.Values[i] = ec._PlanParticipantsAndProviders_readyForClearanceDts(ctx, field, obj) + case "status": + out.Values[i] = ec._PlanParticipantsAndProviders_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planParticipantsAndProvidersTranslationImplementors = []string{"PlanParticipantsAndProvidersTranslation"} + +func (ec *executionContext) _PlanParticipantsAndProvidersTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanParticipantsAndProvidersTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planParticipantsAndProvidersTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanParticipantsAndProvidersTranslation") + case "participants": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participants(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "medicareProviderType": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_medicareProviderType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isNewTypeOfProvidersOrSuppliers": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_isNewTypeOfProvidersOrSuppliers(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "statesEngagement": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_statesEngagement(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantsOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantsNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantsCurrentlyInModels": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModels(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantsCurrentlyInModelsNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsCurrentlyInModelsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "modelApplicationLevel": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_modelApplicationLevel(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "expectedNumberOfParticipants": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_expectedNumberOfParticipants(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "estimateConfidence": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_estimateConfidence(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "confidenceNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_confidenceNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "recruitmentMethod": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_recruitmentMethod(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "recruitmentOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_recruitmentOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "recruitmentNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_recruitmentNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "selectionMethod": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_selectionMethod(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "selectionOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_selectionOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "selectionNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_selectionNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantAddedFrequency": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantAddedFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantAddedFrequencyContinually": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantAddedFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantAddedFrequencyOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantAddedFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantAddedFrequencyNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantAddedFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantRemovedFrequency": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRemovedFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantRemovedFrequencyContinually": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantRemovedFrequencyOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantRemovedFrequencyNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRemovedFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "communicationMethod": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_communicationMethod(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "communicationMethodOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_communicationMethodOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "communicationNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_communicationNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "riskType": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_riskType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "riskOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_riskOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "riskNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_riskNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "willRiskChange": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_willRiskChange(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "willRiskChangeNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_willRiskChangeNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantRequireFinancialGuarantee": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuarantee(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantRequireFinancialGuaranteeType": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantRequireFinancialGuaranteeOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantRequireFinancialGuaranteeNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantRequireFinancialGuaranteeNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "coordinateWork": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_coordinateWork(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "coordinateWorkNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_coordinateWorkNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "gainsharePayments": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePayments(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "gainsharePaymentsTrack": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePaymentsTrack(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "gainsharePaymentsNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePaymentsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "gainsharePaymentsEligibility": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibility(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "gainsharePaymentsEligibilityOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_gainsharePaymentsEligibilityOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantsIds": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsIds(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantsIdsOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsIdsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "participantsIDSNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_participantsIDSNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerAdditionFrequency": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAdditionFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerAdditionFrequencyContinually": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerAdditionFrequencyOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerAdditionFrequencyNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAdditionFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerAddMethod": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAddMethod(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerAddMethodOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAddMethodOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerAddMethodNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerAddMethodNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerLeaveMethod": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerLeaveMethod(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerLeaveMethodOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerLeaveMethodOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerLeaveMethodNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerLeaveMethodNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerRemovalFrequency": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerRemovalFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerRemovalFrequencyContinually": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerRemovalFrequencyOther": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerRemovalFrequencyNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerRemovalFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerOverlap": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerOverlap(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerOverlapHierarchy": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerOverlapHierarchy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providerOverlapNote": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_providerOverlapNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewBy": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_readyForReviewBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewDts": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_readyForReviewDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceBy": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_readyForClearanceBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceDts": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_readyForClearanceDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._PlanParticipantsAndProvidersTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planPaymentsImplementors = []string{"PlanPayments"} + +func (ec *executionContext) _PlanPayments(ctx context.Context, sel ast.SelectionSet, obj *models.PlanPayments) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planPaymentsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanPayments") + case "id": + out.Values[i] = ec._PlanPayments_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanPayments_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fundingSource": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_fundingSource(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "fundingSourcePatientProtectionInfo": + out.Values[i] = ec._PlanPayments_fundingSourcePatientProtectionInfo(ctx, field, obj) + case "fundingSourceMedicareAInfo": + out.Values[i] = ec._PlanPayments_fundingSourceMedicareAInfo(ctx, field, obj) + case "fundingSourceMedicareBInfo": + out.Values[i] = ec._PlanPayments_fundingSourceMedicareBInfo(ctx, field, obj) + case "fundingSourceOther": + out.Values[i] = ec._PlanPayments_fundingSourceOther(ctx, field, obj) + case "fundingSourceNote": + out.Values[i] = ec._PlanPayments_fundingSourceNote(ctx, field, obj) + case "fundingSourceR": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_fundingSourceR(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "fundingSourceRPatientProtectionInfo": + out.Values[i] = ec._PlanPayments_fundingSourceRPatientProtectionInfo(ctx, field, obj) + case "fundingSourceRMedicareAInfo": + out.Values[i] = ec._PlanPayments_fundingSourceRMedicareAInfo(ctx, field, obj) + case "fundingSourceRMedicareBInfo": + out.Values[i] = ec._PlanPayments_fundingSourceRMedicareBInfo(ctx, field, obj) + case "fundingSourceROther": + out.Values[i] = ec._PlanPayments_fundingSourceROther(ctx, field, obj) + case "fundingSourceRNote": + out.Values[i] = ec._PlanPayments_fundingSourceRNote(ctx, field, obj) + case "payRecipients": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_payRecipients(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "payRecipientsOtherSpecification": + out.Values[i] = ec._PlanPayments_payRecipientsOtherSpecification(ctx, field, obj) + case "payRecipientsNote": + out.Values[i] = ec._PlanPayments_payRecipientsNote(ctx, field, obj) + case "payType": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_payType(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "payTypeNote": + out.Values[i] = ec._PlanPayments_payTypeNote(ctx, field, obj) + case "payClaims": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_payClaims(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "payClaimsOther": + out.Values[i] = ec._PlanPayments_payClaimsOther(ctx, field, obj) + case "payClaimsNote": + out.Values[i] = ec._PlanPayments_payClaimsNote(ctx, field, obj) + case "shouldAnyProvidersExcludedFFSSystems": + out.Values[i] = ec._PlanPayments_shouldAnyProvidersExcludedFFSSystems(ctx, field, obj) + case "shouldAnyProviderExcludedFFSSystemsNote": + out.Values[i] = ec._PlanPayments_shouldAnyProviderExcludedFFSSystemsNote(ctx, field, obj) + case "changesMedicarePhysicianFeeSchedule": + out.Values[i] = ec._PlanPayments_changesMedicarePhysicianFeeSchedule(ctx, field, obj) + case "changesMedicarePhysicianFeeScheduleNote": + out.Values[i] = ec._PlanPayments_changesMedicarePhysicianFeeScheduleNote(ctx, field, obj) + case "affectsMedicareSecondaryPayerClaims": + out.Values[i] = ec._PlanPayments_affectsMedicareSecondaryPayerClaims(ctx, field, obj) + case "affectsMedicareSecondaryPayerClaimsHow": + out.Values[i] = ec._PlanPayments_affectsMedicareSecondaryPayerClaimsHow(ctx, field, obj) + case "affectsMedicareSecondaryPayerClaimsNote": + out.Values[i] = ec._PlanPayments_affectsMedicareSecondaryPayerClaimsNote(ctx, field, obj) + case "payModelDifferentiation": + out.Values[i] = ec._PlanPayments_payModelDifferentiation(ctx, field, obj) + case "willBePaymentAdjustments": + out.Values[i] = ec._PlanPayments_willBePaymentAdjustments(ctx, field, obj) + case "willBePaymentAdjustmentsNote": + out.Values[i] = ec._PlanPayments_willBePaymentAdjustmentsNote(ctx, field, obj) + case "creatingDependenciesBetweenServices": + out.Values[i] = ec._PlanPayments_creatingDependenciesBetweenServices(ctx, field, obj) + case "creatingDependenciesBetweenServicesNote": + out.Values[i] = ec._PlanPayments_creatingDependenciesBetweenServicesNote(ctx, field, obj) + case "needsClaimsDataCollection": + out.Values[i] = ec._PlanPayments_needsClaimsDataCollection(ctx, field, obj) + case "needsClaimsDataCollectionNote": + out.Values[i] = ec._PlanPayments_needsClaimsDataCollectionNote(ctx, field, obj) + case "providingThirdPartyFile": + out.Values[i] = ec._PlanPayments_providingThirdPartyFile(ctx, field, obj) + case "isContractorAwareTestDataRequirements": + out.Values[i] = ec._PlanPayments_isContractorAwareTestDataRequirements(ctx, field, obj) + case "beneficiaryCostSharingLevelAndHandling": + out.Values[i] = ec._PlanPayments_beneficiaryCostSharingLevelAndHandling(ctx, field, obj) + case "waiveBeneficiaryCostSharingForAnyServices": + out.Values[i] = ec._PlanPayments_waiveBeneficiaryCostSharingForAnyServices(ctx, field, obj) + case "waiveBeneficiaryCostSharingServiceSpecification": + out.Values[i] = ec._PlanPayments_waiveBeneficiaryCostSharingServiceSpecification(ctx, field, obj) + case "waiverOnlyAppliesPartOfPayment": + out.Values[i] = ec._PlanPayments_waiverOnlyAppliesPartOfPayment(ctx, field, obj) + case "waiveBeneficiaryCostSharingNote": + out.Values[i] = ec._PlanPayments_waiveBeneficiaryCostSharingNote(ctx, field, obj) + case "nonClaimsPayments": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_nonClaimsPayments(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "nonClaimsPaymentOther": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_nonClaimsPaymentOther(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "nonClaimsPaymentsNote": + out.Values[i] = ec._PlanPayments_nonClaimsPaymentsNote(ctx, field, obj) + case "paymentCalculationOwner": + out.Values[i] = ec._PlanPayments_paymentCalculationOwner(ctx, field, obj) + case "numberPaymentsPerPayCycle": + out.Values[i] = ec._PlanPayments_numberPaymentsPerPayCycle(ctx, field, obj) + case "numberPaymentsPerPayCycleNote": + out.Values[i] = ec._PlanPayments_numberPaymentsPerPayCycleNote(ctx, field, obj) + case "sharedSystemsInvolvedAdditionalClaimPayment": + out.Values[i] = ec._PlanPayments_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field, obj) + case "sharedSystemsInvolvedAdditionalClaimPaymentNote": + out.Values[i] = ec._PlanPayments_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field, obj) + case "planningToUseInnovationPaymentContractor": + out.Values[i] = ec._PlanPayments_planningToUseInnovationPaymentContractor(ctx, field, obj) + case "planningToUseInnovationPaymentContractorNote": + out.Values[i] = ec._PlanPayments_planningToUseInnovationPaymentContractorNote(ctx, field, obj) + case "expectedCalculationComplexityLevel": + out.Values[i] = ec._PlanPayments_expectedCalculationComplexityLevel(ctx, field, obj) + case "expectedCalculationComplexityLevelNote": + out.Values[i] = ec._PlanPayments_expectedCalculationComplexityLevelNote(ctx, field, obj) + case "claimsProcessingPrecedence": + out.Values[i] = ec._PlanPayments_claimsProcessingPrecedence(ctx, field, obj) + case "claimsProcessingPrecedenceOther": + out.Values[i] = ec._PlanPayments_claimsProcessingPrecedenceOther(ctx, field, obj) + case "claimsProcessingPrecedenceNote": + out.Values[i] = ec._PlanPayments_claimsProcessingPrecedenceNote(ctx, field, obj) + case "canParticipantsSelectBetweenPaymentMechanisms": + out.Values[i] = ec._PlanPayments_canParticipantsSelectBetweenPaymentMechanisms(ctx, field, obj) + case "canParticipantsSelectBetweenPaymentMechanismsHow": + out.Values[i] = ec._PlanPayments_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field, obj) + case "canParticipantsSelectBetweenPaymentMechanismsNote": + out.Values[i] = ec._PlanPayments_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field, obj) + case "anticipatedPaymentFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_anticipatedPaymentFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "anticipatedPaymentFrequencyContinually": + out.Values[i] = ec._PlanPayments_anticipatedPaymentFrequencyContinually(ctx, field, obj) + case "anticipatedPaymentFrequencyOther": + out.Values[i] = ec._PlanPayments_anticipatedPaymentFrequencyOther(ctx, field, obj) + case "anticipatedPaymentFrequencyNote": + out.Values[i] = ec._PlanPayments_anticipatedPaymentFrequencyNote(ctx, field, obj) + case "willRecoverPayments": + out.Values[i] = ec._PlanPayments_willRecoverPayments(ctx, field, obj) + case "willRecoverPaymentsNote": + out.Values[i] = ec._PlanPayments_willRecoverPaymentsNote(ctx, field, obj) + case "anticipateReconcilingPaymentsRetrospectively": + out.Values[i] = ec._PlanPayments_anticipateReconcilingPaymentsRetrospectively(ctx, field, obj) + case "anticipateReconcilingPaymentsRetrospectivelyNote": + out.Values[i] = ec._PlanPayments_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field, obj) + case "paymentReconciliationFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_paymentReconciliationFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "paymentReconciliationFrequencyContinually": + out.Values[i] = ec._PlanPayments_paymentReconciliationFrequencyContinually(ctx, field, obj) + case "paymentReconciliationFrequencyOther": + out.Values[i] = ec._PlanPayments_paymentReconciliationFrequencyOther(ctx, field, obj) + case "paymentReconciliationFrequencyNote": + out.Values[i] = ec._PlanPayments_paymentReconciliationFrequencyNote(ctx, field, obj) + case "paymentDemandRecoupmentFrequency": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_paymentDemandRecoupmentFrequency(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "paymentDemandRecoupmentFrequencyContinually": + out.Values[i] = ec._PlanPayments_paymentDemandRecoupmentFrequencyContinually(ctx, field, obj) + case "paymentDemandRecoupmentFrequencyOther": + out.Values[i] = ec._PlanPayments_paymentDemandRecoupmentFrequencyOther(ctx, field, obj) + case "paymentDemandRecoupmentFrequencyNote": + out.Values[i] = ec._PlanPayments_paymentDemandRecoupmentFrequencyNote(ctx, field, obj) + case "paymentStartDate": + out.Values[i] = ec._PlanPayments_paymentStartDate(ctx, field, obj) + case "paymentStartDateNote": + out.Values[i] = ec._PlanPayments_paymentStartDateNote(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PlanPayments_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanPayments_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanPayments_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanPayments_modifiedDts(ctx, field, obj) + case "readyForReviewBy": + out.Values[i] = ec._PlanPayments_readyForReviewBy(ctx, field, obj) + case "readyForReviewByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_readyForReviewByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForReviewDts": + out.Values[i] = ec._PlanPayments_readyForReviewDts(ctx, field, obj) + case "readyForClearanceBy": + out.Values[i] = ec._PlanPayments_readyForClearanceBy(ctx, field, obj) + case "readyForClearanceByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanPayments_readyForClearanceByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "readyForClearanceDts": + out.Values[i] = ec._PlanPayments_readyForClearanceDts(ctx, field, obj) + case "status": + out.Values[i] = ec._PlanPayments_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planPaymentsTranslationImplementors = []string{"PlanPaymentsTranslation"} + +func (ec *executionContext) _PlanPaymentsTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanPaymentsTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planPaymentsTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanPaymentsTranslation") + case "fundingSource": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSource(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourcePatientProtectionInfo": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourcePatientProtectionInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceMedicareAInfo": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceMedicareAInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceMedicareBInfo": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceMedicareBInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceOther": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceNote": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceR": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceR(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceRPatientProtectionInfo": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceRPatientProtectionInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceRMedicareAInfo": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceRMedicareAInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceRMedicareBInfo": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceRMedicareBInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceROther": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceROther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "fundingSourceRNote": + out.Values[i] = ec._PlanPaymentsTranslation_fundingSourceRNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "payRecipients": + out.Values[i] = ec._PlanPaymentsTranslation_payRecipients(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "payRecipientsOtherSpecification": + out.Values[i] = ec._PlanPaymentsTranslation_payRecipientsOtherSpecification(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "payRecipientsNote": + out.Values[i] = ec._PlanPaymentsTranslation_payRecipientsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "payType": + out.Values[i] = ec._PlanPaymentsTranslation_payType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "payTypeNote": + out.Values[i] = ec._PlanPaymentsTranslation_payTypeNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "payClaims": + out.Values[i] = ec._PlanPaymentsTranslation_payClaims(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "payClaimsOther": + out.Values[i] = ec._PlanPaymentsTranslation_payClaimsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "payClaimsNote": + out.Values[i] = ec._PlanPaymentsTranslation_payClaimsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "shouldAnyProvidersExcludedFFSSystems": + out.Values[i] = ec._PlanPaymentsTranslation_shouldAnyProvidersExcludedFFSSystems(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "shouldAnyProviderExcludedFFSSystemsNote": + out.Values[i] = ec._PlanPaymentsTranslation_shouldAnyProviderExcludedFFSSystemsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "changesMedicarePhysicianFeeSchedule": + out.Values[i] = ec._PlanPaymentsTranslation_changesMedicarePhysicianFeeSchedule(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "changesMedicarePhysicianFeeScheduleNote": + out.Values[i] = ec._PlanPaymentsTranslation_changesMedicarePhysicianFeeScheduleNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "affectsMedicareSecondaryPayerClaims": + out.Values[i] = ec._PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaims(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "affectsMedicareSecondaryPayerClaimsHow": + out.Values[i] = ec._PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsHow(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "affectsMedicareSecondaryPayerClaimsNote": + out.Values[i] = ec._PlanPaymentsTranslation_affectsMedicareSecondaryPayerClaimsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "payModelDifferentiation": + out.Values[i] = ec._PlanPaymentsTranslation_payModelDifferentiation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "willBePaymentAdjustments": + out.Values[i] = ec._PlanPaymentsTranslation_willBePaymentAdjustments(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "willBePaymentAdjustmentsNote": + out.Values[i] = ec._PlanPaymentsTranslation_willBePaymentAdjustmentsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "creatingDependenciesBetweenServices": + out.Values[i] = ec._PlanPaymentsTranslation_creatingDependenciesBetweenServices(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "creatingDependenciesBetweenServicesNote": + out.Values[i] = ec._PlanPaymentsTranslation_creatingDependenciesBetweenServicesNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needsClaimsDataCollection": + out.Values[i] = ec._PlanPaymentsTranslation_needsClaimsDataCollection(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needsClaimsDataCollectionNote": + out.Values[i] = ec._PlanPaymentsTranslation_needsClaimsDataCollectionNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "providingThirdPartyFile": + out.Values[i] = ec._PlanPaymentsTranslation_providingThirdPartyFile(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isContractorAwareTestDataRequirements": + out.Values[i] = ec._PlanPaymentsTranslation_isContractorAwareTestDataRequirements(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "beneficiaryCostSharingLevelAndHandling": + out.Values[i] = ec._PlanPaymentsTranslation_beneficiaryCostSharingLevelAndHandling(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "waiveBeneficiaryCostSharingForAnyServices": + out.Values[i] = ec._PlanPaymentsTranslation_waiveBeneficiaryCostSharingForAnyServices(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "waiveBeneficiaryCostSharingServiceSpecification": + out.Values[i] = ec._PlanPaymentsTranslation_waiveBeneficiaryCostSharingServiceSpecification(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "waiverOnlyAppliesPartOfPayment": + out.Values[i] = ec._PlanPaymentsTranslation_waiverOnlyAppliesPartOfPayment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "waiveBeneficiaryCostSharingNote": + out.Values[i] = ec._PlanPaymentsTranslation_waiveBeneficiaryCostSharingNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "nonClaimsPayments": + out.Values[i] = ec._PlanPaymentsTranslation_nonClaimsPayments(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "nonClaimsPaymentOther": + out.Values[i] = ec._PlanPaymentsTranslation_nonClaimsPaymentOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "nonClaimsPaymentsNote": + out.Values[i] = ec._PlanPaymentsTranslation_nonClaimsPaymentsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentCalculationOwner": + out.Values[i] = ec._PlanPaymentsTranslation_paymentCalculationOwner(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "numberPaymentsPerPayCycle": + out.Values[i] = ec._PlanPaymentsTranslation_numberPaymentsPerPayCycle(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "numberPaymentsPerPayCycleNote": + out.Values[i] = ec._PlanPaymentsTranslation_numberPaymentsPerPayCycleNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "sharedSystemsInvolvedAdditionalClaimPayment": + out.Values[i] = ec._PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPayment(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "sharedSystemsInvolvedAdditionalClaimPaymentNote": + out.Values[i] = ec._PlanPaymentsTranslation_sharedSystemsInvolvedAdditionalClaimPaymentNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "planningToUseInnovationPaymentContractor": + out.Values[i] = ec._PlanPaymentsTranslation_planningToUseInnovationPaymentContractor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "planningToUseInnovationPaymentContractorNote": + out.Values[i] = ec._PlanPaymentsTranslation_planningToUseInnovationPaymentContractorNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "expectedCalculationComplexityLevel": + out.Values[i] = ec._PlanPaymentsTranslation_expectedCalculationComplexityLevel(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "expectedCalculationComplexityLevelNote": + out.Values[i] = ec._PlanPaymentsTranslation_expectedCalculationComplexityLevelNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "claimsProcessingPrecedence": + out.Values[i] = ec._PlanPaymentsTranslation_claimsProcessingPrecedence(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "claimsProcessingPrecedenceOther": + out.Values[i] = ec._PlanPaymentsTranslation_claimsProcessingPrecedenceOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "claimsProcessingPrecedenceNote": + out.Values[i] = ec._PlanPaymentsTranslation_claimsProcessingPrecedenceNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "canParticipantsSelectBetweenPaymentMechanisms": + out.Values[i] = ec._PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanisms(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "canParticipantsSelectBetweenPaymentMechanismsHow": + out.Values[i] = ec._PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsHow(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "canParticipantsSelectBetweenPaymentMechanismsNote": + out.Values[i] = ec._PlanPaymentsTranslation_canParticipantsSelectBetweenPaymentMechanismsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "anticipatedPaymentFrequency": + out.Values[i] = ec._PlanPaymentsTranslation_anticipatedPaymentFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "anticipatedPaymentFrequencyContinually": + out.Values[i] = ec._PlanPaymentsTranslation_anticipatedPaymentFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "anticipatedPaymentFrequencyOther": + out.Values[i] = ec._PlanPaymentsTranslation_anticipatedPaymentFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "anticipatedPaymentFrequencyNote": + out.Values[i] = ec._PlanPaymentsTranslation_anticipatedPaymentFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "willRecoverPayments": + out.Values[i] = ec._PlanPaymentsTranslation_willRecoverPayments(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "willRecoverPaymentsNote": + out.Values[i] = ec._PlanPaymentsTranslation_willRecoverPaymentsNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "anticipateReconcilingPaymentsRetrospectively": + out.Values[i] = ec._PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectively(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "anticipateReconcilingPaymentsRetrospectivelyNote": + out.Values[i] = ec._PlanPaymentsTranslation_anticipateReconcilingPaymentsRetrospectivelyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentReconciliationFrequency": + out.Values[i] = ec._PlanPaymentsTranslation_paymentReconciliationFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentReconciliationFrequencyContinually": + out.Values[i] = ec._PlanPaymentsTranslation_paymentReconciliationFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentReconciliationFrequencyOther": + out.Values[i] = ec._PlanPaymentsTranslation_paymentReconciliationFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentReconciliationFrequencyNote": + out.Values[i] = ec._PlanPaymentsTranslation_paymentReconciliationFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentDemandRecoupmentFrequency": + out.Values[i] = ec._PlanPaymentsTranslation_paymentDemandRecoupmentFrequency(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentDemandRecoupmentFrequencyContinually": + out.Values[i] = ec._PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyContinually(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentDemandRecoupmentFrequencyOther": + out.Values[i] = ec._PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentDemandRecoupmentFrequencyNote": + out.Values[i] = ec._PlanPaymentsTranslation_paymentDemandRecoupmentFrequencyNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentStartDate": + out.Values[i] = ec._PlanPaymentsTranslation_paymentStartDate(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "paymentStartDateNote": + out.Values[i] = ec._PlanPaymentsTranslation_paymentStartDateNote(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewBy": + out.Values[i] = ec._PlanPaymentsTranslation_readyForReviewBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForReviewDts": + out.Values[i] = ec._PlanPaymentsTranslation_readyForReviewDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceBy": + out.Values[i] = ec._PlanPaymentsTranslation_readyForClearanceBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readyForClearanceDts": + out.Values[i] = ec._PlanPaymentsTranslation_readyForClearanceDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._PlanPaymentsTranslation_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planTDLImplementors = []string{"PlanTDL"} + +func (ec *executionContext) _PlanTDL(ctx context.Context, sel ast.SelectionSet, obj *models.PlanTDL) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planTDLImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanTDL") + case "id": + out.Values[i] = ec._PlanTDL_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._PlanTDL_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "idNumber": + out.Values[i] = ec._PlanTDL_idNumber(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dateInitiated": + out.Values[i] = ec._PlanTDL_dateInitiated(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "title": + out.Values[i] = ec._PlanTDL_title(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "note": + out.Values[i] = ec._PlanTDL_note(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PlanTDL_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanTDL_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PlanTDL_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PlanTDL_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PlanTDL_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PlanTDL_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var planTDLTranslationImplementors = []string{"PlanTDLTranslation"} + +func (ec *executionContext) _PlanTDLTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.PlanTDLTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, planTDLTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PlanTDLTranslation") + case "idNumber": + out.Values[i] = ec._PlanTDLTranslation_idNumber(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "title": + out.Values[i] = ec._PlanTDLTranslation_title(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dateInitiated": + out.Values[i] = ec._PlanTDLTranslation_dateInitiated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "note": + out.Values[i] = ec._PlanTDLTranslation_note(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var possibleOperationalNeedImplementors = []string{"PossibleOperationalNeed"} + +func (ec *executionContext) _PossibleOperationalNeed(ctx context.Context, sel ast.SelectionSet, obj *models.PossibleOperationalNeed) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, possibleOperationalNeedImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PossibleOperationalNeed") + case "id": + out.Values[i] = ec._PossibleOperationalNeed_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "possibleSolutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PossibleOperationalNeed_possibleSolutions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "name": + out.Values[i] = ec._PossibleOperationalNeed_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "key": + out.Values[i] = ec._PossibleOperationalNeed_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "section": + out.Values[i] = ec._PossibleOperationalNeed_section(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PossibleOperationalNeed_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PossibleOperationalNeed_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PossibleOperationalNeed_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PossibleOperationalNeed_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PossibleOperationalNeed_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PossibleOperationalNeed_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var possibleOperationalSolutionImplementors = []string{"PossibleOperationalSolution", "TaggedEntity"} + +func (ec *executionContext) _PossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, obj *models.PossibleOperationalSolution) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, possibleOperationalSolutionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PossibleOperationalSolution") + case "id": + out.Values[i] = ec._PossibleOperationalSolution_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._PossibleOperationalSolution_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "key": + out.Values[i] = ec._PossibleOperationalSolution_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "treatAsOther": + out.Values[i] = ec._PossibleOperationalSolution_treatAsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "pointsOfContact": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PossibleOperationalSolution_pointsOfContact(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "primaryContact": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PossibleOperationalSolution_primaryContact(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "filterView": + out.Values[i] = ec._PossibleOperationalSolution_filterView(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PossibleOperationalSolution_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PossibleOperationalSolution_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PossibleOperationalSolution_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PossibleOperationalSolution_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PossibleOperationalSolution_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PossibleOperationalSolution_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var possibleOperationalSolutionContactImplementors = []string{"PossibleOperationalSolutionContact"} + +func (ec *executionContext) _PossibleOperationalSolutionContact(ctx context.Context, sel ast.SelectionSet, obj *models.PossibleOperationalSolutionContact) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, possibleOperationalSolutionContactImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PossibleOperationalSolutionContact") + case "id": + out.Values[i] = ec._PossibleOperationalSolutionContact_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "possibleOperationalSolutionID": + out.Values[i] = ec._PossibleOperationalSolutionContact_possibleOperationalSolutionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._PossibleOperationalSolutionContact_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "email": + out.Values[i] = ec._PossibleOperationalSolutionContact_email(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isTeam": + out.Values[i] = ec._PossibleOperationalSolutionContact_isTeam(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "role": + out.Values[i] = ec._PossibleOperationalSolutionContact_role(ctx, field, obj) + case "isPrimary": + out.Values[i] = ec._PossibleOperationalSolutionContact_isPrimary(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._PossibleOperationalSolutionContact_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PossibleOperationalSolutionContact_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._PossibleOperationalSolutionContact_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._PossibleOperationalSolutionContact_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PossibleOperationalSolutionContact_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._PossibleOperationalSolutionContact_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var prepareForClearanceImplementors = []string{"PrepareForClearance"} + +func (ec *executionContext) _PrepareForClearance(ctx context.Context, sel ast.SelectionSet, obj *model.PrepareForClearance) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, prepareForClearanceImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PrepareForClearance") + case "status": + out.Values[i] = ec._PrepareForClearance_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "latestClearanceDts": + out.Values[i] = ec._PrepareForClearance_latestClearanceDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var queryImplementors = []string{"Query"} + +func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) + ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ + Object: "Query", + }) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ + Object: field.Name, + Field: field, + }) + + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Query") + case "analyzedAudits": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_analyzedAudits(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "auditChanges": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_auditChanges(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "currentUser": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_currentUser(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "mostRecentDiscussionRoleSelection": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_mostRecentDiscussionRoleSelection(ctx, field) + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "existingModelCollection": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_existingModelCollection(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "existingModelLink": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_existingModelLink(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "lockableSectionLocks": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_lockableSectionLocks(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_modelPlan(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "modelPlanCollection": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_modelPlanCollection(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "modelPlansByOperationalSolutionKey": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_modelPlansByOperationalSolutionKey(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "ndaInfo": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_ndaInfo(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "operationalNeed": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_operationalNeed(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "operationalSolutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_operationalSolutions(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "operationalSolution": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_operationalSolution(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "planCollaboratorByID": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_planCollaboratorByID(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "planCR": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_planCR(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "planDocument": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_planDocument(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "planPayments": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_planPayments(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "planTDL": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_planTDL(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "possibleOperationalNeeds": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_possibleOperationalNeeds(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "possibleOperationalSolutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_possibleOperationalSolutions(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "translatedAuditCollection": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_translatedAuditCollection(ctx, field) + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "userAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_userAccount(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "searchOktaUsers": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_searchOktaUsers(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "userViewCustomization": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_userViewCustomization(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "__type": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query___type(ctx, field) + }) + case "__schema": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query___schema(ctx, field) + }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var recentModificationImplementors = []string{"RecentModification"} + +func (ec *executionContext) _RecentModification(ctx context.Context, sel ast.SelectionSet, obj *models.RecentModification) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, recentModificationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("RecentModification") + case "modifiedBy": + out.Values[i] = ec._RecentModification_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._RecentModification_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._RecentModification_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var subscriptionImplementors = []string{"Subscription"} + +func (ec *executionContext) _Subscription(ctx context.Context, sel ast.SelectionSet) func(ctx context.Context) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriptionImplementors) + ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ + Object: "Subscription", + }) + if len(fields) != 1 { + ec.Errorf(ctx, "must subscribe to exactly one stream") + return nil + } + + switch fields[0].Name { + case "onLockableSectionLocksChanged": + return ec._Subscription_onLockableSectionLocksChanged(ctx, fields[0]) + case "onLockLockableSectionContext": + return ec._Subscription_onLockLockableSectionContext(ctx, fields[0]) + default: + panic("unknown field " + strconv.Quote(fields[0].Name)) + } +} + +var tagImplementors = []string{"Tag"} + +func (ec *executionContext) _Tag(ctx context.Context, sel ast.SelectionSet, obj *models.Tag) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tagImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Tag") + case "id": + out.Values[i] = ec._Tag_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tagType": + out.Values[i] = ec._Tag_tagType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "taggedField": + out.Values[i] = ec._Tag_taggedField(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "taggedContentTable": + out.Values[i] = ec._Tag_taggedContentTable(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "taggedContentID": + out.Values[i] = ec._Tag_taggedContentID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "entityUUID": + out.Values[i] = ec._Tag_entityUUID(ctx, field, obj) + case "entityIntID": + out.Values[i] = ec._Tag_entityIntID(ctx, field, obj) + case "entity": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Tag_entity(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._Tag_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Tag_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._Tag_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._Tag_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Tag_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._Tag_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var taggedContentImplementors = []string{"TaggedContent"} + +func (ec *executionContext) _TaggedContent(ctx context.Context, sel ast.SelectionSet, obj *models.TaggedContent) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taggedContentImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TaggedContent") + case "rawContent": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TaggedContent_rawContent(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "tags": + out.Values[i] = ec._TaggedContent_tags(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var taggedInDiscussionReplyActivityMetaImplementors = []string{"TaggedInDiscussionReplyActivityMeta", "ActivityMetaData"} + +func (ec *executionContext) _TaggedInDiscussionReplyActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.TaggedInDiscussionReplyActivityMeta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taggedInDiscussionReplyActivityMetaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TaggedInDiscussionReplyActivityMeta") + case "version": + out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TaggedInDiscussionReplyActivityMeta_modelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "discussionID": + out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_discussionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "discussion": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TaggedInDiscussionReplyActivityMeta_discussion(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "replyID": + out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_replyID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "reply": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TaggedInDiscussionReplyActivityMeta_reply(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "content": + out.Values[i] = ec._TaggedInDiscussionReplyActivityMeta_content(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var taggedInPlanDiscussionActivityMetaImplementors = []string{"TaggedInPlanDiscussionActivityMeta", "ActivityMetaData"} + +func (ec *executionContext) _TaggedInPlanDiscussionActivityMeta(ctx context.Context, sel ast.SelectionSet, obj *models.TaggedInPlanDiscussionActivityMeta) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taggedInPlanDiscussionActivityMetaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TaggedInPlanDiscussionActivityMeta") + case "version": + out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "type": + out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TaggedInPlanDiscussionActivityMeta_modelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "discussionID": + out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_discussionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "discussion": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TaggedInPlanDiscussionActivityMeta_discussion(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "content": + out.Values[i] = ec._TaggedInPlanDiscussionActivityMeta_content(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translatedAuditImplementors = []string{"TranslatedAudit"} + +func (ec *executionContext) _TranslatedAudit(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAudit) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslatedAudit") + case "id": + out.Values[i] = ec._TranslatedAudit_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modelPlanID": + out.Values[i] = ec._TranslatedAudit_modelPlanID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tableID": + out.Values[i] = ec._TranslatedAudit_tableID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tableName": + out.Values[i] = ec._TranslatedAudit_tableName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "primaryKey": + out.Values[i] = ec._TranslatedAudit_primaryKey(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "date": + out.Values[i] = ec._TranslatedAudit_date(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "action": + out.Values[i] = ec._TranslatedAudit_action(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "restricted": + out.Values[i] = ec._TranslatedAudit_restricted(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "actorID": + out.Values[i] = ec._TranslatedAudit_actorID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "actorName": + out.Values[i] = ec._TranslatedAudit_actorName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "changeID": + out.Values[i] = ec._TranslatedAudit_changeID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "metaDataType": + out.Values[i] = ec._TranslatedAudit_metaDataType(ctx, field, obj) + case "metaData": + out.Values[i] = ec._TranslatedAudit_metaData(ctx, field, obj) + case "translatedFields": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TranslatedAudit_translatedFields(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._TranslatedAudit_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TranslatedAudit_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._TranslatedAudit_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._TranslatedAudit_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TranslatedAudit_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._TranslatedAudit_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translatedAuditFieldImplementors = []string{"TranslatedAuditField"} + +func (ec *executionContext) _TranslatedAuditField(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditField) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditFieldImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslatedAuditField") + case "id": + out.Values[i] = ec._TranslatedAuditField_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "translatedAuditID": + out.Values[i] = ec._TranslatedAuditField_translatedAuditID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "changeType": + out.Values[i] = ec._TranslatedAuditField_changeType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dataType": + out.Values[i] = ec._TranslatedAuditField_dataType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "formType": + out.Values[i] = ec._TranslatedAuditField_formType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fieldName": + out.Values[i] = ec._TranslatedAuditField_fieldName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fieldNameTranslated": + out.Values[i] = ec._TranslatedAuditField_fieldNameTranslated(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fieldOrder": + out.Values[i] = ec._TranslatedAuditField_fieldOrder(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "referenceLabel": + out.Values[i] = ec._TranslatedAuditField_referenceLabel(ctx, field, obj) + case "questionType": + out.Values[i] = ec._TranslatedAuditField_questionType(ctx, field, obj) + case "notApplicableQuestions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TranslatedAuditField_notApplicableQuestions(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "old": + out.Values[i] = ec._TranslatedAuditField_old(ctx, field, obj) + case "oldTranslated": + out.Values[i] = ec._TranslatedAuditField_oldTranslated(ctx, field, obj) + case "new": + out.Values[i] = ec._TranslatedAuditField_new(ctx, field, obj) + case "newTranslated": + out.Values[i] = ec._TranslatedAuditField_newTranslated(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._TranslatedAuditField_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TranslatedAuditField_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._TranslatedAuditField_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._TranslatedAuditField_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TranslatedAuditField_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._TranslatedAuditField_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translatedAuditMetaBaseStructImplementors = []string{"TranslatedAuditMetaBaseStruct", "TranslatedAuditMetaData"} + +func (ec *executionContext) _TranslatedAuditMetaBaseStruct(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaBaseStruct) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaBaseStructImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslatedAuditMetaBaseStruct") + case "version": + out.Values[i] = ec._TranslatedAuditMetaBaseStruct_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "tableName": + out.Values[i] = ec._TranslatedAuditMetaBaseStruct_tableName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translatedAuditMetaDiscussionReplyImplementors = []string{"TranslatedAuditMetaDiscussionReply", "TranslatedAuditMetaData"} + +func (ec *executionContext) _TranslatedAuditMetaDiscussionReply(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaDiscussionReply) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaDiscussionReplyImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslatedAuditMetaDiscussionReply") + case "version": + out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "tableName": + out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_tableName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "discussionID": + out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_discussionID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "discussionContent": + out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_discussionContent(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "numberOfReplies": + out.Values[i] = ec._TranslatedAuditMetaDiscussionReply_numberOfReplies(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translatedAuditMetaDocumentSolutionLinkImplementors = []string{"TranslatedAuditMetaDocumentSolutionLink", "TranslatedAuditMetaData"} + +func (ec *executionContext) _TranslatedAuditMetaDocumentSolutionLink(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaDocumentSolutionLink) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaDocumentSolutionLinkImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslatedAuditMetaDocumentSolutionLink") + case "version": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "tableName": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_tableName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "solutionName": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_solutionName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "solutionOtherHeader": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_solutionOtherHeader(ctx, field, obj) + case "solutionIsOther": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_solutionIsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needName": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_needName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needIsOther": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_needIsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "documentName": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentName(ctx, field, obj) + case "documentType": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentType(ctx, field, obj) + case "documentOtherType": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentOtherType(ctx, field, obj) + case "documentNote": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentNote(ctx, field, obj) + case "documentURL": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentURL(ctx, field, obj) + case "documentVisibility": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentVisibility(ctx, field, obj) + case "documentRestricted": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentRestricted(ctx, field, obj) + case "documentID": + out.Values[i] = ec._TranslatedAuditMetaDocumentSolutionLink_documentID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translatedAuditMetaGenericImplementors = []string{"TranslatedAuditMetaGeneric", "TranslatedAuditMetaData"} + +func (ec *executionContext) _TranslatedAuditMetaGeneric(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaGeneric) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaGenericImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslatedAuditMetaGeneric") + case "version": + out.Values[i] = ec._TranslatedAuditMetaGeneric_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "tableName": + out.Values[i] = ec._TranslatedAuditMetaGeneric_tableName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "relation": + out.Values[i] = ec._TranslatedAuditMetaGeneric_relation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "relationContent": + out.Values[i] = ec._TranslatedAuditMetaGeneric_relationContent(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translatedAuditMetaOperationalNeedImplementors = []string{"TranslatedAuditMetaOperationalNeed", "TranslatedAuditMetaData"} + +func (ec *executionContext) _TranslatedAuditMetaOperationalNeed(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaOperationalNeed) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaOperationalNeedImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslatedAuditMetaOperationalNeed") + case "version": + out.Values[i] = ec._TranslatedAuditMetaOperationalNeed_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "tableName": + out.Values[i] = ec._TranslatedAuditMetaOperationalNeed_tableName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needName": + out.Values[i] = ec._TranslatedAuditMetaOperationalNeed_needName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isOther": + out.Values[i] = ec._TranslatedAuditMetaOperationalNeed_isOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translatedAuditMetaOperationalSolutionImplementors = []string{"TranslatedAuditMetaOperationalSolution", "TranslatedAuditMetaData"} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolution(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaOperationalSolution) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaOperationalSolutionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslatedAuditMetaOperationalSolution") + case "version": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "tableName": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_tableName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "solutionName": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "solutionOtherHeader": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionOtherHeader(ctx, field, obj) + case "solutionIsOther": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionIsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "numberOfSubtasks": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_numberOfSubtasks(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needName": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_needName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needIsOther": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_needIsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "solutionStatus": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionStatus(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "solutionMustStart": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionMustStart(ctx, field, obj) + case "solutionMustFinish": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolution_solutionMustFinish(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translatedAuditMetaOperationalSolutionSubtaskImplementors = []string{"TranslatedAuditMetaOperationalSolutionSubtask", "TranslatedAuditMetaData"} + +func (ec *executionContext) _TranslatedAuditMetaOperationalSolutionSubtask(ctx context.Context, sel ast.SelectionSet, obj *models.TranslatedAuditMetaOperationalSolutionSubtask) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translatedAuditMetaOperationalSolutionSubtaskImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslatedAuditMetaOperationalSolutionSubtask") + case "version": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "tableName": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_tableName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "solutionName": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_solutionName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "solutionOtherHeader": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_solutionOtherHeader(ctx, field, obj) + case "solutionIsOther": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_solutionIsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "numberOfSubtasks": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_numberOfSubtasks(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needName": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_needName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "needIsOther": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_needIsOther(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "subtaskName": + out.Values[i] = ec._TranslatedAuditMetaOperationalSolutionSubtask_subtaskName(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translationFieldImplementors = []string{"TranslationField"} + +func (ec *executionContext) _TranslationField(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationField) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslationField") + case "gqlField": + out.Values[i] = ec._TranslationField_gqlField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "goField": + out.Values[i] = ec._TranslationField_goField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dbField": + out.Values[i] = ec._TranslationField_dbField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "label": + out.Values[i] = ec._TranslationField_label(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readonlyLabel": + out.Values[i] = ec._TranslationField_readonlyLabel(ctx, field, obj) + case "sublabel": + out.Values[i] = ec._TranslationField_sublabel(ctx, field, obj) + case "multiSelectLabel": + out.Values[i] = ec._TranslationField_multiSelectLabel(ctx, field, obj) + case "isArray": + out.Values[i] = ec._TranslationField_isArray(ctx, field, obj) + case "dataType": + out.Values[i] = ec._TranslationField_dataType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "formType": + out.Values[i] = ec._TranslationField_formType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isNote": + out.Values[i] = ec._TranslationField_isNote(ctx, field, obj) + case "order": + out.Values[i] = ec._TranslationField_order(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isOtherType": + out.Values[i] = ec._TranslationField_isOtherType(ctx, field, obj) + case "otherParentField": + out.Values[i] = ec._TranslationField_otherParentField(ctx, field, obj) + case "parentReferencesLabel": + out.Values[i] = ec._TranslationField_parentReferencesLabel(ctx, field, obj) + case "exportLabel": + out.Values[i] = ec._TranslationField_exportLabel(ctx, field, obj) + case "tableReference": + out.Values[i] = ec._TranslationField_tableReference(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translationFieldWithOptionsImplementors = []string{"TranslationFieldWithOptions"} + +func (ec *executionContext) _TranslationFieldWithOptions(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithOptions) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithOptionsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslationFieldWithOptions") + case "gqlField": + out.Values[i] = ec._TranslationFieldWithOptions_gqlField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "goField": + out.Values[i] = ec._TranslationFieldWithOptions_goField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dbField": + out.Values[i] = ec._TranslationFieldWithOptions_dbField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "label": + out.Values[i] = ec._TranslationFieldWithOptions_label(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readonlyLabel": + out.Values[i] = ec._TranslationFieldWithOptions_readonlyLabel(ctx, field, obj) + case "sublabel": + out.Values[i] = ec._TranslationFieldWithOptions_sublabel(ctx, field, obj) + case "multiSelectLabel": + out.Values[i] = ec._TranslationFieldWithOptions_multiSelectLabel(ctx, field, obj) + case "isArray": + out.Values[i] = ec._TranslationFieldWithOptions_isArray(ctx, field, obj) + case "dataType": + out.Values[i] = ec._TranslationFieldWithOptions_dataType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "formType": + out.Values[i] = ec._TranslationFieldWithOptions_formType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isNote": + out.Values[i] = ec._TranslationFieldWithOptions_isNote(ctx, field, obj) + case "order": + out.Values[i] = ec._TranslationFieldWithOptions_order(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isOtherType": + out.Values[i] = ec._TranslationFieldWithOptions_isOtherType(ctx, field, obj) + case "otherParentField": + out.Values[i] = ec._TranslationFieldWithOptions_otherParentField(ctx, field, obj) + case "parentReferencesLabel": + out.Values[i] = ec._TranslationFieldWithOptions_parentReferencesLabel(ctx, field, obj) + case "exportLabel": + out.Values[i] = ec._TranslationFieldWithOptions_exportLabel(ctx, field, obj) + case "tableReference": + out.Values[i] = ec._TranslationFieldWithOptions_tableReference(ctx, field, obj) + case "options": + out.Values[i] = ec._TranslationFieldWithOptions_options(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "exportOptions": + out.Values[i] = ec._TranslationFieldWithOptions_exportOptions(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translationFieldWithOptionsAndChildrenImplementors = []string{"TranslationFieldWithOptionsAndChildren"} + +func (ec *executionContext) _TranslationFieldWithOptionsAndChildren(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithOptionsAndChildren) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithOptionsAndChildrenImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslationFieldWithOptionsAndChildren") + case "gqlField": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_gqlField(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "goField": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_goField(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dbField": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_dbField(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "label": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_label(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "readonlyLabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_readonlyLabel(ctx, field, obj) + case "sublabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_sublabel(ctx, field, obj) + case "multiSelectLabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_multiSelectLabel(ctx, field, obj) + case "isArray": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_isArray(ctx, field, obj) + case "dataType": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_dataType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "formType": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_formType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isNote": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_isNote(ctx, field, obj) + case "order": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_order(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isOtherType": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_isOtherType(ctx, field, obj) + case "otherParentField": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_otherParentField(ctx, field, obj) + case "parentReferencesLabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_parentReferencesLabel(ctx, field, obj) + case "exportLabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_exportLabel(ctx, field, obj) + case "tableReference": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_tableReference(ctx, field, obj) + case "options": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_options(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "exportOptions": + out.Values[i] = ec._TranslationFieldWithOptionsAndChildren_exportOptions(ctx, field, obj) + case "childRelation": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TranslationFieldWithOptionsAndChildren_childRelation(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translationFieldWithOptionsAndParentImplementors = []string{"TranslationFieldWithOptionsAndParent"} + +func (ec *executionContext) _TranslationFieldWithOptionsAndParent(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithOptionsAndParent) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithOptionsAndParentImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslationFieldWithOptionsAndParent") + case "gqlField": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_gqlField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "goField": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_goField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dbField": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_dbField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "label": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_label(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readonlyLabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_readonlyLabel(ctx, field, obj) + case "sublabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_sublabel(ctx, field, obj) + case "multiSelectLabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_multiSelectLabel(ctx, field, obj) + case "isArray": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_isArray(ctx, field, obj) + case "dataType": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_dataType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "formType": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_formType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isNote": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_isNote(ctx, field, obj) + case "order": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_order(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isOtherType": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_isOtherType(ctx, field, obj) + case "otherParentField": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_otherParentField(ctx, field, obj) + case "parentReferencesLabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_parentReferencesLabel(ctx, field, obj) + case "exportLabel": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_exportLabel(ctx, field, obj) + case "tableReference": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_tableReference(ctx, field, obj) + case "options": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_options(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "exportOptions": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_exportOptions(ctx, field, obj) + case "parentRelation": + out.Values[i] = ec._TranslationFieldWithOptionsAndParent_parentRelation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translationFieldWithParentImplementors = []string{"TranslationFieldWithParent"} + +func (ec *executionContext) _TranslationFieldWithParent(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithParent) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithParentImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslationFieldWithParent") + case "gqlField": + out.Values[i] = ec._TranslationFieldWithParent_gqlField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "goField": + out.Values[i] = ec._TranslationFieldWithParent_goField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "dbField": + out.Values[i] = ec._TranslationFieldWithParent_dbField(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "label": + out.Values[i] = ec._TranslationFieldWithParent_label(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "readonlyLabel": + out.Values[i] = ec._TranslationFieldWithParent_readonlyLabel(ctx, field, obj) + case "sublabel": + out.Values[i] = ec._TranslationFieldWithParent_sublabel(ctx, field, obj) + case "multiSelectLabel": + out.Values[i] = ec._TranslationFieldWithParent_multiSelectLabel(ctx, field, obj) + case "isArray": + out.Values[i] = ec._TranslationFieldWithParent_isArray(ctx, field, obj) + case "dataType": + out.Values[i] = ec._TranslationFieldWithParent_dataType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "formType": + out.Values[i] = ec._TranslationFieldWithParent_formType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isNote": + out.Values[i] = ec._TranslationFieldWithParent_isNote(ctx, field, obj) + case "order": + out.Values[i] = ec._TranslationFieldWithParent_order(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isOtherType": + out.Values[i] = ec._TranslationFieldWithParent_isOtherType(ctx, field, obj) + case "otherParentField": + out.Values[i] = ec._TranslationFieldWithParent_otherParentField(ctx, field, obj) + case "parentReferencesLabel": + out.Values[i] = ec._TranslationFieldWithParent_parentReferencesLabel(ctx, field, obj) + case "exportLabel": + out.Values[i] = ec._TranslationFieldWithParent_exportLabel(ctx, field, obj) + case "tableReference": + out.Values[i] = ec._TranslationFieldWithParent_tableReference(ctx, field, obj) + case "parentRelation": + out.Values[i] = ec._TranslationFieldWithParent_parentRelation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var translationFieldWithParentAndChildrenImplementors = []string{"TranslationFieldWithParentAndChildren"} + +func (ec *executionContext) _TranslationFieldWithParentAndChildren(ctx context.Context, sel ast.SelectionSet, obj *models.TranslationFieldWithParentAndChildren) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, translationFieldWithParentAndChildrenImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TranslationFieldWithParentAndChildren") + case "gqlField": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_gqlField(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "goField": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_goField(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dbField": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_dbField(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "label": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_label(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "readonlyLabel": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_readonlyLabel(ctx, field, obj) + case "sublabel": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_sublabel(ctx, field, obj) + case "multiSelectLabel": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_multiSelectLabel(ctx, field, obj) + case "isArray": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_isArray(ctx, field, obj) + case "dataType": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_dataType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "formType": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_formType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isNote": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_isNote(ctx, field, obj) + case "order": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_order(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isOtherType": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_isOtherType(ctx, field, obj) + case "otherParentField": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_otherParentField(ctx, field, obj) + case "parentReferencesLabel": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_parentReferencesLabel(ctx, field, obj) + case "exportLabel": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_exportLabel(ctx, field, obj) + case "tableReference": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_tableReference(ctx, field, obj) + case "options": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_options(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "exportOptions": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_exportOptions(ctx, field, obj) + case "parentRelation": + out.Values[i] = ec._TranslationFieldWithParentAndChildren_parentRelation(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "childRelation": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TranslationFieldWithParentAndChildren_childRelation(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userAccountImplementors = []string{"UserAccount", "TaggedEntity"} + +func (ec *executionContext) _UserAccount(ctx context.Context, sel ast.SelectionSet, obj *authentication.UserAccount) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userAccountImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserAccount") + case "id": + out.Values[i] = ec._UserAccount_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "username": + out.Values[i] = ec._UserAccount_username(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isEUAID": + out.Values[i] = ec._UserAccount_isEUAID(ctx, field, obj) + case "commonName": + out.Values[i] = ec._UserAccount_commonName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "locale": + out.Values[i] = ec._UserAccount_locale(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "email": + out.Values[i] = ec._UserAccount_email(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "givenName": + out.Values[i] = ec._UserAccount_givenName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "familyName": + out.Values[i] = ec._UserAccount_familyName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "zoneInfo": + out.Values[i] = ec._UserAccount_zoneInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "hasLoggedIn": + out.Values[i] = ec._UserAccount_hasLoggedIn(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userInfoImplementors = []string{"UserInfo"} + +func (ec *executionContext) _UserInfo(ctx context.Context, sel ast.SelectionSet, obj *models.UserInfo) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userInfoImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserInfo") + case "firstName": + out.Values[i] = ec._UserInfo_firstName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "lastName": + out.Values[i] = ec._UserInfo_lastName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "displayName": + out.Values[i] = ec._UserInfo_displayName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "email": + out.Values[i] = ec._UserInfo_email(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "username": + out.Values[i] = ec._UserInfo_username(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userNotificationImplementors = []string{"UserNotification"} + +func (ec *executionContext) _UserNotification(ctx context.Context, sel ast.SelectionSet, obj *models.UserNotification) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userNotificationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserNotification") + case "id": + out.Values[i] = ec._UserNotification_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "activityID": + out.Values[i] = ec._UserNotification_activityID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userID": + out.Values[i] = ec._UserNotification_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isRead": + out.Values[i] = ec._UserNotification_isRead(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "inAppSent": + out.Values[i] = ec._UserNotification_inAppSent(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "emailSent": + out.Values[i] = ec._UserNotification_emailSent(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "activity": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotification_activity(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._UserNotification_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotification_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._UserNotification_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._UserNotification_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotification_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._UserNotification_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userNotificationPreferencesImplementors = []string{"UserNotificationPreferences"} + +func (ec *executionContext) _UserNotificationPreferences(ctx context.Context, sel ast.SelectionSet, obj *models.UserNotificationPreferences) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userNotificationPreferencesImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserNotificationPreferences") + case "id": + out.Values[i] = ec._UserNotificationPreferences_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userID": + out.Values[i] = ec._UserNotificationPreferences_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "dailyDigestComplete": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_dailyDigestComplete(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "addedAsCollaborator": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_addedAsCollaborator(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "taggedInDiscussion": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_taggedInDiscussion(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "taggedInDiscussionReply": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_taggedInDiscussionReply(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "newDiscussionReply": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_newDiscussionReply(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modelPlanShared": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_modelPlanShared(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "newModelPlan": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_newModelPlan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "datesChanged": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_datesChanged(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "datesChangedNotificationType": + out.Values[i] = ec._UserNotificationPreferences_datesChangedNotificationType(ctx, field, obj) + case "dataExchangeApproachMarkedComplete": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_dataExchangeApproachMarkedComplete(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "dataExchangeApproachMarkedCompleteNotificationType": + out.Values[i] = ec._UserNotificationPreferences_dataExchangeApproachMarkedCompleteNotificationType(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._UserNotificationPreferences_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._UserNotificationPreferences_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._UserNotificationPreferences_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserNotificationPreferences_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._UserNotificationPreferences_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userNotificationsImplementors = []string{"UserNotifications"} + +func (ec *executionContext) _UserNotifications(ctx context.Context, sel ast.SelectionSet, obj *models.UserNotifications) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userNotificationsImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserNotifications") + case "numUnreadNotifications": + out.Values[i] = ec._UserNotifications_numUnreadNotifications(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "notifications": + out.Values[i] = ec._UserNotifications_notifications(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "unreadNotifications": + out.Values[i] = ec._UserNotifications_unreadNotifications(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userViewCustomizationImplementors = []string{"UserViewCustomization"} + +func (ec *executionContext) _UserViewCustomization(ctx context.Context, sel ast.SelectionSet, obj *models.UserViewCustomization) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userViewCustomizationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserViewCustomization") + case "id": + out.Values[i] = ec._UserViewCustomization_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userId": + out.Values[i] = ec._UserViewCustomization_userId(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserViewCustomization_userAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "viewCustomization": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserViewCustomization_viewCustomization(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "possibleOperationalSolutions": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserViewCustomization_possibleOperationalSolutions(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdBy": + out.Values[i] = ec._UserViewCustomization_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserViewCustomization_createdByUserAccount(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdDts": + out.Values[i] = ec._UserViewCustomization_createdDts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "modifiedBy": + out.Values[i] = ec._UserViewCustomization_modifiedBy(ctx, field, obj) + case "modifiedByUserAccount": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._UserViewCustomization_modifiedByUserAccount(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "modifiedDts": + out.Values[i] = ec._UserViewCustomization_modifiedDts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var __DirectiveImplementors = []string{"__Directive"} + +func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Directive") + case "name": + out.Values[i] = ec.___Directive_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec.___Directive_description(ctx, field, obj) + case "locations": + out.Values[i] = ec.___Directive_locations(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "args": + out.Values[i] = ec.___Directive_args(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var __EnumValueImplementors = []string{"__EnumValue"} + +func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__EnumValue") + case "name": + out.Values[i] = ec.___EnumValue_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec.___EnumValue_description(ctx, field, obj) + case "isDeprecated": + out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deprecationReason": + out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var __FieldImplementors = []string{"__Field"} + +func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Field") + case "name": + out.Values[i] = ec.___Field_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec.___Field_description(ctx, field, obj) + case "args": + out.Values[i] = ec.___Field_args(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "type": + out.Values[i] = ec.___Field_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isDeprecated": + out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deprecationReason": + out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var __InputValueImplementors = []string{"__InputValue"} + +func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__InputValue") + case "name": + out.Values[i] = ec.___InputValue_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec.___InputValue_description(ctx, field, obj) + case "type": + out.Values[i] = ec.___InputValue_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "defaultValue": + out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var __SchemaImplementors = []string{"__Schema"} + +func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Schema") + case "description": + out.Values[i] = ec.___Schema_description(ctx, field, obj) + case "types": + out.Values[i] = ec.___Schema_types(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "queryType": + out.Values[i] = ec.___Schema_queryType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "mutationType": + out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) + case "subscriptionType": + out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) + case "directives": + out.Values[i] = ec.___Schema_directives(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var __TypeImplementors = []string{"__Type"} + +func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Type") + case "kind": + out.Values[i] = ec.___Type_kind(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "name": + out.Values[i] = ec.___Type_name(ctx, field, obj) + case "description": + out.Values[i] = ec.___Type_description(ctx, field, obj) + case "fields": + out.Values[i] = ec.___Type_fields(ctx, field, obj) + case "interfaces": + out.Values[i] = ec.___Type_interfaces(ctx, field, obj) + case "possibleTypes": + out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) + case "enumValues": + out.Values[i] = ec.___Type_enumValues(ctx, field, obj) + case "inputFields": + out.Values[i] = ec.___Type_inputFields(ctx, field, obj) + case "ofType": + out.Values[i] = ec.___Type_ofType(ctx, field, obj) + case "specifiedByURL": + out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) unmarshalNActionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐActionType(ctx context.Context, v interface{}) (model.ActionType, error) { + var res model.ActionType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNActionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐActionType(ctx context.Context, sel ast.SelectionSet, v model.ActionType) graphql.Marshaler { + return v +} + +func (ec *executionContext) marshalNActivity2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivity(ctx context.Context, sel ast.SelectionSet, v models.Activity) graphql.Marshaler { + return ec._Activity(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActivity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivity(ctx context.Context, sel ast.SelectionSet, v *models.Activity) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Activity(ctx, sel, v) +} + +func (ec *executionContext) marshalNActivityMetaData2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityMetaData(ctx context.Context, sel ast.SelectionSet, v models.ActivityMetaData) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActivityMetaData(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx context.Context, v interface{}) (models.ActivityType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ActivityType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNActivityType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐActivityType(ctx context.Context, sel ast.SelectionSet, v models.ActivityType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx context.Context, v interface{}) (model.AgencyOrStateHelpType, error) { + var res model.AgencyOrStateHelpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx context.Context, sel ast.SelectionSet, v model.AgencyOrStateHelpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx context.Context, v interface{}) ([]model.AgencyOrStateHelpType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.AgencyOrStateHelpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AgencyOrStateHelpType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx context.Context, v interface{}) (model.AgreementType, error) { + var res model.AgreementType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx context.Context, sel ast.SelectionSet, v model.AgreementType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx context.Context, v interface{}) ([]model.AgreementType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.AgreementType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AgreementType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx context.Context, v interface{}) (model.AlternativePaymentModelType, error) { + var res model.AlternativePaymentModelType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx context.Context, sel ast.SelectionSet, v model.AlternativePaymentModelType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx context.Context, v interface{}) ([]model.AlternativePaymentModelType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.AlternativePaymentModelType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AlternativePaymentModelType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNAnalyzedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.AnalyzedAudit) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAnalyzedAudit2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAudit(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNAnalyzedAudit2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAudit(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedAudit) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AnalyzedAudit(ctx, sel, v) +} + +func (ec *executionContext) marshalNAnalyzedAuditChange2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedAuditChange(ctx context.Context, sel ast.SelectionSet, v models.AnalyzedAuditChange) graphql.Marshaler { + return ec._AnalyzedAuditChange(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAnalyzedModelLeadInfo2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeadInfo(ctx context.Context, sel ast.SelectionSet, v models.AnalyzedModelLeadInfo) graphql.Marshaler { + return ec._AnalyzedModelLeadInfo(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAnalyzedModelLeadInfo2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeadInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []models.AnalyzedModelLeadInfo) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAnalyzedModelLeadInfo2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeadInfo(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, v interface{}) (models.AnticipatedMultiPayerDataAvailabilityUseCase, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.AnticipatedMultiPayerDataAvailabilityUseCase(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx context.Context, sel ast.SelectionSet, v models.AnticipatedMultiPayerDataAvailabilityUseCase) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx context.Context, v interface{}) ([]models.AnticipatedMultiPayerDataAvailabilityUseCase, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.AnticipatedMultiPayerDataAvailabilityUseCase, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx context.Context, sel ast.SelectionSet, v []models.AnticipatedMultiPayerDataAvailabilityUseCase) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNAuditChange2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditChangeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.AuditChange) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAuditChange2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditChange(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNAuditChange2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditChange(ctx context.Context, sel ast.SelectionSet, v *models.AuditChange) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AuditChange(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNAuditFieldChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditFieldChangeType(ctx context.Context, v interface{}) (models.AuditFieldChangeType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.AuditFieldChangeType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAuditFieldChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAuditFieldChangeType(ctx context.Context, sel ast.SelectionSet, v models.AuditFieldChangeType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx context.Context, v interface{}) (model.AuthorityAllowance, error) { + var res model.AuthorityAllowance + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx context.Context, sel ast.SelectionSet, v model.AuthorityAllowance) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx context.Context, v interface{}) ([]model.AuthorityAllowance, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.AuthorityAllowance, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AuthorityAllowance) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx context.Context, v interface{}) (model.BeneficiariesType, error) { + var res model.BeneficiariesType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx context.Context, sel ast.SelectionSet, v model.BeneficiariesType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx context.Context, v interface{}) ([]model.BeneficiariesType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.BeneficiariesType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.BeneficiariesType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { + res, err := graphql.UnmarshalBoolean(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { + res := graphql.MarshalBoolean(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { + res, err := graphql.UnmarshalBoolean(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + res := graphql.MarshalBoolean(*v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx context.Context, v interface{}) (model.CMMIGroup, error) { + var res model.CMMIGroup + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx context.Context, sel ast.SelectionSet, v model.CMMIGroup) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx context.Context, v interface{}) ([]model.CMMIGroup, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.CMMIGroup, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CMMIGroup) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx context.Context, v interface{}) (model.CMSCenter, error) { + var res model.CMSCenter + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx context.Context, sel ast.SelectionSet, v model.CMSCenter) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx context.Context, v interface{}) ([]model.CMSCenter, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.CMSCenter, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CMSCenter) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx context.Context, v interface{}) (model.CcmInvolvmentType, error) { + var res model.CcmInvolvmentType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx context.Context, sel ast.SelectionSet, v model.CcmInvolvmentType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx context.Context, v interface{}) ([]model.CcmInvolvmentType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.CcmInvolvmentType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CcmInvolvmentType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐChangeType(ctx context.Context, v interface{}) (model.ChangeType, error) { + var res model.ChangeType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNChangeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐChangeType(ctx context.Context, sel ast.SelectionSet, v model.ChangeType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx context.Context, v interface{}) (models.ClaimsBasedPayType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ClaimsBasedPayType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx context.Context, sel ast.SelectionSet, v models.ClaimsBasedPayType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx context.Context, v interface{}) ([]models.ClaimsBasedPayType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ClaimsBasedPayType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ClaimsBasedPayType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx context.Context, v interface{}) (model.ContractorSupportType, error) { + var res model.ContractorSupportType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx context.Context, sel ast.SelectionSet, v model.ContractorSupportType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx context.Context, v interface{}) ([]model.ContractorSupportType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ContractorSupportType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ContractorSupportType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNCreateOperationalSolutionSubtaskInput2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCreateOperationalSolutionSubtaskInputᚄ(ctx context.Context, v interface{}) ([]*model.CreateOperationalSolutionSubtaskInput, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.CreateOperationalSolutionSubtaskInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateOperationalSolutionSubtaskInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCreateOperationalSolutionSubtaskInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalNCreateOperationalSolutionSubtaskInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCreateOperationalSolutionSubtaskInput(ctx context.Context, v interface{}) (*model.CreateOperationalSolutionSubtaskInput, error) { + res, err := ec.unmarshalInputCreateOperationalSolutionSubtaskInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNCurrentUser2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐCurrentUser(ctx context.Context, sel ast.SelectionSet, v models.CurrentUser) graphql.Marshaler { + return ec._CurrentUser(ctx, sel, &v) +} + +func (ec *executionContext) marshalNCurrentUser2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐCurrentUser(ctx context.Context, sel ast.SelectionSet, v *models.CurrentUser) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._CurrentUser(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNDataExchangeApproachStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachStatus(ctx context.Context, v interface{}) (models.DataExchangeApproachStatus, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.DataExchangeApproachStatus(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNDataExchangeApproachStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachStatus(ctx context.Context, sel ast.SelectionSet, v models.DataExchangeApproachStatus) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx context.Context, v interface{}) (model.DataForMonitoringType, error) { + var res model.DataForMonitoringType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx context.Context, sel ast.SelectionSet, v model.DataForMonitoringType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNDataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx context.Context, v interface{}) ([]model.DataForMonitoringType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.DataForMonitoringType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNDataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DataForMonitoringType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx context.Context, v interface{}) (models.DataToCollectFromParticipants, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.DataToCollectFromParticipants(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx context.Context, sel ast.SelectionSet, v models.DataToCollectFromParticipants) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNDataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx context.Context, v interface{}) ([]models.DataToCollectFromParticipants, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.DataToCollectFromParticipants, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNDataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DataToCollectFromParticipants) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx context.Context, v interface{}) (model.DataToSendParticipantsType, error) { + var res model.DataToSendParticipantsType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx context.Context, sel ast.SelectionSet, v model.DataToSendParticipantsType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNDataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx context.Context, v interface{}) ([]model.DataToSendParticipantsType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.DataToSendParticipantsType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNDataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DataToSendParticipantsType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx context.Context, v interface{}) (models.DataToSendToParticipants, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.DataToSendToParticipants(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx context.Context, sel ast.SelectionSet, v models.DataToSendToParticipants) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNDataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx context.Context, v interface{}) ([]models.DataToSendToParticipants, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.DataToSendToParticipants, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNDataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DataToSendToParticipants) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNDatabaseOperation2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatabaseOperation(ctx context.Context, v interface{}) (models.DatabaseOperation, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.DatabaseOperation(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNDatabaseOperation2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatabaseOperation(ctx context.Context, sel ast.SelectionSet, v models.DatabaseOperation) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNDateChange2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChange(ctx context.Context, sel ast.SelectionSet, v models.DateChange) graphql.Marshaler { + return ec._DateChange(ctx, sel, &v) +} + +func (ec *executionContext) marshalNDateChange2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DateChange) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDateChange2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChange(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNDateChangeFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeFieldType(ctx context.Context, v interface{}) (models.DateChangeFieldType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.DateChangeFieldType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNDateChangeFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDateChangeFieldType(ctx context.Context, sel ast.SelectionSet, v models.DateChangeFieldType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNDiscussionReply2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx context.Context, sel ast.SelectionSet, v models.DiscussionReply) graphql.Marshaler { + return ec._DiscussionReply(ctx, sel, &v) +} + +func (ec *executionContext) marshalNDiscussionReply2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReplyᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.DiscussionReply) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNDiscussionReply2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionReply(ctx context.Context, sel ast.SelectionSet, v *models.DiscussionReply) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._DiscussionReply(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNDiscussionReplyCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDiscussionReplyCreateInput(ctx context.Context, v interface{}) (model.DiscussionReplyCreateInput, error) { + res, err := ec.unmarshalInputDiscussionReplyCreateInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNDiscussionUserRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx context.Context, v interface{}) (models.DiscussionUserRole, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.DiscussionUserRole(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNDiscussionUserRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx context.Context, sel ast.SelectionSet, v models.DiscussionUserRole) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx context.Context, v interface{}) (models.DocumentType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.DocumentType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNDocumentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v models.DocumentType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNEChimpCRAndTDLS2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐEChimpCRAndTDLS(ctx context.Context, sel ast.SelectionSet, v models.EChimpCRAndTDLS) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EChimpCRAndTDLS(ctx, sel, v) +} + +func (ec *executionContext) marshalNEChimpCRAndTDLS2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐEChimpCRAndTDLSᚄ(ctx context.Context, sel ast.SelectionSet, v []models.EChimpCRAndTDLS) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNEChimpCRAndTDLS2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐEChimpCRAndTDLS(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx context.Context, v interface{}) (model.EvaluationApproachType, error) { + var res model.EvaluationApproachType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx context.Context, sel ast.SelectionSet, v model.EvaluationApproachType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx context.Context, v interface{}) ([]model.EvaluationApproachType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.EvaluationApproachType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.EvaluationApproachType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx context.Context, v interface{}) (models.ExisitingModelLinkFieldType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ExisitingModelLinkFieldType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNExisitingModelLinkFieldType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExisitingModelLinkFieldType(ctx context.Context, sel ast.SelectionSet, v models.ExisitingModelLinkFieldType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNExistingModel2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.ExistingModel) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNExistingModel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModel(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNExistingModel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModel(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModel) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ExistingModel(ctx, sel, v) +} + +func (ec *executionContext) marshalNExistingModelLink2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLink(ctx context.Context, sel ast.SelectionSet, v models.ExistingModelLink) graphql.Marshaler { + return ec._ExistingModelLink(ctx, sel, &v) +} + +func (ec *executionContext) marshalNExistingModelLink2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinkᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.ExistingModelLink) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNExistingModelLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLink(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNExistingModelLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLink(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModelLink) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ExistingModelLink(ctx, sel, v) +} + +func (ec *executionContext) marshalNExistingModelLinks2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx context.Context, sel ast.SelectionSet, v models.ExistingModelLinks) graphql.Marshaler { + return ec._ExistingModelLinks(ctx, sel, &v) +} + +func (ec *executionContext) marshalNExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModelLinks) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ExistingModelLinks(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { + res, err := graphql.UnmarshalFloatContext(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { + res := graphql.MarshalFloatContext(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return graphql.WrapContextMarshaler(ctx, res) +} + +func (ec *executionContext) unmarshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx context.Context, v interface{}) (models.FrequencyType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.FrequencyType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx context.Context, sel ast.SelectionSet, v models.FrequencyType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx context.Context, v interface{}) ([]models.FrequencyType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.FrequencyType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.FrequencyType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx context.Context, v interface{}) (models.FundingSource, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.FundingSource(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx context.Context, sel ast.SelectionSet, v models.FundingSource) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx context.Context, v interface{}) ([]models.FundingSource, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.FundingSource, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx context.Context, sel ast.SelectionSet, v []models.FundingSource) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx context.Context, v interface{}) (model.GainshareArrangementEligibility, error) { + var res model.GainshareArrangementEligibility + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx context.Context, sel ast.SelectionSet, v model.GainshareArrangementEligibility) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx context.Context, v interface{}) ([]model.GainshareArrangementEligibility, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.GainshareArrangementEligibility, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GainshareArrangementEligibility) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx context.Context, v interface{}) (model.GeographyApplication, error) { + var res model.GeographyApplication + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx context.Context, sel ast.SelectionSet, v model.GeographyApplication) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx context.Context, v interface{}) ([]model.GeographyApplication, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.GeographyApplication, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GeographyApplication) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx context.Context, v interface{}) (models.GeographyRegionType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.GeographyRegionType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx context.Context, sel ast.SelectionSet, v models.GeographyRegionType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx context.Context, v interface{}) ([]models.GeographyRegionType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.GeographyRegionType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.GeographyRegionType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx context.Context, v interface{}) (model.GeographyType, error) { + var res model.GeographyType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx context.Context, sel ast.SelectionSet, v model.GeographyType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx context.Context, v interface{}) ([]model.GeographyType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.GeographyType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GeographyType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { + res, err := graphql.UnmarshalInt(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { + res := graphql.MarshalInt(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx context.Context, v interface{}) (model.KeyCharacteristic, error) { + var res model.KeyCharacteristic + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx context.Context, sel ast.SelectionSet, v model.KeyCharacteristic) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx context.Context, v interface{}) ([]model.KeyCharacteristic, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.KeyCharacteristic, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx context.Context, sel ast.SelectionSet, v []model.KeyCharacteristic) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNLaunchDarklySettings2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLaunchDarklySettings(ctx context.Context, sel ast.SelectionSet, v model.LaunchDarklySettings) graphql.Marshaler { + return ec._LaunchDarklySettings(ctx, sel, &v) +} + +func (ec *executionContext) marshalNLaunchDarklySettings2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLaunchDarklySettings(ctx context.Context, sel ast.SelectionSet, v *model.LaunchDarklySettings) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._LaunchDarklySettings(ctx, sel, v) +} + +func (ec *executionContext) marshalNLinkedExistingModel2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLinkedExistingModel(ctx context.Context, sel ast.SelectionSet, v models.LinkedExistingModel) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._LinkedExistingModel(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx context.Context, v interface{}) (models.LockableSection, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.LockableSection(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNLockableSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐLockableSection(ctx context.Context, sel ast.SelectionSet, v models.LockableSection) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNLockableSectionLockStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatus(ctx context.Context, sel ast.SelectionSet, v model.LockableSectionLockStatus) graphql.Marshaler { + return ec._LockableSectionLockStatus(ctx, sel, &v) +} + +func (ec *executionContext) marshalNLockableSectionLockStatus2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.LockableSectionLockStatus) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNLockableSectionLockStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatus(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNLockableSectionLockStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatus(ctx context.Context, sel ast.SelectionSet, v *model.LockableSectionLockStatus) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._LockableSectionLockStatus(ctx, sel, v) +} + +func (ec *executionContext) marshalNLockableSectionLockStatusChanged2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusChanged(ctx context.Context, sel ast.SelectionSet, v model.LockableSectionLockStatusChanged) graphql.Marshaler { + return ec._LockableSectionLockStatusChanged(ctx, sel, &v) +} + +func (ec *executionContext) marshalNLockableSectionLockStatusChanged2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐLockableSectionLockStatusChanged(ctx context.Context, sel ast.SelectionSet, v *model.LockableSectionLockStatusChanged) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._LockableSectionLockStatusChanged(ctx, sel, v) +} + +func (ec *executionContext) marshalNMTOCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx context.Context, sel ast.SelectionSet, v models.MTOCategory) graphql.Marshaler { + return ec._MTOCategory(ctx, sel, &v) +} + +func (ec *executionContext) marshalNMTOCategory2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategoryᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOCategory) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNMTOCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCategory(ctx context.Context, sel ast.SelectionSet, v *models.MTOCategory) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._MTOCategory(ctx, sel, v) +} + +func (ec *executionContext) marshalNMTOCommonMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOCommonMilestone) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMTOCommonMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestone(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNMTOCommonMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestone(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonMilestone) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._MTOCommonMilestone(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNMTOCommonMilestoneKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx context.Context, v interface{}) (models.MTOCommonMilestoneKey, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTOCommonMilestoneKey(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMTOCommonMilestoneKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx context.Context, sel ast.SelectionSet, v models.MTOCommonMilestoneKey) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNMTOCommonSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOCommonSolution) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMTOCommonSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolution(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNMTOCommonSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolution(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonSolution) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._MTOCommonSolution(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNMTOCommonSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx context.Context, v interface{}) (models.MTOCommonSolutionKey, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTOCommonSolutionKey(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMTOCommonSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx context.Context, sel ast.SelectionSet, v models.MTOCommonSolutionKey) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNMTOCommonSolutionSubject2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubject(ctx context.Context, v interface{}) (models.MTOCommonSolutionSubject, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTOCommonSolutionSubject(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMTOCommonSolutionSubject2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubject(ctx context.Context, sel ast.SelectionSet, v models.MTOCommonSolutionSubject) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNMTOCommonSolutionSubject2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubjectᚄ(ctx context.Context, v interface{}) ([]models.MTOCommonSolutionSubject, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.MTOCommonSolutionSubject, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNMTOCommonSolutionSubject2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubject(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNMTOCommonSolutionSubject2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubjectᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MTOCommonSolutionSubject) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMTOCommonSolutionSubject2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionSubject(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx context.Context, v interface{}) (models.MTOFacilitator, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTOFacilitator(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx context.Context, sel ast.SelectionSet, v models.MTOFacilitator) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx context.Context, v interface{}) ([]models.MTOFacilitator, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.MTOFacilitator, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MTOFacilitator) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNMTOInfo2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOInfo(ctx context.Context, sel ast.SelectionSet, v models.MTOInfo) graphql.Marshaler { + return ec._MTOInfo(ctx, sel, &v) +} + +func (ec *executionContext) marshalNMTOInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOInfo(ctx context.Context, sel ast.SelectionSet, v *models.MTOInfo) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._MTOInfo(ctx, sel, v) +} + +func (ec *executionContext) marshalNMTOMilestone2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx context.Context, sel ast.SelectionSet, v models.MTOMilestone) graphql.Marshaler { + return ec._MTOMilestone(ctx, sel, &v) +} + +func (ec *executionContext) marshalNMTOMilestone2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOMilestone) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNMTOMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestone(ctx context.Context, sel ast.SelectionSet, v *models.MTOMilestone) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._MTOMilestone(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNMTOMilestoneChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) unmarshalNMTOMilestoneStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx context.Context, v interface{}) (models.MTOMilestoneStatus, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTOMilestoneStatus(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMTOMilestoneStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx context.Context, sel ast.SelectionSet, v models.MTOMilestoneStatus) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, v interface{}) (models.MTORiskIndicator, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTORiskIndicator(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, sel ast.SelectionSet, v models.MTORiskIndicator) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNMTOSolution2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx context.Context, sel ast.SelectionSet, v models.MTOSolution) graphql.Marshaler { + return ec._MTOSolution(ctx, sel, &v) +} + +func (ec *executionContext) marshalNMTOSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOSolution) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNMTOSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolution(ctx context.Context, sel ast.SelectionSet, v *models.MTOSolution) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._MTOSolution(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNMTOSolutionChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) unmarshalNMTOSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx context.Context, v interface{}) (models.MTOSolutionStatus, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTOSolutionStatus(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMTOSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx context.Context, sel ast.SelectionSet, v models.MTOSolutionStatus) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNMTOSolutionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx context.Context, v interface{}) (models.MTOSolutionType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTOSolutionType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMTOSolutionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx context.Context, sel ast.SelectionSet, v models.MTOSolutionType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNMTOStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOStatus(ctx context.Context, v interface{}) (models.MTOStatus, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTOStatus(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMTOStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOStatus(ctx context.Context, sel ast.SelectionSet, v models.MTOStatus) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNMTOSubcategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategory(ctx context.Context, sel ast.SelectionSet, v models.MTOSubcategory) graphql.Marshaler { + return ec._MTOSubcategory(ctx, sel, &v) +} + +func (ec *executionContext) marshalNMTOSubcategory2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategoryᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.MTOSubcategory) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMTOSubcategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategory(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNMTOSubcategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSubcategory(ctx context.Context, sel ast.SelectionSet, v *models.MTOSubcategory) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._MTOSubcategory(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + res, err := graphql.UnmarshalMap(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + res := graphql.MarshalMap(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNMintUses2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUses(ctx context.Context, v interface{}) (model.MintUses, error) { + var res model.MintUses + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMintUses2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUses(ctx context.Context, sel ast.SelectionSet, v model.MintUses) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNModelBySolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelBySolutionStatus(ctx context.Context, v interface{}) (models.ModelBySolutionStatus, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ModelBySolutionStatus(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNModelBySolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelBySolutionStatus(ctx context.Context, sel ast.SelectionSet, v models.ModelBySolutionStatus) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx context.Context, v interface{}) (models.ModelCategory, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ModelCategory(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx context.Context, sel ast.SelectionSet, v models.ModelCategory) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx context.Context, v interface{}) ([]models.ModelCategory, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ModelCategory, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelCategory) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx context.Context, v interface{}) (model.ModelLearningSystemType, error) { + var res model.ModelLearningSystemType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx context.Context, sel ast.SelectionSet, v model.ModelLearningSystemType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx context.Context, v interface{}) ([]model.ModelLearningSystemType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ModelLearningSystemType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ModelLearningSystemType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNModelPhase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx context.Context, v interface{}) (models.ModelPhase, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ModelPhase(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNModelPhase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx context.Context, sel ast.SelectionSet, v models.ModelPhase) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNModelPlan2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx context.Context, sel ast.SelectionSet, v models.ModelPlan) graphql.Marshaler { + return ec._ModelPlan(ctx, sel, &v) +} + +func (ec *executionContext) marshalNModelPlan2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.ModelPlan) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx context.Context, sel ast.SelectionSet, v *models.ModelPlan) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ModelPlan(ctx, sel, v) +} + +func (ec *executionContext) marshalNModelPlanAndPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanAndPossibleOperationalSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.ModelPlanAndPossibleOperationalSolution) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNModelPlanAndPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanAndPossibleOperationalSolution(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNModelPlanAndPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlanAndPossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, v *models.ModelPlanAndPossibleOperationalSolution) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ModelPlanAndPossibleOperationalSolution(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNModelPlanChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) unmarshalNModelPlanFilter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelPlanFilter(ctx context.Context, v interface{}) (model.ModelPlanFilter, error) { + var res model.ModelPlanFilter + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNModelPlanFilter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelPlanFilter(ctx context.Context, sel ast.SelectionSet, v model.ModelPlanFilter) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx context.Context, v interface{}) (models.ModelStatus, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ModelStatus(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx context.Context, sel ast.SelectionSet, v models.ModelStatus) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNModelStatus2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatusᚄ(ctx context.Context, v interface{}) ([]models.ModelStatus, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ModelStatus, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNModelStatus2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelStatus) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNModelStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx context.Context, v interface{}) (models.ModelType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ModelType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx context.Context, sel ast.SelectionSet, v models.ModelType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx context.Context, v interface{}) ([]models.ModelType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ModelType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNModelsToOperationMatrix2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelsToOperationMatrix(ctx context.Context, sel ast.SelectionSet, v models.ModelsToOperationMatrix) graphql.Marshaler { + return ec._ModelsToOperationMatrix(ctx, sel, &v) +} + +func (ec *executionContext) marshalNModelsToOperationMatrix2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelsToOperationMatrix(ctx context.Context, sel ast.SelectionSet, v *models.ModelsToOperationMatrix) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ModelsToOperationMatrix(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx context.Context, v interface{}) (model.MonitoringFileType, error) { + var res model.MonitoringFileType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx context.Context, sel ast.SelectionSet, v model.MonitoringFileType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx context.Context, v interface{}) ([]model.MonitoringFileType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.MonitoringFileType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MonitoringFileType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx context.Context, v interface{}) (models.MultiSourceDataToCollect, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MultiSourceDataToCollect(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx context.Context, sel ast.SelectionSet, v models.MultiSourceDataToCollect) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx context.Context, v interface{}) ([]models.MultiSourceDataToCollect, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.MultiSourceDataToCollect, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MultiSourceDataToCollect) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNNDAInfo2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNDAInfo(ctx context.Context, sel ast.SelectionSet, v model.NDAInfo) graphql.Marshaler { + return ec._NDAInfo(ctx, sel, &v) +} + +func (ec *executionContext) marshalNNDAInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNDAInfo(ctx context.Context, sel ast.SelectionSet, v *model.NDAInfo) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._NDAInfo(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx context.Context, v interface{}) (model.NonClaimsBasedPayType, error) { + var res model.NonClaimsBasedPayType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx context.Context, sel ast.SelectionSet, v model.NonClaimsBasedPayType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNNonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx context.Context, v interface{}) ([]model.NonClaimsBasedPayType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.NonClaimsBasedPayType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNNonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.NonClaimsBasedPayType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNOpSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx context.Context, v interface{}) (models.OpSolutionStatus, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.OpSolutionStatus(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNOpSolutionStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx context.Context, sel ast.SelectionSet, v models.OpSolutionStatus) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNOperationalNeed2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx context.Context, sel ast.SelectionSet, v models.OperationalNeed) graphql.Marshaler { + return ec._OperationalNeed(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOperationalNeed2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationalNeed) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeed(ctx context.Context, sel ast.SelectionSet, v *models.OperationalNeed) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OperationalNeed(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNOperationalNeedKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx context.Context, v interface{}) (models.OperationalNeedKey, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.OperationalNeedKey(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNOperationalNeedKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx context.Context, sel ast.SelectionSet, v models.OperationalNeedKey) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNOperationalSolution2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx context.Context, sel ast.SelectionSet, v models.OperationalSolution) graphql.Marshaler { + return ec._OperationalSolution(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationalSolution) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolution(ctx context.Context, sel ast.SelectionSet, v *models.OperationalSolution) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OperationalSolution(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNOperationalSolutionChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) unmarshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx context.Context, v interface{}) (models.OperationalSolutionKey, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.OperationalSolutionKey(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx context.Context, sel ast.SelectionSet, v models.OperationalSolutionKey) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx context.Context, v interface{}) ([]models.OperationalSolutionKey, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.OperationalSolutionKey, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx context.Context, sel ast.SelectionSet, v []models.OperationalSolutionKey) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationalSolutionSubtask) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNOperationalSolutionSubtask2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtask(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNOperationalSolutionSubtask2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtask(ctx context.Context, sel ast.SelectionSet, v *models.OperationalSolutionSubtask) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OperationalSolutionSubtask(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNOperationalSolutionSubtaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskStatus(ctx context.Context, v interface{}) (models.OperationalSolutionSubtaskStatus, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.OperationalSolutionSubtaskStatus(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNOperationalSolutionSubtaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskStatus(ctx context.Context, sel ast.SelectionSet, v models.OperationalSolutionSubtaskStatus) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx context.Context, v interface{}) (model.ParticipantCommunicationType, error) { + var res model.ParticipantCommunicationType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantCommunicationType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantCommunicationType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantCommunicationType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantCommunicationType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx context.Context, v interface{}) (model.ParticipantRequireFinancialGuaranteeType, error) { + var res model.ParticipantRequireFinancialGuaranteeType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantRequireFinancialGuaranteeType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantRequireFinancialGuaranteeType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantRequireFinancialGuaranteeType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantRequireFinancialGuaranteeType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx context.Context, v interface{}) (models.ParticipantRiskType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ParticipantRiskType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx context.Context, sel ast.SelectionSet, v models.ParticipantRiskType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx context.Context, v interface{}) ([]models.ParticipantRiskType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ParticipantRiskType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ParticipantRiskType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx context.Context, v interface{}) (model.ParticipantSelectionType, error) { + var res model.ParticipantSelectionType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantSelectionType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantSelectionType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantSelectionType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantSelectionType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx context.Context, v interface{}) (model.ParticipantsIDType, error) { + var res model.ParticipantsIDType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantsIDType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantsIDType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantsIDType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantsIDType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx context.Context, v interface{}) (model.ParticipantsType, error) { + var res model.ParticipantsType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx context.Context, sel ast.SelectionSet, v model.ParticipantsType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantsType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantsType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantsType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx context.Context, v interface{}) (models.PayRecipient, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.PayRecipient(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx context.Context, sel ast.SelectionSet, v models.PayRecipient) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx context.Context, v interface{}) ([]models.PayRecipient, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.PayRecipient, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx context.Context, sel ast.SelectionSet, v []models.PayRecipient) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx context.Context, v interface{}) (models.PayType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.PayType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx context.Context, sel ast.SelectionSet, v models.PayType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx context.Context, v interface{}) ([]models.PayType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.PayType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.PayType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNPlanBasics2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBasics(ctx context.Context, sel ast.SelectionSet, v models.PlanBasics) graphql.Marshaler { + return ec._PlanBasics(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanBasics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBasics(ctx context.Context, sel ast.SelectionSet, v *models.PlanBasics) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanBasics(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanBasicsChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) marshalNPlanBeneficiaries2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBeneficiaries(ctx context.Context, sel ast.SelectionSet, v models.PlanBeneficiaries) graphql.Marshaler { + return ec._PlanBeneficiaries(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanBeneficiaries2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanBeneficiaries(ctx context.Context, sel ast.SelectionSet, v *models.PlanBeneficiaries) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanBeneficiaries(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanBeneficiariesChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) marshalNPlanCR2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx context.Context, sel ast.SelectionSet, v models.PlanCR) graphql.Marshaler { + return ec._PlanCR(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanCR2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCRᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanCR) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNPlanCR2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCR(ctx context.Context, sel ast.SelectionSet, v *models.PlanCR) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanCR(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanCRChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) unmarshalNPlanCRCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanCRCreateInput(ctx context.Context, v interface{}) (model.PlanCRCreateInput, error) { + res, err := ec.unmarshalInputPlanCRCreateInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNPlanCollaborator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx context.Context, sel ast.SelectionSet, v models.PlanCollaborator) graphql.Marshaler { + return ec._PlanCollaborator(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanCollaborator2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaboratorᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanCollaborator) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNPlanCollaborator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanCollaborator(ctx context.Context, sel ast.SelectionSet, v *models.PlanCollaborator) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanCollaborator(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanCollaboratorCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanCollaboratorCreateInput(ctx context.Context, v interface{}) (model.PlanCollaboratorCreateInput, error) { + res, err := ec.unmarshalInputPlanCollaboratorCreateInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNPlanDataExchangeApproach2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx context.Context, sel ast.SelectionSet, v models.PlanDataExchangeApproach) graphql.Marshaler { + return ec._PlanDataExchangeApproach(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanDataExchangeApproach2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDataExchangeApproach(ctx context.Context, sel ast.SelectionSet, v *models.PlanDataExchangeApproach) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanDataExchangeApproach(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanDataExchangeApproachChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) marshalNPlanDiscussion2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx context.Context, sel ast.SelectionSet, v models.PlanDiscussion) graphql.Marshaler { + return ec._PlanDiscussion(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanDiscussion2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanDiscussion) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNPlanDiscussion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDiscussion(ctx context.Context, sel ast.SelectionSet, v *models.PlanDiscussion) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanDiscussion(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanDiscussionCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDiscussionCreateInput(ctx context.Context, v interface{}) (model.PlanDiscussionCreateInput, error) { + res, err := ec.unmarshalInputPlanDiscussionCreateInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNPlanDocument2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx context.Context, sel ast.SelectionSet, v models.PlanDocument) graphql.Marshaler { + return ec._PlanDocument(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanDocument2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanDocument) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNPlanDocument2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocument(ctx context.Context, sel ast.SelectionSet, v *models.PlanDocument) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanDocument(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanDocumentInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDocumentInput(ctx context.Context, v interface{}) (model.PlanDocumentInput, error) { + res, err := ec.unmarshalInputPlanDocumentInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNPlanDocumentLinkInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanDocumentLinkInput(ctx context.Context, v interface{}) (model.PlanDocumentLinkInput, error) { + res, err := ec.unmarshalInputPlanDocumentLinkInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNPlanDocumentSolutionLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentSolutionLink(ctx context.Context, sel ast.SelectionSet, v *models.PlanDocumentSolutionLink) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanDocumentSolutionLink(ctx, sel, v) +} + +func (ec *executionContext) marshalNPlanFavorite2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanFavorite(ctx context.Context, sel ast.SelectionSet, v models.PlanFavorite) graphql.Marshaler { + return ec._PlanFavorite(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanFavorite2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanFavorite(ctx context.Context, sel ast.SelectionSet, v *models.PlanFavorite) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanFavorite(ctx, sel, v) +} + +func (ec *executionContext) marshalNPlanGeneralCharacteristics2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanGeneralCharacteristics(ctx context.Context, sel ast.SelectionSet, v models.PlanGeneralCharacteristics) graphql.Marshaler { + return ec._PlanGeneralCharacteristics(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanGeneralCharacteristics2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanGeneralCharacteristics(ctx context.Context, sel ast.SelectionSet, v *models.PlanGeneralCharacteristics) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanGeneralCharacteristics(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanGeneralCharacteristicsChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) marshalNPlanOpsEvalAndLearning2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanOpsEvalAndLearning(ctx context.Context, sel ast.SelectionSet, v models.PlanOpsEvalAndLearning) graphql.Marshaler { + return ec._PlanOpsEvalAndLearning(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanOpsEvalAndLearning2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanOpsEvalAndLearning(ctx context.Context, sel ast.SelectionSet, v *models.PlanOpsEvalAndLearning) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanOpsEvalAndLearning(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanOpsEvalAndLearningChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) marshalNPlanParticipantsAndProviders2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanParticipantsAndProviders(ctx context.Context, sel ast.SelectionSet, v models.PlanParticipantsAndProviders) graphql.Marshaler { + return ec._PlanParticipantsAndProviders(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanParticipantsAndProviders2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanParticipantsAndProviders(ctx context.Context, sel ast.SelectionSet, v *models.PlanParticipantsAndProviders) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanParticipantsAndProviders(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanParticipantsAndProvidersChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) marshalNPlanPayments2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx context.Context, sel ast.SelectionSet, v models.PlanPayments) graphql.Marshaler { + return ec._PlanPayments(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanPayments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanPayments(ctx context.Context, sel ast.SelectionSet, v *models.PlanPayments) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanPayments(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanPaymentsChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) marshalNPlanTDL2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx context.Context, sel ast.SelectionSet, v models.PlanTDL) graphql.Marshaler { + return ec._PlanTDL(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPlanTDL2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDLᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanTDL) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNPlanTDL2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanTDL(ctx context.Context, sel ast.SelectionSet, v *models.PlanTDL) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PlanTDL(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPlanTDLChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) unmarshalNPlanTDLCreateInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPlanTDLCreateInput(ctx context.Context, v interface{}) (model.PlanTDLCreateInput, error) { + res, err := ec.unmarshalInputPlanTDLCreateInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNPossibleOperationalNeed2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalNeedᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PossibleOperationalNeed) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPossibleOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalNeed(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNPossibleOperationalNeed2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalNeed(ctx context.Context, sel ast.SelectionSet, v *models.PossibleOperationalNeed) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PossibleOperationalNeed(ctx, sel, v) +} + +func (ec *executionContext) marshalNPossibleOperationalSolution2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, v models.PossibleOperationalSolution) graphql.Marshaler { + return ec._PossibleOperationalSolution(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPossibleOperationalSolution2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PossibleOperationalSolution) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolution(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNPossibleOperationalSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolution(ctx context.Context, sel ast.SelectionSet, v *models.PossibleOperationalSolution) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PossibleOperationalSolution(ctx, sel, v) +} + +func (ec *executionContext) marshalNPossibleOperationalSolutionContact2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContactᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PossibleOperationalSolutionContact) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPossibleOperationalSolutionContact2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContact(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNPossibleOperationalSolutionContact2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContact(ctx context.Context, sel ast.SelectionSet, v *models.PossibleOperationalSolutionContact) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PossibleOperationalSolutionContact(ctx, sel, v) +} + +func (ec *executionContext) marshalNPrepareForClearance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearance(ctx context.Context, sel ast.SelectionSet, v model.PrepareForClearance) graphql.Marshaler { + return ec._PrepareForClearance(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPrepareForClearance2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearance(ctx context.Context, sel ast.SelectionSet, v *model.PrepareForClearance) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PrepareForClearance(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNPrepareForClearanceStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearanceStatus(ctx context.Context, v interface{}) (model.PrepareForClearanceStatus, error) { + var res model.PrepareForClearanceStatus + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNPrepareForClearanceStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPrepareForClearanceStatus(ctx context.Context, sel ast.SelectionSet, v model.PrepareForClearanceStatus) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx context.Context, v interface{}) (model.ProviderAddType, error) { + var res model.ProviderAddType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx context.Context, sel ast.SelectionSet, v model.ProviderAddType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx context.Context, v interface{}) ([]model.ProviderAddType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ProviderAddType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProviderAddType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx context.Context, v interface{}) (model.ProviderLeaveType, error) { + var res model.ProviderLeaveType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx context.Context, sel ast.SelectionSet, v model.ProviderLeaveType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx context.Context, v interface{}) ([]model.ProviderLeaveType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ProviderLeaveType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProviderLeaveType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNReportAProblemInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemInput(ctx context.Context, v interface{}) (model.ReportAProblemInput, error) { + res, err := ec.unmarshalInputReportAProblemInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx context.Context, v interface{}) (model.Role, error) { + var res model.Role + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx context.Context, sel ast.SelectionSet, v model.Role) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx context.Context, v interface{}) ([]model.Role, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.Role, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []model.Role) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐRole(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx context.Context, v interface{}) (model.SelectionMethodType, error) { + var res model.SelectionMethodType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx context.Context, sel ast.SelectionSet, v model.SelectionMethodType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx context.Context, v interface{}) ([]model.SelectionMethodType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.SelectionMethodType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SelectionMethodType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNSendFeedbackEmailInput2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSendFeedbackEmailInput(ctx context.Context, v interface{}) (model.SendFeedbackEmailInput, error) { + res, err := ec.unmarshalInputSendFeedbackEmailInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNSortDirection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐSortDirection(ctx context.Context, v interface{}) (models.SortDirection, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.SortDirection(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNSortDirection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐSortDirection(ctx context.Context, sel ast.SelectionSet, v models.SortDirection) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx context.Context, v interface{}) (model.StakeholdersType, error) { + var res model.StakeholdersType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx context.Context, sel ast.SelectionSet, v model.StakeholdersType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx context.Context, v interface{}) ([]model.StakeholdersType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.StakeholdersType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.StakeholdersType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx context.Context, v interface{}) (models.StatesAndTerritories, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.StatesAndTerritories(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx context.Context, sel ast.SelectionSet, v models.StatesAndTerritories) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx context.Context, v interface{}) ([]models.StatesAndTerritories, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.StatesAndTerritories, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx context.Context, sel ast.SelectionSet, v []models.StatesAndTerritories) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNString2string(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { + res, err := graphql.UnmarshalString(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + res := graphql.MarshalString(*v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx context.Context, v interface{}) (models.TableName, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.TableName(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx context.Context, sel ast.SelectionSet, v models.TableName) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx context.Context, v interface{}) ([]models.TableName, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.TableName, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNTableName2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableNameᚄ(ctx context.Context, sel ast.SelectionSet, v []models.TableName) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNTableName2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNTag2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Tag) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNTag2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTag(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNTag2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTag(ctx context.Context, sel ast.SelectionSet, v *models.Tag) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Tag(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNTagType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagType(ctx context.Context, v interface{}) (models.TagType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.TagType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTagType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTagType(ctx context.Context, sel ast.SelectionSet, v models.TagType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNTaggedHTML2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedHTML(ctx context.Context, v interface{}) (models.TaggedHTML, error) { + var res models.TaggedHTML + err := res.UnmarshalGQLContext(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTaggedHTML2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedHTML(ctx context.Context, sel ast.SelectionSet, v models.TaggedHTML) graphql.Marshaler { + return graphql.WrapContextMarshaler(ctx, v) +} + +func (ec *executionContext) unmarshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx context.Context, v interface{}) (models.TaskStatus, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.TaskStatus(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTaskStatus2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskStatus(ctx context.Context, sel ast.SelectionSet, v models.TaskStatus) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNTeamRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRole(ctx context.Context, v interface{}) (models.TeamRole, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.TeamRole(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTeamRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRole(ctx context.Context, sel ast.SelectionSet, v models.TeamRole) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx context.Context, v interface{}) ([]models.TeamRole, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.TeamRole, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNTeamRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRole(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNTeamRole2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []models.TeamRole) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNTeamRole2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTeamRole(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { + res, err := graphql.UnmarshalTime(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { + res := graphql.MarshalTime(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { + res, err := graphql.UnmarshalTime(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + res := graphql.MarshalTime(*v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNTranslatedAudit2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAudit(ctx context.Context, sel ast.SelectionSet, v *models.TranslatedAudit) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TranslatedAudit(ctx, sel, v) +} + +func (ec *executionContext) marshalNTranslatedAuditField2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.TranslatedAuditField) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNTranslatedAuditField2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditField(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNTranslatedAuditField2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditField(ctx context.Context, sel ast.SelectionSet, v *models.TranslatedAuditField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TranslatedAuditField(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx context.Context, v interface{}) (models.TranslationDataType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.TranslationDataType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTranslationDataType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationDataType(ctx context.Context, sel ast.SelectionSet, v models.TranslationDataType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx context.Context, sel ast.SelectionSet, v models.TranslationField) graphql.Marshaler { + return ec._TranslationField(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithOptions) graphql.Marshaler { + return ec._TranslationFieldWithOptions(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTranslationFieldWithOptionsAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndChildren(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithOptionsAndChildren) graphql.Marshaler { + return ec._TranslationFieldWithOptionsAndChildren(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTranslationFieldWithOptionsAndParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptionsAndParent(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithOptionsAndParent) graphql.Marshaler { + return ec._TranslationFieldWithOptionsAndParent(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTranslationFieldWithParent2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParent(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithParent) graphql.Marshaler { + return ec._TranslationFieldWithParent(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTranslationFieldWithParentAndChildren2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithParentAndChildren(ctx context.Context, sel ast.SelectionSet, v models.TranslationFieldWithParentAndChildren) graphql.Marshaler { + return ec._TranslationFieldWithParentAndChildren(ctx, sel, &v) +} + +func (ec *executionContext) unmarshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx context.Context, v interface{}) (models.TranslationFormType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.TranslationFormType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTranslationFormType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFormType(ctx context.Context, sel ast.SelectionSet, v models.TranslationFormType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (uuid.UUID, error) { + res, err := models.UnmarshalUUID(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, sel ast.SelectionSet, v uuid.UUID) graphql.Marshaler { + res := models.MarshalUUID(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v interface{}) ([]uuid.UUID, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]uuid.UUID, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, sel ast.SelectionSet, v []uuid.UUID) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNUpdateOperationalSolutionSubtaskChangesInput2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) unmarshalNUpdateOperationalSolutionSubtaskInput2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐUpdateOperationalSolutionSubtaskInputᚄ(ctx context.Context, v interface{}) ([]*model.UpdateOperationalSolutionSubtaskInput, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.UpdateOperationalSolutionSubtaskInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNUpdateOperationalSolutionSubtaskInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐUpdateOperationalSolutionSubtaskInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalNUpdateOperationalSolutionSubtaskInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐUpdateOperationalSolutionSubtaskInput(ctx context.Context, v interface{}) (*model.UpdateOperationalSolutionSubtaskInput, error) { + res, err := ec.unmarshalInputUpdateOperationalSolutionSubtaskInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (graphql.Upload, error) { + res, err := graphql.UnmarshalUpload(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v graphql.Upload) graphql.Marshaler { + res := graphql.MarshalUpload(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNUserAccount2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx context.Context, sel ast.SelectionSet, v authentication.UserAccount) graphql.Marshaler { + return ec._UserAccount(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx context.Context, sel ast.SelectionSet, v *authentication.UserAccount) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserAccount(ctx, sel, v) +} + +func (ec *executionContext) marshalNUserInfo2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.UserInfo) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNUserInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserInfo(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNUserInfo2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserInfo(ctx context.Context, sel ast.SelectionSet, v *models.UserInfo) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserInfo(ctx, sel, v) +} + +func (ec *executionContext) marshalNUserNotification2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotification(ctx context.Context, sel ast.SelectionSet, v models.UserNotification) graphql.Marshaler { + return ec._UserNotification(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserNotification2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.UserNotification) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNUserNotification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotification(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNUserNotification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotification(ctx context.Context, sel ast.SelectionSet, v *models.UserNotification) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserNotification(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx context.Context, v interface{}) (models.UserNotificationPreferenceFlag, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.UserNotificationPreferenceFlag(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx context.Context, sel ast.SelectionSet, v models.UserNotificationPreferenceFlag) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx context.Context, v interface{}) ([]models.UserNotificationPreferenceFlag, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.UserNotificationPreferenceFlag, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx context.Context, sel ast.SelectionSet, v []models.UserNotificationPreferenceFlag) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalNUserNotificationPreferences2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferences(ctx context.Context, sel ast.SelectionSet, v models.UserNotificationPreferences) graphql.Marshaler { + return ec._UserNotificationPreferences(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserNotificationPreferences2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferences(ctx context.Context, sel ast.SelectionSet, v *models.UserNotificationPreferences) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserNotificationPreferences(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNUserNotificationPreferencesChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) marshalNUserNotifications2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotifications(ctx context.Context, sel ast.SelectionSet, v models.UserNotifications) graphql.Marshaler { + return ec._UserNotifications(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserNotifications2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotifications(ctx context.Context, sel ast.SelectionSet, v *models.UserNotifications) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserNotifications(ctx, sel, v) +} + +func (ec *executionContext) marshalNUserViewCustomization2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserViewCustomization(ctx context.Context, sel ast.SelectionSet, v models.UserViewCustomization) graphql.Marshaler { + return ec._UserViewCustomization(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserViewCustomization2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserViewCustomization(ctx context.Context, sel ast.SelectionSet, v *models.UserViewCustomization) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserViewCustomization(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNUserViewCustomizationChanges2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + return v.(map[string]interface{}), nil +} + +func (ec *executionContext) unmarshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx context.Context, v interface{}) (models.ViewCustomizationType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.ViewCustomizationType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx context.Context, sel ast.SelectionSet, v models.ViewCustomizationType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx context.Context, v interface{}) ([]models.ViewCustomizationType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ViewCustomizationType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ViewCustomizationType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx context.Context, v interface{}) (model.WaiverType, error) { + var res model.WaiverType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx context.Context, sel ast.SelectionSet, v model.WaiverType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx context.Context, v interface{}) ([]model.WaiverType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.WaiverType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.WaiverType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx context.Context, v interface{}) (models.YesNoType, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.YesNoType(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx context.Context, sel ast.SelectionSet, v models.YesNoType) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx context.Context, v interface{}) ([]models.YesNoType, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.YesNoType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.YesNoType) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { + return ec.___Directive(ctx, sel, &v) +} + +func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { + return ec.___EnumValue(ctx, sel, &v) +} + +func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { + return ec.___Field(ctx, sel, &v) +} + +func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { + return ec.___InputValue(ctx, sel, &v) +} + +func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { + return ec.___Type(ctx, sel, &v) +} + +func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec.___Type(ctx, sel, v) +} + +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalOAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx context.Context, v interface{}) ([]model.AgencyOrStateHelpType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.AgencyOrStateHelpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOAgencyOrStateHelpType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AgencyOrStateHelpType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAgencyOrStateHelpType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgencyOrStateHelpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx context.Context, v interface{}) ([]model.AgreementType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.AgreementType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOAgreementType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AgreementType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAgreementType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAgreementType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx context.Context, v interface{}) ([]model.AlternativePaymentModelType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.AlternativePaymentModelType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOAlternativePaymentModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AlternativePaymentModelType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAlternativePaymentModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAlternativePaymentModelType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalOAnalyzedCrTdls2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedCrTdls(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedCrTdls) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AnalyzedCrTdls(ctx, sel, v) +} + +func (ec *executionContext) marshalOAnalyzedDocuments2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedDocuments(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedDocuments) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AnalyzedDocuments(ctx, sel, v) +} + +func (ec *executionContext) marshalOAnalyzedModelLeads2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelLeads(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedModelLeads) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AnalyzedModelLeads(ctx, sel, v) +} + +func (ec *executionContext) marshalOAnalyzedModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedModelPlan(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedModelPlan) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AnalyzedModelPlan(ctx, sel, v) +} + +func (ec *executionContext) marshalOAnalyzedPlanDiscussions2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedPlanDiscussions(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedPlanDiscussions) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AnalyzedPlanDiscussions(ctx, sel, v) +} + +func (ec *executionContext) marshalOAnalyzedPlanSections2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnalyzedPlanSections(ctx context.Context, sel ast.SelectionSet, v *models.AnalyzedPlanSections) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AnalyzedPlanSections(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx context.Context, v interface{}) ([]models.AnticipatedMultiPayerDataAvailabilityUseCase, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.AnticipatedMultiPayerDataAvailabilityUseCase, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOAnticipatedMultiPayerDataAvailabilityUseCase2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCaseᚄ(ctx context.Context, sel ast.SelectionSet, v []models.AnticipatedMultiPayerDataAvailabilityUseCase) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAnticipatedMultiPayerDataAvailabilityUseCase2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐAnticipatedMultiPayerDataAvailabilityUseCase(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (interface{}, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalAny(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.SelectionSet, v interface{}) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalAny(v) + return res +} + +func (ec *executionContext) unmarshalOAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx context.Context, v interface{}) ([]model.AuthorityAllowance, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.AuthorityAllowance, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOAuthorityAllowance2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowanceᚄ(ctx context.Context, sel ast.SelectionSet, v []model.AuthorityAllowance) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAuthorityAllowance2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐAuthorityAllowance(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOBenchmarkForPerformanceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐBenchmarkForPerformanceType(ctx context.Context, v interface{}) (*models.BenchmarkForPerformanceType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.BenchmarkForPerformanceType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOBenchmarkForPerformanceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐBenchmarkForPerformanceType(ctx context.Context, sel ast.SelectionSet, v *models.BenchmarkForPerformanceType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx context.Context, v interface{}) ([]model.BeneficiariesType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.BeneficiariesType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOBeneficiariesType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.BeneficiariesType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNBeneficiariesType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐBeneficiariesType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { + res, err := graphql.UnmarshalBoolean(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { + res := graphql.MarshalBoolean(v) + return res +} + +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalBoolean(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalBoolean(*v) + return res +} + +func (ec *executionContext) unmarshalOCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx context.Context, v interface{}) ([]model.CMMIGroup, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.CMMIGroup, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOCMMIGroup2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroupᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CMMIGroup) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNCMMIGroup2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMMIGroup(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx context.Context, v interface{}) ([]model.CMSCenter, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.CMSCenter, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOCMSCenter2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenterᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CMSCenter) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNCMSCenter2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCMSCenter(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx context.Context, v interface{}) ([]model.CcmInvolvmentType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.CcmInvolvmentType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOCcmInvolvmentType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.CcmInvolvmentType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNCcmInvolvmentType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐCcmInvolvmentType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx context.Context, v interface{}) ([]models.ClaimsBasedPayType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ClaimsBasedPayType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ClaimsBasedPayType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐClaimsBasedPayType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOComplexityCalculationLevelType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐComplexityCalculationLevelType(ctx context.Context, v interface{}) (*models.ComplexityCalculationLevelType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.ComplexityCalculationLevelType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOComplexityCalculationLevelType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐComplexityCalculationLevelType(ctx context.Context, sel ast.SelectionSet, v *models.ComplexityCalculationLevelType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOConfidenceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐConfidenceType(ctx context.Context, v interface{}) (*models.ConfidenceType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.ConfidenceType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOConfidenceType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐConfidenceType(ctx context.Context, sel ast.SelectionSet, v *models.ConfidenceType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx context.Context, v interface{}) ([]model.ContractorSupportType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ContractorSupportType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOContractorSupportType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ContractorSupportType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNContractorSupportType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐContractorSupportType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalODataExchangeApproachMarkedCompleteNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachMarkedCompleteNotificationType(ctx context.Context, v interface{}) (*models.DataExchangeApproachMarkedCompleteNotificationType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.DataExchangeApproachMarkedCompleteNotificationType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalODataExchangeApproachMarkedCompleteNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataExchangeApproachMarkedCompleteNotificationType(ctx context.Context, sel ast.SelectionSet, v *models.DataExchangeApproachMarkedCompleteNotificationType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalODataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx context.Context, v interface{}) ([]model.DataForMonitoringType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.DataForMonitoringType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalODataForMonitoringType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DataForMonitoringType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDataForMonitoringType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataForMonitoringType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalODataFullTimeOrIncrementalType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataFullTimeOrIncrementalType(ctx context.Context, v interface{}) (*models.DataFullTimeOrIncrementalType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.DataFullTimeOrIncrementalType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalODataFullTimeOrIncrementalType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataFullTimeOrIncrementalType(ctx context.Context, sel ast.SelectionSet, v *models.DataFullTimeOrIncrementalType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx context.Context, v interface{}) (*models.DataStartsType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.DataStartsType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalODataStartsType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataStartsType(ctx context.Context, sel ast.SelectionSet, v *models.DataStartsType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalODataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx context.Context, v interface{}) ([]models.DataToCollectFromParticipants, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.DataToCollectFromParticipants, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalODataToCollectFromParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipantsᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DataToCollectFromParticipants) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDataToCollectFromParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToCollectFromParticipants(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalODataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx context.Context, v interface{}) ([]model.DataToSendParticipantsType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.DataToSendParticipantsType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalODataToSendParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.DataToSendParticipantsType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDataToSendParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐDataToSendParticipantsType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalODataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx context.Context, v interface{}) ([]models.DataToSendToParticipants, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.DataToSendToParticipants, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalODataToSendToParticipants2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipantsᚄ(ctx context.Context, sel ast.SelectionSet, v []models.DataToSendToParticipants) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDataToSendToParticipants2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDataToSendToParticipants(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalODatesChangedNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatesChangedNotificationType(ctx context.Context, v interface{}) (*models.DatesChangedNotificationType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.DatesChangedNotificationType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalODatesChangedNotificationType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDatesChangedNotificationType(ctx context.Context, sel ast.SelectionSet, v *models.DatesChangedNotificationType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) marshalODiscussionRoleSelection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionRoleSelection(ctx context.Context, sel ast.SelectionSet, v *models.DiscussionRoleSelection) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._DiscussionRoleSelection(ctx, sel, v) +} + +func (ec *executionContext) unmarshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx context.Context, v interface{}) (*models.DiscussionUserRole, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.DiscussionUserRole(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalODiscussionUserRole2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐDiscussionUserRole(ctx context.Context, sel ast.SelectionSet, v *models.DiscussionUserRole) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOEaseOfUse2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEaseOfUse(ctx context.Context, v interface{}) (*model.EaseOfUse, error) { + if v == nil { + return nil, nil + } + var res = new(model.EaseOfUse) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOEaseOfUse2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEaseOfUse(ctx context.Context, sel ast.SelectionSet, v *model.EaseOfUse) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalOEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx context.Context, v interface{}) ([]model.EvaluationApproachType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.EvaluationApproachType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOEvaluationApproachType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.EvaluationApproachType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNEvaluationApproachType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐEvaluationApproachType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalOExistingModel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModel(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModel) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ExistingModel(ctx, sel, v) +} + +func (ec *executionContext) marshalOExistingModelLinks2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐExistingModelLinks(ctx context.Context, sel ast.SelectionSet, v *models.ExistingModelLinks) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ExistingModelLinks(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx context.Context, v interface{}) ([]models.FrequencyType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.FrequencyType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOFrequencyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.FrequencyType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNFrequencyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFrequencyType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx context.Context, v interface{}) ([]models.FundingSource, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.FundingSource, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOFundingSource2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSourceᚄ(ctx context.Context, sel ast.SelectionSet, v []models.FundingSource) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNFundingSource2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐFundingSource(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx context.Context, v interface{}) ([]model.GainshareArrangementEligibility, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.GainshareArrangementEligibility, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOGainshareArrangementEligibility2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibilityᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GainshareArrangementEligibility) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNGainshareArrangementEligibility2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGainshareArrangementEligibility(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx context.Context, v interface{}) ([]model.GeographyApplication, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.GeographyApplication, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOGeographyApplication2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplicationᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GeographyApplication) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNGeographyApplication2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyApplication(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx context.Context, v interface{}) ([]models.GeographyRegionType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.GeographyRegionType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOGeographyRegionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.GeographyRegionType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNGeographyRegionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐGeographyRegionType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx context.Context, v interface{}) ([]model.GeographyType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.GeographyType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOGeographyType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.GeographyType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNGeographyType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐGeographyType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { + res, err := graphql.UnmarshalInt(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { + res := graphql.MarshalInt(v) + return res +} + +func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]int, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOInt2ᚕintᚄ(ctx context.Context, sel ast.SelectionSet, v []int) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNInt2int(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalInt(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalInt(*v) + return res +} + +func (ec *executionContext) unmarshalOKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx context.Context, v interface{}) ([]model.KeyCharacteristic, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.KeyCharacteristic, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOKeyCharacteristic2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristicᚄ(ctx context.Context, sel ast.SelectionSet, v []model.KeyCharacteristic) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNKeyCharacteristic2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐKeyCharacteristic(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalOMTOCommonMilestone2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestone(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonMilestone) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MTOCommonMilestone(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOMTOCommonMilestoneKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx context.Context, v interface{}) (*models.MTOCommonMilestoneKey, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.MTOCommonMilestoneKey(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOMTOCommonMilestoneKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonMilestoneKey(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonMilestoneKey) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) marshalOMTOCommonSolution2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolution(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonSolution) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._MTOCommonSolution(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOMTOCommonSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx context.Context, v interface{}) (*models.MTOCommonSolutionKey, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.MTOCommonSolutionKey(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOMTOCommonSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOCommonSolutionKey(ctx context.Context, sel ast.SelectionSet, v *models.MTOCommonSolutionKey) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx context.Context, v interface{}) ([]models.MTOFacilitator, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.MTOFacilitator, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOMTOFacilitator2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitatorᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MTOFacilitator) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMTOFacilitator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOFacilitator(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOMTOMilestoneStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx context.Context, v interface{}) (*models.MTOMilestoneStatus, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.MTOMilestoneStatus(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOMTOMilestoneStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOMilestoneStatus(ctx context.Context, sel ast.SelectionSet, v *models.MTOMilestoneStatus) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, v interface{}) (models.MTORiskIndicator, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.MTORiskIndicator(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOMTORiskIndicator2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, sel ast.SelectionSet, v models.MTORiskIndicator) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + return res +} + +func (ec *executionContext) unmarshalOMTORiskIndicator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, v interface{}) (*models.MTORiskIndicator, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.MTORiskIndicator(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOMTORiskIndicator2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTORiskIndicator(ctx context.Context, sel ast.SelectionSet, v *models.MTORiskIndicator) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOMTOSolutionStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx context.Context, v interface{}) (*models.MTOSolutionStatus, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.MTOSolutionStatus(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOMTOSolutionStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionStatus(ctx context.Context, sel ast.SelectionSet, v *models.MTOSolutionStatus) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOMTOSolutionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx context.Context, v interface{}) (*models.MTOSolutionType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.MTOSolutionType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOMTOSolutionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMTOSolutionType(ctx context.Context, sel ast.SelectionSet, v *models.MTOSolutionType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalMap(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalMap(v) + return res +} + +func (ec *executionContext) unmarshalOMintUses2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUsesᚄ(ctx context.Context, v interface{}) ([]model.MintUses, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.MintUses, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNMintUses2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUses(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOMintUses2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUsesᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MintUses) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMintUses2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMintUses(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx context.Context, v interface{}) ([]models.ModelCategory, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ModelCategory, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOModelCategory2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategoryᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelCategory) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNModelCategory2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOModelCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx context.Context, v interface{}) (*models.ModelCategory, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.ModelCategory(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOModelCategory2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelCategory(ctx context.Context, sel ast.SelectionSet, v *models.ModelCategory) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx context.Context, v interface{}) ([]model.ModelLearningSystemType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ModelLearningSystemType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOModelLearningSystemType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ModelLearningSystemType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNModelLearningSystemType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐModelLearningSystemType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOModelPhase2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx context.Context, v interface{}) (*models.ModelPhase, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.ModelPhase(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOModelPhase2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPhase(ctx context.Context, sel ast.SelectionSet, v *models.ModelPhase) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) marshalOModelPlan2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelPlan(ctx context.Context, sel ast.SelectionSet, v *models.ModelPlan) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ModelPlan(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOModelStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx context.Context, v interface{}) (*models.ModelStatus, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.ModelStatus(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOModelStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelStatus(ctx context.Context, sel ast.SelectionSet, v *models.ModelStatus) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx context.Context, v interface{}) ([]models.ModelType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ModelType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOModelType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ModelType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNModelType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx context.Context, v interface{}) (*models.ModelViewFilter, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.ModelViewFilter(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOModelViewFilter2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐModelViewFilter(ctx context.Context, sel ast.SelectionSet, v *models.ModelViewFilter) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx context.Context, v interface{}) ([]model.MonitoringFileType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.MonitoringFileType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOMonitoringFileType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.MonitoringFileType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMonitoringFileType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐMonitoringFileType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx context.Context, v interface{}) ([]models.MultiSourceDataToCollect, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.MultiSourceDataToCollect, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOMultiSourceDataToCollect2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollectᚄ(ctx context.Context, sel ast.SelectionSet, v []models.MultiSourceDataToCollect) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNMultiSourceDataToCollect2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐMultiSourceDataToCollect(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalONonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx context.Context, v interface{}) ([]model.NonClaimsBasedPayType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.NonClaimsBasedPayType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalONonClaimsBasedPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.NonClaimsBasedPayType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNNonClaimsBasedPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐNonClaimsBasedPayType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOOpSolutionStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx context.Context, v interface{}) (*models.OpSolutionStatus, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.OpSolutionStatus(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOOpSolutionStatus2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOpSolutionStatus(ctx context.Context, sel ast.SelectionSet, v *models.OpSolutionStatus) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOOperationalNeedKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx context.Context, v interface{}) (*models.OperationalNeedKey, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.OperationalNeedKey(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOOperationalNeedKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalNeedKey(ctx context.Context, sel ast.SelectionSet, v *models.OperationalNeedKey) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx context.Context, v interface{}) ([]models.OperationalSolutionKey, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.OperationalSolutionKey, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOOperationalSolutionKey2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKeyᚄ(ctx context.Context, sel ast.SelectionSet, v []models.OperationalSolutionKey) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNOperationalSolutionKey2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOOperationalSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx context.Context, v interface{}) (*models.OperationalSolutionKey, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.OperationalSolutionKey(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOOperationalSolutionKey2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionKey(ctx context.Context, sel ast.SelectionSet, v *models.OperationalSolutionKey) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) marshalOOperationalSolutionSubtask2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtaskᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.OperationalSolutionSubtask) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNOperationalSolutionSubtask2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOperationalSolutionSubtask(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOOverlapType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOverlapType(ctx context.Context, v interface{}) (*models.OverlapType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.OverlapType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOOverlapType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐOverlapType(ctx context.Context, sel ast.SelectionSet, v *models.OverlapType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantCommunicationType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantCommunicationType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOParticipantCommunicationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantCommunicationType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantCommunicationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantCommunicationType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantRequireFinancialGuaranteeType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantRequireFinancialGuaranteeType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOParticipantRequireFinancialGuaranteeType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantRequireFinancialGuaranteeType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantRequireFinancialGuaranteeType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantRequireFinancialGuaranteeType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx context.Context, v interface{}) ([]models.ParticipantRiskType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ParticipantRiskType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOParticipantRiskType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ParticipantRiskType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantRiskType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐParticipantRiskType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantSelectionType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantSelectionType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOParticipantSelectionType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantSelectionType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantSelectionType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantSelectionType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantsIDType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantsIDType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOParticipantsIDType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantsIDType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantsIDType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsIDType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx context.Context, v interface{}) ([]model.ParticipantsType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ParticipantsType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOParticipantsType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ParticipantsType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNParticipantsType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐParticipantsType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx context.Context, v interface{}) ([]models.PayRecipient, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.PayRecipient, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOPayRecipient2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipientᚄ(ctx context.Context, sel ast.SelectionSet, v []models.PayRecipient) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPayRecipient2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayRecipient(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx context.Context, v interface{}) ([]models.PayType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.PayType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOPayType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.PayType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPayType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPayType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalOPhaseSuggestion2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐPhaseSuggestion(ctx context.Context, sel ast.SelectionSet, v *model.PhaseSuggestion) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._PhaseSuggestion(ctx, sel, v) +} + +func (ec *executionContext) marshalOPlanDocumentSolutionLink2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentSolutionLinkᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.PlanDocumentSolutionLink) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNPlanDocumentSolutionLink2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPlanDocumentSolutionLink(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalOPossibleOperationalSolutionContact2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐPossibleOperationalSolutionContact(ctx context.Context, sel ast.SelectionSet, v *models.PossibleOperationalSolutionContact) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._PossibleOperationalSolutionContact(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx context.Context, v interface{}) ([]model.ProviderAddType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ProviderAddType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOProviderAddType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProviderAddType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNProviderAddType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderAddType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx context.Context, v interface{}) ([]model.ProviderLeaveType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.ProviderLeaveType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOProviderLeaveType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.ProviderLeaveType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNProviderLeaveType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐProviderLeaveType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalORecentModification2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecentModification(ctx context.Context, sel ast.SelectionSet, v *models.RecentModification) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._RecentModification(ctx, sel, v) +} + +func (ec *executionContext) unmarshalORecruitmentType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecruitmentType(ctx context.Context, v interface{}) (*models.RecruitmentType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.RecruitmentType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalORecruitmentType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐRecruitmentType(ctx context.Context, sel ast.SelectionSet, v *models.RecruitmentType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOReportAProblemSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSection(ctx context.Context, v interface{}) (*model.ReportAProblemSection, error) { + if v == nil { + return nil, nil + } + var res = new(model.ReportAProblemSection) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOReportAProblemSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSection(ctx context.Context, sel ast.SelectionSet, v *model.ReportAProblemSection) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalOReportAProblemSeverity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSeverity(ctx context.Context, v interface{}) (*model.ReportAProblemSeverity, error) { + if v == nil { + return nil, nil + } + var res = new(model.ReportAProblemSeverity) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOReportAProblemSeverity2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐReportAProblemSeverity(ctx context.Context, sel ast.SelectionSet, v *model.ReportAProblemSeverity) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalOSatisfactionLevel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSatisfactionLevel(ctx context.Context, v interface{}) (*model.SatisfactionLevel, error) { + if v == nil { + return nil, nil + } + var res = new(model.SatisfactionLevel) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOSatisfactionLevel2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSatisfactionLevel(ctx context.Context, sel ast.SelectionSet, v *model.SatisfactionLevel) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalOSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx context.Context, v interface{}) ([]model.SelectionMethodType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.SelectionMethodType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOSelectionMethodType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SelectionMethodType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNSelectionMethodType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐSelectionMethodType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx context.Context, v interface{}) ([]model.StakeholdersType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.StakeholdersType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOStakeholdersType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.StakeholdersType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNStakeholdersType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐStakeholdersType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx context.Context, v interface{}) ([]models.StatesAndTerritories, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.StatesAndTerritories, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOStatesAndTerritories2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritoriesᚄ(ctx context.Context, sel ast.SelectionSet, v []models.StatesAndTerritories) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNStatesAndTerritories2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐStatesAndTerritories(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + return res +} + +func (ec *executionContext) unmarshalOString2ᚕstring(ctx context.Context, v interface{}) ([]string, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalOString2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOString2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalOString2string(ctx, sel, v[i]) + } + + return ret +} + +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNString2string(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalString(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(*v) + return res +} + +func (ec *executionContext) unmarshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx context.Context, v interface{}) (*models.TableName, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.TableName(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOTableName2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTableName(ctx context.Context, sel ast.SelectionSet, v *models.TableName) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) marshalOTaggedContent2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedContent(ctx context.Context, sel ast.SelectionSet, v *models.TaggedContent) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TaggedContent(ctx, sel, v) +} + +func (ec *executionContext) marshalOTaggedEntity2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaggedEntity(ctx context.Context, sel ast.SelectionSet, v models.TaggedEntity) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TaggedEntity(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOTaskListSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx context.Context, v interface{}) (models.TaskListSection, error) { + tmp, err := graphql.UnmarshalString(v) + res := models.TaskListSection(tmp) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOTaskListSection2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx context.Context, sel ast.SelectionSet, v models.TaskListSection) graphql.Marshaler { + res := graphql.MarshalString(string(v)) + return res +} + +func (ec *executionContext) unmarshalOTaskListSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx context.Context, v interface{}) (*models.TaskListSection, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.TaskListSection(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOTaskListSection2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTaskListSection(ctx context.Context, sel ast.SelectionSet, v *models.TaskListSection) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOTaskStatusInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐTaskStatusInput(ctx context.Context, v interface{}) (*model.TaskStatusInput, error) { + if v == nil { + return nil, nil + } + var res = new(model.TaskStatusInput) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOTaskStatusInput2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐTaskStatusInput(ctx context.Context, sel ast.SelectionSet, v *model.TaskStatusInput) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalOTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { + res, err := graphql.UnmarshalTime(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { + res := graphql.MarshalTime(v) + return res +} + +func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalTime(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalTime(*v) + return res +} + +func (ec *executionContext) marshalOTranslatedAudit2ᚕᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.TranslatedAudit) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNTranslatedAudit2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAudit(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalOTranslatedAuditMetaData2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaData(ctx context.Context, sel ast.SelectionSet, v models.TranslatedAuditMetaData) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TranslatedAuditMetaData(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOTranslatedAuditMetaDataType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaDataType(ctx context.Context, v interface{}) (*models.TranslatedAuditMetaDataType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.TranslatedAuditMetaDataType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOTranslatedAuditMetaDataType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslatedAuditMetaDataType(ctx context.Context, sel ast.SelectionSet, v *models.TranslatedAuditMetaDataType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOTranslationQuestionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationQuestionType(ctx context.Context, v interface{}) (*models.TranslationQuestionType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.TranslationQuestionType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOTranslationQuestionType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationQuestionType(ctx context.Context, sel ast.SelectionSet, v *models.TranslationQuestionType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOTriStateAnswer2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTriStateAnswer(ctx context.Context, v interface{}) (*models.TriStateAnswer, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.TriStateAnswer(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOTriStateAnswer2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTriStateAnswer(ctx context.Context, sel ast.SelectionSet, v *models.TriStateAnswer) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (uuid.UUID, error) { + res, err := models.UnmarshalUUID(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, sel ast.SelectionSet, v uuid.UUID) graphql.Marshaler { + res := models.MarshalUUID(v) + return res +} + +func (ec *executionContext) unmarshalOUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, v interface{}) ([]uuid.UUID, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]uuid.UUID, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOUUID2ᚕgithubᚗcomᚋgoogleᚋuuidᚐUUIDᚄ(ctx context.Context, sel ast.SelectionSet, v []uuid.UUID) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNUUID2githubᚗcomᚋgoogleᚋuuidᚐUUID(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, v interface{}) (*uuid.UUID, error) { + if v == nil { + return nil, nil + } + res, err := models.UnmarshalUUID(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOUUID2ᚖgithubᚗcomᚋgoogleᚋuuidᚐUUID(ctx context.Context, sel ast.SelectionSet, v *uuid.UUID) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := models.MarshalUUID(*v) + return res +} + +func (ec *executionContext) marshalOUserAccount2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋauthenticationᚐUserAccount(ctx context.Context, sel ast.SelectionSet, v *authentication.UserAccount) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._UserAccount(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx context.Context, v interface{}) ([]models.UserNotificationPreferenceFlag, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.UserNotificationPreferenceFlag, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOUserNotificationPreferenceFlag2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlagᚄ(ctx context.Context, sel ast.SelectionSet, v []models.UserNotificationPreferenceFlag) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNUserNotificationPreferenceFlag2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐUserNotificationPreferenceFlag(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx context.Context, v interface{}) ([]models.ViewCustomizationType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.ViewCustomizationType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOViewCustomizationType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ViewCustomizationType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNViewCustomizationType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐViewCustomizationType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx context.Context, v interface{}) ([]model.WaiverType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]model.WaiverType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOWaiverType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []model.WaiverType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNWaiverType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋgraphᚋmodelᚐWaiverType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx context.Context, v interface{}) (*models.YesNoOtherType, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := models.YesNoOtherType(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOYesNoOtherType2ᚖgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoOtherType(ctx context.Context, sel ast.SelectionSet, v *models.YesNoOtherType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + +func (ec *executionContext) unmarshalOYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx context.Context, v interface{}) ([]models.YesNoType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]models.YesNoType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOYesNoType2ᚕgithubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []models.YesNoType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNYesNoType2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐYesNoType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec.___Schema(ctx, sel, v) +} + +func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec.___Type(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/pkg/graph/model/models_gen.go b/pkg/graph/model/models_gen.go new file mode 100644 index 0000000000..fbf73a19af --- /dev/null +++ b/pkg/graph/model/models_gen.go @@ -0,0 +1,2638 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package model + +import ( + "fmt" + "io" + "strconv" + "time" + + "github.com/99designs/gqlgen/graphql" + "github.com/cms-enterprise/mint-app/pkg/authentication" + "github.com/cms-enterprise/mint-app/pkg/models" + "github.com/google/uuid" +) + +type CreateOperationalSolutionSubtaskInput struct { + Name string `json:"name"` + Status models.OperationalSolutionSubtaskStatus `json:"status"` +} + +// DiscussionReplyCreateInput represents the necessary fields to create a discussion reply +type DiscussionReplyCreateInput struct { + DiscussionID uuid.UUID `json:"discussionID"` + Content models.TaggedHTML `json:"content"` + UserRole *models.DiscussionUserRole `json:"userRole,omitempty"` + UserRoleDescription *string `json:"userRoleDescription,omitempty"` +} + +// Represents discussion reply translation data +type DiscussionReplyTranslation struct { + UserRole models.TranslationFieldWithOptions `json:"userRole" db:"user_role"` + UserRoleDescription models.TranslationField `json:"userRoleDescription" db:"user_role_description"` + Content models.TranslationField `json:"content" db:"content"` + IsAssessment models.TranslationFieldWithOptions `json:"isAssessment" db:"is_assessment"` +} + +// Represents existing model link translation data +type ExistingModelLinkTranslation struct { + ExistingModelID models.TranslationField `json:"existingModelID" db:"existing_model_id"` + CurrentModelPlanID models.TranslationField `json:"currentModelPlanID" db:"current_model_plan_id"` + FieldName models.TranslationFieldWithOptions `json:"fieldName" db:"field_name"` +} + +// The current user's Launch Darkly key +type LaunchDarklySettings struct { + UserKey string `json:"userKey"` + SignedHash string `json:"signedHash"` +} + +type LockableSectionLockStatus struct { + ModelPlanID uuid.UUID `json:"modelPlanID"` + Section models.LockableSection `json:"section"` + LockedByUserAccount authentication.UserAccount `json:"lockedByUserAccount"` + IsAssessment bool `json:"isAssessment"` +} + +type LockableSectionLockStatusChanged struct { + ChangeType ChangeType `json:"changeType"` + LockStatus LockableSectionLockStatus `json:"lockStatus"` + ActionType ActionType `json:"actionType"` +} + +// Represents MTO Category translation data +type MTOCategoryTranslation struct { + Name models.TranslationField `json:"name" db:"name"` +} + +// Represents mto info translation data +type MTOInfoTranslation struct { + ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` + ReadyForReviewDts models.TranslationField `json:"readyForReviewDTS" db:"ready_for_review_dts"` +} + +// Represents MTO Custom Milestone translation data +type MTOMilestoneTranslation struct { + Name models.TranslationField `json:"name" db:"name"` +} + +// Represents model plan base translation data +type ModelPlanTranslation struct { + ModelName models.TranslationField `json:"modelName" db:"model_name"` + PreviousName models.TranslationField `json:"previousName"` + NameHistory models.TranslationField `json:"nameHistory"` + Abbreviation models.TranslationField `json:"abbreviation" db:"abbreviation"` + Archived models.TranslationFieldWithOptions `json:"archived" db:"archived"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +// NDAInfo represents whether a user has agreed to an NDA or not. If agreed to previously, there will be a datestamp visible +type NDAInfo struct { + Agreed bool `json:"agreed"` + AgreedDts *time.Time `json:"agreedDts,omitempty"` +} + +// Represents operational need translation data +type OperationalNeedTranslation struct { + // Name comes from the possible operational need table. It is not returned in an audit + Name models.TranslationField `json:"name" db:"need_name"` + NameOther models.TranslationField `json:"nameOther" db:"name_other"` + // Key comes from the possible operational need table. It is not returned in an audit + Key models.TranslationFieldWithOptions `json:"key" db:"need_key"` + Needed models.TranslationFieldWithOptions `json:"needed" db:"needed"` + Section models.TranslationFieldWithOptions `json:"section" db:"section"` +} + +// Represents operational solution subtask translation data +type OperationalSolutionSubtaskTranslation struct { + Name models.TranslationField `json:"name" db:"name"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +// Represents operational solution translation data +type OperationalSolutionTranslation struct { + // Name comes from the possible operational solution table. It is not returned in an audit + Name models.TranslationField `json:"name" db:"sol_name"` + NameOther models.TranslationField `json:"nameOther" db:"name_other"` + IsOther models.TranslationFieldWithOptions `json:"isOther" db:"is_other"` + OtherHeader models.TranslationField `json:"otherHeader" db:"other_header"` + PocName models.TranslationField `json:"pocName" db:"poc_name"` + PocEmail models.TranslationField `json:"pocEmail" db:"poc_email"` + MustStartDts models.TranslationField `json:"mustStartDts" db:"must_start_dts"` + MustFinishDts models.TranslationField `json:"mustFinishDts" db:"must_finish_dts"` + Needed models.TranslationFieldWithOptions `json:"needed" db:"needed"` + // Key comes from the possible operational solution table. It is not returned in an audit + Key models.TranslationFieldWithOptions `json:"key" db:"sol_key"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +// PhaseSuggestion is a suggestion response for a potential next phase and corresponding statuses for a model plan +type PhaseSuggestion struct { + Phase models.ModelPhase `json:"phase"` + SuggestedStatuses []models.ModelStatus `json:"suggestedStatuses"` +} + +// Represents plan basics translation data +type PlanBasicsTranslation struct { + ModelCategory models.TranslationFieldWithOptions `json:"modelCategory" db:"model_category"` + AdditionalModelCategories models.TranslationFieldWithOptions `json:"additionalModelCategories" db:"additional_model_categories"` + DemoCode models.TranslationField `json:"demoCode" db:"demo_code"` + AmsModelID models.TranslationField `json:"amsModelID" db:"ams_model_id"` + CmsCenters models.TranslationFieldWithOptions `json:"cmsCenters" db:"cms_centers"` + CmmiGroups models.TranslationFieldWithOptions `json:"cmmiGroups" db:"cmmi_groups"` + ModelType models.TranslationFieldWithOptions `json:"modelType" db:"model_type"` + ModelTypeOther models.TranslationField `json:"modelTypeOther" db:"model_type_other"` + Problem models.TranslationField `json:"problem" db:"problem"` + Goal models.TranslationField `json:"goal" db:"goal"` + TestInterventions models.TranslationField `json:"testInterventions" db:"test_interventions"` + Note models.TranslationField `json:"note" db:"note"` + CompleteIcip models.TranslationField `json:"completeICIP" db:"complete_icip"` + ClearanceStarts models.TranslationField `json:"clearanceStarts" db:"clearance_starts"` + ClearanceEnds models.TranslationField `json:"clearanceEnds" db:"clearance_ends"` + Announced models.TranslationField `json:"announced" db:"announced"` + ApplicationsStart models.TranslationField `json:"applicationsStart" db:"applications_starts"` + ApplicationsEnd models.TranslationField `json:"applicationsEnd" db:"applications_ends"` + PerformancePeriodStarts models.TranslationField `json:"performancePeriodStarts" db:"performance_period_starts"` + PerformancePeriodEnds models.TranslationField `json:"performancePeriodEnds" db:"performance_period_ends"` + WrapUpEnds models.TranslationField `json:"wrapUpEnds" db:"wrap_up_ends"` + HighLevelNote models.TranslationField `json:"highLevelNote" db:"high_level_note"` + PhasedIn models.TranslationFieldWithOptions `json:"phasedIn" db:"phased_in"` + PhasedInNote models.TranslationField `json:"phasedInNote" db:"phased_in_note"` + ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` + ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` + ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` + ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +// Represents plan beneficiaries translation data +type PlanBeneficiariesTranslation struct { + Beneficiaries models.TranslationFieldWithOptions `json:"beneficiaries" db:"beneficiaries"` + BeneficiariesOther models.TranslationField `json:"beneficiariesOther" db:"beneficiaries_other"` + BeneficiariesNote models.TranslationField `json:"beneficiariesNote" db:"beneficiaries_note"` + DiseaseSpecificGroup models.TranslationField `json:"diseaseSpecificGroup" db:"disease_specific_group"` + TreatDualElligibleDifferent models.TranslationFieldWithOptions `json:"treatDualElligibleDifferent" db:"treat_dual_elligible_different"` + TreatDualElligibleDifferentHow models.TranslationField `json:"treatDualElligibleDifferentHow" db:"treat_dual_elligible_different_how"` + TreatDualElligibleDifferentNote models.TranslationField `json:"treatDualElligibleDifferentNote" db:"treat_dual_elligible_different_note"` + ExcludeCertainCharacteristics models.TranslationFieldWithOptions `json:"excludeCertainCharacteristics" db:"exclude_certain_characteristics"` + ExcludeCertainCharacteristicsCriteria models.TranslationField `json:"excludeCertainCharacteristicsCriteria" db:"exclude_certain_characteristics_criteria"` + ExcludeCertainCharacteristicsNote models.TranslationField `json:"excludeCertainCharacteristicsNote" db:"exclude_certain_characteristics_note"` + NumberPeopleImpacted models.TranslationField `json:"numberPeopleImpacted" db:"number_people_impacted"` + EstimateConfidence models.TranslationFieldWithOptions `json:"estimateConfidence" db:"estimate_confidence"` + ConfidenceNote models.TranslationField `json:"confidenceNote" db:"confidence_note"` + BeneficiarySelectionMethod models.TranslationFieldWithOptions `json:"beneficiarySelectionMethod" db:"beneficiary_selection_method"` + BeneficiarySelectionOther models.TranslationField `json:"beneficiarySelectionOther" db:"beneficiary_selection_other"` + BeneficiarySelectionNote models.TranslationField `json:"beneficiarySelectionNote" db:"beneficiary_selection_note"` + BeneficiarySelectionFrequency models.TranslationFieldWithOptions `json:"beneficiarySelectionFrequency" db:"beneficiary_selection_frequency"` + BeneficiarySelectionFrequencyContinually models.TranslationField `json:"beneficiarySelectionFrequencyContinually" db:"beneficiary_selection_frequency_continually"` + BeneficiarySelectionFrequencyOther models.TranslationField `json:"beneficiarySelectionFrequencyOther" db:"beneficiary_selection_frequency_other"` + BeneficiarySelectionFrequencyNote models.TranslationField `json:"beneficiarySelectionFrequencyNote" db:"beneficiary_selection_frequency_note"` + BeneficiaryRemovalFrequency models.TranslationFieldWithOptions `json:"beneficiaryRemovalFrequency" db:"beneficiary_removal_frequency"` + BeneficiaryRemovalFrequencyContinually models.TranslationField `json:"beneficiaryRemovalFrequencyContinually" db:"beneficiary_removal_frequency_continually"` + BeneficiaryRemovalFrequencyOther models.TranslationField `json:"beneficiaryRemovalFrequencyOther" db:"beneficiary_removal_frequency_other"` + BeneficiaryRemovalFrequencyNote models.TranslationField `json:"beneficiaryRemovalFrequencyNote" db:"beneficiary_removal_frequency_note"` + BeneficiaryOverlap models.TranslationFieldWithOptions `json:"beneficiaryOverlap" db:"beneficiary_overlap"` + BeneficiaryOverlapNote models.TranslationField `json:"beneficiaryOverlapNote" db:"beneficiary_overlap_note"` + PrecedenceRules models.TranslationFieldWithOptions `json:"precedenceRules" db:"precedence_rules"` + PrecedenceRulesYes models.TranslationField `json:"precedenceRulesYes" db:"precedence_rules_yes"` + PrecedenceRulesNo models.TranslationField `json:"precedenceRulesNo" db:"precedence_rules_no"` + PrecedenceRulesNote models.TranslationField `json:"precedenceRulesNote" db:"precedence_rules_note"` + ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` + ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` + ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` + ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +type PlanCRCreateInput struct { + ModelPlanID uuid.UUID `json:"modelPlanID"` + IDNumber string `json:"idNumber"` + DateInitiated time.Time `json:"dateInitiated"` + DateImplemented time.Time `json:"dateImplemented"` + Title string `json:"title"` + Note *string `json:"note,omitempty"` +} + +// Represents plan cr translation data +type PlanCRTranslation struct { + IDNumber models.TranslationField `json:"idNumber" db:"id_number"` + Title models.TranslationField `json:"title" db:"title"` + DateInitiated models.TranslationField `json:"dateInitiated" db:"date_initiated"` + DateImplemented models.TranslationField `json:"dateImplemented" db:"date_implemented"` + Note models.TranslationField `json:"note" db:"note"` +} + +// PlanCollaboratorCreateInput represents the data required to create a collaborator on a plan +type PlanCollaboratorCreateInput struct { + ModelPlanID uuid.UUID `json:"modelPlanID"` + UserName string `json:"userName"` + TeamRoles []models.TeamRole `json:"teamRoles"` +} + +// Represents plan collaborator translation data +type PlanCollaboratorTranslation struct { + Username models.TranslationField `json:"username" db:"user_account.username"` + UserID models.TranslationField `json:"userID" db:"user_id"` + TeamRoles models.TranslationFieldWithOptions `json:"teamRoles" db:"team_roles"` +} + +// Represents plan data exchange approach translation data +type PlanDataExchangeApproachTranslation struct { + DataToCollectFromParticipants models.TranslationFieldWithOptions `json:"dataToCollectFromParticipants" db:"data_to_collect_from_participants"` + DataToCollectFromParticipantsReportsDetails models.TranslationField `json:"dataToCollectFromParticipantsReportsDetails" db:"data_to_collect_from_participants_reports_details"` + DataToCollectFromParticipantsOther models.TranslationField `json:"dataToCollectFromParticipantsOther" db:"data_to_collect_from_participants_other"` + DataWillNotBeCollectedFromParticipants models.TranslationFieldWithOptions `json:"dataWillNotBeCollectedFromParticipants" db:"data_will_not_be_collected_from_participants"` + DataToCollectFromParticipantsNote models.TranslationField `json:"dataToCollectFromParticipantsNote" db:"data_to_collect_from_participants_note"` + DataToSendToParticipants models.TranslationFieldWithOptions `json:"dataToSendToParticipants" db:"data_to_send_to_participants"` + DataToSendToParticipantsNote models.TranslationField `json:"dataToSendToParticipantsNote" db:"data_to_send_to_participants_note"` + DoesNeedToMakeMultiPayerDataAvailable models.TranslationFieldWithOptionsAndChildren `json:"doesNeedToMakeMultiPayerDataAvailable" db:"does_need_to_make_multi_payer_data_available"` + AnticipatedMultiPayerDataAvailabilityUseCase models.TranslationFieldWithOptionsAndParent `json:"anticipatedMultiPayerDataAvailabilityUseCase" db:"anticipated_multi_payer_data_availability_use_case"` + DoesNeedToMakeMultiPayerDataAvailableNote models.TranslationField `json:"doesNeedToMakeMultiPayerDataAvailableNote" db:"does_need_to_make_multi_payer_data_available_note"` + DoesNeedToCollectAndAggregateMultiSourceData models.TranslationFieldWithOptionsAndChildren `json:"doesNeedToCollectAndAggregateMultiSourceData" db:"does_need_to_collect_and_aggregate_multi_source_data"` + MultiSourceDataToCollect models.TranslationFieldWithOptionsAndParent `json:"multiSourceDataToCollect" db:"multi_source_data_to_collect"` + MultiSourceDataToCollectOther models.TranslationField `json:"multiSourceDataToCollectOther" db:"multi_source_data_to_collect_other"` + DoesNeedToCollectAndAggregateMultiSourceDataNote models.TranslationField `json:"doesNeedToCollectAndAggregateMultiSourceDataNote" db:"does_need_to_collect_and_aggregate_multi_source_data_note"` + WillImplementNewDataExchangeMethods models.TranslationFieldWithOptions `json:"willImplementNewDataExchangeMethods" db:"will_implement_new_data_exchange_methods"` + NewDataExchangeMethodsDescription models.TranslationField `json:"newDataExchangeMethodsDescription" db:"new_data_exchange_methods_description"` + NewDataExchangeMethodsNote models.TranslationField `json:"newDataExchangeMethodsNote" db:"new_data_exchange_methods_note"` + AdditionalDataExchangeConsiderationsDescription models.TranslationField `json:"additionalDataExchangeConsiderationsDescription" db:"additional_data_exchange_considerations_description"` + IsDataExchangeApproachComplete models.TranslationFieldWithOptions `json:"isDataExchangeApproachComplete" db:"is_data_exchange_approach_complete"` + MarkedCompleteBy models.TranslationField `json:"markedCompleteBy" db:"marked_complete_by"` + MarkedCompleteDts models.TranslationField `json:"markedCompleteDts" db:"marked_complete_dts"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +// PlanDiscussionCreateInput represents the necessary fields to create a plan discussion +type PlanDiscussionCreateInput struct { + ModelPlanID uuid.UUID `json:"modelPlanID"` + Content models.TaggedHTML `json:"content"` + UserRole *models.DiscussionUserRole `json:"userRole,omitempty"` + UserRoleDescription *string `json:"userRoleDescription,omitempty"` +} + +// Represents plan discussion translation data +type PlanDiscussionTranslation struct { + UserRole models.TranslationFieldWithOptions `json:"userRole" db:"user_role"` + UserRoleDescription models.TranslationField `json:"userRoleDescription" db:"user_role_description"` + Content models.TranslationField `json:"content" db:"content"` + IsAssessment models.TranslationField `json:"isAssessment" db:"is_assessment"` +} + +// PlanDocumentInput +type PlanDocumentInput struct { + ModelPlanID uuid.UUID `json:"modelPlanID"` + FileData graphql.Upload `json:"fileData"` + DocumentType models.DocumentType `json:"documentType"` + Restricted bool `json:"restricted"` + OtherTypeDescription *string `json:"otherTypeDescription,omitempty"` + OptionalNotes *string `json:"optionalNotes,omitempty"` +} + +// PlanDocumentLinkInput +type PlanDocumentLinkInput struct { + ModelPlanID uuid.UUID `json:"modelPlanID"` + URL string `json:"url"` + Name string `json:"name"` + DocumentType models.DocumentType `json:"documentType"` + Restricted bool `json:"restricted"` + OtherTypeDescription *string `json:"otherTypeDescription,omitempty"` + OptionalNotes *string `json:"optionalNotes,omitempty"` +} + +// Represents document solution link translation data +type PlanDocumentSolutionLinkTranslation struct { + SolutionID models.TranslationField `json:"solutionID" db:"solution_id"` + DocumentID models.TranslationField `json:"documentID" db:"document_id"` +} + +// Represents plan document translation data +type PlanDocumentTranslation struct { + IsLink models.TranslationField `json:"isLink" db:"is_link"` + URL models.TranslationField `json:"url" db:"url"` + FileName models.TranslationField `json:"fileName" db:"file_name"` + DocumentType models.TranslationFieldWithOptions `json:"documentType" db:"document_type"` + OtherType models.TranslationField `json:"otherType" db:"other_type"` + FileType models.TranslationField `json:"fileType" db:"file_type"` + Restricted models.TranslationFieldWithOptions `json:"restricted" db:"restricted"` + OptionalNotes models.TranslationField `json:"optionalNotes" db:"optional_notes"` +} + +// Represents plan general characteristics translation data +type PlanGeneralCharacteristicsTranslation struct { + IsNewModel models.TranslationFieldWithOptionsAndChildren `json:"isNewModel" db:"is_new_model"` + CurrentModelPlanID models.TranslationField `json:"currentModelPlanID" db:"current_model_plan_id"` + ExistingModelID models.TranslationField `json:"existingModelID" db:"existing_model_id"` + // Existing model doesn't exist in the database, it is returned based on if there is a current model plan ID or current model plan ID returned + ExistingModel models.TranslationFieldWithParent `json:"existingModel" db:"existing_model"` + ResemblesExistingModel models.TranslationFieldWithOptionsAndChildren `json:"resemblesExistingModel" db:"resembles_existing_model"` + ResemblesExistingModelWhyHow models.TranslationField `json:"resemblesExistingModelWhyHow" db:"resembles_existing_model_why_how"` + ResemblesExistingModelOtherSpecify models.TranslationField `json:"resemblesExistingModelOtherSpecify" db:"resembles_existing_model_other_specify"` + ResemblesExistingModelOtherOption models.TranslationField `json:"resemblesExistingModelOtherOption" db:"resembles_existing_model_other_option"` + ResemblesExistingModelHow models.TranslationFieldWithParent `json:"resemblesExistingModelHow" db:"resembles_existing_model_how"` + ResemblesExistingModelNote models.TranslationField `json:"resemblesExistingModelNote" db:"resembles_existing_model_note"` + ResemblesExistingModelWhich models.TranslationFieldWithOptionsAndParent `json:"resemblesExistingModelWhich" db:"resembles_existing_model_which"` + ParticipationInModelPrecondition models.TranslationFieldWithOptionsAndChildren `json:"participationInModelPrecondition" db:"participation_in_model_precondition"` + ParticipationInModelPreconditionWhyHow models.TranslationFieldWithParent `json:"participationInModelPreconditionWhyHow" db:"participation_in_model_precondition_why_how"` + ParticipationInModelPreconditionOtherSpecify models.TranslationField `json:"participationInModelPreconditionOtherSpecify" db:"participation_in_model_precondition_other_specify"` + ParticipationInModelPreconditionOtherOption models.TranslationField `json:"participationInModelPreconditionOtherOption" db:"participation_in_model_precondition_other_option"` + ParticipationInModelPreconditionNote models.TranslationField `json:"participationInModelPreconditionNote" db:"participation_in_model_precondition_note"` + ParticipationInModelPreconditionWhich models.TranslationFieldWithOptionsAndParent `json:"participationInModelPreconditionWhich" db:"participation_in_model_precondition_which"` + HasComponentsOrTracks models.TranslationFieldWithOptions `json:"hasComponentsOrTracks" db:"has_components_or_tracks"` + HasComponentsOrTracksDiffer models.TranslationField `json:"hasComponentsOrTracksDiffer" db:"has_components_or_tracks_differ"` + HasComponentsOrTracksNote models.TranslationField `json:"hasComponentsOrTracksNote" db:"has_components_or_tracks_note"` + AgencyOrStateHelp models.TranslationFieldWithOptions `json:"agencyOrStateHelp" db:"agency_or_state_help"` + AgencyOrStateHelpOther models.TranslationField `json:"agencyOrStateHelpOther" db:"agency_or_state_help_other"` + AgencyOrStateHelpNote models.TranslationField `json:"agencyOrStateHelpNote" db:"agency_or_state_help_note"` + AlternativePaymentModelTypes models.TranslationFieldWithOptions `json:"alternativePaymentModelTypes" db:"alternative_payment_model_types"` + AlternativePaymentModelNote models.TranslationField `json:"alternativePaymentModelNote" db:"alternative_payment_model_note"` + KeyCharacteristics models.TranslationFieldWithOptionsAndChildren `json:"keyCharacteristics" db:"key_characteristics"` + KeyCharacteristicsOther models.TranslationField `json:"keyCharacteristicsOther" db:"key_characteristics_other"` + KeyCharacteristicsNote models.TranslationField `json:"keyCharacteristicsNote" db:"key_characteristics_note"` + CollectPlanBids models.TranslationFieldWithOptionsAndParent `json:"collectPlanBids" db:"collect_plan_bids"` + CollectPlanBidsNote models.TranslationField `json:"collectPlanBidsNote" db:"collect_plan_bids_note"` + ManagePartCDEnrollment models.TranslationFieldWithOptionsAndParent `json:"managePartCDEnrollment" db:"manage_part_c_d_enrollment"` + ManagePartCDEnrollmentNote models.TranslationField `json:"managePartCDEnrollmentNote" db:"manage_part_c_d_enrollment_note"` + PlanContractUpdated models.TranslationFieldWithOptionsAndParent `json:"planContractUpdated" db:"plan_contract_updated"` + PlanContractUpdatedNote models.TranslationField `json:"planContractUpdatedNote" db:"plan_contract_updated_note"` + CareCoordinationInvolved models.TranslationFieldWithOptions `json:"careCoordinationInvolved" db:"care_coordination_involved"` + CareCoordinationInvolvedDescription models.TranslationField `json:"careCoordinationInvolvedDescription" db:"care_coordination_involved_description"` + CareCoordinationInvolvedNote models.TranslationField `json:"careCoordinationInvolvedNote" db:"care_coordination_involved_note"` + AdditionalServicesInvolved models.TranslationFieldWithOptions `json:"additionalServicesInvolved" db:"additional_services_involved"` + AdditionalServicesInvolvedDescription models.TranslationField `json:"additionalServicesInvolvedDescription" db:"additional_services_involved_description"` + AdditionalServicesInvolvedNote models.TranslationField `json:"additionalServicesInvolvedNote" db:"additional_services_involved_note"` + CommunityPartnersInvolved models.TranslationFieldWithOptions `json:"communityPartnersInvolved" db:"community_partners_involved"` + CommunityPartnersInvolvedDescription models.TranslationField `json:"communityPartnersInvolvedDescription" db:"community_partners_involved_description"` + CommunityPartnersInvolvedNote models.TranslationField `json:"communityPartnersInvolvedNote" db:"community_partners_involved_note"` + GeographiesTargeted models.TranslationFieldWithOptionsAndChildren `json:"geographiesTargeted" db:"geographies_targeted"` + GeographiesTargetedTypes models.TranslationFieldWithParentAndChildren `json:"geographiesTargetedTypes" db:"geographies_targeted_types"` + GeographiesStatesAndTerritories models.TranslationFieldWithOptionsAndParent `json:"geographiesStatesAndTerritories" db:"geographies_states_and_territories"` + GeographiesRegionTypes models.TranslationFieldWithOptionsAndParent `json:"geographiesRegionTypes" db:"geographies_region_types"` + GeographiesTargetedTypesOther models.TranslationField `json:"geographiesTargetedTypesOther" db:"geographies_targeted_types_other"` + GeographiesTargetedAppliedTo models.TranslationFieldWithOptionsAndParent `json:"geographiesTargetedAppliedTo" db:"geographies_targeted_applied_to"` + GeographiesTargetedAppliedToOther models.TranslationField `json:"geographiesTargetedAppliedToOther" db:"geographies_targeted_applied_to_other"` + GeographiesTargetedNote models.TranslationField `json:"geographiesTargetedNote" db:"geographies_targeted_note"` + ParticipationOptions models.TranslationFieldWithOptions `json:"participationOptions" db:"participation_options"` + ParticipationOptionsNote models.TranslationField `json:"participationOptionsNote" db:"participation_options_note"` + AgreementTypes models.TranslationFieldWithOptionsAndChildren `json:"agreementTypes" db:"agreement_types"` + AgreementTypesOther models.TranslationField `json:"agreementTypesOther" db:"agreement_types_other"` + MultiplePatricipationAgreementsNeeded models.TranslationFieldWithOptionsAndParent `json:"multiplePatricipationAgreementsNeeded" db:"multiple_patricipation_agreements_needed"` + MultiplePatricipationAgreementsNeededNote models.TranslationField `json:"multiplePatricipationAgreementsNeededNote" db:"multiple_patricipation_agreements_needed_note"` + RulemakingRequired models.TranslationFieldWithOptions `json:"rulemakingRequired" db:"rulemaking_required"` + RulemakingRequiredDescription models.TranslationField `json:"rulemakingRequiredDescription" db:"rulemaking_required_description"` + RulemakingRequiredNote models.TranslationField `json:"rulemakingRequiredNote" db:"rulemaking_required_note"` + AuthorityAllowances models.TranslationFieldWithOptions `json:"authorityAllowances" db:"authority_allowances"` + AuthorityAllowancesOther models.TranslationField `json:"authorityAllowancesOther" db:"authority_allowances_other"` + AuthorityAllowancesNote models.TranslationField `json:"authorityAllowancesNote" db:"authority_allowances_note"` + WaiversRequired models.TranslationFieldWithOptions `json:"waiversRequired" db:"waivers_required"` + WaiversRequiredTypes models.TranslationFieldWithOptions `json:"waiversRequiredTypes" db:"waivers_required_types"` + WaiversRequiredNote models.TranslationField `json:"waiversRequiredNote" db:"waivers_required_note"` + ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` + ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` + ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` + ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +// Represents plan ops eval and learning translation data +type PlanOpsEvalAndLearningTranslation struct { + Stakeholders models.TranslationFieldWithOptions `json:"stakeholders" db:"stakeholders"` + StakeholdersOther models.TranslationField `json:"stakeholdersOther" db:"stakeholders_other"` + StakeholdersNote models.TranslationField `json:"stakeholdersNote" db:"stakeholders_note"` + HelpdeskUse models.TranslationFieldWithOptions `json:"helpdeskUse" db:"helpdesk_use"` + HelpdeskUseNote models.TranslationField `json:"helpdeskUseNote" db:"helpdesk_use_note"` + ContractorSupport models.TranslationFieldWithOptionsAndChildren `json:"contractorSupport" db:"contractor_support"` + ContractorSupportOther models.TranslationField `json:"contractorSupportOther" db:"contractor_support_other"` + ContractorSupportHow models.TranslationFieldWithParent `json:"contractorSupportHow" db:"contractor_support_how"` + ContractorSupportNote models.TranslationField `json:"contractorSupportNote" db:"contractor_support_note"` + IddocSupport models.TranslationFieldWithOptionsAndChildren `json:"iddocSupport" db:"iddoc_support"` + IddocSupportNote models.TranslationField `json:"iddocSupportNote" db:"iddoc_support_note"` + TechnicalContactsIdentified models.TranslationFieldWithOptionsAndParent `json:"technicalContactsIdentified" db:"technical_contacts_identified"` + TechnicalContactsIdentifiedDetail models.TranslationField `json:"technicalContactsIdentifiedDetail" db:"technical_contacts_identified_detail"` + TechnicalContactsIdentifiedNote models.TranslationField `json:"technicalContactsIdentifiedNote" db:"technical_contacts_identified_note"` + CaptureParticipantInfo models.TranslationFieldWithOptionsAndParent `json:"captureParticipantInfo" db:"capture_participant_info"` + CaptureParticipantInfoNote models.TranslationField `json:"captureParticipantInfoNote" db:"capture_participant_info_note"` + IcdOwner models.TranslationFieldWithParent `json:"icdOwner" db:"icd_owner"` + DraftIcdDueDate models.TranslationFieldWithParent `json:"draftIcdDueDate" db:"draft_icd_due_date"` + IcdNote models.TranslationFieldWithParent `json:"icdNote" db:"icd_note"` + UatNeeds models.TranslationFieldWithParent `json:"uatNeeds" db:"uat_needs"` + StcNeeds models.TranslationFieldWithParent `json:"stcNeeds" db:"stc_needs"` + TestingTimelines models.TranslationFieldWithParent `json:"testingTimelines" db:"testing_timelines"` + TestingNote models.TranslationField `json:"testingNote" db:"testing_note"` + DataMonitoringFileTypes models.TranslationFieldWithOptionsAndParent `json:"dataMonitoringFileTypes" db:"data_monitoring_file_types"` + DataMonitoringFileOther models.TranslationField `json:"dataMonitoringFileOther" db:"data_monitoring_file_other"` + DataResponseType models.TranslationFieldWithParent `json:"dataResponseType" db:"data_response_type"` + DataResponseFileFrequency models.TranslationFieldWithParent `json:"dataResponseFileFrequency" db:"data_response_file_frequency"` + DataFullTimeOrIncremental models.TranslationFieldWithOptionsAndParent `json:"dataFullTimeOrIncremental" db:"data_full_time_or_incremental"` + EftSetUp models.TranslationFieldWithOptionsAndParent `json:"eftSetUp" db:"eft_set_up"` + UnsolicitedAdjustmentsIncluded models.TranslationFieldWithOptionsAndParent `json:"unsolicitedAdjustmentsIncluded" db:"unsolicited_adjustments_included"` + DataFlowDiagramsNeeded models.TranslationFieldWithOptionsAndParent `json:"dataFlowDiagramsNeeded" db:"data_flow_diagrams_needed"` + ProduceBenefitEnhancementFiles models.TranslationFieldWithOptionsAndParent `json:"produceBenefitEnhancementFiles" db:"produce_benefit_enhancement_files"` + FileNamingConventions models.TranslationFieldWithParent `json:"fileNamingConventions" db:"file_naming_conventions"` + DataMonitoringNote models.TranslationField `json:"dataMonitoringNote" db:"data_monitoring_note"` + BenchmarkForPerformance models.TranslationFieldWithOptions `json:"benchmarkForPerformance" db:"benchmark_for_performance"` + BenchmarkForPerformanceNote models.TranslationField `json:"benchmarkForPerformanceNote" db:"benchmark_for_performance_note"` + ComputePerformanceScores models.TranslationFieldWithOptions `json:"computePerformanceScores" db:"compute_performance_scores"` + ComputePerformanceScoresNote models.TranslationField `json:"computePerformanceScoresNote" db:"compute_performance_scores_note"` + RiskAdjustPerformance models.TranslationFieldWithOptions `json:"riskAdjustPerformance" db:"risk_adjust_performance"` + RiskAdjustFeedback models.TranslationFieldWithOptions `json:"riskAdjustFeedback" db:"risk_adjust_feedback"` + RiskAdjustPayments models.TranslationFieldWithOptions `json:"riskAdjustPayments" db:"risk_adjust_payments"` + RiskAdjustOther models.TranslationFieldWithOptions `json:"riskAdjustOther" db:"risk_adjust_other"` + RiskAdjustNote models.TranslationField `json:"riskAdjustNote" db:"risk_adjust_note"` + AppealPerformance models.TranslationFieldWithOptions `json:"appealPerformance" db:"appeal_performance"` + AppealFeedback models.TranslationFieldWithOptions `json:"appealFeedback" db:"appeal_feedback"` + AppealPayments models.TranslationFieldWithOptions `json:"appealPayments" db:"appeal_payments"` + AppealOther models.TranslationFieldWithOptions `json:"appealOther" db:"appeal_other"` + AppealNote models.TranslationField `json:"appealNote" db:"appeal_note"` + EvaluationApproaches models.TranslationFieldWithOptions `json:"evaluationApproaches" db:"evaluation_approaches"` + EvaluationApproachOther models.TranslationField `json:"evaluationApproachOther" db:"evaluation_approach_other"` + EvalutaionApproachNote models.TranslationField `json:"evalutaionApproachNote" db:"evalutaion_approach_note"` + CcmInvolvment models.TranslationFieldWithOptionsAndChildren `json:"ccmInvolvment" db:"ccm_involvment"` + CcmInvolvmentOther models.TranslationField `json:"ccmInvolvmentOther" db:"ccm_involvment_other"` + CcmInvolvmentNote models.TranslationField `json:"ccmInvolvmentNote" db:"ccm_involvment_note"` + DataNeededForMonitoring models.TranslationFieldWithOptionsAndChildren `json:"dataNeededForMonitoring" db:"data_needed_for_monitoring"` + DataNeededForMonitoringOther models.TranslationField `json:"dataNeededForMonitoringOther" db:"data_needed_for_monitoring_other"` + DataNeededForMonitoringNote models.TranslationField `json:"dataNeededForMonitoringNote" db:"data_needed_for_monitoring_note"` + DataToSendParticicipants models.TranslationFieldWithOptions `json:"dataToSendParticicipants" db:"data_to_send_particicipants"` + DataToSendParticicipantsOther models.TranslationField `json:"dataToSendParticicipantsOther" db:"data_to_send_particicipants_other"` + DataToSendParticicipantsNote models.TranslationField `json:"dataToSendParticicipantsNote" db:"data_to_send_particicipants_note"` + ShareCclfData models.TranslationFieldWithOptions `json:"shareCclfData" db:"share_cclf_data"` + ShareCclfDataNote models.TranslationField `json:"shareCclfDataNote" db:"share_cclf_data_note"` + SendFilesBetweenCcw models.TranslationFieldWithOptionsAndParent `json:"sendFilesBetweenCcw" db:"send_files_between_ccw"` + SendFilesBetweenCcwNote models.TranslationField `json:"sendFilesBetweenCcwNote" db:"send_files_between_ccw_note"` + AppToSendFilesToKnown models.TranslationFieldWithOptionsAndParent `json:"appToSendFilesToKnown" db:"app_to_send_files_to_known"` + AppToSendFilesToWhich models.TranslationField `json:"appToSendFilesToWhich" db:"app_to_send_files_to_which"` + AppToSendFilesToNote models.TranslationField `json:"appToSendFilesToNote" db:"app_to_send_files_to_note"` + UseCcwForFileDistribiutionToParticipants models.TranslationFieldWithOptionsAndParent `json:"useCcwForFileDistribiutionToParticipants" db:"use_ccw_for_file_distribiution_to_participants"` + UseCcwForFileDistribiutionToParticipantsNote models.TranslationField `json:"useCcwForFileDistribiutionToParticipantsNote" db:"use_ccw_for_file_distribiution_to_participants_note"` + DevelopNewQualityMeasures models.TranslationFieldWithOptionsAndParent `json:"developNewQualityMeasures" db:"develop_new_quality_measures"` + DevelopNewQualityMeasuresNote models.TranslationField `json:"developNewQualityMeasuresNote" db:"develop_new_quality_measures_note"` + QualityPerformanceImpactsPayment models.TranslationFieldWithOptionsAndParent `json:"qualityPerformanceImpactsPayment" db:"quality_performance_impacts_payment"` + QualityPerformanceImpactsPaymentOther models.TranslationField `json:"qualityPerformanceImpactsPaymentOther" db:"quality_performance_impacts_payment_other"` + QualityPerformanceImpactsPaymentNote models.TranslationField `json:"qualityPerformanceImpactsPaymentNote" db:"quality_performance_impacts_payment_note"` + DataSharingStarts models.TranslationFieldWithOptions `json:"dataSharingStarts" db:"data_sharing_starts"` + DataSharingStartsOther models.TranslationField `json:"dataSharingStartsOther" db:"data_sharing_starts_other"` + DataSharingFrequency models.TranslationFieldWithOptions `json:"dataSharingFrequency" db:"data_sharing_frequency"` + DataSharingFrequencyContinually models.TranslationField `json:"dataSharingFrequencyContinually" db:"data_sharing_frequency_continually"` + DataSharingFrequencyOther models.TranslationField `json:"dataSharingFrequencyOther" db:"data_sharing_frequency_other"` + DataSharingStartsNote models.TranslationField `json:"dataSharingStartsNote" db:"data_sharing_starts_note"` + DataCollectionStarts models.TranslationFieldWithOptions `json:"dataCollectionStarts" db:"data_collection_starts"` + DataCollectionStartsOther models.TranslationField `json:"dataCollectionStartsOther" db:"data_collection_starts_other"` + DataCollectionFrequency models.TranslationFieldWithOptions `json:"dataCollectionFrequency" db:"data_collection_frequency"` + DataCollectionFrequencyContinually models.TranslationField `json:"dataCollectionFrequencyContinually" db:"data_collection_frequency_continually"` + DataCollectionFrequencyOther models.TranslationField `json:"dataCollectionFrequencyOther" db:"data_collection_frequency_other"` + DataCollectionFrequencyNote models.TranslationField `json:"dataCollectionFrequencyNote" db:"data_collection_frequency_note"` + QualityReportingStarts models.TranslationFieldWithOptions `json:"qualityReportingStarts" db:"quality_reporting_starts"` + QualityReportingStartsOther models.TranslationField `json:"qualityReportingStartsOther" db:"quality_reporting_starts_other"` + QualityReportingStartsNote models.TranslationField `json:"qualityReportingStartsNote" db:"quality_reporting_starts_note"` + QualityReportingFrequency models.TranslationFieldWithOptions `json:"qualityReportingFrequency" db:"quality_reporting_frequency"` + QualityReportingFrequencyContinually models.TranslationField `json:"qualityReportingFrequencyContinually" db:"quality_reporting_frequency_continually"` + QualityReportingFrequencyOther models.TranslationField `json:"qualityReportingFrequencyOther" db:"quality_reporting_frequency_other"` + ModelLearningSystems models.TranslationFieldWithOptions `json:"modelLearningSystems" db:"model_learning_systems"` + ModelLearningSystemsOther models.TranslationField `json:"modelLearningSystemsOther" db:"model_learning_systems_other"` + ModelLearningSystemsNote models.TranslationField `json:"modelLearningSystemsNote" db:"model_learning_systems_note"` + AnticipatedChallenges models.TranslationField `json:"anticipatedChallenges" db:"anticipated_challenges"` + ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` + ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` + ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` + ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +// Represents plan participants and providers translation data +type PlanParticipantsAndProvidersTranslation struct { + Participants models.TranslationFieldWithOptions `json:"participants" db:"participants"` + MedicareProviderType models.TranslationField `json:"medicareProviderType" db:"medicare_provider_type"` + IsNewTypeOfProvidersOrSuppliers models.TranslationFieldWithOptionsAndParent `json:"isNewTypeOfProvidersOrSuppliers" db:"is_new_type_of_providers_or_suppliers"` + StatesEngagement models.TranslationField `json:"statesEngagement" db:"states_engagement"` + ParticipantsOther models.TranslationField `json:"participantsOther" db:"participants_other"` + ParticipantsNote models.TranslationField `json:"participantsNote" db:"participants_note"` + ParticipantsCurrentlyInModels models.TranslationFieldWithOptions `json:"participantsCurrentlyInModels" db:"participants_currently_in_models"` + ParticipantsCurrentlyInModelsNote models.TranslationField `json:"participantsCurrentlyInModelsNote" db:"participants_currently_in_models_note"` + ModelApplicationLevel models.TranslationField `json:"modelApplicationLevel" db:"model_application_level"` + ExpectedNumberOfParticipants models.TranslationField `json:"expectedNumberOfParticipants" db:"expected_number_of_participants"` + EstimateConfidence models.TranslationFieldWithOptions `json:"estimateConfidence" db:"estimate_confidence"` + ConfidenceNote models.TranslationField `json:"confidenceNote" db:"confidence_note"` + RecruitmentMethod models.TranslationFieldWithOptions `json:"recruitmentMethod" db:"recruitment_method"` + RecruitmentOther models.TranslationField `json:"recruitmentOther" db:"recruitment_other"` + RecruitmentNote models.TranslationField `json:"recruitmentNote" db:"recruitment_note"` + SelectionMethod models.TranslationFieldWithOptions `json:"selectionMethod" db:"selection_method"` + SelectionOther models.TranslationField `json:"selectionOther" db:"selection_other"` + SelectionNote models.TranslationField `json:"selectionNote" db:"selection_note"` + ParticipantAddedFrequency models.TranslationFieldWithOptions `json:"participantAddedFrequency" db:"participant_added_frequency"` + ParticipantAddedFrequencyContinually models.TranslationField `json:"participantAddedFrequencyContinually" db:"participant_added_frequency_continually"` + ParticipantAddedFrequencyOther models.TranslationField `json:"participantAddedFrequencyOther" db:"participant_added_frequency_other"` + ParticipantAddedFrequencyNote models.TranslationField `json:"participantAddedFrequencyNote" db:"participant_added_frequency_note"` + ParticipantRemovedFrequency models.TranslationFieldWithOptions `json:"participantRemovedFrequency" db:"participant_removed_frequency"` + ParticipantRemovedFrequencyContinually models.TranslationField `json:"participantRemovedFrequencyContinually" db:"participant_removed_frequency_continually"` + ParticipantRemovedFrequencyOther models.TranslationField `json:"participantRemovedFrequencyOther" db:"participant_removed_frequency_other"` + ParticipantRemovedFrequencyNote models.TranslationField `json:"participantRemovedFrequencyNote" db:"participant_removed_frequency_note"` + CommunicationMethod models.TranslationFieldWithOptions `json:"communicationMethod" db:"communication_method"` + CommunicationMethodOther models.TranslationField `json:"communicationMethodOther" db:"communication_method_other"` + CommunicationNote models.TranslationField `json:"communicationNote" db:"communication_note"` + RiskType models.TranslationFieldWithOptions `json:"riskType" db:"risk_type"` + RiskOther models.TranslationField `json:"riskOther" db:"risk_other"` + RiskNote models.TranslationField `json:"riskNote" db:"risk_note"` + WillRiskChange models.TranslationFieldWithOptions `json:"willRiskChange" db:"will_risk_change"` + WillRiskChangeNote models.TranslationField `json:"willRiskChangeNote" db:"will_risk_change_note"` + ParticipantRequireFinancialGuarantee models.TranslationFieldWithOptions `json:"participantRequireFinancialGuarantee" db:"participant_require_financial_guarantee"` + ParticipantRequireFinancialGuaranteeType models.TranslationFieldWithOptions `json:"participantRequireFinancialGuaranteeType" db:"participant_require_financial_guarantee_type"` + ParticipantRequireFinancialGuaranteeOther models.TranslationField `json:"participantRequireFinancialGuaranteeOther" db:"participant_require_financial_guarantee_other"` + ParticipantRequireFinancialGuaranteeNote models.TranslationField `json:"participantRequireFinancialGuaranteeNote" db:"participant_require_financial_guarantee_note"` + CoordinateWork models.TranslationFieldWithOptions `json:"coordinateWork" db:"coordinate_work"` + CoordinateWorkNote models.TranslationField `json:"coordinateWorkNote" db:"coordinate_work_note"` + GainsharePayments models.TranslationFieldWithOptionsAndChildren `json:"gainsharePayments" db:"gainshare_payments"` + GainsharePaymentsTrack models.TranslationFieldWithOptionsAndParent `json:"gainsharePaymentsTrack" db:"gainshare_payments_track"` + GainsharePaymentsNote models.TranslationField `json:"gainsharePaymentsNote" db:"gainshare_payments_note"` + GainsharePaymentsEligibility models.TranslationFieldWithOptionsAndParent `json:"gainsharePaymentsEligibility" db:"gainshare_payments_eligibility"` + GainsharePaymentsEligibilityOther models.TranslationField `json:"gainsharePaymentsEligibilityOther" db:"gainshare_payments_eligibility_other"` + ParticipantsIds models.TranslationFieldWithOptions `json:"participantsIds" db:"participants_ids"` + ParticipantsIdsOther models.TranslationField `json:"participantsIdsOther" db:"participants_ids_other"` + ParticipantsIDSNote models.TranslationField `json:"participantsIDSNote" db:"participants_ids_note"` + ProviderAdditionFrequency models.TranslationFieldWithOptions `json:"providerAdditionFrequency" db:"provider_addition_frequency"` + ProviderAdditionFrequencyContinually models.TranslationField `json:"providerAdditionFrequencyContinually" db:"provider_addition_frequency_continually"` + ProviderAdditionFrequencyOther models.TranslationField `json:"providerAdditionFrequencyOther" db:"provider_addition_frequency_other"` + ProviderAdditionFrequencyNote models.TranslationField `json:"providerAdditionFrequencyNote" db:"provider_addition_frequency_note"` + ProviderAddMethod models.TranslationFieldWithOptions `json:"providerAddMethod" db:"provider_add_method"` + ProviderAddMethodOther models.TranslationField `json:"providerAddMethodOther" db:"provider_add_method_other"` + ProviderAddMethodNote models.TranslationField `json:"providerAddMethodNote" db:"provider_add_method_note"` + ProviderLeaveMethod models.TranslationFieldWithOptions `json:"providerLeaveMethod" db:"provider_leave_method"` + ProviderLeaveMethodOther models.TranslationField `json:"providerLeaveMethodOther" db:"provider_leave_method_other"` + ProviderLeaveMethodNote models.TranslationField `json:"providerLeaveMethodNote" db:"provider_leave_method_note"` + ProviderRemovalFrequency models.TranslationFieldWithOptions `json:"providerRemovalFrequency" db:"provider_removal_frequency"` + ProviderRemovalFrequencyContinually models.TranslationField `json:"providerRemovalFrequencyContinually" db:"provider_removal_frequency_continually"` + ProviderRemovalFrequencyOther models.TranslationField `json:"providerRemovalFrequencyOther" db:"provider_removal_frequency_other"` + ProviderRemovalFrequencyNote models.TranslationField `json:"providerRemovalFrequencyNote" db:"provider_removal_frequency_note"` + ProviderOverlap models.TranslationFieldWithOptionsAndChildren `json:"providerOverlap" db:"provider_overlap"` + ProviderOverlapHierarchy models.TranslationFieldWithParent `json:"providerOverlapHierarchy" db:"provider_overlap_hierarchy"` + ProviderOverlapNote models.TranslationField `json:"providerOverlapNote" db:"provider_overlap_note"` + ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` + ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` + ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` + ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +// Represents payments translation data +type PlanPaymentsTranslation struct { + FundingSource models.TranslationFieldWithOptions `json:"fundingSource" db:"funding_source"` + FundingSourcePatientProtectionInfo models.TranslationField `json:"fundingSourcePatientProtectionInfo" db:"funding_source_patient_protection_info"` + FundingSourceMedicareAInfo models.TranslationField `json:"fundingSourceMedicareAInfo" db:"funding_source_medicare_a_info"` + FundingSourceMedicareBInfo models.TranslationField `json:"fundingSourceMedicareBInfo" db:"funding_source_medicare_b_info"` + FundingSourceOther models.TranslationField `json:"fundingSourceOther" db:"funding_source_other"` + FundingSourceNote models.TranslationField `json:"fundingSourceNote" db:"funding_source_note"` + FundingSourceR models.TranslationFieldWithOptions `json:"fundingSourceR" db:"funding_source_r"` + FundingSourceRPatientProtectionInfo models.TranslationField `json:"fundingSourceRPatientProtectionInfo" db:"funding_source_r_patient_protection_info"` + FundingSourceRMedicareAInfo models.TranslationField `json:"fundingSourceRMedicareAInfo" db:"funding_source_r_medicare_a_info"` + FundingSourceRMedicareBInfo models.TranslationField `json:"fundingSourceRMedicareBInfo" db:"funding_source_r_medicare_b_info"` + FundingSourceROther models.TranslationField `json:"fundingSourceROther" db:"funding_source_r_other"` + FundingSourceRNote models.TranslationField `json:"fundingSourceRNote" db:"funding_source_r_note"` + PayRecipients models.TranslationFieldWithOptions `json:"payRecipients" db:"pay_recipients"` + PayRecipientsOtherSpecification models.TranslationField `json:"payRecipientsOtherSpecification" db:"pay_recipients_other_specification"` + PayRecipientsNote models.TranslationField `json:"payRecipientsNote" db:"pay_recipients_note"` + PayType models.TranslationFieldWithOptionsAndChildren `json:"payType" db:"pay_type"` + PayTypeNote models.TranslationField `json:"payTypeNote" db:"pay_type_note"` + PayClaims models.TranslationFieldWithOptions `json:"payClaims" db:"pay_claims"` + PayClaimsOther models.TranslationField `json:"payClaimsOther" db:"pay_claims_other"` + PayClaimsNote models.TranslationField `json:"payClaimsNote" db:"pay_claims_note"` + ShouldAnyProvidersExcludedFFSSystems models.TranslationFieldWithOptionsAndParent `json:"shouldAnyProvidersExcludedFFSSystems" db:"should_any_providers_excluded_ffs_systems"` + ShouldAnyProviderExcludedFFSSystemsNote models.TranslationField `json:"shouldAnyProviderExcludedFFSSystemsNote" db:"should_any_providers_excluded_ffs_systems_note"` + ChangesMedicarePhysicianFeeSchedule models.TranslationFieldWithOptionsAndParent `json:"changesMedicarePhysicianFeeSchedule" db:"changes_medicare_physician_fee_schedule"` + ChangesMedicarePhysicianFeeScheduleNote models.TranslationField `json:"changesMedicarePhysicianFeeScheduleNote" db:"changes_medicare_physician_fee_schedule_note"` + AffectsMedicareSecondaryPayerClaims models.TranslationFieldWithOptionsAndParent `json:"affectsMedicareSecondaryPayerClaims" db:"affects_medicare_secondary_payer_claims"` + AffectsMedicareSecondaryPayerClaimsHow models.TranslationField `json:"affectsMedicareSecondaryPayerClaimsHow" db:"affects_medicare_secondary_payer_claims_how"` + AffectsMedicareSecondaryPayerClaimsNote models.TranslationField `json:"affectsMedicareSecondaryPayerClaimsNote" db:"affects_medicare_secondary_payer_claims_note"` + PayModelDifferentiation models.TranslationFieldWithParent `json:"payModelDifferentiation" db:"pay_model_differentiation"` + WillBePaymentAdjustments models.TranslationFieldWithOptionsAndParent `json:"willBePaymentAdjustments" db:"will_be_payment_adjustments"` + WillBePaymentAdjustmentsNote models.TranslationField `json:"willBePaymentAdjustmentsNote" db:"will_be_payment_adjustments_note"` + CreatingDependenciesBetweenServices models.TranslationFieldWithOptionsAndParent `json:"creatingDependenciesBetweenServices" db:"creating_dependencies_between_services"` + CreatingDependenciesBetweenServicesNote models.TranslationField `json:"creatingDependenciesBetweenServicesNote" db:"creating_dependencies_between_services_note"` + NeedsClaimsDataCollection models.TranslationFieldWithOptionsAndParent `json:"needsClaimsDataCollection" db:"needs_claims_data_collection"` + NeedsClaimsDataCollectionNote models.TranslationField `json:"needsClaimsDataCollectionNote" db:"needs_claims_data_collection_note"` + ProvidingThirdPartyFile models.TranslationFieldWithOptionsAndParent `json:"providingThirdPartyFile" db:"providing_third_party_file"` + IsContractorAwareTestDataRequirements models.TranslationFieldWithOptionsAndParent `json:"isContractorAwareTestDataRequirements" db:"is_contractor_aware_test_data_requirements"` + BeneficiaryCostSharingLevelAndHandling models.TranslationFieldWithParent `json:"beneficiaryCostSharingLevelAndHandling" db:"beneficiary_cost_sharing_level_and_handling"` + WaiveBeneficiaryCostSharingForAnyServices models.TranslationFieldWithOptionsAndParent `json:"waiveBeneficiaryCostSharingForAnyServices" db:"waive_beneficiary_cost_sharing_for_any_services"` + WaiveBeneficiaryCostSharingServiceSpecification models.TranslationField `json:"waiveBeneficiaryCostSharingServiceSpecification" db:"waive_beneficiary_cost_sharing_service_specification"` + WaiverOnlyAppliesPartOfPayment models.TranslationFieldWithOptionsAndParent `json:"waiverOnlyAppliesPartOfPayment" db:"waiver_only_applies_part_of_payment"` + WaiveBeneficiaryCostSharingNote models.TranslationField `json:"waiveBeneficiaryCostSharingNote" db:"waive_beneficiary_cost_sharing_note"` + NonClaimsPayments models.TranslationFieldWithOptionsAndParent `json:"nonClaimsPayments" db:"non_claims_payments"` + NonClaimsPaymentOther models.TranslationField `json:"nonClaimsPaymentOther" db:"non_claims_payments_other"` + NonClaimsPaymentsNote models.TranslationField `json:"nonClaimsPaymentsNote" db:"non_claims_payments_note"` + PaymentCalculationOwner models.TranslationFieldWithParent `json:"paymentCalculationOwner" db:"payment_calculation_owner"` + NumberPaymentsPerPayCycle models.TranslationFieldWithParent `json:"numberPaymentsPerPayCycle" db:"number_payments_per_pay_cycle"` + NumberPaymentsPerPayCycleNote models.TranslationField `json:"numberPaymentsPerPayCycleNote" db:"number_payments_per_pay_cycle_note"` + SharedSystemsInvolvedAdditionalClaimPayment models.TranslationFieldWithOptionsAndParent `json:"sharedSystemsInvolvedAdditionalClaimPayment" db:"shared_systems_involved_additional_claim_payment"` + SharedSystemsInvolvedAdditionalClaimPaymentNote models.TranslationField `json:"sharedSystemsInvolvedAdditionalClaimPaymentNote" db:"shared_systems_involved_additional_claim_payment_note"` + PlanningToUseInnovationPaymentContractor models.TranslationFieldWithOptionsAndParent `json:"planningToUseInnovationPaymentContractor" db:"planning_to_use_innovation_payment_contractor"` + PlanningToUseInnovationPaymentContractorNote models.TranslationField `json:"planningToUseInnovationPaymentContractorNote" db:"planning_to_use_innovation_payment_contractor_note"` + ExpectedCalculationComplexityLevel models.TranslationFieldWithOptions `json:"expectedCalculationComplexityLevel" db:"expected_calculation_complexity_level"` + ExpectedCalculationComplexityLevelNote models.TranslationField `json:"expectedCalculationComplexityLevelNote" db:"expected_calculation_complexity_level_note"` + ClaimsProcessingPrecedence models.TranslationFieldWithOptions `json:"claimsProcessingPrecedence" db:"claims_processing_precedence"` + ClaimsProcessingPrecedenceOther models.TranslationField `json:"claimsProcessingPrecedenceOther" db:"claims_processing_precedence_other"` + ClaimsProcessingPrecedenceNote models.TranslationField `json:"claimsProcessingPrecedenceNote" db:"claims_processing_precedence_note"` + CanParticipantsSelectBetweenPaymentMechanisms models.TranslationFieldWithOptions `json:"canParticipantsSelectBetweenPaymentMechanisms" db:"can_participants_select_between_payment_mechanisms"` + CanParticipantsSelectBetweenPaymentMechanismsHow models.TranslationField `json:"canParticipantsSelectBetweenPaymentMechanismsHow" db:"can_participants_select_between_payment_mechanisms_how"` + CanParticipantsSelectBetweenPaymentMechanismsNote models.TranslationField `json:"canParticipantsSelectBetweenPaymentMechanismsNote" db:"can_participants_select_between_payment_mechanisms_note"` + AnticipatedPaymentFrequency models.TranslationFieldWithOptions `json:"anticipatedPaymentFrequency" db:"anticipated_payment_frequency"` + AnticipatedPaymentFrequencyContinually models.TranslationField `json:"anticipatedPaymentFrequencyContinually" db:"anticipated_payment_frequency_continually"` + AnticipatedPaymentFrequencyOther models.TranslationField `json:"anticipatedPaymentFrequencyOther" db:"anticipated_payment_frequency_other"` + AnticipatedPaymentFrequencyNote models.TranslationField `json:"anticipatedPaymentFrequencyNote" db:"anticipated_payment_frequency_note"` + WillRecoverPayments models.TranslationFieldWithOptions `json:"willRecoverPayments" db:"will_recover_payments"` + WillRecoverPaymentsNote models.TranslationField `json:"willRecoverPaymentsNote" db:"will_recover_payments_note"` + AnticipateReconcilingPaymentsRetrospectively models.TranslationFieldWithOptions `json:"anticipateReconcilingPaymentsRetrospectively" db:"anticipate_reconciling_payments_retrospectively"` + AnticipateReconcilingPaymentsRetrospectivelyNote models.TranslationField `json:"anticipateReconcilingPaymentsRetrospectivelyNote" db:"anticipate_reconciling_payments_retrospectively_note"` + PaymentReconciliationFrequency models.TranslationFieldWithOptions `json:"paymentReconciliationFrequency" db:"payment_reconciliation_frequency"` + PaymentReconciliationFrequencyContinually models.TranslationField `json:"paymentReconciliationFrequencyContinually" db:"payment_reconciliation_frequency_continually"` + PaymentReconciliationFrequencyOther models.TranslationField `json:"paymentReconciliationFrequencyOther" db:"payment_reconciliation_frequency_other"` + PaymentReconciliationFrequencyNote models.TranslationField `json:"paymentReconciliationFrequencyNote" db:"payment_reconciliation_frequency_note"` + PaymentDemandRecoupmentFrequency models.TranslationFieldWithOptions `json:"paymentDemandRecoupmentFrequency" db:"payment_demand_recoupment_frequency"` + PaymentDemandRecoupmentFrequencyContinually models.TranslationField `json:"paymentDemandRecoupmentFrequencyContinually" db:"payment_demand_recoupment_frequency_continually"` + PaymentDemandRecoupmentFrequencyOther models.TranslationField `json:"paymentDemandRecoupmentFrequencyOther" db:"payment_demand_recoupment_frequency_other"` + PaymentDemandRecoupmentFrequencyNote models.TranslationField `json:"paymentDemandRecoupmentFrequencyNote" db:"payment_demand_recoupment_frequency_note"` + PaymentStartDate models.TranslationField `json:"paymentStartDate" db:"payment_start_date"` + PaymentStartDateNote models.TranslationField `json:"paymentStartDateNote" db:"payment_start_date_note"` + ReadyForReviewBy models.TranslationField `json:"readyForReviewBy" db:"ready_for_review_by"` + ReadyForReviewDts models.TranslationField `json:"readyForReviewDts" db:"ready_for_review_dts"` + ReadyForClearanceBy models.TranslationField `json:"readyForClearanceBy" db:"ready_for_clearance_by"` + ReadyForClearanceDts models.TranslationField `json:"readyForClearanceDts" db:"ready_for_clearance_dts"` + Status models.TranslationFieldWithOptions `json:"status" db:"status"` +} + +type PlanTDLCreateInput struct { + ModelPlanID uuid.UUID `json:"modelPlanID"` + IDNumber string `json:"idNumber"` + DateInitiated time.Time `json:"dateInitiated"` + Title string `json:"title"` + Note *string `json:"note,omitempty"` +} + +// Represents plan tdl translation data +type PlanTDLTranslation struct { + IDNumber models.TranslationField `json:"idNumber" db:"id_number"` + Title models.TranslationField `json:"title" db:"title"` + DateInitiated models.TranslationField `json:"dateInitiated" db:"date_initiated"` + Note models.TranslationField `json:"note" db:"note"` +} + +type PrepareForClearance struct { + Status PrepareForClearanceStatus `json:"status"` + LatestClearanceDts *time.Time `json:"latestClearanceDts,omitempty"` +} + +type ReportAProblemInput struct { + IsAnonymousSubmission bool `json:"isAnonymousSubmission"` + AllowContact *bool `json:"allowContact,omitempty"` + Section *ReportAProblemSection `json:"section,omitempty"` + SectionOther *string `json:"sectionOther,omitempty"` + WhatDoing *string `json:"whatDoing,omitempty"` + WhatWentWrong *string `json:"whatWentWrong,omitempty"` + Severity *ReportAProblemSeverity `json:"severity,omitempty"` + SeverityOther *string `json:"severityOther,omitempty"` +} + +// The inputs to the user feedback form +type SendFeedbackEmailInput struct { + IsAnonymousSubmission bool `json:"isAnonymousSubmission"` + AllowContact *bool `json:"allowContact,omitempty"` + CmsRole *string `json:"cmsRole,omitempty"` + MintUsedFor []MintUses `json:"mintUsedFor,omitempty"` + MintUsedForOther *string `json:"mintUsedForOther,omitempty"` + SystemEasyToUse *EaseOfUse `json:"systemEasyToUse,omitempty"` + SystemEasyToUseOther *string `json:"systemEasyToUseOther,omitempty"` + HowSatisfied *SatisfactionLevel `json:"howSatisfied,omitempty"` + HowCanWeImprove *string `json:"howCanWeImprove,omitempty"` +} + +type UpdateOperationalSolutionSubtaskInput struct { + ID uuid.UUID `json:"id"` + Changes map[string]interface{} `json:"changes"` +} + +type ActionType string + +const ( + // A normal flow action + ActionTypeNormal ActionType = "NORMAL" + // An administrative action + ActionTypeAdmin ActionType = "ADMIN" +) + +var AllActionType = []ActionType{ + ActionTypeNormal, + ActionTypeAdmin, +} + +func (e ActionType) IsValid() bool { + switch e { + case ActionTypeNormal, ActionTypeAdmin: + return true + } + return false +} + +func (e ActionType) String() string { + return string(e) +} + +func (e *ActionType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ActionType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ActionType", str) + } + return nil +} + +func (e ActionType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type AgencyOrStateHelpType string + +const ( + AgencyOrStateHelpTypeYesState AgencyOrStateHelpType = "YES_STATE" + AgencyOrStateHelpTypeYesAgencyIDEas AgencyOrStateHelpType = "YES_AGENCY_IDEAS" + AgencyOrStateHelpTypeYesAgencyIaa AgencyOrStateHelpType = "YES_AGENCY_IAA" + AgencyOrStateHelpTypeNo AgencyOrStateHelpType = "NO" + AgencyOrStateHelpTypeOther AgencyOrStateHelpType = "OTHER" +) + +var AllAgencyOrStateHelpType = []AgencyOrStateHelpType{ + AgencyOrStateHelpTypeYesState, + AgencyOrStateHelpTypeYesAgencyIDEas, + AgencyOrStateHelpTypeYesAgencyIaa, + AgencyOrStateHelpTypeNo, + AgencyOrStateHelpTypeOther, +} + +func (e AgencyOrStateHelpType) IsValid() bool { + switch e { + case AgencyOrStateHelpTypeYesState, AgencyOrStateHelpTypeYesAgencyIDEas, AgencyOrStateHelpTypeYesAgencyIaa, AgencyOrStateHelpTypeNo, AgencyOrStateHelpTypeOther: + return true + } + return false +} + +func (e AgencyOrStateHelpType) String() string { + return string(e) +} + +func (e *AgencyOrStateHelpType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = AgencyOrStateHelpType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid AgencyOrStateHelpType", str) + } + return nil +} + +func (e AgencyOrStateHelpType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type AgreementType string + +const ( + AgreementTypeParticipation AgreementType = "PARTICIPATION" + AgreementTypeCooperative AgreementType = "COOPERATIVE" + AgreementTypeOther AgreementType = "OTHER" +) + +var AllAgreementType = []AgreementType{ + AgreementTypeParticipation, + AgreementTypeCooperative, + AgreementTypeOther, +} + +func (e AgreementType) IsValid() bool { + switch e { + case AgreementTypeParticipation, AgreementTypeCooperative, AgreementTypeOther: + return true + } + return false +} + +func (e AgreementType) String() string { + return string(e) +} + +func (e *AgreementType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = AgreementType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid AgreementType", str) + } + return nil +} + +func (e AgreementType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type AlternativePaymentModelType string + +const ( + AlternativePaymentModelTypeRegular AlternativePaymentModelType = "REGULAR" + AlternativePaymentModelTypeMips AlternativePaymentModelType = "MIPS" + AlternativePaymentModelTypeAdvanced AlternativePaymentModelType = "ADVANCED" + AlternativePaymentModelTypeNotApm AlternativePaymentModelType = "NOT_APM" +) + +var AllAlternativePaymentModelType = []AlternativePaymentModelType{ + AlternativePaymentModelTypeRegular, + AlternativePaymentModelTypeMips, + AlternativePaymentModelTypeAdvanced, + AlternativePaymentModelTypeNotApm, +} + +func (e AlternativePaymentModelType) IsValid() bool { + switch e { + case AlternativePaymentModelTypeRegular, AlternativePaymentModelTypeMips, AlternativePaymentModelTypeAdvanced, AlternativePaymentModelTypeNotApm: + return true + } + return false +} + +func (e AlternativePaymentModelType) String() string { + return string(e) +} + +func (e *AlternativePaymentModelType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = AlternativePaymentModelType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid AlternativePaymentModelType", str) + } + return nil +} + +func (e AlternativePaymentModelType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type AuthorityAllowance string + +const ( + AuthorityAllowanceAca AuthorityAllowance = "ACA" + AuthorityAllowanceCongressionallyMandated AuthorityAllowance = "CONGRESSIONALLY_MANDATED" + AuthorityAllowanceSsaPartB AuthorityAllowance = "SSA_PART_B" + AuthorityAllowanceOther AuthorityAllowance = "OTHER" +) + +var AllAuthorityAllowance = []AuthorityAllowance{ + AuthorityAllowanceAca, + AuthorityAllowanceCongressionallyMandated, + AuthorityAllowanceSsaPartB, + AuthorityAllowanceOther, +} + +func (e AuthorityAllowance) IsValid() bool { + switch e { + case AuthorityAllowanceAca, AuthorityAllowanceCongressionallyMandated, AuthorityAllowanceSsaPartB, AuthorityAllowanceOther: + return true + } + return false +} + +func (e AuthorityAllowance) String() string { + return string(e) +} + +func (e *AuthorityAllowance) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = AuthorityAllowance(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid AuthorityAllowance", str) + } + return nil +} + +func (e AuthorityAllowance) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type BeneficiariesType string + +const ( + BeneficiariesTypeMedicareFfs BeneficiariesType = "MEDICARE_FFS" + BeneficiariesTypeMedicareAdvantage BeneficiariesType = "MEDICARE_ADVANTAGE" + BeneficiariesTypeMedicarePartD BeneficiariesType = "MEDICARE_PART_D" + BeneficiariesTypeMedicaid BeneficiariesType = "MEDICAID" + BeneficiariesTypeDuallyEligible BeneficiariesType = "DUALLY_ELIGIBLE" + BeneficiariesTypeDiseaseSpecific BeneficiariesType = "DISEASE_SPECIFIC" + BeneficiariesTypeUnderserved BeneficiariesType = "UNDERSERVED" + BeneficiariesTypeOther BeneficiariesType = "OTHER" + BeneficiariesTypeNa BeneficiariesType = "NA" +) + +var AllBeneficiariesType = []BeneficiariesType{ + BeneficiariesTypeMedicareFfs, + BeneficiariesTypeMedicareAdvantage, + BeneficiariesTypeMedicarePartD, + BeneficiariesTypeMedicaid, + BeneficiariesTypeDuallyEligible, + BeneficiariesTypeDiseaseSpecific, + BeneficiariesTypeUnderserved, + BeneficiariesTypeOther, + BeneficiariesTypeNa, +} + +func (e BeneficiariesType) IsValid() bool { + switch e { + case BeneficiariesTypeMedicareFfs, BeneficiariesTypeMedicareAdvantage, BeneficiariesTypeMedicarePartD, BeneficiariesTypeMedicaid, BeneficiariesTypeDuallyEligible, BeneficiariesTypeDiseaseSpecific, BeneficiariesTypeUnderserved, BeneficiariesTypeOther, BeneficiariesTypeNa: + return true + } + return false +} + +func (e BeneficiariesType) String() string { + return string(e) +} + +func (e *BeneficiariesType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = BeneficiariesType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid BeneficiariesType", str) + } + return nil +} + +func (e BeneficiariesType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type CMMIGroup string + +const ( + CMMIGroupPatientCareModelsGroup CMMIGroup = "PATIENT_CARE_MODELS_GROUP" + CMMIGroupPolicyAndProgramsGroup CMMIGroup = "POLICY_AND_PROGRAMS_GROUP" + CMMIGroupSeamlessCareModelsGroup CMMIGroup = "SEAMLESS_CARE_MODELS_GROUP" + CMMIGroupStateAndPopulationHealthGroup CMMIGroup = "STATE_AND_POPULATION_HEALTH_GROUP" + CMMIGroupTbd CMMIGroup = "TBD" +) + +var AllCMMIGroup = []CMMIGroup{ + CMMIGroupPatientCareModelsGroup, + CMMIGroupPolicyAndProgramsGroup, + CMMIGroupSeamlessCareModelsGroup, + CMMIGroupStateAndPopulationHealthGroup, + CMMIGroupTbd, +} + +func (e CMMIGroup) IsValid() bool { + switch e { + case CMMIGroupPatientCareModelsGroup, CMMIGroupPolicyAndProgramsGroup, CMMIGroupSeamlessCareModelsGroup, CMMIGroupStateAndPopulationHealthGroup, CMMIGroupTbd: + return true + } + return false +} + +func (e CMMIGroup) String() string { + return string(e) +} + +func (e *CMMIGroup) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = CMMIGroup(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid CMMIGroup", str) + } + return nil +} + +func (e CMMIGroup) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type CMSCenter string + +const ( + CMSCenterCmmi CMSCenter = "CMMI" + CMSCenterCenterForMedicare CMSCenter = "CENTER_FOR_MEDICARE" + CMSCenterFederalCoordinatedHealthCareOffice CMSCenter = "FEDERAL_COORDINATED_HEALTH_CARE_OFFICE" + CMSCenterCenterForMedicaidAndChipServices CMSCenter = "CENTER_FOR_MEDICAID_AND_CHIP_SERVICES" + CMSCenterCenterForClinicalStandardsAndQuality CMSCenter = "CENTER_FOR_CLINICAL_STANDARDS_AND_QUALITY" + CMSCenterCenterForProgramIntegrity CMSCenter = "CENTER_FOR_PROGRAM_INTEGRITY" +) + +var AllCMSCenter = []CMSCenter{ + CMSCenterCmmi, + CMSCenterCenterForMedicare, + CMSCenterFederalCoordinatedHealthCareOffice, + CMSCenterCenterForMedicaidAndChipServices, + CMSCenterCenterForClinicalStandardsAndQuality, + CMSCenterCenterForProgramIntegrity, +} + +func (e CMSCenter) IsValid() bool { + switch e { + case CMSCenterCmmi, CMSCenterCenterForMedicare, CMSCenterFederalCoordinatedHealthCareOffice, CMSCenterCenterForMedicaidAndChipServices, CMSCenterCenterForClinicalStandardsAndQuality, CMSCenterCenterForProgramIntegrity: + return true + } + return false +} + +func (e CMSCenter) String() string { + return string(e) +} + +func (e *CMSCenter) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = CMSCenter(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid CMSCenter", str) + } + return nil +} + +func (e CMSCenter) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type CcmInvolvmentType string + +const ( + CcmInvolvmentTypeYesEvaluation CcmInvolvmentType = "YES_EVALUATION" + CcmInvolvmentTypeYesImplementation CcmInvolvmentType = "YES__IMPLEMENTATION" + CcmInvolvmentTypeNo CcmInvolvmentType = "NO" + CcmInvolvmentTypeOther CcmInvolvmentType = "OTHER" +) + +var AllCcmInvolvmentType = []CcmInvolvmentType{ + CcmInvolvmentTypeYesEvaluation, + CcmInvolvmentTypeYesImplementation, + CcmInvolvmentTypeNo, + CcmInvolvmentTypeOther, +} + +func (e CcmInvolvmentType) IsValid() bool { + switch e { + case CcmInvolvmentTypeYesEvaluation, CcmInvolvmentTypeYesImplementation, CcmInvolvmentTypeNo, CcmInvolvmentTypeOther: + return true + } + return false +} + +func (e CcmInvolvmentType) String() string { + return string(e) +} + +func (e *CcmInvolvmentType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = CcmInvolvmentType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid CcmInvolvmentType", str) + } + return nil +} + +func (e CcmInvolvmentType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ChangeType string + +const ( + ChangeTypeAdded ChangeType = "ADDED" + ChangeTypeUpdated ChangeType = "UPDATED" + ChangeTypeRemoved ChangeType = "REMOVED" +) + +var AllChangeType = []ChangeType{ + ChangeTypeAdded, + ChangeTypeUpdated, + ChangeTypeRemoved, +} + +func (e ChangeType) IsValid() bool { + switch e { + case ChangeTypeAdded, ChangeTypeUpdated, ChangeTypeRemoved: + return true + } + return false +} + +func (e ChangeType) String() string { + return string(e) +} + +func (e *ChangeType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ChangeType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ChangeType", str) + } + return nil +} + +func (e ChangeType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ContractorSupportType string + +const ( + ContractorSupportTypeOne ContractorSupportType = "ONE" + ContractorSupportTypeMultiple ContractorSupportType = "MULTIPLE" + ContractorSupportTypeNone ContractorSupportType = "NONE" + ContractorSupportTypeOther ContractorSupportType = "OTHER" +) + +var AllContractorSupportType = []ContractorSupportType{ + ContractorSupportTypeOne, + ContractorSupportTypeMultiple, + ContractorSupportTypeNone, + ContractorSupportTypeOther, +} + +func (e ContractorSupportType) IsValid() bool { + switch e { + case ContractorSupportTypeOne, ContractorSupportTypeMultiple, ContractorSupportTypeNone, ContractorSupportTypeOther: + return true + } + return false +} + +func (e ContractorSupportType) String() string { + return string(e) +} + +func (e *ContractorSupportType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ContractorSupportType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ContractorSupportType", str) + } + return nil +} + +func (e ContractorSupportType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type DataForMonitoringType string + +const ( + DataForMonitoringTypeSiteVisits DataForMonitoringType = "SITE_VISITS" + DataForMonitoringTypeMedicareClaims DataForMonitoringType = "MEDICARE_CLAIMS" + DataForMonitoringTypeMedicaidClaims DataForMonitoringType = "MEDICAID_CLAIMS" + DataForMonitoringTypeEncounterData DataForMonitoringType = "ENCOUNTER_DATA" + DataForMonitoringTypeNoPayClaims DataForMonitoringType = "NO_PAY_CLAIMS" + DataForMonitoringTypeQualityClaimsBasedMeasures DataForMonitoringType = "QUALITY_CLAIMS_BASED_MEASURES" + DataForMonitoringTypeQualityReportedMeasures DataForMonitoringType = "QUALITY_REPORTED_MEASURES" + DataForMonitoringTypeClinicalData DataForMonitoringType = "CLINICAL_DATA" + DataForMonitoringTypeNonClinicalData DataForMonitoringType = "NON_CLINICAL_DATA" + DataForMonitoringTypeNonMedicalData DataForMonitoringType = "NON_MEDICAL_DATA" + DataForMonitoringTypeOther DataForMonitoringType = "OTHER" + DataForMonitoringTypeNotPlanningToCollectData DataForMonitoringType = "NOT_PLANNING_TO_COLLECT_DATA" +) + +var AllDataForMonitoringType = []DataForMonitoringType{ + DataForMonitoringTypeSiteVisits, + DataForMonitoringTypeMedicareClaims, + DataForMonitoringTypeMedicaidClaims, + DataForMonitoringTypeEncounterData, + DataForMonitoringTypeNoPayClaims, + DataForMonitoringTypeQualityClaimsBasedMeasures, + DataForMonitoringTypeQualityReportedMeasures, + DataForMonitoringTypeClinicalData, + DataForMonitoringTypeNonClinicalData, + DataForMonitoringTypeNonMedicalData, + DataForMonitoringTypeOther, + DataForMonitoringTypeNotPlanningToCollectData, +} + +func (e DataForMonitoringType) IsValid() bool { + switch e { + case DataForMonitoringTypeSiteVisits, DataForMonitoringTypeMedicareClaims, DataForMonitoringTypeMedicaidClaims, DataForMonitoringTypeEncounterData, DataForMonitoringTypeNoPayClaims, DataForMonitoringTypeQualityClaimsBasedMeasures, DataForMonitoringTypeQualityReportedMeasures, DataForMonitoringTypeClinicalData, DataForMonitoringTypeNonClinicalData, DataForMonitoringTypeNonMedicalData, DataForMonitoringTypeOther, DataForMonitoringTypeNotPlanningToCollectData: + return true + } + return false +} + +func (e DataForMonitoringType) String() string { + return string(e) +} + +func (e *DataForMonitoringType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = DataForMonitoringType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid DataForMonitoringType", str) + } + return nil +} + +func (e DataForMonitoringType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type DataToSendParticipantsType string + +const ( + DataToSendParticipantsTypeBaselineHistoricalData DataToSendParticipantsType = "BASELINE_HISTORICAL_DATA" + DataToSendParticipantsTypeClaimsLevelData DataToSendParticipantsType = "CLAIMS_LEVEL_DATA" + DataToSendParticipantsTypeBeneficiaryLevelData DataToSendParticipantsType = "BENEFICIARY_LEVEL_DATA" + DataToSendParticipantsTypeParticipantLevelData DataToSendParticipantsType = "PARTICIPANT_LEVEL_DATA" + DataToSendParticipantsTypeProviderLevelData DataToSendParticipantsType = "PROVIDER_LEVEL_DATA" + DataToSendParticipantsTypeOtherMipsData DataToSendParticipantsType = "OTHER_MIPS_DATA" + DataToSendParticipantsTypeNotPlanningToSendData DataToSendParticipantsType = "NOT_PLANNING_TO_SEND_DATA" +) + +var AllDataToSendParticipantsType = []DataToSendParticipantsType{ + DataToSendParticipantsTypeBaselineHistoricalData, + DataToSendParticipantsTypeClaimsLevelData, + DataToSendParticipantsTypeBeneficiaryLevelData, + DataToSendParticipantsTypeParticipantLevelData, + DataToSendParticipantsTypeProviderLevelData, + DataToSendParticipantsTypeOtherMipsData, + DataToSendParticipantsTypeNotPlanningToSendData, +} + +func (e DataToSendParticipantsType) IsValid() bool { + switch e { + case DataToSendParticipantsTypeBaselineHistoricalData, DataToSendParticipantsTypeClaimsLevelData, DataToSendParticipantsTypeBeneficiaryLevelData, DataToSendParticipantsTypeParticipantLevelData, DataToSendParticipantsTypeProviderLevelData, DataToSendParticipantsTypeOtherMipsData, DataToSendParticipantsTypeNotPlanningToSendData: + return true + } + return false +} + +func (e DataToSendParticipantsType) String() string { + return string(e) +} + +func (e *DataToSendParticipantsType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = DataToSendParticipantsType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid DataToSendParticipantsType", str) + } + return nil +} + +func (e DataToSendParticipantsType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type EaseOfUse string + +const ( + EaseOfUseAgree EaseOfUse = "AGREE" + EaseOfUseDisagree EaseOfUse = "DISAGREE" + EaseOfUseUnsure EaseOfUse = "UNSURE" +) + +var AllEaseOfUse = []EaseOfUse{ + EaseOfUseAgree, + EaseOfUseDisagree, + EaseOfUseUnsure, +} + +func (e EaseOfUse) IsValid() bool { + switch e { + case EaseOfUseAgree, EaseOfUseDisagree, EaseOfUseUnsure: + return true + } + return false +} + +func (e EaseOfUse) String() string { + return string(e) +} + +func (e *EaseOfUse) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = EaseOfUse(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid EaseOfUse", str) + } + return nil +} + +func (e EaseOfUse) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type EvaluationApproachType string + +const ( + EvaluationApproachTypeControlIntervention EvaluationApproachType = "CONTROL_INTERVENTION" + EvaluationApproachTypeComparisonMatch EvaluationApproachType = "COMPARISON_MATCH" + EvaluationApproachTypeInterruptedTime EvaluationApproachType = "INTERRUPTED_TIME" + EvaluationApproachTypeNonMedicareData EvaluationApproachType = "NON_MEDICARE_DATA" + EvaluationApproachTypeOther EvaluationApproachType = "OTHER" +) + +var AllEvaluationApproachType = []EvaluationApproachType{ + EvaluationApproachTypeControlIntervention, + EvaluationApproachTypeComparisonMatch, + EvaluationApproachTypeInterruptedTime, + EvaluationApproachTypeNonMedicareData, + EvaluationApproachTypeOther, +} + +func (e EvaluationApproachType) IsValid() bool { + switch e { + case EvaluationApproachTypeControlIntervention, EvaluationApproachTypeComparisonMatch, EvaluationApproachTypeInterruptedTime, EvaluationApproachTypeNonMedicareData, EvaluationApproachTypeOther: + return true + } + return false +} + +func (e EvaluationApproachType) String() string { + return string(e) +} + +func (e *EvaluationApproachType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = EvaluationApproachType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid EvaluationApproachType", str) + } + return nil +} + +func (e EvaluationApproachType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type GainshareArrangementEligibility string + +const ( + GainshareArrangementEligibilityAllProviders GainshareArrangementEligibility = "ALL_PROVIDERS" + GainshareArrangementEligibilitySomeProviders GainshareArrangementEligibility = "SOME_PROVIDERS" + GainshareArrangementEligibilityOther GainshareArrangementEligibility = "OTHER" + GainshareArrangementEligibilityNo GainshareArrangementEligibility = "NO" +) + +var AllGainshareArrangementEligibility = []GainshareArrangementEligibility{ + GainshareArrangementEligibilityAllProviders, + GainshareArrangementEligibilitySomeProviders, + GainshareArrangementEligibilityOther, + GainshareArrangementEligibilityNo, +} + +func (e GainshareArrangementEligibility) IsValid() bool { + switch e { + case GainshareArrangementEligibilityAllProviders, GainshareArrangementEligibilitySomeProviders, GainshareArrangementEligibilityOther, GainshareArrangementEligibilityNo: + return true + } + return false +} + +func (e GainshareArrangementEligibility) String() string { + return string(e) +} + +func (e *GainshareArrangementEligibility) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = GainshareArrangementEligibility(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid GainshareArrangementEligibility", str) + } + return nil +} + +func (e GainshareArrangementEligibility) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type GeographyApplication string + +const ( + GeographyApplicationParticipants GeographyApplication = "PARTICIPANTS" + GeographyApplicationProviders GeographyApplication = "PROVIDERS" + GeographyApplicationBeneficiaries GeographyApplication = "BENEFICIARIES" + GeographyApplicationOther GeographyApplication = "OTHER" +) + +var AllGeographyApplication = []GeographyApplication{ + GeographyApplicationParticipants, + GeographyApplicationProviders, + GeographyApplicationBeneficiaries, + GeographyApplicationOther, +} + +func (e GeographyApplication) IsValid() bool { + switch e { + case GeographyApplicationParticipants, GeographyApplicationProviders, GeographyApplicationBeneficiaries, GeographyApplicationOther: + return true + } + return false +} + +func (e GeographyApplication) String() string { + return string(e) +} + +func (e *GeographyApplication) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = GeographyApplication(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid GeographyApplication", str) + } + return nil +} + +func (e GeographyApplication) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type GeographyType string + +const ( + GeographyTypeState GeographyType = "STATE" + GeographyTypeRegion GeographyType = "REGION" + GeographyTypeOther GeographyType = "OTHER" +) + +var AllGeographyType = []GeographyType{ + GeographyTypeState, + GeographyTypeRegion, + GeographyTypeOther, +} + +func (e GeographyType) IsValid() bool { + switch e { + case GeographyTypeState, GeographyTypeRegion, GeographyTypeOther: + return true + } + return false +} + +func (e GeographyType) String() string { + return string(e) +} + +func (e *GeographyType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = GeographyType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid GeographyType", str) + } + return nil +} + +func (e GeographyType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type KeyCharacteristic string + +const ( + KeyCharacteristicEpisodeBased KeyCharacteristic = "EPISODE_BASED" + KeyCharacteristicPartC KeyCharacteristic = "PART_C" + KeyCharacteristicPartD KeyCharacteristic = "PART_D" + KeyCharacteristicPayment KeyCharacteristic = "PAYMENT" + KeyCharacteristicPopulationBased KeyCharacteristic = "POPULATION_BASED" + KeyCharacteristicPreventative KeyCharacteristic = "PREVENTATIVE" + KeyCharacteristicServiceDelivery KeyCharacteristic = "SERVICE_DELIVERY" + KeyCharacteristicSharedSavings KeyCharacteristic = "SHARED_SAVINGS" + KeyCharacteristicOther KeyCharacteristic = "OTHER" + KeyCharacteristicMedicaidModel KeyCharacteristic = "MEDICAID_MODEL" + KeyCharacteristicMedicareFfsModel KeyCharacteristic = "MEDICARE_FFS_MODEL" +) + +var AllKeyCharacteristic = []KeyCharacteristic{ + KeyCharacteristicEpisodeBased, + KeyCharacteristicPartC, + KeyCharacteristicPartD, + KeyCharacteristicPayment, + KeyCharacteristicPopulationBased, + KeyCharacteristicPreventative, + KeyCharacteristicServiceDelivery, + KeyCharacteristicSharedSavings, + KeyCharacteristicOther, + KeyCharacteristicMedicaidModel, + KeyCharacteristicMedicareFfsModel, +} + +func (e KeyCharacteristic) IsValid() bool { + switch e { + case KeyCharacteristicEpisodeBased, KeyCharacteristicPartC, KeyCharacteristicPartD, KeyCharacteristicPayment, KeyCharacteristicPopulationBased, KeyCharacteristicPreventative, KeyCharacteristicServiceDelivery, KeyCharacteristicSharedSavings, KeyCharacteristicOther, KeyCharacteristicMedicaidModel, KeyCharacteristicMedicareFfsModel: + return true + } + return false +} + +func (e KeyCharacteristic) String() string { + return string(e) +} + +func (e *KeyCharacteristic) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = KeyCharacteristic(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid KeyCharacteristic", str) + } + return nil +} + +func (e KeyCharacteristic) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type MintUses string + +const ( + MintUsesViewModel MintUses = "VIEW_MODEL" + MintUsesEditModel MintUses = "EDIT_MODEL" + MintUsesShareModel MintUses = "SHARE_MODEL" + MintUsesTrackSolutions MintUses = "TRACK_SOLUTIONS" + MintUsesContributeDiscussions MintUses = "CONTRIBUTE_DISCUSSIONS" + MintUsesViewHelp MintUses = "VIEW_HELP" + MintUsesOther MintUses = "OTHER" +) + +var AllMintUses = []MintUses{ + MintUsesViewModel, + MintUsesEditModel, + MintUsesShareModel, + MintUsesTrackSolutions, + MintUsesContributeDiscussions, + MintUsesViewHelp, + MintUsesOther, +} + +func (e MintUses) IsValid() bool { + switch e { + case MintUsesViewModel, MintUsesEditModel, MintUsesShareModel, MintUsesTrackSolutions, MintUsesContributeDiscussions, MintUsesViewHelp, MintUsesOther: + return true + } + return false +} + +func (e MintUses) String() string { + return string(e) +} + +func (e *MintUses) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = MintUses(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid MintUses", str) + } + return nil +} + +func (e MintUses) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ModelLearningSystemType string + +const ( + ModelLearningSystemTypeLearningContractor ModelLearningSystemType = "LEARNING_CONTRACTOR" + ModelLearningSystemTypeItPlatformConnect ModelLearningSystemType = "IT_PLATFORM_CONNECT" + ModelLearningSystemTypeParticipantCollaboration ModelLearningSystemType = "PARTICIPANT_COLLABORATION" + ModelLearningSystemTypeEducateBeneficiaries ModelLearningSystemType = "EDUCATE_BENEFICIARIES" + ModelLearningSystemTypeOther ModelLearningSystemType = "OTHER" + ModelLearningSystemTypeNoLearningSystem ModelLearningSystemType = "NO_LEARNING_SYSTEM" +) + +var AllModelLearningSystemType = []ModelLearningSystemType{ + ModelLearningSystemTypeLearningContractor, + ModelLearningSystemTypeItPlatformConnect, + ModelLearningSystemTypeParticipantCollaboration, + ModelLearningSystemTypeEducateBeneficiaries, + ModelLearningSystemTypeOther, + ModelLearningSystemTypeNoLearningSystem, +} + +func (e ModelLearningSystemType) IsValid() bool { + switch e { + case ModelLearningSystemTypeLearningContractor, ModelLearningSystemTypeItPlatformConnect, ModelLearningSystemTypeParticipantCollaboration, ModelLearningSystemTypeEducateBeneficiaries, ModelLearningSystemTypeOther, ModelLearningSystemTypeNoLearningSystem: + return true + } + return false +} + +func (e ModelLearningSystemType) String() string { + return string(e) +} + +func (e *ModelLearningSystemType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ModelLearningSystemType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ModelLearningSystemType", str) + } + return nil +} + +func (e ModelLearningSystemType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ModelPlanFilter string + +const ( + ModelPlanFilterIncludeAll ModelPlanFilter = "INCLUDE_ALL" + ModelPlanFilterCollabOnly ModelPlanFilter = "COLLAB_ONLY" + ModelPlanFilterWithCrTdls ModelPlanFilter = "WITH_CR_TDLS" + ModelPlanFilterFavorited ModelPlanFilter = "FAVORITED" + ModelPlanFilterApproachingClearance ModelPlanFilter = "APPROACHING_CLEARANCE" +) + +var AllModelPlanFilter = []ModelPlanFilter{ + ModelPlanFilterIncludeAll, + ModelPlanFilterCollabOnly, + ModelPlanFilterWithCrTdls, + ModelPlanFilterFavorited, + ModelPlanFilterApproachingClearance, +} + +func (e ModelPlanFilter) IsValid() bool { + switch e { + case ModelPlanFilterIncludeAll, ModelPlanFilterCollabOnly, ModelPlanFilterWithCrTdls, ModelPlanFilterFavorited, ModelPlanFilterApproachingClearance: + return true + } + return false +} + +func (e ModelPlanFilter) String() string { + return string(e) +} + +func (e *ModelPlanFilter) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ModelPlanFilter(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ModelPlanFilter", str) + } + return nil +} + +func (e ModelPlanFilter) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type MonitoringFileType string + +const ( + MonitoringFileTypeBeneficiary MonitoringFileType = "BENEFICIARY" + MonitoringFileTypeProvider MonitoringFileType = "PROVIDER" + MonitoringFileTypePartA MonitoringFileType = "PART_A" + MonitoringFileTypePartB MonitoringFileType = "PART_B" + MonitoringFileTypeOther MonitoringFileType = "OTHER" +) + +var AllMonitoringFileType = []MonitoringFileType{ + MonitoringFileTypeBeneficiary, + MonitoringFileTypeProvider, + MonitoringFileTypePartA, + MonitoringFileTypePartB, + MonitoringFileTypeOther, +} + +func (e MonitoringFileType) IsValid() bool { + switch e { + case MonitoringFileTypeBeneficiary, MonitoringFileTypeProvider, MonitoringFileTypePartA, MonitoringFileTypePartB, MonitoringFileTypeOther: + return true + } + return false +} + +func (e MonitoringFileType) String() string { + return string(e) +} + +func (e *MonitoringFileType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = MonitoringFileType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid MonitoringFileType", str) + } + return nil +} + +func (e MonitoringFileType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type NonClaimsBasedPayType string + +const ( + NonClaimsBasedPayTypeAdvancedPayment NonClaimsBasedPayType = "ADVANCED_PAYMENT" + NonClaimsBasedPayTypeBundledEpisodeOfCare NonClaimsBasedPayType = "BUNDLED_EPISODE_OF_CARE" + NonClaimsBasedPayTypeCapitationPopulationBasedFull NonClaimsBasedPayType = "CAPITATION_POPULATION_BASED_FULL" + NonClaimsBasedPayTypeCapitationPopulationBasedPartial NonClaimsBasedPayType = "CAPITATION_POPULATION_BASED_PARTIAL" + NonClaimsBasedPayTypeCareCoordinationManagementFee NonClaimsBasedPayType = "CARE_COORDINATION_MANAGEMENT_FEE" + NonClaimsBasedPayTypeGlobalBudget NonClaimsBasedPayType = "GLOBAL_BUDGET" + NonClaimsBasedPayTypeIncentivePayment NonClaimsBasedPayType = "INCENTIVE_PAYMENT" + NonClaimsBasedPayTypeMapdSharedSavings NonClaimsBasedPayType = "MAPD_SHARED_SAVINGS" + NonClaimsBasedPayTypeSharedSavings NonClaimsBasedPayType = "SHARED_SAVINGS" + NonClaimsBasedPayTypeOther NonClaimsBasedPayType = "OTHER" +) + +var AllNonClaimsBasedPayType = []NonClaimsBasedPayType{ + NonClaimsBasedPayTypeAdvancedPayment, + NonClaimsBasedPayTypeBundledEpisodeOfCare, + NonClaimsBasedPayTypeCapitationPopulationBasedFull, + NonClaimsBasedPayTypeCapitationPopulationBasedPartial, + NonClaimsBasedPayTypeCareCoordinationManagementFee, + NonClaimsBasedPayTypeGlobalBudget, + NonClaimsBasedPayTypeIncentivePayment, + NonClaimsBasedPayTypeMapdSharedSavings, + NonClaimsBasedPayTypeSharedSavings, + NonClaimsBasedPayTypeOther, +} + +func (e NonClaimsBasedPayType) IsValid() bool { + switch e { + case NonClaimsBasedPayTypeAdvancedPayment, NonClaimsBasedPayTypeBundledEpisodeOfCare, NonClaimsBasedPayTypeCapitationPopulationBasedFull, NonClaimsBasedPayTypeCapitationPopulationBasedPartial, NonClaimsBasedPayTypeCareCoordinationManagementFee, NonClaimsBasedPayTypeGlobalBudget, NonClaimsBasedPayTypeIncentivePayment, NonClaimsBasedPayTypeMapdSharedSavings, NonClaimsBasedPayTypeSharedSavings, NonClaimsBasedPayTypeOther: + return true + } + return false +} + +func (e NonClaimsBasedPayType) String() string { + return string(e) +} + +func (e *NonClaimsBasedPayType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = NonClaimsBasedPayType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid NonClaimsBasedPayType", str) + } + return nil +} + +func (e NonClaimsBasedPayType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ParticipantCommunicationType string + +const ( + ParticipantCommunicationTypeMassEmail ParticipantCommunicationType = "MASS_EMAIL" + ParticipantCommunicationTypeItTool ParticipantCommunicationType = "IT_TOOL" + ParticipantCommunicationTypeOther ParticipantCommunicationType = "OTHER" + ParticipantCommunicationTypeNoCommunication ParticipantCommunicationType = "NO_COMMUNICATION" +) + +var AllParticipantCommunicationType = []ParticipantCommunicationType{ + ParticipantCommunicationTypeMassEmail, + ParticipantCommunicationTypeItTool, + ParticipantCommunicationTypeOther, + ParticipantCommunicationTypeNoCommunication, +} + +func (e ParticipantCommunicationType) IsValid() bool { + switch e { + case ParticipantCommunicationTypeMassEmail, ParticipantCommunicationTypeItTool, ParticipantCommunicationTypeOther, ParticipantCommunicationTypeNoCommunication: + return true + } + return false +} + +func (e ParticipantCommunicationType) String() string { + return string(e) +} + +func (e *ParticipantCommunicationType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ParticipantCommunicationType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ParticipantCommunicationType", str) + } + return nil +} + +func (e ParticipantCommunicationType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ParticipantRequireFinancialGuaranteeType string + +const ( + ParticipantRequireFinancialGuaranteeTypeSuretyBond ParticipantRequireFinancialGuaranteeType = "SURETY_BOND" + ParticipantRequireFinancialGuaranteeTypeLetterOfCredit ParticipantRequireFinancialGuaranteeType = "LETTER_OF_CREDIT" + ParticipantRequireFinancialGuaranteeTypeEscrow ParticipantRequireFinancialGuaranteeType = "ESCROW" + ParticipantRequireFinancialGuaranteeTypeOther ParticipantRequireFinancialGuaranteeType = "OTHER" +) + +var AllParticipantRequireFinancialGuaranteeType = []ParticipantRequireFinancialGuaranteeType{ + ParticipantRequireFinancialGuaranteeTypeSuretyBond, + ParticipantRequireFinancialGuaranteeTypeLetterOfCredit, + ParticipantRequireFinancialGuaranteeTypeEscrow, + ParticipantRequireFinancialGuaranteeTypeOther, +} + +func (e ParticipantRequireFinancialGuaranteeType) IsValid() bool { + switch e { + case ParticipantRequireFinancialGuaranteeTypeSuretyBond, ParticipantRequireFinancialGuaranteeTypeLetterOfCredit, ParticipantRequireFinancialGuaranteeTypeEscrow, ParticipantRequireFinancialGuaranteeTypeOther: + return true + } + return false +} + +func (e ParticipantRequireFinancialGuaranteeType) String() string { + return string(e) +} + +func (e *ParticipantRequireFinancialGuaranteeType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ParticipantRequireFinancialGuaranteeType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ParticipantRequireFinancialGuaranteeType", str) + } + return nil +} + +func (e ParticipantRequireFinancialGuaranteeType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ParticipantSelectionType string + +const ( + ParticipantSelectionTypeModelTeamReviewApplications ParticipantSelectionType = "MODEL_TEAM_REVIEW_APPLICATIONS" + ParticipantSelectionTypeSupportFromCmmi ParticipantSelectionType = "SUPPORT_FROM_CMMI" + ParticipantSelectionTypeCmsComponentOrProcess ParticipantSelectionType = "CMS_COMPONENT_OR_PROCESS" + ParticipantSelectionTypeApplicationReviewAndScoringTool ParticipantSelectionType = "APPLICATION_REVIEW_AND_SCORING_TOOL" + ParticipantSelectionTypeApplicationSupportContractor ParticipantSelectionType = "APPLICATION_SUPPORT_CONTRACTOR" + ParticipantSelectionTypeBasicCriteria ParticipantSelectionType = "BASIC_CRITERIA" + ParticipantSelectionTypeOther ParticipantSelectionType = "OTHER" + ParticipantSelectionTypeNoSelectingParticipants ParticipantSelectionType = "NO_SELECTING_PARTICIPANTS" +) + +var AllParticipantSelectionType = []ParticipantSelectionType{ + ParticipantSelectionTypeModelTeamReviewApplications, + ParticipantSelectionTypeSupportFromCmmi, + ParticipantSelectionTypeCmsComponentOrProcess, + ParticipantSelectionTypeApplicationReviewAndScoringTool, + ParticipantSelectionTypeApplicationSupportContractor, + ParticipantSelectionTypeBasicCriteria, + ParticipantSelectionTypeOther, + ParticipantSelectionTypeNoSelectingParticipants, +} + +func (e ParticipantSelectionType) IsValid() bool { + switch e { + case ParticipantSelectionTypeModelTeamReviewApplications, ParticipantSelectionTypeSupportFromCmmi, ParticipantSelectionTypeCmsComponentOrProcess, ParticipantSelectionTypeApplicationReviewAndScoringTool, ParticipantSelectionTypeApplicationSupportContractor, ParticipantSelectionTypeBasicCriteria, ParticipantSelectionTypeOther, ParticipantSelectionTypeNoSelectingParticipants: + return true + } + return false +} + +func (e ParticipantSelectionType) String() string { + return string(e) +} + +func (e *ParticipantSelectionType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ParticipantSelectionType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ParticipantSelectionType", str) + } + return nil +} + +func (e ParticipantSelectionType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ParticipantsIDType string + +const ( + ParticipantsIDTypeTins ParticipantsIDType = "TINS" + ParticipantsIDTypeNpis ParticipantsIDType = "NPIS" + ParticipantsIDTypeCcns ParticipantsIDType = "CCNS" + ParticipantsIDTypeOther ParticipantsIDType = "OTHER" + ParticipantsIDTypeNoIDEntifiers ParticipantsIDType = "NO_IDENTIFIERS" +) + +var AllParticipantsIDType = []ParticipantsIDType{ + ParticipantsIDTypeTins, + ParticipantsIDTypeNpis, + ParticipantsIDTypeCcns, + ParticipantsIDTypeOther, + ParticipantsIDTypeNoIDEntifiers, +} + +func (e ParticipantsIDType) IsValid() bool { + switch e { + case ParticipantsIDTypeTins, ParticipantsIDTypeNpis, ParticipantsIDTypeCcns, ParticipantsIDTypeOther, ParticipantsIDTypeNoIDEntifiers: + return true + } + return false +} + +func (e ParticipantsIDType) String() string { + return string(e) +} + +func (e *ParticipantsIDType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ParticipantsIDType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ParticipantsIDType", str) + } + return nil +} + +func (e ParticipantsIDType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ParticipantsType string + +const ( + ParticipantsTypeMedicareProviders ParticipantsType = "MEDICARE_PROVIDERS" + ParticipantsTypeEntities ParticipantsType = "ENTITIES" + ParticipantsTypeConvener ParticipantsType = "CONVENER" + ParticipantsTypeMedicareAdvantagePlans ParticipantsType = "MEDICARE_ADVANTAGE_PLANS" + ParticipantsTypeStandalonePartDPlans ParticipantsType = "STANDALONE_PART_D_PLANS" + ParticipantsTypeMedicareAdvantagePrescriptionDrugPlans ParticipantsType = "MEDICARE_ADVANTAGE_PRESCRIPTION_DRUG_PLANS" + ParticipantsTypeStateMedicaidAgencies ParticipantsType = "STATE_MEDICAID_AGENCIES" + ParticipantsTypeMedicaidManagedCareOrganizations ParticipantsType = "MEDICAID_MANAGED_CARE_ORGANIZATIONS" + ParticipantsTypeMedicaidProviders ParticipantsType = "MEDICAID_PROVIDERS" + ParticipantsTypeStates ParticipantsType = "STATES" + ParticipantsTypeCommunityBasedOrganizations ParticipantsType = "COMMUNITY_BASED_ORGANIZATIONS" + ParticipantsTypeNonProfitOrganizations ParticipantsType = "NON_PROFIT_ORGANIZATIONS" + ParticipantsTypeCommercialPayers ParticipantsType = "COMMERCIAL_PAYERS" + ParticipantsTypeAccountableCareOrganization ParticipantsType = "ACCOUNTABLE_CARE_ORGANIZATION" + ParticipantsTypeOther ParticipantsType = "OTHER" +) + +var AllParticipantsType = []ParticipantsType{ + ParticipantsTypeMedicareProviders, + ParticipantsTypeEntities, + ParticipantsTypeConvener, + ParticipantsTypeMedicareAdvantagePlans, + ParticipantsTypeStandalonePartDPlans, + ParticipantsTypeMedicareAdvantagePrescriptionDrugPlans, + ParticipantsTypeStateMedicaidAgencies, + ParticipantsTypeMedicaidManagedCareOrganizations, + ParticipantsTypeMedicaidProviders, + ParticipantsTypeStates, + ParticipantsTypeCommunityBasedOrganizations, + ParticipantsTypeNonProfitOrganizations, + ParticipantsTypeCommercialPayers, + ParticipantsTypeAccountableCareOrganization, + ParticipantsTypeOther, +} + +func (e ParticipantsType) IsValid() bool { + switch e { + case ParticipantsTypeMedicareProviders, ParticipantsTypeEntities, ParticipantsTypeConvener, ParticipantsTypeMedicareAdvantagePlans, ParticipantsTypeStandalonePartDPlans, ParticipantsTypeMedicareAdvantagePrescriptionDrugPlans, ParticipantsTypeStateMedicaidAgencies, ParticipantsTypeMedicaidManagedCareOrganizations, ParticipantsTypeMedicaidProviders, ParticipantsTypeStates, ParticipantsTypeCommunityBasedOrganizations, ParticipantsTypeNonProfitOrganizations, ParticipantsTypeCommercialPayers, ParticipantsTypeAccountableCareOrganization, ParticipantsTypeOther: + return true + } + return false +} + +func (e ParticipantsType) String() string { + return string(e) +} + +func (e *ParticipantsType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ParticipantsType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ParticipantsType", str) + } + return nil +} + +func (e ParticipantsType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type PrepareForClearanceStatus string + +const ( + PrepareForClearanceStatusCannotStart PrepareForClearanceStatus = "CANNOT_START" + PrepareForClearanceStatusReady PrepareForClearanceStatus = "READY" + PrepareForClearanceStatusInProgress PrepareForClearanceStatus = "IN_PROGRESS" + PrepareForClearanceStatusReadyForClearance PrepareForClearanceStatus = "READY_FOR_CLEARANCE" +) + +var AllPrepareForClearanceStatus = []PrepareForClearanceStatus{ + PrepareForClearanceStatusCannotStart, + PrepareForClearanceStatusReady, + PrepareForClearanceStatusInProgress, + PrepareForClearanceStatusReadyForClearance, +} + +func (e PrepareForClearanceStatus) IsValid() bool { + switch e { + case PrepareForClearanceStatusCannotStart, PrepareForClearanceStatusReady, PrepareForClearanceStatusInProgress, PrepareForClearanceStatusReadyForClearance: + return true + } + return false +} + +func (e PrepareForClearanceStatus) String() string { + return string(e) +} + +func (e *PrepareForClearanceStatus) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = PrepareForClearanceStatus(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid PrepareForClearanceStatus", str) + } + return nil +} + +func (e PrepareForClearanceStatus) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ProviderAddType string + +const ( + ProviderAddTypeProspectively ProviderAddType = "PROSPECTIVELY" + ProviderAddTypeRetrospectively ProviderAddType = "RETROSPECTIVELY" + ProviderAddTypeVoluntarily ProviderAddType = "VOLUNTARILY" + ProviderAddTypeMandatorily ProviderAddType = "MANDATORILY" + ProviderAddTypeOnlineTools ProviderAddType = "ONLINE_TOOLS" + ProviderAddTypeOther ProviderAddType = "OTHER" + ProviderAddTypeNa ProviderAddType = "NA" +) + +var AllProviderAddType = []ProviderAddType{ + ProviderAddTypeProspectively, + ProviderAddTypeRetrospectively, + ProviderAddTypeVoluntarily, + ProviderAddTypeMandatorily, + ProviderAddTypeOnlineTools, + ProviderAddTypeOther, + ProviderAddTypeNa, +} + +func (e ProviderAddType) IsValid() bool { + switch e { + case ProviderAddTypeProspectively, ProviderAddTypeRetrospectively, ProviderAddTypeVoluntarily, ProviderAddTypeMandatorily, ProviderAddTypeOnlineTools, ProviderAddTypeOther, ProviderAddTypeNa: + return true + } + return false +} + +func (e ProviderAddType) String() string { + return string(e) +} + +func (e *ProviderAddType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ProviderAddType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ProviderAddType", str) + } + return nil +} + +func (e ProviderAddType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ProviderLeaveType string + +const ( + ProviderLeaveTypeVoluntarilyWithoutImplications ProviderLeaveType = "VOLUNTARILY_WITHOUT_IMPLICATIONS" + ProviderLeaveTypeAfterACertainWithImplications ProviderLeaveType = "AFTER_A_CERTAIN_WITH_IMPLICATIONS" + ProviderLeaveTypeVariesByTypeOfProvider ProviderLeaveType = "VARIES_BY_TYPE_OF_PROVIDER" + ProviderLeaveTypeNotAllowedToLeave ProviderLeaveType = "NOT_ALLOWED_TO_LEAVE" + ProviderLeaveTypeOther ProviderLeaveType = "OTHER" + ProviderLeaveTypeNotApplicable ProviderLeaveType = "NOT_APPLICABLE" +) + +var AllProviderLeaveType = []ProviderLeaveType{ + ProviderLeaveTypeVoluntarilyWithoutImplications, + ProviderLeaveTypeAfterACertainWithImplications, + ProviderLeaveTypeVariesByTypeOfProvider, + ProviderLeaveTypeNotAllowedToLeave, + ProviderLeaveTypeOther, + ProviderLeaveTypeNotApplicable, +} + +func (e ProviderLeaveType) IsValid() bool { + switch e { + case ProviderLeaveTypeVoluntarilyWithoutImplications, ProviderLeaveTypeAfterACertainWithImplications, ProviderLeaveTypeVariesByTypeOfProvider, ProviderLeaveTypeNotAllowedToLeave, ProviderLeaveTypeOther, ProviderLeaveTypeNotApplicable: + return true + } + return false +} + +func (e ProviderLeaveType) String() string { + return string(e) +} + +func (e *ProviderLeaveType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ProviderLeaveType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ProviderLeaveType", str) + } + return nil +} + +func (e ProviderLeaveType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ReportAProblemSection string + +const ( + ReportAProblemSectionReadView ReportAProblemSection = "READ_VIEW" + ReportAProblemSectionTaskList ReportAProblemSection = "TASK_LIST" + ReportAProblemSectionItSolutions ReportAProblemSection = "IT_SOLUTIONS" + ReportAProblemSectionHelpCenter ReportAProblemSection = "HELP_CENTER" + ReportAProblemSectionOther ReportAProblemSection = "OTHER" +) + +var AllReportAProblemSection = []ReportAProblemSection{ + ReportAProblemSectionReadView, + ReportAProblemSectionTaskList, + ReportAProblemSectionItSolutions, + ReportAProblemSectionHelpCenter, + ReportAProblemSectionOther, +} + +func (e ReportAProblemSection) IsValid() bool { + switch e { + case ReportAProblemSectionReadView, ReportAProblemSectionTaskList, ReportAProblemSectionItSolutions, ReportAProblemSectionHelpCenter, ReportAProblemSectionOther: + return true + } + return false +} + +func (e ReportAProblemSection) String() string { + return string(e) +} + +func (e *ReportAProblemSection) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ReportAProblemSection(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ReportAProblemSection", str) + } + return nil +} + +func (e ReportAProblemSection) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type ReportAProblemSeverity string + +const ( + ReportAProblemSeverityPreventedTask ReportAProblemSeverity = "PREVENTED_TASK" + ReportAProblemSeverityDelayedTask ReportAProblemSeverity = "DELAYED_TASK" + ReportAProblemSeverityMinor ReportAProblemSeverity = "MINOR" + ReportAProblemSeverityOther ReportAProblemSeverity = "OTHER" +) + +var AllReportAProblemSeverity = []ReportAProblemSeverity{ + ReportAProblemSeverityPreventedTask, + ReportAProblemSeverityDelayedTask, + ReportAProblemSeverityMinor, + ReportAProblemSeverityOther, +} + +func (e ReportAProblemSeverity) IsValid() bool { + switch e { + case ReportAProblemSeverityPreventedTask, ReportAProblemSeverityDelayedTask, ReportAProblemSeverityMinor, ReportAProblemSeverityOther: + return true + } + return false +} + +func (e ReportAProblemSeverity) String() string { + return string(e) +} + +func (e *ReportAProblemSeverity) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ReportAProblemSeverity(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ReportAProblemSeverity", str) + } + return nil +} + +func (e ReportAProblemSeverity) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +// A user role associated with a job code +type Role string + +const ( + // A basic MINT user + RoleMintUser Role = "MINT_USER" + // A MINT assessment team user + RoleMintAssessment Role = "MINT_ASSESSMENT" + // A MINT MAC user + RoleMintMac Role = "MINT_MAC" +) + +var AllRole = []Role{ + RoleMintUser, + RoleMintAssessment, + RoleMintMac, +} + +func (e Role) IsValid() bool { + switch e { + case RoleMintUser, RoleMintAssessment, RoleMintMac: + return true + } + return false +} + +func (e Role) String() string { + return string(e) +} + +func (e *Role) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = Role(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid Role", str) + } + return nil +} + +func (e Role) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type SatisfactionLevel string + +const ( + SatisfactionLevelVerySatisfied SatisfactionLevel = "VERY_SATISFIED" + SatisfactionLevelSatisfied SatisfactionLevel = "SATISFIED" + SatisfactionLevelNeutral SatisfactionLevel = "NEUTRAL" + SatisfactionLevelDissatisfied SatisfactionLevel = "DISSATISFIED" + SatisfactionLevelVeryDissatisfied SatisfactionLevel = "VERY_DISSATISFIED" +) + +var AllSatisfactionLevel = []SatisfactionLevel{ + SatisfactionLevelVerySatisfied, + SatisfactionLevelSatisfied, + SatisfactionLevelNeutral, + SatisfactionLevelDissatisfied, + SatisfactionLevelVeryDissatisfied, +} + +func (e SatisfactionLevel) IsValid() bool { + switch e { + case SatisfactionLevelVerySatisfied, SatisfactionLevelSatisfied, SatisfactionLevelNeutral, SatisfactionLevelDissatisfied, SatisfactionLevelVeryDissatisfied: + return true + } + return false +} + +func (e SatisfactionLevel) String() string { + return string(e) +} + +func (e *SatisfactionLevel) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = SatisfactionLevel(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid SatisfactionLevel", str) + } + return nil +} + +func (e SatisfactionLevel) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type SelectionMethodType string + +const ( + SelectionMethodTypeHistorical SelectionMethodType = "HISTORICAL" + SelectionMethodTypeProspective SelectionMethodType = "PROSPECTIVE" + SelectionMethodTypeRetrospective SelectionMethodType = "RETROSPECTIVE" + SelectionMethodTypeVoluntary SelectionMethodType = "VOLUNTARY" + SelectionMethodTypeProviderSignUp SelectionMethodType = "PROVIDER_SIGN_UP" + SelectionMethodTypeOther SelectionMethodType = "OTHER" + SelectionMethodTypeNa SelectionMethodType = "NA" +) + +var AllSelectionMethodType = []SelectionMethodType{ + SelectionMethodTypeHistorical, + SelectionMethodTypeProspective, + SelectionMethodTypeRetrospective, + SelectionMethodTypeVoluntary, + SelectionMethodTypeProviderSignUp, + SelectionMethodTypeOther, + SelectionMethodTypeNa, +} + +func (e SelectionMethodType) IsValid() bool { + switch e { + case SelectionMethodTypeHistorical, SelectionMethodTypeProspective, SelectionMethodTypeRetrospective, SelectionMethodTypeVoluntary, SelectionMethodTypeProviderSignUp, SelectionMethodTypeOther, SelectionMethodTypeNa: + return true + } + return false +} + +func (e SelectionMethodType) String() string { + return string(e) +} + +func (e *SelectionMethodType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = SelectionMethodType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid SelectionMethodType", str) + } + return nil +} + +func (e SelectionMethodType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type StakeholdersType string + +const ( + StakeholdersTypeBeneficiaries StakeholdersType = "BENEFICIARIES" + StakeholdersTypeCommunityOrganizations StakeholdersType = "COMMUNITY_ORGANIZATIONS" + StakeholdersTypeParticipants StakeholdersType = "PARTICIPANTS" + StakeholdersTypeProfessionalOrganizations StakeholdersType = "PROFESSIONAL_ORGANIZATIONS" + StakeholdersTypeProviders StakeholdersType = "PROVIDERS" + StakeholdersTypeStates StakeholdersType = "STATES" + StakeholdersTypeOther StakeholdersType = "OTHER" +) + +var AllStakeholdersType = []StakeholdersType{ + StakeholdersTypeBeneficiaries, + StakeholdersTypeCommunityOrganizations, + StakeholdersTypeParticipants, + StakeholdersTypeProfessionalOrganizations, + StakeholdersTypeProviders, + StakeholdersTypeStates, + StakeholdersTypeOther, +} + +func (e StakeholdersType) IsValid() bool { + switch e { + case StakeholdersTypeBeneficiaries, StakeholdersTypeCommunityOrganizations, StakeholdersTypeParticipants, StakeholdersTypeProfessionalOrganizations, StakeholdersTypeProviders, StakeholdersTypeStates, StakeholdersTypeOther: + return true + } + return false +} + +func (e StakeholdersType) String() string { + return string(e) +} + +func (e *StakeholdersType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = StakeholdersType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid StakeholdersType", str) + } + return nil +} + +func (e StakeholdersType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type TaskStatusInput string + +const ( + TaskStatusInputInProgress TaskStatusInput = "IN_PROGRESS" + TaskStatusInputReadyForReview TaskStatusInput = "READY_FOR_REVIEW" + TaskStatusInputReadyForClearance TaskStatusInput = "READY_FOR_CLEARANCE" +) + +var AllTaskStatusInput = []TaskStatusInput{ + TaskStatusInputInProgress, + TaskStatusInputReadyForReview, + TaskStatusInputReadyForClearance, +} + +func (e TaskStatusInput) IsValid() bool { + switch e { + case TaskStatusInputInProgress, TaskStatusInputReadyForReview, TaskStatusInputReadyForClearance: + return true + } + return false +} + +func (e TaskStatusInput) String() string { + return string(e) +} + +func (e *TaskStatusInput) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = TaskStatusInput(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid TaskStatusInput", str) + } + return nil +} + +func (e TaskStatusInput) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +type WaiverType string + +const ( + WaiverTypeFraudAbuse WaiverType = "FRAUD_ABUSE" + WaiverTypeProgramPayment WaiverType = "PROGRAM_PAYMENT" + WaiverTypeMedicaid WaiverType = "MEDICAID" +) + +var AllWaiverType = []WaiverType{ + WaiverTypeFraudAbuse, + WaiverTypeProgramPayment, + WaiverTypeMedicaid, +} + +func (e WaiverType) IsValid() bool { + switch e { + case WaiverTypeFraudAbuse, WaiverTypeProgramPayment, WaiverTypeMedicaid: + return true + } + return false +} + +func (e WaiverType) String() string { + return string(e) +} + +func (e *WaiverType) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = WaiverType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid WaiverType", str) + } + return nil +} + +func (e WaiverType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} From f32123949d09035229b760444a6e141456fc7273 Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Mon, 2 Dec 2024 12:41:25 -0500 Subject: [PATCH 13/19] Adding MTOSolutionTranslation --- graphql-schema-linter.config.js | 3 +- pkg/graph/generated/generated.go | 425 ++++++++++++++++++ pkg/graph/model/models_gen.go | 8 + .../types/mto_solution_translation.graphql | 11 + .../_components/Modal/SolutionForm/index.tsx | 13 +- src/gql/generated/graphql.ts | 9 + src/i18n/en-US/index.ts | 2 + src/i18n/en-US/modelPlan/mtoSolutions.ts | 53 +++ src/types/translation.ts | 23 + 9 files changed, 539 insertions(+), 8 deletions(-) create mode 100644 pkg/graph/schema/types/mto_solution_translation.graphql create mode 100644 src/i18n/en-US/modelPlan/mtoSolutions.ts diff --git a/graphql-schema-linter.config.js b/graphql-schema-linter.config.js index 398271dc35..1412998da7 100644 --- a/graphql-schema-linter.config.js +++ b/graphql-schema-linter.config.js @@ -52,7 +52,8 @@ module.exports = { 'MTOInfoTranslation', 'EnumTranslation', 'MTOCategoryTranslation', - 'MTOMilestoneTranslation' + 'MTOMilestoneTranslation', + 'MTOSolutionTranslation' ], 'enum-values-all-caps': ['TableName'] } diff --git a/pkg/graph/generated/generated.go b/pkg/graph/generated/generated.go index a80166ec03..24a2b7368d 100644 --- a/pkg/graph/generated/generated.go +++ b/pkg/graph/generated/generated.go @@ -462,6 +462,13 @@ type ComplexityRoot struct { Type func(childComplexity int) int } + MTOSolutionTranslation struct { + Name func(childComplexity int) int + PocEmail func(childComplexity int) int + PocName func(childComplexity int) int + SolutionType func(childComplexity int) int + } + MTOSubcategory struct { ID func(childComplexity int) int IsUncategorized func(childComplexity int) int @@ -4450,6 +4457,34 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.MTOSolution.Type(childComplexity), true + case "MTOSolutionTranslation.name": + if e.complexity.MTOSolutionTranslation.Name == nil { + break + } + + return e.complexity.MTOSolutionTranslation.Name(childComplexity), true + + case "MTOSolutionTranslation.pocEmail": + if e.complexity.MTOSolutionTranslation.PocEmail == nil { + break + } + + return e.complexity.MTOSolutionTranslation.PocEmail(childComplexity), true + + case "MTOSolutionTranslation.pocName": + if e.complexity.MTOSolutionTranslation.PocName == nil { + break + } + + return e.complexity.MTOSolutionTranslation.PocName(childComplexity), true + + case "MTOSolutionTranslation.solutionType": + if e.complexity.MTOSolutionTranslation.SolutionType == nil { + break + } + + return e.complexity.MTOSolutionTranslation.SolutionType(childComplexity), true + case "MTOSubcategory.id": if e.complexity.MTOSubcategory.ID == nil { break @@ -17192,6 +17227,18 @@ extend type Mutation { updateMTOSolution(id: UUID!, changes: MTOSolutionChanges!): MTOSolution! @hasRole(role: MINT_USER) } +`, BuiltIn: false}, + {Name: "../schema/types/mto_solution_translation.graphql", Input: ` +""" +Represents MTO Custom Solution translation data +""" + +type MTOSolutionTranslation { + name: TranslationField! @goTag(key: "db", value: "name") + pocName: TranslationField! @goTag(key: "db", value: "poc_name") + pocEmail: TranslationField! @goTag(key: "db", value: "poc_email") + solutionType: TranslationFieldWithOptions! @goTag(key: "db", value: "type") +} `, BuiltIn: false}, {Name: "../schema/types/nda_info.graphql", Input: `""" NDAInfo represents whether a user has agreed to an NDA or not. If agreed to previously, there will be a datestamp visible @@ -34859,6 +34906,330 @@ func (ec *executionContext) fieldContext_MTOSolution_commonSolution(ctx context. return fc, nil } +func (ec *executionContext) _MTOSolutionTranslation_name(ctx context.Context, field graphql.CollectedField, obj *model.MTOSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolutionTranslation_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolutionTranslation_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolutionTranslation_pocName(ctx context.Context, field graphql.CollectedField, obj *model.MTOSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolutionTranslation_pocName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PocName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolutionTranslation_pocName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolutionTranslation_pocEmail(ctx context.Context, field graphql.CollectedField, obj *model.MTOSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolutionTranslation_pocEmail(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PocEmail, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationField) + fc.Result = res + return ec.marshalNTranslationField2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationField(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolutionTranslation_pocEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationField_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationField_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationField_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationField_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationField_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationField_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationField_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationField_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationField_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationField_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationField_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationField_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationField_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationField_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationField_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationField_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationField_tableReference(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationField", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _MTOSolutionTranslation_solutionType(ctx context.Context, field graphql.CollectedField, obj *model.MTOSolutionTranslation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MTOSolutionTranslation_solutionType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SolutionType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(models.TranslationFieldWithOptions) + fc.Result = res + return ec.marshalNTranslationFieldWithOptions2githubᚗcomᚋcmsᚑenterpriseᚋmintᚑappᚋpkgᚋmodelsᚐTranslationFieldWithOptions(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_MTOSolutionTranslation_solutionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "MTOSolutionTranslation", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "gqlField": + return ec.fieldContext_TranslationFieldWithOptions_gqlField(ctx, field) + case "goField": + return ec.fieldContext_TranslationFieldWithOptions_goField(ctx, field) + case "dbField": + return ec.fieldContext_TranslationFieldWithOptions_dbField(ctx, field) + case "label": + return ec.fieldContext_TranslationFieldWithOptions_label(ctx, field) + case "readonlyLabel": + return ec.fieldContext_TranslationFieldWithOptions_readonlyLabel(ctx, field) + case "sublabel": + return ec.fieldContext_TranslationFieldWithOptions_sublabel(ctx, field) + case "multiSelectLabel": + return ec.fieldContext_TranslationFieldWithOptions_multiSelectLabel(ctx, field) + case "isArray": + return ec.fieldContext_TranslationFieldWithOptions_isArray(ctx, field) + case "dataType": + return ec.fieldContext_TranslationFieldWithOptions_dataType(ctx, field) + case "formType": + return ec.fieldContext_TranslationFieldWithOptions_formType(ctx, field) + case "isNote": + return ec.fieldContext_TranslationFieldWithOptions_isNote(ctx, field) + case "order": + return ec.fieldContext_TranslationFieldWithOptions_order(ctx, field) + case "isOtherType": + return ec.fieldContext_TranslationFieldWithOptions_isOtherType(ctx, field) + case "otherParentField": + return ec.fieldContext_TranslationFieldWithOptions_otherParentField(ctx, field) + case "parentReferencesLabel": + return ec.fieldContext_TranslationFieldWithOptions_parentReferencesLabel(ctx, field) + case "exportLabel": + return ec.fieldContext_TranslationFieldWithOptions_exportLabel(ctx, field) + case "tableReference": + return ec.fieldContext_TranslationFieldWithOptions_tableReference(ctx, field) + case "options": + return ec.fieldContext_TranslationFieldWithOptions_options(ctx, field) + case "exportOptions": + return ec.fieldContext_TranslationFieldWithOptions_exportOptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TranslationFieldWithOptions", field.Name) + }, + } + return fc, nil +} + func (ec *executionContext) _MTOSubcategory_id(ctx context.Context, field graphql.CollectedField, obj *models.MTOSubcategory) (ret graphql.Marshaler) { fc, err := ec.fieldContext_MTOSubcategory_id(ctx, field) if err != nil { @@ -136980,6 +137351,60 @@ func (ec *executionContext) _MTOSolution(ctx context.Context, sel ast.SelectionS return out } +var mTOSolutionTranslationImplementors = []string{"MTOSolutionTranslation"} + +func (ec *executionContext) _MTOSolutionTranslation(ctx context.Context, sel ast.SelectionSet, obj *model.MTOSolutionTranslation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mTOSolutionTranslationImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("MTOSolutionTranslation") + case "name": + out.Values[i] = ec._MTOSolutionTranslation_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "pocName": + out.Values[i] = ec._MTOSolutionTranslation_pocName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "pocEmail": + out.Values[i] = ec._MTOSolutionTranslation_pocEmail(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "solutionType": + out.Values[i] = ec._MTOSolutionTranslation_solutionType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + var mTOSubcategoryImplementors = []string{"MTOSubcategory"} func (ec *executionContext) _MTOSubcategory(ctx context.Context, sel ast.SelectionSet, obj *models.MTOSubcategory) graphql.Marshaler { diff --git a/pkg/graph/model/models_gen.go b/pkg/graph/model/models_gen.go index fbf73a19af..2ba8e988b5 100644 --- a/pkg/graph/model/models_gen.go +++ b/pkg/graph/model/models_gen.go @@ -77,6 +77,14 @@ type MTOMilestoneTranslation struct { Name models.TranslationField `json:"name" db:"name"` } +// Represents MTO Custom Solution translation data +type MTOSolutionTranslation struct { + Name models.TranslationField `json:"name" db:"name"` + PocName models.TranslationField `json:"pocName" db:"poc_name"` + PocEmail models.TranslationField `json:"pocEmail" db:"poc_email"` + SolutionType models.TranslationFieldWithOptions `json:"solutionType" db:"type"` +} + // Represents model plan base translation data type ModelPlanTranslation struct { ModelName models.TranslationField `json:"modelName" db:"model_name"` diff --git a/pkg/graph/schema/types/mto_solution_translation.graphql b/pkg/graph/schema/types/mto_solution_translation.graphql new file mode 100644 index 0000000000..87ea905547 --- /dev/null +++ b/pkg/graph/schema/types/mto_solution_translation.graphql @@ -0,0 +1,11 @@ + +""" +Represents MTO Custom Solution translation data +""" + +type MTOSolutionTranslation { + name: TranslationField! @goTag(key: "db", value: "name") + pocName: TranslationField! @goTag(key: "db", value: "poc_name") + pocEmail: TranslationField! @goTag(key: "db", value: "poc_email") + solutionType: TranslationFieldWithOptions! @goTag(key: "db", value: "type") +} diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx index 0ed986d2af..9f64d3c350 100644 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx @@ -16,12 +16,11 @@ import { Select, TextInput } from '@trussworks/react-uswds'; -import { useCreateMtoSolutionCustomMutation } from 'gql/generated/graphql'; +import { + MtoSolutionType, + useCreateMtoSolutionCustomMutation +} from 'gql/generated/graphql'; -// import { -// useCreateMtoMilestoneCustomMutation, -// useGetMtoCategoriesQuery -// } from 'gql/generated/graphql'; import Alert from 'components/Alert'; import useMessage from 'hooks/useMessage'; import { convertCamelCaseToKebabCase } from 'utils/modelPlan'; @@ -29,7 +28,7 @@ import { convertCamelCaseToKebabCase } from 'utils/modelPlan'; // import { selectOptions, SelectProps } from '../CategoryForm'; type FormValues = { - solutionType: string; + solutionType: MtoSolutionType | 'default'; solutionTitle: string; pocName: string; pocEmail: string; @@ -70,7 +69,7 @@ const SolutionForm = ({ closeModal }: { closeModal: () => void }) => { create({ variables: { modelPlanID: modelID, - solutionType: formData.solutionType, + solutionType: formData.solutionType as MtoSolutionType, name: formData.solutionTitle, pocName: formData.pocName, pocEmail: formData.pocEmail diff --git a/src/gql/generated/graphql.ts b/src/gql/generated/graphql.ts index 0fec323950..a8f046ff0d 100644 --- a/src/gql/generated/graphql.ts +++ b/src/gql/generated/graphql.ts @@ -984,6 +984,15 @@ export enum MtoSolutionStatus { ONBOARDING = 'ONBOARDING' } +/** Represents MTO Custom Solution translation data */ +export type MtoSolutionTranslation = { + __typename: 'MTOSolutionTranslation'; + name: TranslationField; + pocEmail: TranslationField; + pocName: TranslationField; + solutionType: TranslationFieldWithOptions; +}; + export enum MtoSolutionType { CONTRACTOR = 'CONTRACTOR', CROSS_CUTTING_GROUP = 'CROSS_CUTTING_GROUP', diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts index 8c84c5c0df..21c874b4d1 100644 --- a/src/i18n/en-US/index.ts +++ b/src/i18n/en-US/index.ts @@ -35,6 +35,7 @@ import modelToOperations, { } from './modelPlan/modelToOperations'; import mtoCategory from './modelPlan/mtoCategory'; import mtoMilestone from './modelPlan/mtoMilestone'; +import mtoSolution from './modelPlan/mtoSolutions'; import operationalNeeds from './modelPlan/operationalNeeds'; import operationalSolutionSubtasks from './modelPlan/operationalSolutionSubtasks'; import { @@ -114,6 +115,7 @@ const enUS = { modelToOperationsMisc, mtoCategory, mtoMilestone, + mtoSolution, operationalNeeds, solutions, operationalSolutionSubtasks, diff --git a/src/i18n/en-US/modelPlan/mtoSolutions.ts b/src/i18n/en-US/modelPlan/mtoSolutions.ts new file mode 100644 index 0000000000..665d689ce8 --- /dev/null +++ b/src/i18n/en-US/modelPlan/mtoSolutions.ts @@ -0,0 +1,53 @@ +import { TranslationMTOSolutionCustom } from 'types/translation'; + +import { + TranslationDataType, + TranslationFormType +} from '../../../gql/generated/graphql'; + +export const mtoSolution: TranslationMTOSolutionCustom = { + solutionType: { + gqlField: 'solutionType', + goField: 'SolutionType', + dbField: 'type', + label: 'Milestone title', + dataType: TranslationDataType.ENUM, + formType: TranslationFormType.SELECT, + options: { + CONTRACTOR: 'Contract vehicle, contractor, or other contract', + CROSS_CUTTING_GROUP: 'Cross-cutting group', + IT_SYSTEM: 'IT System', + OTHER: 'Other' + }, + order: 1.0 + }, + name: { + gqlField: 'name', + goField: 'Name', + dbField: 'name', + label: 'Milestone title', + dataType: TranslationDataType.STRING, + formType: TranslationFormType.TEXT, + order: 1.1 + }, + pocName: { + gqlField: 'pocName', + goField: 'PocName', + dbField: 'poc_name', + label: 'Milestone title', + dataType: TranslationDataType.STRING, + formType: TranslationFormType.TEXT, + order: 1.2 + }, + pocEmail: { + gqlField: 'pocEmail', + goField: 'PocEmail', + dbField: 'poc_email', + label: 'Milestone title', + dataType: TranslationDataType.STRING, + formType: TranslationFormType.TEXT, + order: 1.3 + } +}; + +export default mtoSolution; diff --git a/src/types/translation.ts b/src/types/translation.ts index beafce6ccc..2b9083a888 100644 --- a/src/types/translation.ts +++ b/src/types/translation.ts @@ -47,6 +47,8 @@ import { MtoCategoryTranslation, MtoInfoTranslation, MtoMilestoneTranslation, + MtoSolutionTranslation, + MtoSolutionType, MultiSourceDataToCollect, NonClaimsBasedPayType, OperationalNeedKey, @@ -1277,6 +1279,27 @@ export type TranslationMTOMilestoneCustom = { [K in keyof TranslationMTOMilestoneCustomGQL]: TranslationMTOMilestoneCustomForm[K]; // FE form type }; +// MTO Solution - Change History purposes only +export type TranslationMTOSolutionCustomForm = { + name: TranslationFieldProperties; + pocName: TranslationFieldProperties; + pocEmail: TranslationFieldProperties; + solutionType: TranslationFieldPropertiesWithOptions; +}; + +type TranslationMTOSolutionCustomGQL = Omit< + MtoSolutionTranslation, // graphql gen type + '__typename' +>; + +/* + Merged keys from graphql gen with FE form types + Create a tighter connection between BE/FE translation types +*/ +export type TranslationMTOSolutionCustom = { + [K in keyof TranslationMTOSolutionCustomGQL]: TranslationMTOSolutionCustomForm[K]; // FE form type +}; + export type TranslationPlan = { modelPlan: TranslationModelPlan; basics: TranslationBasics; From 5c7882f91e243820539ff48180e38ae0b4770b0d Mon Sep 17 00:00:00 2001 From: Gary Zhao Date: Mon, 2 Dec 2024 12:55:02 -0500 Subject: [PATCH 14/19] add mto solutions to the translation --- .../_components/Modal/SolutionForm/index.tsx | 15 +++++++++++++++ src/types/translation.ts | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx index 9f64d3c350..bb79ffc9a8 100644 --- a/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx +++ b/src/features/ModelPlan/ModelToOperations/_components/Modal/SolutionForm/index.tsx @@ -23,6 +23,8 @@ import { import Alert from 'components/Alert'; import useMessage from 'hooks/useMessage'; +import usePlanTranslation from 'hooks/usePlanTranslation'; +import { getKeys } from 'types/translation'; import { convertCamelCaseToKebabCase } from 'utils/modelPlan'; // import { selectOptions, SelectProps } from '../CategoryForm'; @@ -36,6 +38,9 @@ type FormValues = { const SolutionForm = ({ closeModal }: { closeModal: () => void }) => { const { t } = useTranslation('modelToOperationsMisc'); + const { solutionType: solutionTypeConfig } = + usePlanTranslation('mtoSolution'); + const { modelID } = useParams<{ modelID: string }>(); const { message, @@ -117,6 +122,16 @@ const SolutionForm = ({ closeModal }: { closeModal: () => void }) => { defaultValue="default" > + {getKeys(solutionTypeConfig.options).map(option => { + return ( + + ); + })} {/* {selectOptionsAndMappedCategories.map(option => { return (